Jump to: navigation, search

Building a Xen Guest Domain using Xen-Tools

26 bytes added, 20:05, 27 March 2009
no edit summary
== Specifiy Xen-Tools Installation Location ==
Begin by setting the ''dir = '' directive to the directory into which the tools are to create the Xen guest image files:
Also, the ''accounts'' option can be used if all user accounts on the host are to be copied to the Xen guest system:
== Xen Guest Console Settings ==
It Next, it is necessary to configure the console settings for the Xen guest. Choice Choices are as follows:
== Options Disk Drive Device Naming ==
Finally the device naming conventions used for the disk drives within the guest operating system may be optionally be defined. Xen-Tools defaults to ''/dev/sda'' based names, but this can be changed to the more recent ''tap:aio'' based ''xvda'' conventions as follows:
== Building the Xen Guest Images ==
Now that we have completed the configuration process the next step is to generate the images for the Xen guest. This task is performed using the ''xen-create-image'' tool. This tool takes a wide range of command-line options which can be used to override the settings in a configuration file outlined above, or as an alternative to placing configuration settings in the configuration file. The following example creates the images based on the settings we defined in the Xen-Tools configuration file, avoiding the need to extensive use fo of command-line options:
== Booting the Xen Guest System ==
Once the creation process is completed there should be a Xen guest configuration file for the new system located in ''/etc/xen''. In the case of our example this file is called ''XenUbuntu.cfg''. This is atext a text file so feel free to open it in a an editor and review it. Many of the settings defined in the Xen-Tools configuration file should be reflected in this file.
Also the root filesystem and swap images will have been created (and are referenced in the guest configuration file). To review the contents of the root filesystem before attempting to boot the guest domain simply mount the image using the loopback interface. For example, the following command mounts our image at /tmp/mnt:

Navigation menu