Just a quick fyi...
We''ve recently added support for blktap along with
support for managing virtual disks (disk file images).
There are some difference from a linux dom0.
This is available in b101 @
http://www.opensolaris.org/os/downloads/sol_ex_dvd_1/
This allows you to create and manage vmdk and vdi
(Virtual Box) disk files. By default, virt-install
will now use a vmdk vdisk when a non existing disk
file is passed in.
Please have fun, play, ask questions, and give
us feedback.
Thanks,
MRJ
More information can be found in the vdiskadm(1M)
manpage. We are continuing to work on additional
functionality over the next few months, including:
o support for unmanaged disks, i.e. non managed
vmdk file directly (putback in b102)
o import/export/convert
o cow clone
A very quick set of examples... It should look very
familiar if you have used zfs...
: alpha[1]#; vdiskadm help
Virtual Disk Tool
vdiskadm help [command] - for individual command help
List of commands:
help - List commands or show help on a command
list - list images in a virtual disk
create - create a virtual disk
destroy - destroy a virtual disk
move - move a virtual disk to a different location
rename - rename a virtual disk or snapshot
snapshot - create a snapshot of a virtual disk
rollback - revert to a snapshot of a virtual disk
clone - clone a snapshot
verify - verify a disk is valid
prop-add - add a user property to the disk state
prop-del - delete a user property from the disk state
prop-get - read a property from the disk state
prop-set - set a property in the disk state
: alpha[1]#; vdiskadm create -t vmdk:sparse -s 8g /tank/guests/nevada/disk2
: alpha[1]#; vdiskadm create -t vdi:sparse -s 8g /tank/guests/nevada/disk3
: alpha[1]#; vdiskadm snapshot /tank/guests/nevada/disk3@initial
: alpha[1]#; vdiskadm snapshot /tank/guests/nevada/disk3@2
: alpha[1]#; vdiskadm rollback -r /tank/guests/nevada/disk3@initial
Snapshot a guest
---
: alpha[1]#; virsh console nevada
Loading kmdb...
v3.1.4-xvm chgset ''Mon Oct 13 22:14:51 2008 -0700
15904:94bd0a643efe''
SunOS Release 5.11 Version snv_100 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: nevada
Reading ZFS config: done.
nevada console login:
: alpha[1]#; virsh save nevada /tank/guests/nevada/state@noon
Domain nevada saved to /tank/guests/nevada/state@noon
: alpha[1]#; vdiskadm snapshot /tank/guests/nevada/disk0@noon
: alpha[1]#; virsh restore /tank/guests/nevada/state@noon
Domain restored from /tank/guests/nevada/state@noon
: alpha[1]#; virsh console nevada
Oct 28 16:22:38 nevada genunix: NOTICE: Domain suspending for save/migrate
Oct 28 12:24:38 nevada unix: NOTICE: domain restore/migrate completed
nevada console login:
Hotplug a vdisk..
--
xm block-attach snv89 tap:vdisk:/tank/guests/nevada/b89/disk3 3 w
virsh attach-disk s10u6-02 /tank/guests/s10u6/disk2 hdb --driver tap --subdriver
vdisk
create a new guest using blktap/vdisk (assuming /tank/guests/myguest/disk0
doesn''t exist)
--
virt-install --p --nographics --noautoinstall -r 1024 -n myguest -s 16 -f
/tank/guests/myguest/disk0 -l /tank/install/snv101.iso