I can use govc vm.create -m 2048 -c 2 -disk.controller ide -disk 1GB -k -pool=/DC0/host/DC0_C0/Resources -net=/DC0/network/VM\ Network disk-test-vm to create VM against vcsim, but when I run govc device, it doesn't return disk size in device summary, which is same as label.
Name: ide-202
Type: VirtualIDEController
Label: ide-202
Summary: ide-202
Key: 202
Devices:
Name: disk--201-0
Type: VirtualDisk
Label: disk--201-0
Summary: disk--201-0
Key: 203
File: [LocalDS_0] disk-test-vm/disk-test-vm.vmdk
The output from real ESX host is like
Name: disk-1000-0
Type: VirtualDisk
Label: Hard disk 1
Summary: 16,777,216 KB
Key: 2000
Controller: lsilogic-1000
Unit number: 0
File: [nvme0] puppy1/puppy1_0.vmdk
I can use
govc vm.create -m 2048 -c 2 -disk.controller ide -disk 1GB -k -pool=/DC0/host/DC0_C0/Resources -net=/DC0/network/VM\ Network disk-test-vmto create VM against vcsim, but when I rungovc device, it doesn't return disk size in device summary, which is same as label.The output from real ESX host is like