WHAT'S HOT
Prev | Current Page 46 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"


Chapter 3
[ 47 ]
We have completed the installation of CentOS into a qemu image. Please note
that this process using qemu can be quite slow. Before creating a configuration
file for our domU, we need to mount the partitions created inside the
qemu image, so that Xen can have access to them. Mount the qemu image on
a loopback device first.
# losetup /dev/loop1 /home/pchaganti/xen-images/centos_domU.img
8. List the partitions that are inside the image. We will need this information
later when we try to mount each individual partition inside this image onto a
separate directory so that Xen can access it.
# fdisk -lu /dev/loop1
9. Disassociate the image from the loopback device.
# losetup ??“d /dev/loop1
10. Create the directories that we will use to mount the partitions from the qemu
file image.
~ mkdir ??“p /home/pchaganti/xen-mounts/centos_domU/boot_partition
~ mkdir ??“p /home/pchaganti/xen-mounts/centos_domU/root_partition
11. Mount the partitions on separate directories.
# lomount -t ext3 -diskimage /home/pchaganti/xen-
images/centos_domU.img -partition 1 /home/pchaganti/xen-
mounts/centos_domU/boot_partition
12. Copy the kernel modules to the domU.
~ cp -dpR /lib/modules/2.6.16.38-xenU /home/pchaganti/xen-
mounts/centos_domU/root_partition/lib/modules/
13. chroot into the domU partition and rename the directory containing the
tls libraries.
# chroot /home/pchaganti/xen-mounts/centos_domU/root_partition
/bin/bash
# mv /lib/tls /lib/tls.


Pages:
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58