From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 17 16:18:30 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F33228F for ; Sat, 17 Nov 2012 16:18:30 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.7]) by mx1.freebsd.org (Postfix) with ESMTP id AAE548FC0C for ; Sat, 17 Nov 2012 16:18:29 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 3870 invoked from network); 17 Nov 2012 17:18:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1353169107; bh=sI76MgZZq0CMN2vAmYv8EYxltEb7FhOTL85lWZNSNG8=; h=From:To:Subject; b=qogzIP5dgDw7Uvq4vLeIvdXI3TYjIw9RcW/rtIG5/RRg/9Wd+45DZ8n4qG//S0Uxx A8u0X33Wm8HEym7NoXoE/T2KBH/L72qgeLfuDlirwx6QHXM7jnVuESjRtrYaJC9Isf LoS+DYj4i0C1uo+Pp8XgSax+kpBKjZfxtmO5O1gI= Received: from nat.misal.pl (HELO [127.0.0.1]) (marek_sal@[83.19.131.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES256-SHA encrypted SMTP for ; 17 Nov 2012 17:18:27 +0100 Message-ID: <50A7B8C8.9060706@wp.pl> Date: Sat, 17 Nov 2012 17:18:16 +0100 From: Marek Salwerowicz User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Community mailing list of VirtualBox users , freebsd-emulation@freebsd.org Subject: VirtualBox 4.2.4 - iSCSI target detach? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 121117-0, 2012-11-17), Outbound message X-Antivirus-Status: Clean X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [QdNk] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 16:18:30 -0000 Hi list. I'm using VirtualBox 4.2.4 at FreeBSD 9.1-PRERELEASE amd64 box. I'm preparing VDI disk image, located at iSCSI target: s14% VBoxManage showvminfo Windows7 | grep iSCSI Storage Controller Name (0): SATA-iSCSI SATA-iSCSI (0, 0): volt|iqn.2012-01.zetis:win7-vdi (UUID: 80df955c-243b-4d67-9321-b0dd87d3dc0e) s14% Firstly I connected the iSCSI target in 'normal' mode in order to install Windows 7 on it. After installing and configuring, ran 'sysprep' and close the system. Now I would like to detach the iSCSI target from machine: s14% VBoxManage storageattach Windows7 --storagectl "SATA-iSCSI" --port 0 --device 0 --medium none And attach it again in 'multiattach' mode: s14% VBoxManage storageattach Windows7 --storagectl "SATA-iSCSI" --port 0 --device 0 --type hdd --medium iscsi --mtype multiattach --server volt --target iqn.2012-01.zetis:win7-vdi VBoxManage: error: Cannot register the hard disk 'volt|iqn.2012-01.zetis:win7-vdi' {5f151cfa-7274-4317-ad20-473828e77a11} because a hard disk 'volt|iqn.2012-01.zetis:win7-vdi' with UUID {80df955c-243b-4d67-9321-b0dd87d3dc0e} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports VBoxManage: error: Context: "CreateHardDisk(Bstr("iSCSI").raw(), bstrISCSIMedium.raw(), pMedium2Mount.asOutParam())" at line 576 of file VBoxManageStorageController.cpp s14% Of course, the disk cant be re-registered because it already exists on hdds list: s14% VBoxManage list hdds UUID: 80df955c-243b-4d67-9321-b0dd87d3dc0e Parent UUID: base Format: iSCSI Location: volt|iqn.2012-01.zetis:win7-vdi State: created Type: normal s14% I can't change the type to 'multiattach': s14% VBoxManage modifyhd 80df955c-243b-4d67-9321-b0dd87d3dc0e --type multiattach VBoxManage: error: The given path '80df955c-243b-4d67-9321-b0dd87d3dc0e' is not fully qualified VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, false, pMedium.asOutParam())" at line 177 of file VBoxManageDisk.cpp s14% So how can I re-attach the same iSCSI target to virtual machine, with different type (multiattach), without restarting the whole host system? Regards, -- Marek Salwerowicz