Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Virtual</strong> <strong>Disk</strong> <strong>Programming</strong> <strong>Guide</strong><br />
},<br />
controllerKey = ,<br />
unitNumber = ,<br />
addressType = "generated",<br />
macAddress = ,<br />
wakeOnLanEnabled = true,<br />
},<br />
},<br />
(vim.vm.device.<strong>Virtual</strong>DeviceSpec) {<br />
dynamicType = ,<br />
operation = "add",<br />
fileOperation = "create",<br />
// SCSI disk one<br />
device = (vim.vm.device.<strong>Virtual</strong><strong>Disk</strong>) {<br />
dynamicType = ,<br />
// key number for SCSI disk one<br />
key = -1000000,<br />
deviceInfo = (vim.Description) null,<br />
backing = (vim.vm.device.<strong>Virtual</strong><strong>Disk</strong>.FlatVer2BackingInfo) {<br />
dynamicType = ,<br />
fileName = "",<br />
datastore = ,<br />
diskMode = "persistent",<br />
split = false,<br />
writeThrough = false,<br />
thinProvisioned = ,<br />
eagerlyScrub = ,<br />
uuid = ,<br />
contentId = ,<br />
changeId = ,<br />
parent = (vim.vm.device.<strong>Virtual</strong><strong>Disk</strong>.FlatVer2BackingInfo) null,<br />
},<br />
connectable = (vim.vm.device.<strong>Virtual</strong>Device.ConnectInfo) {<br />
dynamicType = ,<br />
startConnected = true,<br />
allowGuestControl = false,<br />
connected = true,<br />
},<br />
// controller for SCSI disk one<br />
controllerKey = -44,<br />
unitNumber = 0,<br />
// size in MB SCSI disk one<br />
capacityInKB = 524288,<br />
committedSpace = ,<br />
shares = (vim.SharesInfo) null,<br />
},<br />
},<br />
(vim.vm.device.<strong>Virtual</strong>DeviceSpec) {<br />
dynamicType = ,<br />
operation = "add",<br />
fileOperation = "create",<br />
// SCSI disk two<br />
device = (vim.vm.device.<strong>Virtual</strong><strong>Disk</strong>) {<br />
dynamicType = ,<br />
// key number of SCSI disk two<br />
key = -100,<br />
deviceInfo = (vim.Description) null,<br />
backing = (vim.vm.device.<strong>Virtual</strong><strong>Disk</strong>.FlatVer2BackingInfo) {<br />
dynamicType = ,<br />
fileName = "",<br />
datastore = ,<br />
diskMode = "persistent",<br />
split = false,<br />
writeThrough = false,<br />
thinProvisioned = ,<br />
eagerlyScrub = ,<br />
uuid = ,<br />
contentId = ,<br />
76 <strong>VMware</strong>, Inc.