Vmsvc/device.connection: Difference between revisions
Jump to navigation
Jump to search
New page: ==== vimsh vmsvc/device.connection ==== Usage: device.connection vmid deviceKey connect Connect/Disconnect the virtual device specified Category: Vimsh |
m spaces... |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Connect/Disconnect the virtual device specified | Connect/Disconnect the virtual device specified | ||
====example: disconnect cdrom device from VM==== | |||
Get the ID of your VM in question using (scroll using shift page up / page down if you have to) | |||
vmsvc/getallvms | |||
Write down the VM ID for example it can be a number like 4400 | |||
Find the key for your VirtualCDrom by querying the hardware devices for your VM. | |||
vmsvc/device.getdevices 4400 | |||
Scroll up again and write down the Key, in my case it is 3000 | |||
Now disconnect the CDrom device by running: | |||
vmsvc/device.connection 4400 3000 false | |||
Use true if you want to connect the device. | |||
[[Category: Vimsh]] | [[Category: Vimsh]] |
Latest revision as of 21:33, 29 December 2008
vimsh vmsvc/device.connection
Usage: device.connection vmid deviceKey connect
Connect/Disconnect the virtual device specified
example: disconnect cdrom device from VM
Get the ID of your VM in question using (scroll using shift page up / page down if you have to)
vmsvc/getallvms
Write down the VM ID for example it can be a number like 4400
Find the key for your VirtualCDrom by querying the hardware devices for your VM.
vmsvc/device.getdevices 4400
Scroll up again and write down the Key, in my case it is 3000
Now disconnect the CDrom device by running:
vmsvc/device.connection 4400 3000 false
Use true if you want to connect the device.