Editing
Virtuozzo / Linux Reference
(section)
Jump to navigation
Jump to 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.
Anti-spam check. Do
not
fill this in!
= Updating kernel on virt = We now use [[#vzup2date|vzup2date]] to update systems and kernels. What follows is what we used to do when we had to download kernels and install manually on old systems: 1. install kernel and modules <pre># rpm -ivh vzkernel-enterprise-2.4.20-021stab028.12.777.i686.rpm \ vzmodules-enterprise-2.4.20-021stab028.12.swsoft.i686.rpm vzkernel-smp ################################################## vzmodules-smp ##################################################</pre> DO NOT USE the "rpm -Uhv" command to install the kernel, otherwise all the previously installed kernels may be removed from your system. 2. update lilo/grub Lilo: vi /etc/lilo.conf rename old Virtuozzo kernel label from "linux+virtuozzo" to "virtuozzo_old" and add a new entry pointing to the newly installed virtuozzo kernel image. For example: <pre>prompt timeout=50 default=linux+virtuozzo append="debug panic=5 console=tty console=ttyS0,38400" boot=/dev/sda map=/boot/map install=/boot/boot.b message=/boot/message linear image=/boot/vmlinuz-2.4.18-3smp label=linux initrd=/boot/initrd-2.4.18-3smp.img read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.18-3 label=linux-up initrd=/boot/initrd-2.4.18-3.img read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-020stab009.5.777-enterprise label=2.4.20-9.5.777 read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-020stab009.8.777-enterprise label=2.4.20-9.8.777 read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-020stab009.21.777-enterprise label=2.4.20-9.21.777 read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-020stab009.24.777-enterprise label=2.4.20-9.24.777 read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-021stab028.3.777-enterprise label=2.4.20-28.3.777 read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-021stab028.5.777-enterprise label=old_linux+vz read-only root=/dev/sda1 image=/boot/vmlinuz-2.4.20-021stab028.12.777-enterprise label=linux+virtuozzo read-only root=/dev/sda1</pre> With this configuration, the new kernel is the default kernel to use at boot. The original kernel entry has been retained with the label "old_linux+vz ". Grub: vi /boot/grub /menu.lst Add new entry at the top. For example: <pre>serial --unit=0 --speed=38400 terminal --timeout=10 serial console default=0 timeout=10 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Virtuozzo 2.6.1 (2.4.20-021stab028.12.777-enterprise) root (hd0,0) kernel /boot/vmlinuz-22.4.20-021stab028.12.777-enterprise root=/dev/sda1 console=tty0 \ console=ttyS0,38400 title Virtuozzo 2.6.1 (2.4.20-021stab028.3.777-enterprise) root (hd0,0) kernel /boot/vmlinuz-2.4.20-021stab028.3.777-enterprise root=/dev/sda1 console=tty0 \ console=ttyS0,38400 title Red Hat Linux (2.4.18-3smp) root (hd0,0) kernel /boot/vmlinuz-2.4.18-3smp ro root=/dev/sda1 initrd /boot/initrd-2.4.18-3smp.img title Red Hat Linux-up (2.4.18-3) root (hd0,0) kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/sda1 initrd /boot/initrd-2.4.18-3.img title Linux with Virtuozzo 2.5 root (hd0,0) kernel /boot/vmlinuz-2.4.20-020stab009.3.777-smp ro root=/dev/sda1 title vz-enterpriseo root (hd0,0) kernel /boot/vmlinuz-2.4.20-020stab009.21.777-enterprise ro root=/dev/sda1 title vz-enterprise root (hd0,0) kernel /boot/vmlinuz-2.4.20-020stab009.24.777-enterprise ro root=/dev/sda1 \ console=tty0 console=ttyS0,38400</pre> 3. run the lilo (if using lilo) <pre># lilo Added linux Added linux-up Added virtuozzo_old Added linux+virtuozzo *</pre> 4. reboot the server shutdown -r 23:05 when it comes time for the shutdown, run [[VPS_Management#stopvirt|stopvirt]] to get things shut down faster
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information