Editing Install kernel from RPM on Ubuntu 10.04
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 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* vzctl | * vzctl | ||
+ | * vzctl-lib | ||
* vzquota | * vzquota | ||
− | + | <code>vzkernel-devel</code> is optional. | |
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 | + | 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 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 4. Install debs. | |
− | dpkg -i | + | dpkg -i vz*.deb |
− | + | 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 33: | ||
initrd /boot/initrd.img-2.6.32-38-server | initrd /boot/initrd.img-2.6.32-38-server | ||
− | + | 6. Edit <code>/etc/sysctl.conf</code>. See “sysctl” of [[Quick installation]]. | |
− | |||
− | |||
− | |||
− | + | 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 | ||
− | + | 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 | ||
− | + | 9. Reboot. | |
reboot | reboot | ||
− | + | 10. Follow the [[Quick installation]] from “installing OS template caches”. | |
− | + | 10b. rsyslog probably won't work (it depends on an 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. | ||
− | + | 11. See also [[Common Networking HOWTOs]]. | |
[[Category: HOWTO]] | [[Category: HOWTO]] |