Oracle Audio Technologies E10898-02 用户手册

下载
页码 88
Converting a Hardware Virtualized Guest to a Paravirtualized Guest
Creating a Guest
4-13
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 (2.6.9-42.32.0.0.1.ELxenU)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.9-42.32.0.0.1.ELxenU ro root=LABEL=/
        initrd /boot/initrd-2.6.9-42.32.0.0.1.ELxenU.img
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 -c el4u4
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 the /etc/sysconfig/network-scripts/ifcfg-eth0 file with:
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', ]