Thursday, January 27, 2011

Virtualizing OpenSolaris with physical disks

I currently have a OpenSolaris installation with a ~1Tb RaidZ volume made up of 3 500Gb hard drives. This is on commodity hardware (ASUS NVIDIA based board on Intel Core 2).

I'm wondering whether anyone knows if XenServer or Oracle VM can be used to install 2009.06 and get given physical access to the three SATA drives so that I can continue to use the zpool and be able to use the Xen bits for other areas.

I'm thinking of installing the JeOS version of OpenSolaris, have it manage just my ZFS volume and some other stuff for work(4GB), then have a Windows(2GB) and Linux(1GB) VM (theres 8Gb RAM on that box) virtualised for testing things.

Currently I am using VirtualBox installed on OpenSolaris for the Windows and Linux testing but wondered if the above was a better alternative.

Essentially,

3 Disks -> OpenSolaris Guest VM, it loads the zpool and offers it to the other VMs via CIFS.

  • I would suggest you just look at the xVM Hypervisor (http://hub.opensolaris.org/bin/view/Community+Group+xen/WebHome). This would allow your existing OpenSolaris install become the hypervisor for other OS but also allow you to use ZFS as the backend disk for the virtual disks of the VMs.

    notpeter : Xen in OpenSolaris is no longer really being maintained, especially as a Dom0. I can't find documentation to back this up, but when I asked the question of an Oracle virtualization dev at an OpenSolaris user's group six months ago, he said outright Zones/LDoms are the focus and Xen had little or no ongoing development resources.
    From Thomas G
  • If your processors supports VT-x and your chipset supports VT-d, you might want to consider VMWare ESXi. VMDirectPath (aka IOMMU or VT-d) lets you attach a physical PCIe device (or PCIe-PCI bridge and all it's attached PCI devices) to an individual VM. I use VMDirectPath to attach my LSI SAS card to Nexenta so ZFS gets direct access to disks. My Windows/Linux VMs access storage from OpenSolaris via CIFS/NFS without a problem, although their boot vmdks are on a VMFS formatted disk off my motherboard's onboard SATA.

    From notpeter
  • No, you can't give a guest VM shared access to the zpool. What you can do is to share zfs file systems from the dom0 (via CIFS) to your guest VMs.

    From Martin

0 comments:

Post a Comment