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
- 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.
- 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
- 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
- Set the default toolstack to xm (aka xend):
sudo sed -i 's/TOOLSTACK=.*\+/TOOLSTACK="xm"/' /etc/default/xen
- Reboot
sudo reboot
- Check that set up correctly:
sudo xm list
Set to Static IP with DNS
-
vi /etc/network/interfaces
- Make your file look something like this:
- Restart your network:
sudo /etc/init.d/networking restart
Sources
No comments:
Post a Comment