Humphry's Posts

Thanks, lamw. I had been looking for it in VirtualMachineConfigSpec instead of VirtualMachineConfigInfo.
Hi, I'd like to have a list with the guest operating system short names that I can use in the 'guestId' property of VirtualMachineConfigSpec. Does anyone know where could I find this info?? ... See more...
Hi, I'd like to have a list with the guest operating system short names that I can use in the 'guestId' property of VirtualMachineConfigSpec. Does anyone know where could I find this info?? Thanks.
1. Are you able to create a VM (specifying the "sata" datastore" using VI Client directly connected to your ESX/VC server? Yes, I've created several VM using the VI Client. 2. Do you face ... See more...
1. Are you able to create a VM (specifying the "sata" datastore" using VI Client directly connected to your ESX/VC server? Yes, I've created several VM using the VI Client. 2. Do you face the SOAP Fault only with this specific datastore? Does the script work fine with other datastores? I receive the soap fault with all datastores. Code: my $dc_view = Vim::find_entity_view(view_type => 'Datacenter', filter => {'name' => $datacenter}); my %ds_info = HostUtils::get_datastore(host_view => $dc_view, datastore => $datastore, disksize => $diskSize); my $ds_path = '[sata1]'; my $files = VirtualMachineFileInfo->new(logDirectory => undef, snapshotDirectory => undef, suspendDirectory => undef, vmPathName => $ds_path); my $controller_vm_dev_conf_spec = create_conf_spec(); my $disk_vm_dev_conf_spec = create_virtual_disk(ds_path => $ds_path, disksize => $diskSize); my %net_settings = get_network(network_name => $nicNetwork, poweron => NIC_POWERON, host_view => $dc_view); my @vm_devices = (); if($net_settings{'error'} eq 0) { push(@vm_devices, $net_settings{'network_conf'}); } elsif ($net_settings{'error'} eq 1) { die("No se encontró la red $nicNetwork."); } push(@vm_devices, $controller_vm_dev_conf_spec); push(@vm_devices, $disk_vm_dev_conf_spec); my $vm_config_spec = VirtualMachineConfigSpec->new( name => $vm_name, memoryMB => $memory, numCPUs => $numCpus, files => $files, guestId => undef, deviceChange => \@vm_devices); my $vm_folder_view = Vim::get_view(mo_ref => $dc_view->vmFolder); my $rp_moref = Vim::find_entity_view(view_type => 'ResourcePool'); my $res = $vm_folder_view->CreateVM(config => $vm_config_spec, pool => $rp_moref);
Debugging the application I've seen that the problem is here: my $files = VirtualMachineFileInfo->new(logDirectory => undef, snapshotDirectory => undef, suspendDirectory => undef, vmPathName => ... See more...
Debugging the application I've seen that the problem is here: my $files = VirtualMachineFileInfo->new(logDirectory => undef, snapshotDirectory => undef, suspendDirectory => undef, vmPathName => $ds_path); The vmPathName is what provokes the error. What value should I assign to de vmPathName variable??
Creating a new virtual machine I always get an 'Invalid datastore path' soap fault: SOAP Fault: - Fault string: Invalid datastore path '[sata1]'. Fault detail: InvalidDatastorePath=HASH(... See more...
Creating a new virtual machine I always get an 'Invalid datastore path' soap fault: SOAP Fault: - Fault string: Invalid datastore path '[sata1]'. Fault detail: InvalidDatastorePath=HASH(0xad3de14) I've tried diferent formats for the datastore path, but no one has worked: [sata1] [sata1] vm_name/ [sata1] vm_name/vm_name.vmdk The datastore 'sata1' exists and is working properly. I don't know what's going on with the datastore path. Can anybody help me?? Thanks.
Hi guys, I'm currently facing a new issue. I cannot retrieve the filenames of a snapshot file. When a new snapshot is created a .vmdk and a .vmsn are generated, but I can't retrieve the filenam... See more...
Hi guys, I'm currently facing a new issue. I cannot retrieve the filenames of a snapshot file. When a new snapshot is created a .vmdk and a .vmsn are generated, but I can't retrieve the filenames from the virtualMachineSnapshot managed object. I can get the config file name (.vmx) and the disk file name (.vmdk) of the virtual machine, but no info at all about snapshot filenames. I've been able to browse the datastore and retrieve all the filenames of all the snapshots of the virtual machine, but I can't guess what filenames belongs to the snapshot I'm interested in. Does anyone know how could I retrieve the filenames of a .vmsn and a .vmdk files that belongs to a given snapshot?? Thanks in advance.
thank you very much, guys!!
Hi, I'd like to know how could I retrieve the size of a snapshot. I've found the VirtualMachineSnapshotInfo data object but I wasn't able to find any information about the size of the snapshot ... See more...
Hi, I'd like to know how could I retrieve the size of a snapshot. I've found the VirtualMachineSnapshotInfo data object but I wasn't able to find any information about the size of the snapshot file. Thanks in advance.
Hi, I need help with an issue. I have several snapshots from a VM: snap1, snap2, snap3 and snap4. Does anybody know how can I consolidate snap4, in order to have only one snapshot (snap4)... See more...
Hi, I need help with an issue. I have several snapshots from a VM: snap1, snap2, snap3 and snap4. Does anybody know how can I consolidate snap4, in order to have only one snapshot (snap4), that includes snap1, snap2, snap3 and snap4???? That´s because I'm developing an applications that doesn't allow to create more than 4 snapshots, so I need to be able to consolidate several snapshots in just one.
thanks for your help, I hoped to find a list to know the changes that I can perform with a powered on machine without having to test all the OS that I have to use in a project. But I suppose th... See more...
thanks for your help, I hoped to find a list to know the changes that I can perform with a powered on machine without having to test all the OS that I have to use in a project. But I suppose that I'll have to test all of them, and your info is going to be very helpfull. thans for all
Thanks, seemankij, I hadn't seen that method
Hi, I'd like to know whether there is a method in the VI API to assign a static IP to a new virtual machine?? I also would like to be able to assign more IPs, or delete them, when the VM is pow... See more...
Hi, I'd like to know whether there is a method in the VI API to assign a static IP to a new virtual machine?? I also would like to be able to assign more IPs, or delete them, when the VM is powered on, anyone knows how to do it?? Thanks in advance.
Hi Seemankij, I read in this webinar (http://www.vmware.com/vmtn/technology/developer/webinars/reconfig_webcast_2007-05-24.pdf) that they depend on the OS. Anyway, if it doesn't depend o... See more...
Hi Seemankij, I read in this webinar (http://www.vmware.com/vmtn/technology/developer/webinars/reconfig_webcast_2007-05-24.pdf) that they depend on the OS. Anyway, if it doesn't depend on the OS installed on the guest, how can I know which modifications can I do with a powered on virtual machine???
About the ReconfigVM I've read that some operations can only be done with the Virtual Machine powered off (Add memory, add a SCSI controller, etc.) and some operations can be done while a Virtu... See more...
About the ReconfigVM I've read that some operations can only be done with the Virtual Machine powered off (Add memory, add a SCSI controller, etc.) and some operations can be done while a Virtual Machine is running: (Add a virtual disk, change the Virtual Machine’s name, etc). The set of operations that can be done online are dependent on the installed OS. I wonder whether I could get a complete list of operations that can be done while the VM is running for a set of OS (W2003, W2008, FC10, RHEL5, Debian, Ubuntu...). Does anyone know where could I find this information?? Thanks.