Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMware: HGFS not working - Ubuntu 16.04 2.2.6 #591

Closed
rmoriz opened this issue May 11, 2016 · 8 comments
Closed

VMware: HGFS not working - Ubuntu 16.04 2.2.6 #591

rmoriz opened this issue May 11, 2016 · 8 comments
Labels

Comments

@rmoriz
Copy link
Contributor

rmoriz commented May 11, 2016

Is this the same error as with 12.04 and 14.04, caused by HWE?

Error:

----> Starting Kitchen (v1.8.0)
-----> Creating <default-ubuntu-1604>...
       Bringing machine 'default' up with 'vmware_fusion' provider...
       ==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
           default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
           default: Box Version: >= 0
       ==> default: Loading metadata for box 'bento/ubuntu-16.04'
           default: URL: https://atlas.hashicorp.com/bento/ubuntu-16.04
       ==> default: Adding box 'bento/ubuntu-16.04' (v2.2.6) for provider: vmware_desktop
           default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04/versions/2.2.6/providers/vmware_desktop.box
==> default: Successfully added box 'bento/ubuntu-16.04' (v2.2.6) for 'vmware_desktop'!
       ==> default: Cloning VMware VM: 'bento/ubuntu-16.04'. This can take some time...
       ==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
       ==> default: Verifying vmnet devices are healthy...
       ==> default: Preparing network adapters...
       ==> default: Starting the VMware VM...
       ==> default: Waiting for machine to boot. This may take a few minutes...
           default: SSH address: 172.16.202.233:22
           default: SSH username: vagrant
           default: SSH auth method: private key
           default: 
           default: Vagrant insecure key detected. Vagrant will automatically replace
           default: this with a newly generated keypair for better security.
           default: 
           default: Inserting generated public key within guest...
           default: Removing insecure key from the guest if it's present...
           default: Key inserted! Disconnecting and reconnecting using new SSH key...
       ==> default: Machine booted and ready!
       ==> default: Forwarding ports...
           default: -- 22 => 2222
       ==> default: Setting hostname...
       ==> default: Configuring network adapters within the VM...
       ==> default: Waiting for HGFS kernel module to load...
       The HGFS kernel module was not found on the running virtual machine.
       This must be installed for shared folders to work properly. Please
       install the VMware tools within the guest and try again. Note that
       the VMware tools installation will succeed even if HGFS fails
       to properly install. Carefully read the output of the VMware tools
       installation to verify the HGFS kernel modules were installed properly.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider vmware_fusion ----
STDOUT: Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
    default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
    default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-16.04'
    default: URL: https://atlas.hashicorp.com/bento/ubuntu-16.04
==> default: Adding box 'bento/ubuntu-16.04' (v2.2.6) for provider: vmware_desktop
    default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04/versions/2.2.6/providers/vmware_desktop.box
==> default: Successfully added box 'bento/ubuntu-16.04' (v2.2.6) for 'vmware_desktop'!
==> default: Cloning VMware VM: 'bento/ubuntu-16.04'. This can take some time...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 172.16.202.233:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Forwarding ports...
    default: -- 22 => 2222
==> default: Setting hostname...
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS kernel module to load...
STDERR: The HGFS kernel module was not found on the running virtual machine.
This must be installed for shared folders to work properly. Please
install the VMware tools within the guest and try again. Note that
the VMware tools installation will succeed even if HGFS fails
to properly install. Carefully read the output of the VMware tools
installation to verify the HGFS kernel modules were installed properly.
---- End output of vagrant up --no-provision --provider vmware_fusion ----
Ran vagrant up --no-provision --provider vmware_fusion returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

kitchen setup  32,19s user 28,39s system 11% cpu 8:59,01 total
@davidmnoriega
Copy link
Contributor

The fix hasn't been released yet

On Wed, May 11, 2016, 11:28 AM Roland Moriz notifications@github.com
wrote:

Is this the same error as with 12.04 and 14.04, caused by HWE?

Error:

