Xen domU kernel modules install/update

The Xen® hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures.

Xen domU kernel modules install/update

Postby lik » Wed Nov 10, 2010 8:18 am

Xen kernel module on each virtual machine (domU) need to be updated to match kernel version on the underlying server (dom0).

Error will be shown in your virtual machine when it is not matched, such as in your iptables, e.g.:
Code: Select all
# iptables -L

iptables v1.3.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

To resolve the issue and install the missed kernel modules please follow the instructions:

1. Check your VPS domU kernel version:
Code: Select all
# uname -a
Linux vps1.likg.org.ua 2.6.18-194.17.4.el5xen #1 SMP Mon Oct 25 16:36:31 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

2. Download kernel module which match your kernel version into your VPS:
Code: Select all
mkdir /usr/src/kernel_modules
wget "http://mirror.centos.org/centos/5/updates/x86_64/RPMS/kernel-xen-devel-2.6.18-194.17.4.el5.x86_64.rpm"

3. Unpack the RPM file:
Code: Select all
rpm2cpio kernel-xen-devel-2.6.18-194.17.4.el5.x86_64.rpm| cpio -idmv

4. Move the kernel modules to /lib/modules/ directory:
Code: Select all
mv lib/modules/2.6.18-194.17.4.el5xen /lib/modules/
rm -rf /usr/src/kernel_modules

5. Load the required modules:
Code: Select all
depmod -a

Now you can check it with iptables -L again:
Code: Select all
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

6. It is recommended to reboot the VPS for test purpose:
Code: Select all
shutdown -r now


Presumably, it`s possible just to use "yum install kernel-xen.x86_64", but haven`t tested by me.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Xen related

 


  • Related topics
    Replies
    Views
    Last post