LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2019, 12:08 PM   #1
Stovie
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Rep: Reputation: Disabled
VirtualBox install won't run vagrant up


[SOLVED]

Hello World!

New linux user here (3 days). I am trying to set up vagrant with virtual box. I tried going to the actual website to download the correct virtual box file and extensions as well as using the terminal to sudo apt-get install virtualbox. I have run upadtes and upgrades to make sure my terminal is up to date. When I have virtual box and vagrant up I get a warning:

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


I have tried uninstalling vagrant and virtual box (extensions included) and reinstalling but can't seem to get vagrant up to run. Thanks for your help! Advice and tips welcome!

Last edited by Stovie; 11-06-2019 at 01:26 PM. Reason: [SOLVED]
 
Old 11-06-2019, 12:53 PM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, Manjaro
Posts: 2,760
Blog Entries: 14

Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
Stovie,

Welcome to LQ forums.

Open a Terminal and perform the following commands separately:

Code:
sudo apt update
sudo apt-get install virtualbox-dkms
sudo apt-get install linux-headers-generic
You also need to install VirtualBox Guest Additions:
Open Devices menu (at the top) in VirtualBox and choose Insert Guest Additions CD image

When you login you should see the CD image in the background. Open the Terminal Emulator again and run the VBoxLinuxAdditions.run file.

Code:
sudo /media/your_username/Vbox_Gas_6.0.14/VboxLinuxAdditions.run
This link should help:

http://www.fixedbyvonnie.com/2015/07.../#.XcMGDtHgobz

If that doesn't work start again from scratch.

Did you download VirtualBox from here:
https://www.virtualbox.org/wiki/Linux_Downloads

Last edited by beachboy2; 11-06-2019 at 12:59 PM.
 
1 members found this post helpful.
Old 11-06-2019, 01:25 PM   #3
Stovie
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
I figured out that I needed to be in my homestead file to run vagrant up. Now I just need to update vagrant from 2.0.2 to 2.2.4. Thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 09:09 PM
LXer: Complete guide for creating Vagrant boxes with VirtualBox LXer Syndicated Linux News 0 09-19-2018 01:10 PM
LXer: Vagrant: Sharing folders with vagrant-sshfs LXer Syndicated Linux News 0 04-05-2016 02:53 PM
Vagrant+Ansible playbooks. How to use same playbook on non vagrant provision markotitel Linux - Virtualization and Cloud 1 12-06-2013 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration