ESXi

  • 1.  Unable to mount vmdk file onto a ubuntu vm

    Posted Apr 12, 2024 06:06 AM

    I have created a vmdk file (.vmdk) using

    vmkfstools -c 1G myfile.vmdk

    which I want to mount onto a Ubuntu VM in my VMware exsi server. How can I do it using the terminal commands?



  • 2.  RE: Unable to mount vmdk file onto a ubuntu vm

    Posted Apr 12, 2024 06:24 AM

    I am able add the generated vmdk file using 

    1. Connect to the host through SSH

    2. vim-cmd vmsvc/getallvms

    3. vim-cmd vmsvc/device.diskaddexisting vmid myfile.vmdk 0 1

     

    I don't want to add it by logging into the host and using the vmid. How do I mount it by logging into the specific VM?



  • 3.  RE: Unable to mount vmdk file onto a ubuntu vm

    Posted Apr 13, 2024 01:21 PM

    >>> I don't want to add it by logging into the host and using the vmid. How do I mount it by logging into the specific VM?

    The new virtual disk needs to be added from the host side, either through the GUI, command line, or API (which you may be able to call from within the guest).

    However, mounting a new virtual disk to a VM is not much different from adding a new HDD to a physical system. Unless the new HDD is connected to the system, you won't be able to use it.

    André