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


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to