vboxsf not available

517 views
Skip to first unread message

scott molinari

unread,
Mar 1, 2016, 2:19:04 AM3/1/16
to Vagrant
I have a Packer built Vagrant Debian Jessie64 box and I am running into this issue when running vagrant up. My host machine is Windows7.

==> default: Mounting shared folders...
    default: /vagrant => D:/webdev/VM Dev Boxes/Packer Test 2
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:
stdin: is not a tty
mount: unknown filesystem type 'vboxsf'

I believe it is an issue with not having vbox guest additions installed. I've tried to install them with the commands in the "vagrant.sh" script, but that doesn't seem to help. 

This is a case of dangerous half knowledge for sure. The VM works, but the inability to do the shared folder mount is causing a long pause before Vagrant is finished. I'd like to correct that. 

I've created a repo, with the files I am using. 


Any tips on where I am screwing up would be greatly appreciated. 

Scott 

Alvaro Miranda Aguilera

unread,
Mar 1, 2016, 4:18:07 AM3/1/16
to vagra...@googlegroups.com
Hello,


Seems the virtualbox guest additions are not installed.

Can you share your packer project in a zip file?

I did this box if you want to test  alvaro/jessie

Alvaro


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f0bc9990-cfac-4e69-b771-03526f36b77a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

scott molinari

unread,
Mar 1, 2016, 6:43:36 AM3/1/16
to Vagrant
Yes, I thought that was the problem, but the installation provisioning doesn't seem to work. Check it out here.

https://github.com/smolinari/PHP-Packer-Demo/blob/master/scripts/virtualbox.sh

Please note, I took the line for the provisioning with this file back out of the .json file, as the original (which I copied this Packer build from) didn't have it. 

I linked to a repo with the packer project. Is that not enough?

You can download it as a zip file too. https://github.com/smolinari/PHP-Packer-Demo/archive/master.zip

I'll take a look at your box too. Thanks.

Scott

scott molinari

unread,
Mar 1, 2016, 3:14:41 PM3/1/16
to Vagrant
Ok. I got it fixed. I reworked the virtualbox.sh script to have this and vbox guest additions are installed. 

wget http://download.virtualbox.org/virtualbox/5.0.14/VBoxGuestAdditions_5.0.14.iso
mkdir
/media/VBoxGuestAdditions
mount
-o loop,ro VBoxGuestAdditions_5.0.14.iso /media/VBoxGuestAdditions
sh
/media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm
VBoxGuestAdditions_5.0.14.iso
umount
/media/VBoxGuestAdditions
rmdir
/media/VBoxGuestAdditions

Out of curiosity though, what if someone with an older Virtualbox uses this? Is there a way to install vbox guest additions according to the version of Virtualbox being used?


Scott

Alvaro Miranda Aguilera

unread,
Mar 1, 2016, 4:34:46 PM3/1/16
to vagra...@googlegroups.com
Hello,

I personally use the latest one, and works fine.

By default packer will upload the current version, using ssh, and will be available on home directory of the user being used.

Thanks
Alvaro.


--
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.

scott molinari

unread,
Mar 1, 2016, 11:28:45 PM3/1/16
to Vagrant
Is there another way to tell Packer to load guest additions other than through the provisioners?

Scott

Sebastian Otaegui

unread,
Mar 1, 2016, 11:48:49 PM3/1/16
to vagra...@googlegroups.com
Have you seen the vbguest vagrant plugin?



On Wed, Mar 2, 2016 at 1:28 AM, 'scott molinari' via Vagrant <vagra...@googlegroups.com> wrote:
Is there another way to tell Packer to load guest additions other than through the provisioners?

Scott

--
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.

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



--
Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Unix.

Alvaro Miranda Aguilera

unread,
Mar 2, 2016, 1:25:05 AM3/2/16
to vagra...@googlegroups.com
Packer for Virtuabox, can do nothing, upload, or attach (as cd/dvd)

You can choose any combination.

ie, none + download+install
upload + install
attach + install

Not sure what other option would be the one you are after. Would you be able to provide an example?

Thanks
Alvaro.


On Wed, Mar 2, 2016 at 5:28 PM, 'scott molinari' via Vagrant <vagra...@googlegroups.com> wrote:
Is there another way to tell Packer to load guest additions other than through the provisioners?

Scott

--
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.

scott molinari

unread,
Mar 2, 2016, 1:42:25 AM3/2/16
to Vagrant
I am sorry, but your answer is confusing me. 

Currently I've gotten Packer to install guest additions through the shell provisioner. It works, so I am happy. However, you said

By default packer will upload the current version (of guest additions?)

Packer didn't load guest additions at all (automatically) and my question is, how can Packer install guest additions, if not through the shell provisioner? Is there another way to tell Packer to install guest additions?

I guess this question is better on the Packer forum too. If you want, I'll ask there. 

Scott 
Reply all
Reply to author
Forward
0 new messages