-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReconfigVM_Task disk edit #13
Comments
What version of vsphere-connect are you using? You probably need to define a device type. See this issue #12 |
I am using v1 of vsphere-connect. Btw this works:
|
If anyone could tell me how such request should look like from object point of view. That's would be great. TRying to do all actions on vm to add/edit/remove a disk |
After some investigation this seems to work client.method('ReconfigVM_Task',
{
_this: moref,
spec: {
deviceChange: [{
device: {
attributes: { 'xsi:type': 'VirtualDisk' },
key: device.key,
capacityInKB: newCapacity,
unitNumber: device.unitNumber,
controllerKey: device.controllerKey,
backing: {
attributes: { 'xsi:type': 'VirtualDiskFlatVer2BackingInfo' },
fileName: device.backing.fileName,
diskMode: device.backing.diskMode,
},
},
operation: 'edit',
}],
},
}) where What remains unsolved is how to automatically retrieve the |
Hello,
Apparently i am doing something wrong with the reconfigvm task but i can't figure out what the prblem in there.
The text was updated successfully, but these errors were encountered: