Date: Sun, 12 Aug 2012 06:11:33 +0900 From: "Daisuke Aoyama" <aoyama@peach.ne.jp> To: <freebsd-emulation@freebsd.org> Cc: freebsd-scsi@freebsd.org Subject: iSCSI LUN extents with VirtualDisk (VDI, VHD, VMDK) for istgt Message-ID: <9307C6DE2E184FCB88B2CE33CA479EDB@ad.peach.ne.jp>
next in thread | raw e-mail | index | archive | help
Hi, I have released istgt-20120811 which supports VirtualBox's VirtualDisk via VBoxDDU.so. If you don't want VBox VD features, you can build it without using --with-vbox. How to build with VBox support: Install VirtualBox 4, and extract the source of same version of it. /usr/local/src/virtualbox/*/include is default location of header. (e.g. /usr/local/src/virtualbox/VirtualBox-4.1.18/include/VBox/vd.h) If you want to extract to other place, you need specify by --with-vbox=PATH. # ./counfigure --with-vbox or # ./counfigure --with-vbox=/home/vboxsrc/VirtualBox-4.1.18/include Required shared libraries are VBoxDDU.so and VBoxRT.so located in /usr/local/lib/virtualbox. You may change this place by --with-vboxlib, but I don't test. Note: FreeBSD platform, configure use the path if exist: /usr/ports/emulators/virtualbox-ose/work /usr/ports/emulators/virtualbox-ose-legacy/work FreeBSD ports version can handle it by VBOXVD option. Both using X11 and starting VBox are unnecessary for istgt. FreeBSD 7.x users can use it with ports/emulators/virtualbox-ose-legacy. Currently it supports read/write only. Other operation such as creation, snapshot, resize are not supported. How to use: Specify with appropriate extension to LUN of LogicalUnit section. It is recommend that you use "Auto" for the size field to prevent creation. The istgt does not support creation of VDs, you need create the VD before starting istgt. example(one of): LUN0 Storage /iscsi/istgt-disk.vdi Auto LUN0 Storage /iscsi/istgt-disk.vhd Auto LUN0 Storage /iscsi/istgt-disk.vmdk Auto How to create Virtual Disk: You can use any size of capacity supported by the VD. But istgt assumes it has fixed 512bytes/block. example(one of): # VBoxManage createhd --filename /iscsi/istgt-disk --size 10240 --format VDI # VBoxManage createhd --filename /iscsi/istgt-disk --size 10240 --format VHD # VBoxManage createhd --filename /iscsi/istgt-disk --size 10240 --format VMDK For more detail written in Japanese: http://shell.peach.ne.jp/aoyama/archives/2088 Regards, Daisuke Aoyama
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9307C6DE2E184FCB88B2CE33CA479EDB>