static public VirtualDeviceConfigSpec createFloppySpec(VirtualMachine vm, String dsName, String floppyName) throws Exception {
VirtualDeviceConfigSpec floppySpec = new VirtualDeviceConfigSpec();
floppySpec.setOperation(VirtualDeviceConfigSpecOperation.add);
VirtualFloppy floppy= new VirtualFloppy();
VirtualFloppyImageBackingInfo floppyBacking = new VirtualFloppyImageBackingInfo();
DatastoreSummary ds = findDatastoreSummary(vm, dsName);
floppyBacking.setDatastore(ds.getDatastore());
floppyBacking.setFileName("[" + dsName +"] "+ vm.getName()
+ "/" + floppyName);
floppy.setBacking(floppyBacking);
// VirtualDevice vd = getIDEController(vm);
// cdrom.setBacking(cdDeviceBacking);
// cdrom.setControllerKey(vd.getKey());