http://linux.oracle.com/
Modify the /etc/modprobe.conf file to comment out existing eth0 line and add the
2.
following lines:
alias scsi_hostadapter xen_vbd
alias eth0 xen_vnif
Run depmod.
3.
Edit the /etc/xen/vm.cfg file to replace the vif entry to:
4.
vif = [ '', ] # for PVM
or
vif = [ 'type=netfront, ', ] # for PVHVM
Shut down the domain:
5.
# xm shutdown mydomain
Start the domain:
6.
# xm create /OVS/running_pool/myguest/vm.cfg
When prompted by kudzu, remove the old network configuration.
7.
In the newly booted guest operating system, run the following command to find
8.
the new MAC address for eth0:
# ifconfig eth0
Edit the /etc/xen/vm.cfg file to add the new MAC address:
9.
vif = [ 'mac=xx:xx:xx:xx:xx:xx, bridge=xenbr0', ] # for HVM
or
vif = [ 'type=netfront, mac=xx:xx:xx:xx:xx:xx, bridge=xenbr0', ] # for PVHVM
Create or edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file with the
10.
following contents:
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=xx:xx:xx:xx:xx:xx
Create a new initrd image. Use the kernel version for your guest operating system.
11.
# mkinitrd -f /boot/initrd-2.6.9-42.0.3.8.2.ELsmp.img 2.6.9-42.0.3.8.2.ELsmp
--omit-scsi-modules --with=xen-vbd
Reboot the domain.
12.
Installing Paravirtual Drivers
Creating a Guest Virtual Machine 4-15
Need help?
Do you have a question about the VM and is the answer not in the manual?