Hello,

Seems you got 2 issues.

The first one is you should install vbox additions as part of the VM
creation, the error your are seeing happen before the plugin can fix
the guest so is too late to have a clean and nice user experience.

The second error about the VBoxManage, i am not sure that will work

Vagrant does require the NAT inferface, so you shouldn't delete it.

I think the error is because the VM is up and running and is trying to
modify a running VM.

IF you can explain the use case, we should be able to help with a Vagrant way.

Thanks
Alvaro


On Wed, Dec 2, 2015 at 12:23 PM, Kiran Sharma <[email protected]> wrote:
> It does not sound as box issue.
>
> C:\vagrant\vbox>vagrant init hashicorp/precise64
> 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.
>
> C:\vagrant\vbox>vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: Clearing any previously set forwarded ports...
> There was an error while executing `VBoxManage`, a CLI used by Vagrant
> for controlling VirtualBox. The command and stderr is shown below.
>
> Command: ["modifyvm", "5f010c0c-34e6-49af-a822-75973c407076", "--natpf1",
> "delet
> e", "ssh"]
>
> Stderr: VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error
> (ext
> ended info not available)
> VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at
> lin
> e 493 of file VBoxManageModifyVM.cpp
>
>
>
>
> On Saturday, November 7, 2015 at 10:17:44 AM UTC-5, kiran sharma wrote:
>>
>> I was able to use various features of vagrant to provision a virtualbox
>> but I was unable to add Vbox GuestAdditions. It fails with the following
>> error.
>>
>> what I did?
>>
>> I downloaded plugins necessary for guestaddition --vagrant plugin install
>> vagrant-vbguest
>>
>> Based on what I read, we do not need to put anything on vagrantfile for
>> installing Vbox GuestAdditions it does automatically. So I used same
>> vagrantfile.
>>
>> Fom the log I can see, it tries to install Vbox GuestAdditions but it
>> failed
>>
>>
>>
>> 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
>> [i][b]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:
>>
>> /sbin/mount.vboxsf: mounting failed with the error: No such device
>>
>>
>>
>> I also found some suggestion on the net e.g
>> sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions
>> /usr/lib/VBoxGuestAdditions
>>
>> but this did not fix my issue. Appreciate any suggestion.
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/b4f8e8f0-03d8-4e32-8982-ddc0f12d69ef%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0exTt4MwncY5wb_tNP8vu5JOWNOB9vcmayyRQGPgYZiJCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to