Add enablediskuuid extraconfig in VM spec

This commit is contained in:
Abrar Shivani 2017-04-04 17:15:26 -07:00 committed by Miao Luo
parent 2da57ef142
commit b9a4556324
1 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,11 @@ func (c *VSphereCloud) CreateLinkClonedVm(vmName, vmImage *string) (string, erro
snapshotRef := snapshot.Reference()
cloneSpec := &types.VirtualMachineCloneSpec{
Config: &types.VirtualMachineConfigSpec{},
Config: &types.VirtualMachineConfigSpec{
Flags: &types.VirtualMachineFlagInfo{
DiskUuidEnabled: fi.Bool(true),
},
},
Location: types.VirtualMachineRelocateSpec{
Pool: &resPoolRef,
DiskMoveType: "createNewChildDiskBacking",