Again see the Xen Overview on the Xen wiki for more information. Domain 0 Xen has a special domain called domain 0 which contains drivers for the hardware, as well as the toolstack to control VMs. Domain 0 is often referred to as dom0. Domain 0 host installation Initial installation Before installing Xen you should install Debian on the host machine. This installation will form the basis of Domain 0.
Installing Debian can be done in the usual way using the DebianInstaller. See the Debian Release Notes for more information on installing Debian. Although it is recommended to always run a bit hypervisor note that this does not mean one has to run a bit domain 0.
It is quite common to run a bit domain 0 on a bit hypervisor a so-called "32on64" configuration. In general you can install your Domain 0 Debian as you would any other Debian install. The main thing to consider is the partition layout since this will have an impact on the disk configurations available to the guests. If you have one disk, the following is a reasonable setup: create 3 physical partitions: sda1, sda2, sda3. The root ext4 and swap will be on the first two and the remainder will be under Logical Volume Management lvm.
With the LVM setup, create 1 physical volume and then one volume group. Because of that, working with Xen becomes a lot easier. The setup described here is tested for Debian Squeeze and Ubuntu Maverick virtual machines, but should work for a lot more. First install the hypervisor, xen aware kernel and xen tools. The most common configuration is to use a software bridge. It is recommended that you manage your own network bridge using the Debian network bridge. Skip to content. Skip to navigation.
Provide the amount of RAM assigned to the Dom0. Adjust the default value to your needs and the amount of RAM available on the server. Provide a value in MegaBytes:.
One CPU core is a good default:. Install the Xen hypervisor and kernel adapted to the operating system architecture 32 or 64 bits :. If this is fully working, users have nearly?! It works, I did this some months ago with the 3. It seems to be usable with the released Etch Xen. There are some rough spots - keyboard config fails left it unchanged , no kernel modules were found Partitioning is a bit of a surprise, though.
Didn't experiment to see how that would work out as I really didn't want partitioned partitions! Other problems some of which I could have avoided : libc6-xen: you need it udev's persistent-net rule will screw you unless you're setting a fixed MAC in the VM config. Via the Xen console, this doesn't look exactly nice TODO: add screenshot , but thsi might also have something to do with locale settings on dom0, I am not sure.
Download both vmlinuz and initrd. These instructions assume you are installing Debian Squeeze. However you can modify the URLs to point to any release from Lenny onwards. For the initial boot you should configure the guest to use the vmlinux and initrd. The rest of the guest configuration is down to you and your requirements for the guest you are installing. You would normally want to configure a disk and network device as normal. In order to use Debian Installer it is necessary to use the whole disk disk configuration rather than the partitions.
In other words you must configure an xvda device and not xvda1 , xvda2 etc. For example a complete if rather minimal installation time configuration might be:. At this point you should create the backing storage for the disk configuration you are using. See Xen Man Pages , in particular the xl. Now that you have created the guest configuration you can start the guest and connect to its console.
At this point the guest will boot and Debian Installer will start. Now you can install Debian like you normally would, perhaps following the Debian Installation Guide.
0コメント