# xm shutdown ubuntu_feisty_domU
You can disconnect a running domainU from the console using the keyboard
shortcut??”Ctrl ].
You can connect back to this domU by using xm and providing the name of the
domain you want to connect as a parameter:
# xm console ubuntu_feisty_domU
You can configure it so that guest domain starts automatically when the server
boots up by creating a symbolic link in the /etc/xen/auto directory pointing to the
configuration file that we created earlier.
What Just Happened?
We created three file images??”one for mounting /boot, one for the swap, and one
for the / root directory using the dd command. We also created the ext3 file system
on the boot and root file images. Linux provides the concept of a loop device that
enables you to access a file like a normal device. We used this concept to mount the
file on a normal directory on Linux so that we can manipulate the contents of that
directory using any normal Linux commands.
Creating Virtual Machines
[ 38 ]
Debo ebootstrap is a great command line tool for creating a Debian base system from
scratch. It does not have any dependencies on the Debian package system. It works
by downloading the .deb files for the specified architecture and distribution from
a mirror site, and then unpacks the .deb files onto the file system into the specified
directory. Once it has finished its magic, you have a minimal Debian root file system
that you can chroot into and finish the configuration.
Pages:
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49