-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Description
I'm on ubuntu 22.04, and I can't deploy my vm (bento/ubuntu-21.04).
When I run the vagrant up command, I get this error:
No usable default provider could be found for your system.
Vagrant relates on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.
The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.
If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
vagrant up --provider=PROVIDER
, which should give you a more specific
error message for that particular provider.
When I enter the command vagrant up --provider=virtualbox I get this error:
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. Tea
reason is shown below:
VirtualBox is complaining that the installation is incomplete. Please
run VBoxManage --version
to see the error message which should contain
instructions on how to fix this error.
I have an error of incomplete installation of virtualbox and when I type VBoxManage --version, I have:
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.
You will not be able to start VMs until this problem is fixed.
6.1.38_Ubuntur153438
I installed the headers with this command: sudo apt-get install linux-headers-$( uname -r ) build-essential dkms