From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 17 13:03:18 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A38771065670 for ; Mon, 17 Sep 2012 13:03:18 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from tethys.ringofsaturn.com (tethys.ringofsaturn.com [71.252.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id 59FCE8FC08 for ; Mon, 17 Sep 2012 13:03:18 +0000 (UTC) Received: from ASSP.nospam (localhost [127.0.0.1]) by tethys.ringofsaturn.com (8.14.5/8.14.5) with ESMTP id q8HD3HUu089625; Mon, 17 Sep 2012 08:03:17 -0500 (CDT) (envelope-from aoyama@peach.ne.jp) X-Assp-Version: 1.9.3.7(1.0.01) on ASSP.nospam X-Assp-Delay: rnejdl@ringofsaturn.com was delayed for 38m 30s; 11 Aug 2012 17:01:06 -0500 X-Assp-Message-Score: 15 (Bad IP History for 69.147.83.53) X-Assp-Envelope-From: owner-freebsd-emulation@freebsd.org To: X-Assp-ID: ASSP.nospam m-34472-14219 X-Assp-Original-Subject: iSCSI LUN extents with VirtualDisk (VDI, VHD, VMDK) for istgt X-Assp-Spam-Reason: rejected by personal blacklist: '*,freebsd-emulation-request@freebsd.org' X-Assp-Message-Totalscore: 15 Received: from mx2.freebsd.org ([69.147.83.53] helo=mx2.freebsd.org) by ASSP.nospam with ESMTP (ASSP 1.9); 11 Aug 2012 17:01:05 -0500 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 0C00C15168E; Sat, 11 Aug 2012 21:12:16 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 4F3BD1065696; Sat, 11 Aug 2012 21:12:14 +0000 (UTC) (envelope-from owner-freebsd-emulation@freebsd.org) Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A9E4106564A; Sat, 11 Aug 2012 21:12:07 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id BC4A08FC0C; Sat, 11 Aug 2012 21:12:05 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 516D139E11; Sun, 12 Aug 2012 06:12:04 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 37A5039E00; Sun, 12 Aug 2012 06:12:04 +0900 (JST) Message-ID: <9307C6DE2E184FCB88B2CE33CA479EDB@ad.peach.ne.jp> From: "Daisuke Aoyama" MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-emulation@freebsd.org Errors-To: owner-freebsd-emulation@freebsd.org Cc: freebsd-scsi@freebsd.org Subject: iSCSI LUN extents with VirtualDisk (VDI, VHD, VMDK) for istgt X-BeenThere: freebsd-scsi@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Mon, 17 Sep 2012 13:03:18 -0000 X-Original-Date: Sun, 12 Aug 2012 06:11:33 +0900 X-List-Received-Date: Mon, 17 Sep 2012 13:03:18 -0000 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 _______________________________________________ freebsd-emulation@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"