Server User Manual

Converting a Hardware Virtualized Guest to a Paravirtualized Guest
4-12 Oracle VM Server User’s Guide
# virt-install -n el4u4 -f /dev/VolGroup00/el4u4 -v -c
/root/Enterprise-R4-U4-x86_64-dvd.iso -r 512 --vnc
If you see this error message:
main: unable to connect to host: Connection refused (111)
You need to run VNCViewer to reconnect to the guest console:
# vncviewer :0
4. The Oracle Enterprise Linux install begins. From the installation choices, select the
following:
Installation type: Server
Package selection: Default.
Partition layout type: Make sure the guest has a single root partition. Do not
configure the virtual disk using LVM. Do not create a swap partition, or other
partitions mounted at other locations such as /usr or /boot.
Firewall: Disable.
SELinux: Disable.
Network: Configure the network settings for either DHCP or a fixed IP address.
5. When the Oracle Enterprise Linux installation is complete, reboot the guest. If the
guest does not restart automatically, use the xm command-line tool to restart it, for
example:
# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 944 2 r----- 5670.8
# xm create el4u4
Using config file "/etc/xen/el4u4".
Started domain el4u4
# vncviewer :0
6. Take note of the guest IP address, or hostname if assigned via DHCP.
Copy the domU kernel for Oracle Enterprise Linux 4 Update 4, which can be
found in the directory extra_kernels/EL4U4PV_64 on the Oracle VM Server
installation CD-ROM, to the guest:
# cd extra_kernels/EL4U4PV_64/
# scp kernel-xenU-2.6.9-42.32.0.0.1.EL.x86_64.rpm 10.1.1.1:
7. Log in to the guest as root and replace the contents of the /etc/modprobe.conf file
with:
alias scsi_hostadapter xenblk
alias eth0 xennet
8. Install the kernel-xenU RPM:
# rpm -ivh kernel-xenU-2.6.9-42.32.0.0.1.EL.x86_64.rpm
warning: kernel-xenU-2.6.9-42.32.0.0.1.EL.x86_64.rpm: V3 DSA signature: NOKEY,
key ID b38a8516
Preparing... ########################################### [100%]
1:kernel-xenU ########################################### [100%]
WARNING: No module xenblk found for kernel 2.6.9-42.32.0.0.1.ELxenU, continuing
anyway