----> Starting Kitchen (v1.8.0)
-----> Creating ...
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-16.04'
default: URL: https://atlas.hashicorp.com/bento/ubuntu-16.04
==> default: Adding box 'bento/ubuntu-16.04' (v2.2.6) for provider: vmware_desktop
default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04/versions/2.2.6/providers/vmware_desktop.box
==> default: Successfully added box 'bento/ubuntu-16.04' (v2.2.6) for 'vmware_desktop'!
==> default: Cloning VMware VM: 'bento/ubuntu-16.04'. This can take some time...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 172.16.202.233:22
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Forwarding ports... default: -- 22 => 2222 ==> default: Setting hostname... ==> default: Configuring network adapters within the VM... ==> default: Waiting for HGFS kernel module to load... The HGFS kernel module was not found on the running virtual machine. This must be installed for shared folders to work properly. Please install the VMware tools within the guest and try again. Note that the VMware tools installation will succeed even if HGFS fails to properly install. Carefully read the output of the VMware tools installation to verify the HGFS kernel modules were installed properly.>>>>>> ------Exception------->>>>>> Class: Kitchen::ActionFailed>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'---- Begin output of vagrant up --no-provision --provider vmware_fusion ----STDOUT: Bringing machine 'default' up with 'vmware_fusion' provider...==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install... default: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation default: Box Version: >= 0==> default: Loading metadata for box 'bento/ubuntu-16.04' default: URL: https://atlas.hashicorp.com/bento/ubuntu-16.04==> default: Adding box 'bento/ubuntu-16.04' (v2.2.6) for provider: vmware_desktop default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04/versions/2.2.6/providers/vmware_desktop.box==> default: Successfully added box 'bento/ubuntu-16.04' (v2.2.6) for 'vmware_desktop'!==> default: Cloning VMware VM: 'bento/ubuntu-16.04'. This can take some time...==> default: Checking if box 'bento/ubuntu-16.04' is up to date...==> default: Verifying vmnet devices are healthy...==> default: Preparing network adapters...==> default: Starting the VMware VM...==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 172.16.202.233:22 default: SSH username: vagrant default: SSH auth method: private key default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Forwarding ports...
default: -- 22 => 2222
==> default: Setting hostname...
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS kernel module to load...
STDERR: The HGFS kernel module was not found on the running virtual machine.
This must be installed for shared folders to work properly. Please
install the VMware tools within the guest and try again. Note that
the VMware tools installation will succeed even if HGFS fails
to properly install. Carefully read the output of the VMware tools
installation to verify the HGFS kernel modules were installed properly.
---- End output of vagrant up --no-provision --provider vmware_fusion ----
Ran vagrant up --no-provision --provider vmware_fusion returned 1]>>>>>> ---------------------->>>>>> Please see .kitchen/logs/kitchen.log for more details>>>>>> Also try running kitchen diagnose --all for configuration

kitchen setup 32,19s user 28,39s system 11% cpu 8:59,01 total


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#591

@cheeseplus
Copy link
Contributor

There is a fix to prevent 12.04 and 14.04 from getting HWE kernels and there is a separate fix #595 to fix some problems with initramfs triggers on 16.04.

Both fixes will appear in 2.2.7 builds - I am building a vmware 16.04 box now to see if the condition presents itself.

@cheeseplus
Copy link
Contributor

hashicorp/vagrant#6775

@davidmnoriega
Copy link
Contributor

A new version of the vagrant vmware plugin has been released to support open-vm-tools. Not filing a PR as I just dropped the vmware portion of scripts/common/vmtools.sh and instead replaced it with installing open-vm-tools to just test in this instance of ubuntu-16.04. It works!

@geerlingguy
Copy link

Using VMware 8.1.1, Vagrant 1.8.4, and Ubuntu 16.04, everything now works (as long as the box has a /mnt/hgfs point already present).

Using Ubuntu 14.04.4 does not work (I had to stick with 14.04.1 for now: geerlingguy/packer-ubuntu-1404#18).

@jhogendorn
Copy link

I'm running into this with vmware fusion pro 7 , v4.0.10 of the plugin, the bento/ubuntu-16.04 image.

@bdwyertech
Copy link
Contributor

I had to do something like this for VMware

# Install Prerequisites
    apt-get -y install git gcc make linux-headers-$(uname -r) ethtool libdumbnet1 libmspack0 zerofree
    cd /tmp && git clone https://github.com/rasa/vmware-tools-patches.git
    mkdir /tmp/vmtools
    mkdir /tmp/vmtools-archive
    mount -o loop /home/vagrant/linux.iso /tmp/vmtools
    cd /tmp/vmware-tools-patches
    #tar xzf /tmp/vmtools/VMwareTools-*.tar.gz -C /tmp/vmtools-archive
    #/tmp/vmtools-archive/vmware-tools-distrib/vmware-install.pl --default --force-install
    cp /tmp/vmtools/VMwareTools*.tar.gz downloads/
    ./untar-and-patch-and-compile.sh
    # Make sure HGFS Modules are loaded at boot time
    echo "Enabling HGFS Modules..."
    grep -i "^vmhgfs" /etc/initramfs-tools/modules &>/dev/null || echo -e "vmhgfs" >> /etc/initramfs-tools/modules && update-initramfs -u
    #Enable Automatic Kernel Module Building (VMHGFS Survive Kernel Update)
    sed -i.bak 's/answer AUTO_KMODS_ENABLED_ANSWER no/answer AUTO_KMODS_ENABLED_ANSWER yes/g' /etc/vmware-tools/locations
    sed -i 's/answer AUTO_KMODS_ENABLED no/answer AUTO_KMODS_ENABLED yes/g' /etc/vmware-tools/locations
    # Compile with Kernel Modules
    vmware-config-tools.pl -c -d
    umount /tmp/vmtools
    rm -rf  /tmp/vmtools
    #rm -rf  /tmp/vmtools-archive
    rm /home/vagrant/*.iso
    ;;

@cheeseplus
Copy link
Contributor

I got this working with the 2.2.8 builds, vmware fusion 8.1.1 and 16.04 - let's circle back and open a new issue if still present.

@tas50 tas50 added Type: Bug Does not work as expected. and removed Bug labels Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants