Ubuntu – Xen and Ubuntu

Ubuntuvirtualizationxen

How does one properly approach having Ubuntu servers on a Xen hypervisor? I don't have any experience with RAID or Xen other than from a theoretical level.

Additional requirements:

  • Use with mdadm Software RAID 5 (can be on separate disks) that multiple instances with access
  • Paravirtualized Ubuntu Server guests instances

Possible ideas for now:

  1. Ubuntu host (dom0) with ubuntu-xen-server package (this purportedly isn't supported)
    • dom0 host will "own" RAID 5 partition
    • More Ubuntu servers as guests
  2. Citrix XenServer bare-metal host
    • XenServer will own RAID
  3. Citrix XenServer bare-metal host
    • Ubuntu guest instance creates and owns RAID

Questions and concerns:

  1. Can Ubuntu be used as a dom0 Xen host?
  2. Can XenServer install packages such as mdadm and create a partition?
  3. Can multiple guest access (R + W) to the same data partition (RAID)?

Note: since it may have a bearing on support, I'm referring to Ubuntu Server 10.04

Best Answer

Answers:

  1. Ubuntu can be used as a dom0 host. I have used rhel5 as xen dom0 host on top of it i installed windows server 2k8 r2 and it works fine. I know rhel license is violated, but anyway i dont use rhel 5 support contract. i help myself and from the community. The steps i took to install xen on rhel with win serv 2k8 is documented in my blog in this url http://maximus2882.blogspot.com/2010/10/windows-2008-enterprise-on-rhel-55.html . Maybe that is of some use to you. It must be similar if not easier.
  2. Xenserver does not install mdadm, it comes from the os package, in this ubuntu. You must do a #sudo apt-get install mdadm and use mdadm command to create RAID partition.
  3. Multiple guest can share a same datastore but cannot share the same files. But can live in the same partition. the partitions and data in guest os is stored as files in host os. So they can happily share the same partition. I think there are ways to make a certain dir share between host os and guest os. I have done that in virtualbox in windows seven as host and fedora 14 as guest. Not sure how to do the same in xen , as i have limited with xen. I would suggest you go with vmware if you can. As my experience with vmware shows it is much matured and is the industry leader and has a smooth and consistent operation and interface that doesn't fail much.
Related Topic