WHAT'S HOT
Prev | Current Page 84 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"

Exit out of the chroot
environment:
# exit
# umount /mnt/feisty
19. Create the configuration file that will be used by dom0 to create this
guest domain:
cat > /home/pchaganti/xen-images/ubuntu_feisty_domU.cfg << "EOF"
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 256
name = "ubuntu_feisty_domU"
disk = ['phy:gandalf/feisty']
vif = [ 'mac=00:16:3e:00:00:10, bridge=xenbr0' ]
root = "/dev/sda1 ro"
EOF
20. Call xm to create the virtual machine:
# xm create /home/pchaganti/xen-images/ubuntu_feisty_domU .cfg -c
Storage
[ 98 ]
What Just Happened?
In this section we created a new logical volume named feisty and populated it with
Ubuntu feisty using the debootstrap tool. We exported this logical volume to Xen by
referencing it as a physical device.
The use of LVM storage for Xen domains is encouraged, as it is probably the ideal
way to set up and administer the domains. However, please note that using LVM
in guests with LVM on the host can cause problems as the inside guests can see the
wrong LVM information from the host. However, LVM makes it extremely easy
to manage storage requirements for the enterprise while providing a configurable
and adaptable virtualization environment. Here are some links that provide more
detailed information on LVM:
LVM How to: http://www.tldp.org/HOWTO/html_single/LVM-HOWTO/
Learning Linux LVM:
http://www.ibm.com/developerworks/linux/library/l-lvm/
Managing disk space with LVM:
http://www.linuxdevcenter.


Pages:
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96