Open petericebear opened 6 years ago
I see there is a reconfigeVM option: VirtualMachine.Config.RemoveDisk But I do not see how to leverage that functionality.
When I do: $ knife vsphere vm disk list name-of-the-virtual-machine The output is: 0 Hard disk 1 10.00 GiB 1 Hard disk 2 50.00 GiB 2 Hard disk 3 30.00 GiB
Hope that there is a way to remove disk number 1 or 2 9 (those where added with vmdk add).
Have something working: https://gist.github.com/petericebear/3640f0b1ee60277e633efe0f36716406
Hi Peter, we don't have such a command. Kinda surprising, really, seems like it would be helpful.
Yeah with that script it checks that you dont delete the primary disk (0), but all the others you can delete with: knife vsphere vm disk remove vps-name 1
Where 1 is the disk index show with the disk list command.
Platform Details
Scenario:
Remove vmdk next to the add method functionality.
Hi, Is it possible to create an opposite for adding a vmdk to a vm? Like: knife vsphere vm vmdk remove XX