Hi,
just wondering how to create a new floppyimage in a datastore using the viperltoolkit like it is possible in the edit dialog of a virtual machine (see the screenshot).
I think this must be two (hidden) steps:
1. Create the *.flp file in the specified storage ( but how? )
2. Use this file as backing for the floppy device ( I am able to do this )
Can Someone help me with the first one? I could not find any method that could be the right one.
Thanks, Chris
When you create the floppy device, make sure you choose "create" in the VirtualDeviceSpec.FileOperation
http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.device.VirtualDeviceSpec.html
Steve JIN, VMware Engineering
When you create the floppy device, make sure you choose "create" in the VirtualDeviceSpec.FileOperation
http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.device.VirtualDeviceSpec.html
Steve JIN, VMware Engineering
Great Steve,
I missed this point.
now it works with the following code:
my @virFloppySpec = (VirtualDeviceConfigSpec->new( device => $virFloppy,
fileOperation => VirtualDeviceConfigSpecFileOperation->new('create'),
operation => VirtualDeviceConfigSpecOperation->new('edit')));
Thanks, Chris