Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of deviceChange? #18

Open
moralloki opened this issue Aug 12, 2016 · 0 comments
Open

Example of deviceChange? #18

moralloki opened this issue Aug 12, 2016 · 0 comments

Comments

@moralloki
Copy link

I'm looking for an example of how to fill in the information for deviceChange (for the spec in a VM clone). In particular, I'd like to be able to modify the NIC settings. I understand how to do this in pyvmoni but I'm not sure what the YAML is supposed to look like in the playbook. If there's another example that you have outside of the NIC, that would probably be helpful too.

I've tried the following as an example:

              config:
                VirtualMachineConfigSpec:
                  name: "testName"
                  memoryMB: 2048
                  numCPUs: 1
                  deviceChange:
                    files: {
                      VirtualMachineFileInfo: {
                        vmPathName: "[datastore]testname"
                      }
                    }

This always ends up with:
TypeError: For "deviceChange" expected type vim.vm.device.VirtualDeviceSpec, but got str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant