Skip to content

Commit

Permalink
Merge pull request #2905 from Syuparn/issue-2904
Browse files Browse the repository at this point in the history
vcsim: Fix StorageIOAllocationInfo of VirtualDisk
  • Loading branch information
dougm authored Jul 21, 2022
2 parents 8504fd4 + 61032a2 commit ced6c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simulator/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ func (m *Model) Create() error {
disk := devices.CreateDisk(scsi.(types.BaseVirtualController), ds,
config.Files.VmPathName+" "+path.Join(name, "disk1.vmdk"))
disk.CapacityInKB = int64(units.GB*10) / units.KB
disk.StorageIOAllocation = &types.StorageIOAllocationInfo{Limit: types.NewInt64(-1)}

devices = append(devices, scsi, cdrom, disk, &nic)

Expand Down

0 comments on commit ced6c63

Please sign in to comment.