Replies: 4 comments
-
Howdy 🖐 Smithx10 ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
Beta Was this translation helpful? Give feedback.
-
Hi @Smithx10 , are you looking to do this with govc or with the API? |
Beta Was this translation helpful? Give feedback.
-
I found it here: Not sure if this is the only way, but it worked. Was a bit of a strange to get a disk from a VM and then have to override its size to 0 to Add it to another machine. // Need FileOperation=="" to add an existing disk, see object.VirtualMachine.configureDevice
disk.CapacityInKB = 0
disk.CapacityInBytes = 0
if err = vm.AddDevice(ctx, d); err != nil {
t.Error(err)
} govmomi/simulator/virtual_machine_test.go Line 513 in 314c652 |
Beta Was this translation helpful? Give feedback.
-
Yes, that is a bit strange, you can use the spec+method underneath |
Beta Was this translation helpful? Give feedback.
-
While trying to attempt some automation, we hit a snag where we could not figure out how to Add / Attach a vmdk from 1 vm to another.
Is there some simple steps on how to do this? I've had to no luck. An example in the documentation would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions