vmrun enableSharedFolders fails: Must manually create "/mnt/hgfs" first

92 views
Skip to first unread message

Lucas Rangit Magasweran

unread,
Oct 30, 2017, 8:37:25 PM10/30/17
to Vagrant
I'm using the Vagrant box "ainfamoussyn/vagrant-vmware-xenial64" because there's no Ubuntu 16.04 box with "vmware_workstation" tag. For some reason, I have to manually create the directory "/mnt/hgfs" for shared folders to work and not fail setup during provisioning. The error is below. I knew to create this directory before of the vmtoolsd error in syslog.

==> default: Enabling and configuring shared folders...
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["enableSharedFolders", "/home/lucasmagasweran/src/vagrant-getting_started/.vagrant/machines/default/vmware_workstation/0a0112d3-c066-4941-bf89-0fcbc5f7df73/vagrant-vmware-xenial64.vmx", {:notify=>[:stdout, :stderr]}]

Stdout: Error: There was an error mounting the Shared Folders file system inside the guest operating system

Stderr:



Alvaro Miranda Aguilera

unread,
Oct 31, 2017, 5:51:16 AM10/31/17
to vagra...@googlegroups.com
that should be in the VM.

Try these ones:




--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/452b41b5-2a8e-45ab-b29f-7d0d1ea415bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Lucas Rangit Magasweran

unread,
Oct 31, 2017, 5:30:09 PM10/31/17
to Vagrant
Alvaro,

The issue does not occur with those Vagrant boxes. The directory /mnt/hgfs exists on boot and /vagrant is mounted and working.

Thanks for the tip. Unfortunately those boxes are server images and don't include a GUI. I'll try to find a different box.


On Tuesday, October 31, 2017 at 2:51:16 AM UTC-7, Alvaro Miranda Aguilera wrote:
that should be in the VM.

Try these ones:



On Tue, Oct 31, 2017 at 1:37 AM, Lucas Rangit Magasweran <external+grou...@magasweran.com> wrote:
I'm using the Vagrant box "ainfamoussyn/vagrant-vmware-xenial64" because there's no Ubuntu 16.04 box with "vmware_workstation" tag. For some reason, I have to manually create the directory "/mnt/hgfs" for shared folders to work and not fail setup during provisioning. The error is below. I knew to create this directory before of the vmtoolsd error in syslog.

==> default: Enabling and configuring shared folders...
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["enableSharedFolders", "/home/lucasmagasweran/src/vagrant-getting_started/.vagrant/machines/default/vmware_workstation/0a0112d3-c066-4941-bf89-0fcbc5f7df73/vagrant-vmware-xenial64.vmx", {:notify=>[:stdout, :stderr]}]

Stdout: Error: There was an error mounting the Shared Folders file system inside the guest operating system

Stderr:



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Oct 31, 2017, 5:42:09 PM10/31/17
to vagra...@googlegroups.com
Hello

Packer.io is a tool that can create vagrant boxes.

You can use vmware-vmx to start from a VM, create the directory with a provisioner and package them again.


then later you can create your own custom box from iso if needed.

Alvaro


Virusvrij. www.avast.com

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/23974fca-968c-4d5a-b8e1-ad4078df28d4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages