prziborowski

Results 35 comments of prziborowski

I don't have any easy way to confirm if powercli does the filtering on the client or on the server (likely the easiest way would be to make vCenter config...

You can do pretty much whatever is in the Reconfigure call in CreateVm itself. I'd think you can combine what is in add_disk_to_vm.py and add_nic_to_vm.py to create_random_marval_vms.py and have it...

Hi @samyama-digital. Unfortunately I don't have much experience with the Customize API. I believe there is a lot of interaction with the guest, so could be lots of potential fail...

Based on the description in https://developer.vmware.com/apis/358/vim.vm.InstantCloneSpec.html ``` Values will be queryable via destination VM's [extraConfig](https://developer.vmware.com/apis/358/vim.vm.ConfigInfo.html#extraConfig). ``` I don't think you'll be able to change anything that isn't already configurable in...

For the `config` settings, they would be the kind of settings that are on the source config.extraConfig. For changing network or serial port, you would use the [location](https://developer.vmware.com/apis/358/vim.vm.InstantCloneSpec.html#location) property of...

You should use pyVim.task.WaitForTask on the ReconfigVM_Task to see if there is an exception when reconfiguring. disk_spec.fileOperation = "add" This would either be a problem or at the least is...

I think the --esx-ip parameter is a bit of a misnomer. Based on the fault line: ``` File "create_vm.py", line 31, in create_vm destination_host = pchelper.get_obj(content, [vim.HostSystem], host_ip) ``` it...

pyVmomi doesn't provide a very usable API for capturing screenshots. There is [createScreenshot](https://developer.vmware.com/apis/358/vsphere/doc/vim.VirtualMachine.html#createScreenshot), but you'll notice it just saves the png on the datastore of the VM. You could try...

> Any example on how this is done? I'm stuck wondering how to create the datacenter object as `FindByDatastorePath` needs that as an argument (_Python vSphere SDK_). Any help is...

I agree, there isn't any good API to call to get a VM by name. I think the fastest way is to fetch all the VM 'name' property under a...