WHAT'S HOT
Prev | Current Page 39 | Next

Prabhakar Chaganti

"Xen Virtualization: A Practical Handbook"

When we are done working with the directory, we just umount the directory
e from the loop device. We execute the debootstrap command, which will download
the files for the specified arch for Ubuntu Feisty and populate the specified directory
with the minimal file system required for a Ubuntu system. We will need a kernel
and kernel modules for booting this minimal Ubuntu system, and for this we will use
the domU kernel that we built earlier in this chapter. We copy the kernel modules to
the /lib/modules directory in the Ubuntu system so that they are available when
the kernel boots up this domain. For the current process, chroot command modifies
the root directory to the specified directory and in effect creates a sandbox. Once you
execute chroot and your root directory has been modified, all the commands that
you execute from that point will operate inside that sandbox environment and you
??? ???
Chapter 3
[ 39 ]
will not have any access to directories or files outside the root directory. We chroot
into the Ubuntu minimal system that we have just created, and configure the system
by setting up the host name, networking, and security options. Once we are done, we
exit the chroot to get back into our normal environment.
We have an Ubuntu Feisty system all ready to go and now need to tell Xen to create
a guest domain to run it. In order to do this we need to create a Xen configuration file
that is just a Python file containing directives to be used by xm to create the domain.


Pages:
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51