Editing Install kernel from RPM on Ubuntu 10.04

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
== Installation ==
 
== Installation ==
1. Get the latest kernel from [[Download/kernel/rhel6]]. You need  
+
1. Get the latest kernel and utils from [[Download/kernel/rhel6]] and [[Download/utils]]. You need  
 
* vzkernel
 
* vzkernel
 
* vzkernel-devel
 
* vzkernel-devel
<code>vzkernel-devel</code> is optional.
 
 
For newer kernels with [[ploop]]-support you will not be able to use the vzctl package that comes with Ubuntu 10.04. So download the following rpm-packages from openvz.org as well
 
* ploop
 
* ploop-lib
 
* vzctl-core
 
 
* vzctl
 
* vzctl
 +
* vzctl-lib
 
* vzquota
 
* vzquota
 
+
<code>vzkernel-devel</code> is optional.
 +
Newer vzctl will also need ploop-packages!
  
 
2. Install fakeroot and alien.
 
2. Install fakeroot and alien.
 
  apt-get install fakeroot alien
 
  apt-get install fakeroot alien
  
3. Convert all the RPMs to debs using alien and install the converted kernel
+
3. Convert all the RPMs to debs using alien.
  fakeroot alien --to-deb --scripts --keep-version *.rpm
+
  fakeroot alien --to-deb --scripts --keep-version vz*.rpm
  dpkg -i vzkernel*deb
+
  fakeroot alien --to-deb --scripts --keep-version ploop*.rpm
 
 
4a. Install vz utils ('''only if you did not download vzctl and vzquota from openvz.org''')
 
apt-get install vzctl vzquota
 
 
 
'''OR'''
 
 
 
4b. Download and install [http://packages.ubuntu.com/precise/libcgroup1 libcgroup1] from the Ubuntu 12.04 repository for your architecture if you plan of using current versions of vzctl
 
wget http://mirror.pnl.gov/ubuntu//pool/universe/libc/libcgroup/libcgroup1_0.37.1-1ubuntu10_i386.deb
 
wget http://mirror.pnl.gov/ubuntu//pool/universe/libc/libcgroup/libcgroup1_0.37.1-1ubuntu10_amd64.deb
 
  
  dpkg -i libcgroup1*deb
+
4. Install debs.
  dpkg -i ploop*deb vzquota*deb vzctl*deb
+
  dpkg -i vz*.deb
 +
  dpkg -i ploop*.deb
  
6. Modify <code>/boot/grub/menu.lst</code> like this. This heavily depends on your enviornment. Please modify. See also “configuring the bootloader” of [[Quick installation]].
+
5. Modify <code>/boot/grub/menu.lst</code> like this. This heavily depends on your enviornment. Please modify. See also “configuring the bootloader” of [[Quick installation]].
 
  default        0
 
  default        0
 
  timeout        3
 
  timeout        3
Line 48: Line 36:
 
  initrd          /boot/initrd.img-2.6.32-38-server
 
  initrd          /boot/initrd.img-2.6.32-38-server
  
6b. If using grub2, please modify <code>/etc/default/grub</code> and change GRUB_DEFAULT to whatever your new grub entry is named (check your menuentrys in /boot/grub/grub.cfg)
+
6. Edit <code>/etc/sysctl.conf</code>. See “sysctl” of [[Quick installation]].
"GRUB_DEFAULT="Ubuntu, mit Linux 2.6.32-042stab061.2"
 
 
 
7. Edit <code>/etc/sysctl.conf</code>. See “sysctl” of [[Quick installation]].
 
  
8. Make OpenVZ boots automatically.
+
7. Make OpenVZ boots automatically.
 
  update-rc.d vz defaults
 
  update-rc.d vz defaults
 
  update-rc.d vzeventd defaults
 
  update-rc.d vzeventd defaults
  
9. If you plan to use LVM2, make sure the module dm-mod is loaded at startup:
+
8. If you plan to use LVM2, make sure the module dm-mod is loaded at startup:
 
  echo "dm-mod" >> /etc/modules
 
  echo "dm-mod" >> /etc/modules
  
10. Reboot.
+
9. Reboot.
 
  reboot
 
  reboot
  
11. Follow the [[Quick installation]] from “installing OS template caches”.  
+
10. Follow the [[Quick installation]] from “installing OS template caches”.  
  
11b. rsyslog probably won't work (it depends on a debian-specific kernel-hack). See
+
10b. rsyslog probably won't work (it depends on a debian-specific kernel-hack). See
 
[http://forum.linode.com/viewtopic.php?p=32053] on how to get it working again.
 
[http://forum.linode.com/viewtopic.php?p=32053] on how to get it working again.
  
12. See also [[Common Networking HOWTOs]].
+
11. See also [[Common Networking HOWTOs]].
  
 
[[Category: HOWTO]]
 
[[Category: HOWTO]]

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)