On 12/26/2009 07:33 PM, Alxen4 wrote:
Please advise on right syntax to use raw zfs partitions as XEN disks

I create ZFS this way

zfs create rpool/vm2/win2008sbs/system

and then try to create DomU with the following configuration:

disk = [ 'phy:/rpool/vm2/win2008sbs/system,hda,w'
        , 'file:/rpool/vm2/iso/sbs_2008.iso,hdc:cdrom,r'
        ]


But when try to tun it I get this error:

Error: Device 768 (vbd) could not be connected. error: "/rpool/vm2/win2008sbs/system" is not a valid block device.

What I'm doing wrong ?

Thanks a lot.
  

Create a virtual volume:

    zfs create rpool/guests
    zfs create -V 20G rpool/guests/win2008sbs

then use the corresponding zvol:

    virt-install \
        --hvm \
        --os-type windows \
        --os-variant win2003 \
        -n win2008sbs \
        -f /dev/zvol/dsk/rpool/guests/win2008sbs \
        --cdrom /rpool/vm2/iso/sbs_2008.iso \
        --vnc \
        --vcpus=1 \
        -r 1024

   
   

--

E. Mike Durbin
Architecture Manager
Sun Microsystems, Inc.
2 Pierce Place, Suite 1700
Itasca, IL 60143 US
Phone +1 630 285 7710
Mobile +1 630 965 7710
Fax +1 630 285 8752
Email [email protected]
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to