Vmsvc/device.diskadd: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
adding example to vimsh device.diskadd
Added link to virtualization review
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


Add a disk to the virtual machine with id vmid.
Add a disk to the virtual machine with id vmid.
Size is in kilobytes.
Size is the new disk size in kilobytes.  
Controller number is the controller number as is specified in the vmx configuration file.
Controller number is the controller number as is specified in the vmx configuration file.


==== Example ====
==== Example ====
Line 12: Line 13:
See also:  
See also:  
* [http://communities.vmware.com/thread/233019 VMTN: vim-cmd vmsvc/device.diskadd syntax headaches]
* [http://communities.vmware.com/thread/233019 VMTN: vim-cmd vmsvc/device.diskadd syntax headaches]
* [http://virtualizationreview.com/Blogs/Everyday-Virtualization/2009/12/ESX-Add-Disk.aspx Add a disk with ESXi]


[[Category: Vimsh]]
[[Category: Vimsh]]

Latest revision as of 13:45, 4 January 2010

vimsh vmsvc/device.diskadd

Usage: device.diskadd vmid size controller-number unit-number datastore

Add a disk to the virtual machine with id vmid.

Size is the new disk size in kilobytes. 
Controller number is the controller number as is specified in the vmx configuration file.

Example

vim-cmd vmsvc/device.diskadd 16 5242880 scsi0 2 datastore1

See also: