iSCSI LUN extents with VirtualDisk (VDI, VHD, VMDK) for istgt
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-unsubscr...@freebsd.org
VirtualBox 3.2.4 additions without X11 compile error
I'm not tested with VirtualBox 3.2.4. But I got the following log on VMs without X11. kBuild: Compiling VBoxGuestR3LibXFree86 - /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-3.2.4_OSE/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibRuntimeXF86.cpp In file included from /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-3.2.4_OSE/src/VBox/Additions/x11/x11include/4.3/programs/Xserver/hw/xfree86/os-support/xf86_ansic.h:90, from /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-3.2.4_OSE/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibRuntimeXF86.cpp:39: /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-3.2.4_OSE/src/VBox/Additions/x11/x11include/4.3/programs/Xserver/include/misc.h:119:57: error: X11/Xfuncs.h: No such file or directory kmk: *** [/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-3.2.4_OSE/out/freebsd.amd64/release/obj/VBoxGuestR3LibXFree86/VBoxGuestR3LibRuntimeXF86.o] Error 1 I can't see the file in extracted directory. But the file exists in upper directory. So, here is copy patch for without X11 environment. If you get this error, try this patch. --- Makefile.3242010-06-10 07:05:36.0 +0900 +++ Makefile2010-06-12 00:59:21.0 +0900 @@ -122,6 +122,9 @@ @${REINPLACE_CMD} -e 's|\$$KBUILDDIR_BIN/kmk_sed|${PREFIX}/bin/kmk_sed|g' ${WRKSRC}/configure pre-build: +.if defined(WITHOUT_X11) + @${CP} ${WRKSRC}/src/VBox/Additions/x11/x11include/4.3/include/Xfuncs.h ${WRKSRC}/src/VBox/Additions/x11/x11include/4.3/include/X11/ +.endif @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ ${WRKSRC}/env.sh \ ${WRKSRC}/src/VBox/Additions/freebsd/Installer/vboxguest.sh 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-unsubscr...@freebsd.org
Re: CFT: VirtualBox 3.2.0
The attached file seems missing. I will retry. -- Daisuke Aoyama ___ freebsd-emulation@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org
[PATCH] VirtualBox headless VNC support by LibVNCServer (20100421)
Hi all, First, thank you for porting great software and thank you for using my patch. This archive contains an individual patch files and a modified Makefile for virtualbox-ose 3.1.6_3. Please select an options you want before building. And make it by normal way. I tested the binary on FreeNAS 0.7.1 stable (FreeBSD 7.2-RELEASE-p7 amd64/i386 kernel) and FreeNAS 0.7.2 devel (FreeBSD 7.3-RELEASE amd64/i386 kernel). What's new? --- Fix some bugs. Add modifier hook such as AltGr. Add the ability to parse non-US keymaps. (the code is referred to Hubert Tournier's patch) How to use -- # cd /usr/ports/emulators/virtualbox-ose # tar xvf /path/to/vboxvnc-20100421.tar.gz # tar xvf /path/to/vboxint18-20100310.tar.gz (optional) # make config # make It provides an internal VNC server for guest OS console access in VBoxHeadless frontend. Supported Options: -v, -vnc, --vnc on|offEnable (default) or disable the VNC Server -a, -vncaddress, --vncaddress ipIP address the VNC server will bind to -p, -vncport, --vncport portPort number the VNC server will bind to -k, -vnckeymap, --vnckeymap keymap Keyboard mapfile (default: builtin US) -S, -vncsecret, --vncsecret secret VNC Authentication secret three options at one line is an equivalent option, for example: -v on, -vnc on, --vnc on are same feature. -v option specify whether VNC server starts in the machine. default is on (enable). -a and -p options specify IP address and port number of VNC server. default IP is wildcard, port is 5900. If you have multiple IPs(NICs) in your system, you can select the listen address of the server. -k option specify the keyboard layout convert from VNC keys to Scancodes. default is US standard 101keys. (I tested only US 101 keyboard) If you want another keyboard, you can spcify the path of kbdmap(5). In the standard installation of FreeBSD, it's located in /usr/share/syscons/keymaps/. for example, -k /usr/share/syscons/keymaps/jp.106.kbd uses JP 106 keyboard. -S option specify the password of the VNC server. However, it have security risk in common server. It assumed used with FreeNAS (limited user environment). Please consider the risk by using command line. When starting the VM, the proctitle is changed like below (you can see by ps axww): VBoxHeadless: VM: TestVM4 Port: 5900 Auth: off (VBoxHeadless) vboxint18-20100310.tar.gz (optional patch): [PATCH] VirtualBox INT18 patch for gPXE iSCSI boot/install http://lists.freebsd.org/pipermail/freebsd-emulation/2010-March/007540.html -- Regards, Daisuke Aoyama vboxvnc-20100421.tar.gz Description: Binary data ___ freebsd-emulation@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org
Re: Call for testers: VirtualBox 3.1.4 update
Could you build 3.1.4 without additional patches but with debugging and attach the vbox.log file after such an vm crash? It's very hard to execute without patch, the machine have no X11 libs. At least I saw VM reboot, not VM crash. the log is nothing to help. So I tried to re-install VBox and Guest. It works fine with 64bit version. I guess it is caused by iSCSI target/network(FreeBSD 7.1p10) problem or Host OS(7.3RC2) problem. I will upgrade it to 7.3-REL. Sorry for my unclear information. 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-unsubscr...@freebsd.org