Geoff Nordli wrote:
Hi.
Does anyone know how I can add an iscsi based disk via web service.
VBoxManage source code knows (VBoxManageDisk.cpp) ;)
I have looked around the SDK docs, but haven’t found anything yet.
The docs are quite sparse in that area since it's a not widely used
feature. It's not very difficult actually, and shouldn't be that unexpected:
First, use IVirtualBox::createHardDisk() to create a medium with type
"iSCSI". The location value is up to you, VBoxManage uses
"server|target" (for lun 0) or "server|target|lun" by convention.
Nothing depends on this.
Then, set the iSCSI parameters with IMedium::setProperties. The commonly
set parameters are "TargetAddress", "TargetName", "LUN",
"InitiatorUsername", "InitiatorSecret". You can actually tweak more
things than VBoxManage allows you to.
That's it.
Klaus
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev