Converting a Hardware Virtualized Guest to a Paravirtualized Guest
9.Edit the /boot/grub/grub.conf file in the guest and change the default to point to this entry:
title Enterprise Linux Enterprise Linux AS
10.Shut down the guest. Modify the host configuration file /etc/xen/el4u4 to an entry similar to:
name = "el4u4" memory = "512"
disk = [ 'phy:/dev/VolGroup00/el4u4,hda,w', ] bootloader="/usr/bin/pygrub"
vcpus=1
on_reboot | = | 'restart' |
on_crash | = | 'restart' |
11.Restart the guest, using the xm command-line tool:
# xm create
The hardware configuration is displayed.
12.Remove the configuration for the network adapter and keyboard.
13.Log in to the guest, and delete the /etc/sysconfig/hwconf file. Shut down the guest.
14.Modify the guest configuration file /etc/xen/el4u4 to add a vif entry similar to:
name = "el4u4" memory = "512"
disk = [ 'phy:/dev/VolGroup00/el4u4,hda,w', ] vif = [ 'bridge=xenbr0', ] bootloader="/usr/bin/pygrub"
vcpus=1
on_reboot = 'restart'
on_crash | = 'restart' |
15.Start the guest and log in as root. Run the command:
# ifconfig eth0
Take note of the HWaddr (MAC address).
16.Replace the contents of
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
Replace xx:xx:xx:xx:xx:xx with the actual MAC address reported by the ifconfig command in the guest.
17.On the host, edit the domU configuration file /etc/xen/el4u4, and add the MAC address to the vif entry:
vif = [ 'mac=xx:xx:xx:xx:xx:xx, bridge=xenbr0', ]
Creating a Guest