Hi,
Try to automate deployment of a vm with rCli scripts. Need to mount a floppy to the vm. So vm can read the configuration data from there. But how to mount the floppy to a vm via cli? I don't have root access to the vm.
Thanks
Is the floppy image located in one of your datastores or are these the *.flp images provided by VMware? The latter might be slightly difficult to get working but if it's in one of the datastore then the code should be pretty straight forward.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Hi,
The floppy image locates in one of the datastore. But I still don't know how to mount that to the vm guest though.
Thanks
It's actually not too difficult, just need to understand how to access the right device and reconfigure the VM using the write function/objects.
Take a look at this script that I wrote to help with this:
I would suggest if you're new to VMware API/SDKs, take some time to go over this document: , this should give you a good foundation on how to work with the various API/SDKs and if you have any other questions, feel free to create a new thread.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".