Vmware: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Tips == === Enable shared folders === * First, install VM tools, or on Linux guest, install package {{deb|open-vm-tools}}. * Then create a ''shared folder'' in the VM sett...")
 
Line 1: Line 1:
== Tips ==
== Tips ==


=== Enable shared folders ===
=== Mount shared folders ===
* First, install VM tools, or on Linux guest, install package {{deb|open-vm-tools}}.
* First, install VM tools, or on Linux guest, install package {{deb|open-vm-tools}}.
<source lang="bash">
sudo apt install open-vm-tools
</source>
* Then create a ''shared folder'' in the VM settings.
* Then create a ''shared folder'' in the VM settings.


To mount the shared folders in the guest [https://askubuntu.com/questions/29284/how-do-i-mount-shared-folders-in-ubuntu-using-vmware-tools]:
If the shared folder was created when the VM was powered off, first '''power on the VM, then disable and enable back the shared folders.'''
<source lang="bash">
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=0
</source>

For mount this at started, add to {{file|/etc/fstab}}:
<source lang="bash">
# Use shared folders between VMWare guest and host
.host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=0 0 0
</source>

Some say the share has an impact on the VM performance. In that case, use option <code>noauto</code>:
<source lang="bash">
# Use shared folders between VMWare guest and host
.host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=0,noauto 0 0
</source>
Then mount the share manually with <code>sudo mount /mnt/hgfs</code>.

;Notes
* VMWare mounts the share automatically when it is created and '''the VM is running'''. If the VM was off, first '''power on the VM, then disable and enable back the shared folders.''' However this has to be done everytime the VM is rebooted.

Revision as of 13:58, 26 February 2020

Tips

Mount shared folders

  • First, install VM tools, or on Linux guest, install package open-vm-tools.
sudo apt install open-vm-tools
  • Then create a shared folder in the VM settings.

To mount the shared folders in the guest [1]:

sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=0

For mount this at started, add to /etc/fstab:

# Use shared folders between VMWare guest and host
.host:/    /mnt/hgfs/    fuse.vmhgfs-fuse    defaults,allow_other,uid=0     0    0

Some say the share has an impact on the VM performance. In that case, use option noauto:

# Use shared folders between VMWare guest and host
.host:/    /mnt/hgfs/    fuse.vmhgfs-fuse    defaults,allow_other,uid=0,noauto     0    0

Then mount the share manually with sudo mount /mnt/hgfs.

Notes
  • VMWare mounts the share automatically when it is created and the VM is running. If the VM was off, first power on the VM, then disable and enable back the shared folders. However this has to be done everytime the VM is rebooted.