WHAT'S HOT
Prev | Current Page 49 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"

Untar the file into our xen-images directory.
~ tar ??“C /home/pchaganti/xen-images ??“jxvf slackware.11-
0.20061220.ig.tar.bz2
3. Create a directory for mounting the image.
~ mkdir -p /home/pchaganti/xen-mounts/slackware_domU
4. Mount the image and copy the kernel modules for the domU kernel. Once
the copy is complete, unmount the image.
# mount -o loop /home/pchaganti/xen-images/slackware.11-0.img
/home/pchaganti/xen-mounts/slackware_domU
# cp -dpR /lib/modules/2.6.16.38-xenU /home/pchaganti/xen-
mounts/slackware_domU/lib/modules/
# umount /home/pchaganti/xen-mounts/slackware_domU/
5. Modify the domU configuration file to suit our installation.
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 128
name = "slackware.11-0"
vif = [ 'mac=00:16:3e:00:00:14, bridge=xenbr0' ]
Creating Virtual Machines
[ 50 ]
disk = ['tap:aio:/home/pchaganti/xen-images/slackware.11-
0.img,sda1,w','tap:aio:/home/pchaganti/xen-
images/slackware.swap,sda2,w']
root = "/dev/sda1 ro"
6. Create the slackware guest domain.
# xm create /home/pchaganti/xen-images/slackware.11-0.xen3.cfg ??“c
The following screenshot shows the slackware domU after start up.
What Just Happened?
Creating Xen guest domains from scratch is time consuming and there are times
when we just need to do some quick testing and really don't want to configure a
whole new domain. There are several sites on the Internet that offer complete Xen
images that can be used out of the box. You can find domains that contain complete
operating systems or Xen images that contain an operating system configured for a
particular application.


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