Homestead in a Ubuntu 14 VBox - Setup Errors - laravel

I am having some issues setting up my dev environment.
My setup:
Windows 10 Host
Running Ubuntu 14 in a VirtualBox instance
Install Homestead
vagrant up
This error
There was an error while executing VboxManage, a CLI used by Vagrant for controlling Virtualbox. The command and stderr is shown below.
Command: [hostonlyif", "create"]
Stderr: 0%...
Progress State: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VboxManage: error: VboxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for > devboxnetctl: Inappropriate ioctl for devic
VboxManage error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXCODE handleCreate(HandlerArg*)" at line 71 of file VBoxManageHostonly.cpp
I would greatly appreciate any insight into this issue, as my google-fu has failed me on this one (and some errors with dependencies concerning the right version of virtual box -- 5.1 doesn't work here, had to uninstall and downgrade to 5-- have depleted my energies).
Is it possible that this is an "inception" kind of issue regarding the fact that I'm setting up a virtual machine inside a virtual machine?
The (first) VBox Storage settings: 50GB partitioned, 14 current size
Granted the machine 1 cpu
The network settings is here
Thankyou in advance

I have had a similar problem updating from Windows 7 to Windows 10.
You can see the solution in my blog (in Spanish) and automatically translated with Google translator. It is not spam ;)

Try to downgrade linux kernel version. Its most probably about your hardware and linux kernel mismatch problem. Also Its not normal situation why are you using virtual machine inside virtual machine?.

Related

E_INVALIDARG - Laravel Homestead VirtualBox error while executing VBoxManage

System: Windows 10 Home 64bit, Vagrant 2.2.13, VirtualBox 6.1.16
Few seconds after running "vagrant up" command i'm getting this error:
There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
Progress state: E_INVALIDARG.
VBoxManage.exe: error: Appliance import failed.
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available).
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg )" at line 1118 of file VBoxManageAppliance.cpp
I have already:
Checked if there is no other virtual boxes running;
Tried to run different commands: vagrant provision, vagrant reload --provision, vagrant up --provision, vagrant up, vagrant reload.
Deleted ".vagrant" folder in the "Homestead" folder;
Still, not running.
My Homestead.yaml.
How to fix it and make Homestead run normally?
Thank you for your time and help.
OK, in my case situation was solved by moving VirtualBox default machine folder to another drive, because there was not enough space on C drive, that was originally configured in VirtualBox.
In other words this error "Code E_INVALIDARG (0x80070057)" means you have not enough space for your virtual machine to start.
Change the drive and you should be good to go.
See attached image of the VirtualBox setting window:

Big Sur MacOS Vagrant issue

I just updated MacOS to New version (Big Sur). When I tried vagrant up to start the vagrant, it shows error as the following below:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
Anyone know how to solve this issue? I've tried install vagrant again already.
I have solved this problem by below steps:
Update your virtualbox
Update your vagrant
Go to System Preference then privacy& security and Allow the permission in general tap.
I had this issue too & upgrading my virtualbox to 6.1 solve the issue. Check the thread here.
But when I tried using virtual v6.0 the error still persist.
I had been updated the VirtualBox even reinstall but the issue did not resolve . After I uninstall and reinstall the Virtualbox, allow permission, and restart my pc then the issue fix. I had followed the bellow steps:
Uninstall VirtualBox via their official uninstaller script
Do a clean install of VirtualBox using VirtualBox.pkg
Adjust the privacy settings of Big Sur: System Preferences > Security and Privacy > click the unlock button
Restart pc

VM won't bring up using homestead up

I have no issue running vm's using homestead up but last week I just updated to the latest Windows 10 update and now when I run the command it gives me
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "c8da3222-7052-452a-b590-ff7144b50c9e", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'homestead-7' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\magal\VirtualBox VMs\homestead-7\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
Been searching the web for a solution but got no luck.
Box Version : 2.1.0
Without more info the only advice is to run vagrant destroy && vagrant up If you still have issues after that, consider opening a new issue on https://github.com/laravel/homestead/issues/new
Issue was fixed after upgrading my Virtualbox to 5.2.
On Windows 10, I installed everything as ADMINISTRATOR and only the following configuration worked for me:
Vagrant 1.9.2 : Download Vagrant 1.9.2
Oracle VM VirtualBox 5.1.30 : Download Oracle VM VirtualBox 5.1.30
For older versions of VirtualBox, the virtual machine has terminated unexpectedly.
For newer versions of VirtualBox, the host-only adapter cannot be created.
When you upgrade or downgrade, make sure that you permanently delete (Shift + Delete) the following folders from C:\Users\your-user : .vagrant, .VirtualBox and Virtual VM Machines. When using vagrant up, these folders will be created again.
After each program install and uninstall, make sure to restart your computer. Old files from VirtualMachine and Vagrant are persistent until the OS boots up again.

Laravel Homestead on USB Drive

I'm trying to set up a Laravel Homestead on a USB drive given the unfortunate amount of space on my laptop's disk. My current OS is Ubuntu 16.04. I've followed this tutorial:
https://www.jeffgeerling.com/blogs/jeff-geerling/running-vagrant-virtualbox
My USB Drive has three directories:
"vagrant_home", where I copied and renamed ".vagrant.d", as instructed by the tutorial. I successfully have a laravel/homestead box in here.
"VirtualBox VMs", where I set VirtualBox to look for VMs.
"Homestead", following the directions in the official Laravel tutorial, I cloned this git repository and changed one of the Homestead.yaml settings to reflect the USB Drive:
folders:
- map: /media/nick/Homestead/Code
to: /home/vagrant/Code
type: "nfs"
When I run "vagrant up", an unwanted .vagrant.d folder is created in my home directory, not on the USB drive. Additionally, I get this error:
There was an error while executing 'VBoxManage', a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Inappropriate ioctl for devic
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cpp
`
I have also installed Vagrant and VirtualBox, as described by the official Homestead tutorial: https://laravel.com/docs/5.1/homestead
Thanks for reading. Your help is much appreciated.
Try restarting virtual box or vagrant reload command.
Make sure its not a permission issue

Vagrant error E_NOINTERFACE starting VirtualBox different versions in Windows 7 SP1 x64 Ultimate (COM/DCOM error?)

I am trying to start VirtualBox (versions 5.1, 4.3.4, 4.16) in Windows 7 SP1 x64 Ultimate via Vagrant 1.7.4 command
'vagrant up'
and i am getting error
Bringing machine 'default' up with 'virtualbox' provider...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["list", "hostonlyifs"]
Stderr: VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code E_NOINTERFACE (0x80004002) - No such interface supported (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
It looks like vagrant handles DCOM in a bad way.
I've added Group "Distributed COM Users" to VBoxSVC.exe, but no luck.
The group has both Local Access and Remote Access Permissions.
How could i fix it?
I do enabled access to VirtualBox to everyone as well as for Distributed COM users, but nothing works - i am still have
Watcher ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={c28be65f-1a8f-43b4-81f1-eb60cb516e66} aComponent={VirtualBox} aText={The object is not ready}, preserve=false
in VirtualBox log when i try to
vagrant up
did you check this one it says not to start cmd window as an Administrator

Resources