Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Getting "Failed to mount folders in Linux guest" with Alpine 3.3.1 #9

Closed
tetherit opened this issue Feb 17, 2016 · 1 comment
Closed

Comments

@tetherit
Copy link

When I run I see the following:

➜  vagrant init maier/alpine-3.3.1-x86_64
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
➜ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'maier/alpine-3.3.1-x86_64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'maier/alpine-3.3.1-x86_64'
    default: URL: https://atlas.hashicorp.com/maier/alpine-3.3.1-x86_64
==> default: Adding box 'maier/alpine-3.3.1-x86_64' (v1.0.0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/maier/boxes/alpine-3.3.1-x86_64/versions/1.0.0/providers/virtualbox.box
==> default: Successfully added box 'maier/alpine-3.3.1-x86_64' (v1.0.0) for 'virtualbox'!
==> default: Importing base box 'maier/alpine-3.3.1-x86_64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'maier/alpine-3.3.1-x86_64' is up to date...
==> default: Setting the name of the VM: alpine_default_1455713139995_64487
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    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 its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default: 
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Mounting shared folders...
    default: /vagrant => /Users/Admin/vagrant/alpine
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

The error output from the last command was:

mount: mounting vagrant on /vagrant failed: No such device

Any ideas?

@maier
Copy link
Owner

maier commented Feb 17, 2016

Because alpine does not have virtualbox guest additions, the folders need to be mounted via NFS. Take a look at the Vagrantfile.example file.

@maier maier closed this as completed Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant