Setting Up Ubuntu-Xen Server

Introduction

My traditional platform for a xen-server is CentOS 5.8, but due to driver difficulties with a new machine, I was forced to try out Ubuntu Server as an alternative.

Installing Xen-Ubuntu

  1. During the install of Ubuntu for the Partitioning method choose "Guided - use the entire disk and setup LVM". Then, when prompted to enter "Amount of volume group to use for guided partitioning:" Enter a value of 5-10GB which is just large enough for the Xen Dom0 system, leaving the rest for virtual disks.  5 GB should be large enough for a minimal Xen Dom0 system.
  2. Install a 64-bit hypervisor. (A 64-bit hypervisor works with a 32-bit dom0 kernel, but allows you to run 64-bit guests as well.)
    sudo apt-get install xen-hypervisor-amd64
  3. Modify GRUB to default to booting Xen:
    sudo sed -i 's/GRUB_DEFAULT=.*\+/GRUB_DEFAULT="Xen 4.1-amd64"/' /etc/default/grub
    sudo update-grub
  4. Set the default toolstack to xm (aka xend):
    sudo sed -i 's/TOOLSTACK=.*\+/TOOLSTACK="xm"/' /etc/default/xen
  5. Reboot
    sudo reboot
  6. Check that set up correctly:
    sudo xm list

Set to Static IP with DNS

  1. vi /etc/network/interfaces
  2. Make your file look something like this:

  3. Restart your network:
    sudo /etc/init.d/networking restart

Sources

No comments:

Post a Comment