disabled
Creating Virtual Machines
[ 48 ]
14. Create the configuration file for starting the CentOS domU.
cat > /home/pchaganti/xen-images/centos_domU.cfg << "EOF"
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
ramdisk = "/boot/initrd-2.6.16.38-xenU.img"
memory = 256
name = "centos-domU"
disk = ['tap:aio:/dev/loop1,hda1,w','tap:aio:/dev/loop2,hda3,w']
vif = [ 'mac=00:16:3e:00:00:16, bridge=xenbr0' ]
root = "/dev/hda3 ro"
EOF
15. Create the CentOS domU.
# xm create /home/pchaganti/xen-images/centos_domU.cfg -c
The following screenshot shows the CentOS server booting up as a domU.
What Just Happened?
In this section we used an iso image that contains the CentOS installer. This presents
some unique challenges when operating in a paravirtualized environment as Xen
cannot boot domains from a cd-rom. If we had been in a Xen HVM environment,
it would have been trivial to boot a domain using a CD or an iso image. The work
around for this in a paravirtualized environment is to use QEMU??”an open-source
processor emulator. We created a qemu disk image and then installed CentOS onto
that disk image. Qemu allows us to redirect the output from the VGVA display via a
VNC session. When qemu is used to boot up the CentOS installation CD, the output
from that session is exported via VNC, so that we can connect to the display using
a VNC viewer and go through the installation. Once the installation is complete the
qemu disk image will contain the partitions created in the install process containing
the CentOS 4.
Pages:
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59