[vbox-dev] createHardDisk problem
wyx1999 at hotmail.com
Wed Apr 7 19:47:29 PDT 2010
But it works in previous version.
I do set TargetName, TargetAddress and LUN after a media is created, I do
that with vbox webservice, which worked before. But not now.
From: Klaus.Espenlaub at Sun.COM [mailto:Klaus.Espenlaub at Sun.COM]
Sent: Wednesday, April 07, 2010 3:16 AM
Cc: vbox-dev at virtualbox.org
Subject: Re: [vbox-dev] createHardDisk problem
> We are trying to connect to an iscsi target which has a LUN associated
> with it. Using The vboxmanage addiscsidisk there is a switch to pass
> the LUN parameter. When we use that command we are able to successfully
> attach to the iscsi target device.
> When using the imedium createHardDisk it doesn't seem to work. I have
> tried passing this parameter
> and the disk shows up in the virtual machine manager, but it isn't able to
> access it
You're code apparently doesn't do the right thing for configuring an
iSCSI medium. The "location" parameter is purely informational for
iSCSI, it is what will be shown in the Virtual Media Manager and other
places. The real configuration is done through the "setProperties"
method. See VBoxManageDisk.cpp, function handleAddiSCSIDisk if you need
sample code. Squeezing complicated configuration mechanisms into a
simple string would have been a hack. iSCSI has quite a number of config
parameters, and this way we can add more without having to change the
API all the time. File-based images don't need such complex mechanisms.
More information about the vbox-dev