VirtualBox (5.2) installation issue / guest additions for metasploitable3Issues installing linux headers on...
What clothes would flying-people wear?
GNU GPL V3 with no code change disclosure
What is the German equivalent of the proverb 水清ければ魚棲まず (if the water is clear, fish won't live there)?
Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
How to improve king safety
Convert graph format for Mathematica graph functions
Did Vladimir Lenin have a cat?
What is the reason for cards stating "Until end of turn, you don't lose this mana as steps and phases end"?
Move DB/LOG files - Detach/Attach - Problem
Story about separate individuals coming together to make some supernatural universe power
How do I make my photos have more impact?
Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?
If the Moon were impacted by a suitably sized meteor, how long would it take to impact the Earth?
What would the United Kingdom's "optimal" Brexit deal look like?
What is a good example for artistic ND filter applications?
What language is Raven using for her attack in the new 52?
Can I attune a Circlet of Human Perfection to my animated skeletons to allow them to blend in and speak?
How well would the Moon protect the Earth from an Asteroid?
Why is softmax function used to calculate probabilities although we can divide each value by the sum of the vector?
Semen retention is a important thing in Martial arts?
Why is it "on the inside" and not "in the inside"?
Do 3/8 (37.5%) of Quadratics Have No x-Intercepts?
Why was the LRV's speed gauge displaying metric units?
Is there an antonym (a complementary antonym) for "spicy" or "hot" regarding food (I DO NOT mean "seasoned", but "hot")?
VirtualBox (5.2) installation issue / guest additions for metasploitable3
Issues installing linux headers on Kali 3.18Replace ctags with exuberant-ctagsVirtualBox Kernels are not workingHow to change the boot kernel of a usb live w/ persistent running KaliCan't install VirtualBox Guest Additions in Kali Linux virtual machine under Debian (problems installing the kernel-headers)Problem with installing and running sysdigUnable to install correct Linux headersKali Linux VirtualBox Header Problemsvirtualbox - The character device /dev/vboxdrv does not existFedora 29 VirtualBox possible conflict
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am having issues installing virtualbox on my kali-rolling dist (Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux).
My main goal is to setup metasploitable3 (https://github.com/rapid7/metasploitable3).
I have installed packer and vagrant:
root@kali:~/Desktop/metasploitable3# packer -v
1.1.3
root@kali:~/Desktop/metasploitable3# vagrant -v
Vagrant 2.0.1
I have purged vitualbox and reinstalled for the sake of demonstration:
root@kali:~/Desktop/metasploitable3# sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox dkms virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-amd64 is already the newest version (4.14+89+kali1).
Suggested packages:
python3-apport vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 4 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/26.2 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Selecting previously unselected package dkms.
(Reading database ... 343278 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-3_all.deb ...
Unpacking dkms (2.3-3) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../virtualbox-dkms_5.2.6-dfsg-2_all.deb ...
Unpacking virtualbox-dkms (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for menu (2.1.47+b1) ...
Setting up dkms (2.3-3) ...
Processing triggers for systemd (236-3) ...
Processing triggers for man-db (2.7.6.1-4) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up virtualbox-dkms (5.2.6-dfsg-2) ...
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (5.2.6-dfsg-2) ...
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-31 10:15:25 CST; 7ms ago
Docs: man:systemd-sysv-generator(8)
Process: 22278 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
Jan 31 10:15:25 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jan 31 10:15:25 kali virtualbox[22278]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
Jan 31 10:15:25 kali virtualbox[22278]: failed!
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Jan 31 10:15:25 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for systemd (236-3) ...
Processing triggers for menu (2.1.47+b1) ...
After this, I am capable of running the virtualbox GUI. But when I want to execute the metasploitable3 build script I get the following error:
root@kali:~/Desktop/metasploitable3# ./build_win2008.sh
./build_win2008.sh: line 14: cha: command not found
./build_win2008.sh: line 27: [[: WARNING:: syntax error in expression (error token is ":")
./build_win2008.sh: line 31: [[: WARNING:: syntax error in expression (error token is ":")
Compatible version of VirtualBox found.
Compatible version of packer was found.
Correct version of vagrant was found.
Compatible version of vagrant-reload plugin was found.
All requirements found. Proceeding...
Building the Vagrant box...
virtualbox-iso output will be in this color.
Build 'virtualbox-iso' errored: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed. 5.2.6_Debianr120293
More specifically:
Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
It seems that an error in my install has caused an error later on with virtualbox-dkms. I have found other issues similar to this, but no fixes have worked.
Thanks.
apt kali-linux virtualbox vagrant metasploit
bumped to the homepage by Community♦ 59 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am having issues installing virtualbox on my kali-rolling dist (Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux).
My main goal is to setup metasploitable3 (https://github.com/rapid7/metasploitable3).
I have installed packer and vagrant:
root@kali:~/Desktop/metasploitable3# packer -v
1.1.3
root@kali:~/Desktop/metasploitable3# vagrant -v
Vagrant 2.0.1
I have purged vitualbox and reinstalled for the sake of demonstration:
root@kali:~/Desktop/metasploitable3# sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox dkms virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-amd64 is already the newest version (4.14+89+kali1).
Suggested packages:
python3-apport vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 4 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/26.2 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Selecting previously unselected package dkms.
(Reading database ... 343278 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-3_all.deb ...
Unpacking dkms (2.3-3) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../virtualbox-dkms_5.2.6-dfsg-2_all.deb ...
Unpacking virtualbox-dkms (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for menu (2.1.47+b1) ...
Setting up dkms (2.3-3) ...
Processing triggers for systemd (236-3) ...
Processing triggers for man-db (2.7.6.1-4) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up virtualbox-dkms (5.2.6-dfsg-2) ...
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (5.2.6-dfsg-2) ...
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-31 10:15:25 CST; 7ms ago
Docs: man:systemd-sysv-generator(8)
Process: 22278 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
Jan 31 10:15:25 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jan 31 10:15:25 kali virtualbox[22278]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
Jan 31 10:15:25 kali virtualbox[22278]: failed!
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Jan 31 10:15:25 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for systemd (236-3) ...
Processing triggers for menu (2.1.47+b1) ...
After this, I am capable of running the virtualbox GUI. But when I want to execute the metasploitable3 build script I get the following error:
root@kali:~/Desktop/metasploitable3# ./build_win2008.sh
./build_win2008.sh: line 14: cha: command not found
./build_win2008.sh: line 27: [[: WARNING:: syntax error in expression (error token is ":")
./build_win2008.sh: line 31: [[: WARNING:: syntax error in expression (error token is ":")
Compatible version of VirtualBox found.
Compatible version of packer was found.
Correct version of vagrant was found.
Compatible version of vagrant-reload plugin was found.
All requirements found. Proceeding...
Building the Vagrant box...
virtualbox-iso output will be in this color.
Build 'virtualbox-iso' errored: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed. 5.2.6_Debianr120293
More specifically:
Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
It seems that an error in my install has caused an error later on with virtualbox-dkms. I have found other issues similar to this, but no fixes have worked.
Thanks.
apt kali-linux virtualbox vagrant metasploit
bumped to the homepage by Community♦ 59 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
Do you haveguest additions
installed in your virtualbox?
– bu5hman
Feb 3 '18 at 15:23
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10
add a comment |
I am having issues installing virtualbox on my kali-rolling dist (Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux).
My main goal is to setup metasploitable3 (https://github.com/rapid7/metasploitable3).
I have installed packer and vagrant:
root@kali:~/Desktop/metasploitable3# packer -v
1.1.3
root@kali:~/Desktop/metasploitable3# vagrant -v
Vagrant 2.0.1
I have purged vitualbox and reinstalled for the sake of demonstration:
root@kali:~/Desktop/metasploitable3# sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox dkms virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-amd64 is already the newest version (4.14+89+kali1).
Suggested packages:
python3-apport vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 4 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/26.2 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Selecting previously unselected package dkms.
(Reading database ... 343278 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-3_all.deb ...
Unpacking dkms (2.3-3) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../virtualbox-dkms_5.2.6-dfsg-2_all.deb ...
Unpacking virtualbox-dkms (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for menu (2.1.47+b1) ...
Setting up dkms (2.3-3) ...
Processing triggers for systemd (236-3) ...
Processing triggers for man-db (2.7.6.1-4) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up virtualbox-dkms (5.2.6-dfsg-2) ...
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (5.2.6-dfsg-2) ...
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-31 10:15:25 CST; 7ms ago
Docs: man:systemd-sysv-generator(8)
Process: 22278 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
Jan 31 10:15:25 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jan 31 10:15:25 kali virtualbox[22278]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
Jan 31 10:15:25 kali virtualbox[22278]: failed!
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Jan 31 10:15:25 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for systemd (236-3) ...
Processing triggers for menu (2.1.47+b1) ...
After this, I am capable of running the virtualbox GUI. But when I want to execute the metasploitable3 build script I get the following error:
root@kali:~/Desktop/metasploitable3# ./build_win2008.sh
./build_win2008.sh: line 14: cha: command not found
./build_win2008.sh: line 27: [[: WARNING:: syntax error in expression (error token is ":")
./build_win2008.sh: line 31: [[: WARNING:: syntax error in expression (error token is ":")
Compatible version of VirtualBox found.
Compatible version of packer was found.
Correct version of vagrant was found.
Compatible version of vagrant-reload plugin was found.
All requirements found. Proceeding...
Building the Vagrant box...
virtualbox-iso output will be in this color.
Build 'virtualbox-iso' errored: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed. 5.2.6_Debianr120293
More specifically:
Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
It seems that an error in my install has caused an error later on with virtualbox-dkms. I have found other issues similar to this, but no fixes have worked.
Thanks.
apt kali-linux virtualbox vagrant metasploit
I am having issues installing virtualbox on my kali-rolling dist (Linux kali 4.12.0-kali1-amd64 #1 SMP Debian 4.12.6-1kali6 (2017-08-30) x86_64 GNU/Linux).
My main goal is to setup metasploitable3 (https://github.com/rapid7/metasploitable3).
I have installed packer and vagrant:
root@kali:~/Desktop/metasploitable3# packer -v
1.1.3
root@kali:~/Desktop/metasploitable3# vagrant -v
Vagrant 2.0.1
I have purged vitualbox and reinstalled for the sake of demonstration:
root@kali:~/Desktop/metasploitable3# sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox dkms virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-amd64 is already the newest version (4.14+89+kali1).
Suggested packages:
python3-apport vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
dkms virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 4 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/26.2 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Selecting previously unselected package dkms.
(Reading database ... 343278 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-3_all.deb ...
Unpacking dkms (2.3-3) ...
Selecting previously unselected package virtualbox-dkms.
Preparing to unpack .../virtualbox-dkms_5.2.6-dfsg-2_all.deb ...
Unpacking virtualbox-dkms (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox (5.2.6-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.2.6-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-2) ...
Processing triggers for menu (2.1.47+b1) ...
Setting up dkms (2.3-3) ...
Processing triggers for systemd (236-3) ...
Processing triggers for man-db (2.7.6.1-4) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up virtualbox-dkms (5.2.6-dfsg-2) ...
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (5.2.6-dfsg-2) ...
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-31 10:15:25 CST; 7ms ago
Docs: man:systemd-sysv-generator(8)
Process: 22278 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
Jan 31 10:15:25 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jan 31 10:15:25 kali virtualbox[22278]: Loading VirtualBox kernel modules...No suitable module for running kernel found ... failed!
Jan 31 10:15:25 kali virtualbox[22278]: failed!
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Control process exited, code=exited status=1
Jan 31 10:15:25 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Jan 31 10:15:25 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (5.2.6-dfsg-2) ...
Processing triggers for systemd (236-3) ...
Processing triggers for menu (2.1.47+b1) ...
After this, I am capable of running the virtualbox GUI. But when I want to execute the metasploitable3 build script I get the following error:
root@kali:~/Desktop/metasploitable3# ./build_win2008.sh
./build_win2008.sh: line 14: cha: command not found
./build_win2008.sh: line 27: [[: WARNING:: syntax error in expression (error token is ":")
./build_win2008.sh: line 31: [[: WARNING:: syntax error in expression (error token is ":")
Compatible version of VirtualBox found.
Compatible version of packer was found.
Correct version of vagrant was found.
Compatible version of vagrant-reload plugin was found.
All requirements found. Proceeding...
Building the Vagrant box...
virtualbox-iso output will be in this color.
Build 'virtualbox-iso' errored: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed. 5.2.6_Debianr120293
More specifically:
Error reading version for guest additions download: VirtualBox is not properly setup: WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
5.2.6_Debianr120293
It seems that an error in my install has caused an error later on with virtualbox-dkms. I have found other issues similar to this, but no fixes have worked.
Thanks.
apt kali-linux virtualbox vagrant metasploit
apt kali-linux virtualbox vagrant metasploit
asked Jan 31 '18 at 16:31
Alex BeamAlex Beam
111 bronze badge
111 bronze badge
bumped to the homepage by Community♦ 59 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 59 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 59 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
Do you haveguest additions
installed in your virtualbox?
– bu5hman
Feb 3 '18 at 15:23
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10
add a comment |
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
Do you haveguest additions
installed in your virtualbox?
– bu5hman
Feb 3 '18 at 15:23
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
Do you have
guest additions
installed in your virtualbox?– bu5hman
Feb 3 '18 at 15:23
Do you have
guest additions
installed in your virtualbox?– bu5hman
Feb 3 '18 at 15:23
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10
add a comment |
2 Answers
2
active
oldest
votes
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
and later:
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
So virtualbox-dkms
is installed, but linux-headers-amd64
with a version number exactly matching your running kernel package is not. Fix that, and then use the dkms
command to build the virtualbox kernel modules.
add a comment |
Just tried this on my machine.
You need to download and install
virtual-guest-add 5.2.6-1 (current version in the rolling repo)
which packer
expects to find in
/usr/share/virtualbox/VBoxGuestAdditions.iso
To save waiting for the script, you can also download the iso from
http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
which packer
looks for in
whereverYouPutIt/metasploitable3/iso/
...... that's as far as i have got so far (waiting for the iso) but grabbing guest additions should cure your immediate problem.
EDIT
As you are running virtualbox 5.2
you will probably need to make this adjustment to the configuration files.
In the build I made yesterday I also had to make this adjustment as the wamp.bat
current script cloned from the git
repository points to a dead wamp link and causes the build to fail.
I also had to explicitly add the .box
file to vagrant
vagrant box add -f metasploitable3 /path/to/build/metasploitable3/windows_2008_r2_virtualbox.box
vagrant up
This worked witj
virtualbox 5.2.6
$packer -v
1.0.4
$vagrant -v
Vagrant 1.9.1
$ uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421011%2fvirtualbox-5-2-installation-issue-guest-additions-for-metasploitable3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
and later:
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
So virtualbox-dkms
is installed, but linux-headers-amd64
with a version number exactly matching your running kernel package is not. Fix that, and then use the dkms
command to build the virtualbox kernel modules.
add a comment |
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
and later:
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
So virtualbox-dkms
is installed, but linux-headers-amd64
with a version number exactly matching your running kernel package is not. Fix that, and then use the dkms
command to build the virtualbox kernel modules.
add a comment |
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
and later:
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
So virtualbox-dkms
is installed, but linux-headers-amd64
with a version number exactly matching your running kernel package is not. Fix that, and then use the dkms
command to build the virtualbox kernel modules.
Loading new virtualbox-5.2.6 DKMS files...
Building for 4.12.0-kali1-amd64
Module build for kernel 4.12.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
and later:
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.
So virtualbox-dkms
is installed, but linux-headers-amd64
with a version number exactly matching your running kernel package is not. Fix that, and then use the dkms
command to build the virtualbox kernel modules.
answered Feb 4 '18 at 21:15
telcoMtelcoM
25.6k1 gold badge29 silver badges69 bronze badges
25.6k1 gold badge29 silver badges69 bronze badges
add a comment |
add a comment |
Just tried this on my machine.
You need to download and install
virtual-guest-add 5.2.6-1 (current version in the rolling repo)
which packer
expects to find in
/usr/share/virtualbox/VBoxGuestAdditions.iso
To save waiting for the script, you can also download the iso from
http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
which packer
looks for in
whereverYouPutIt/metasploitable3/iso/
...... that's as far as i have got so far (waiting for the iso) but grabbing guest additions should cure your immediate problem.
EDIT
As you are running virtualbox 5.2
you will probably need to make this adjustment to the configuration files.
In the build I made yesterday I also had to make this adjustment as the wamp.bat
current script cloned from the git
repository points to a dead wamp link and causes the build to fail.
I also had to explicitly add the .box
file to vagrant
vagrant box add -f metasploitable3 /path/to/build/metasploitable3/windows_2008_r2_virtualbox.box
vagrant up
This worked witj
virtualbox 5.2.6
$packer -v
1.0.4
$vagrant -v
Vagrant 1.9.1
$ uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
add a comment |
Just tried this on my machine.
You need to download and install
virtual-guest-add 5.2.6-1 (current version in the rolling repo)
which packer
expects to find in
/usr/share/virtualbox/VBoxGuestAdditions.iso
To save waiting for the script, you can also download the iso from
http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
which packer
looks for in
whereverYouPutIt/metasploitable3/iso/
...... that's as far as i have got so far (waiting for the iso) but grabbing guest additions should cure your immediate problem.
EDIT
As you are running virtualbox 5.2
you will probably need to make this adjustment to the configuration files.
In the build I made yesterday I also had to make this adjustment as the wamp.bat
current script cloned from the git
repository points to a dead wamp link and causes the build to fail.
I also had to explicitly add the .box
file to vagrant
vagrant box add -f metasploitable3 /path/to/build/metasploitable3/windows_2008_r2_virtualbox.box
vagrant up
This worked witj
virtualbox 5.2.6
$packer -v
1.0.4
$vagrant -v
Vagrant 1.9.1
$ uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
add a comment |
Just tried this on my machine.
You need to download and install
virtual-guest-add 5.2.6-1 (current version in the rolling repo)
which packer
expects to find in
/usr/share/virtualbox/VBoxGuestAdditions.iso
To save waiting for the script, you can also download the iso from
http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
which packer
looks for in
whereverYouPutIt/metasploitable3/iso/
...... that's as far as i have got so far (waiting for the iso) but grabbing guest additions should cure your immediate problem.
EDIT
As you are running virtualbox 5.2
you will probably need to make this adjustment to the configuration files.
In the build I made yesterday I also had to make this adjustment as the wamp.bat
current script cloned from the git
repository points to a dead wamp link and causes the build to fail.
I also had to explicitly add the .box
file to vagrant
vagrant box add -f metasploitable3 /path/to/build/metasploitable3/windows_2008_r2_virtualbox.box
vagrant up
This worked witj
virtualbox 5.2.6
$packer -v
1.0.4
$vagrant -v
Vagrant 1.9.1
$ uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
Just tried this on my machine.
You need to download and install
virtual-guest-add 5.2.6-1 (current version in the rolling repo)
which packer
expects to find in
/usr/share/virtualbox/VBoxGuestAdditions.iso
To save waiting for the script, you can also download the iso from
http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
which packer
looks for in
whereverYouPutIt/metasploitable3/iso/
...... that's as far as i have got so far (waiting for the iso) but grabbing guest additions should cure your immediate problem.
EDIT
As you are running virtualbox 5.2
you will probably need to make this adjustment to the configuration files.
In the build I made yesterday I also had to make this adjustment as the wamp.bat
current script cloned from the git
repository points to a dead wamp link and causes the build to fail.
I also had to explicitly add the .box
file to vagrant
vagrant box add -f metasploitable3 /path/to/build/metasploitable3/windows_2008_r2_virtualbox.box
vagrant up
This worked witj
virtualbox 5.2.6
$packer -v
1.0.4
$vagrant -v
Vagrant 1.9.1
$ uname -a
Linux kali 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
edited Feb 7 '18 at 14:31
answered Feb 3 '18 at 18:43
bu5hmanbu5hman
1,6781 gold badge4 silver badges15 bronze badges
1,6781 gold badge4 silver badges15 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421011%2fvirtualbox-5-2-installation-issue-guest-additions-for-metasploitable3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I see that there are build issues using versions of vagrant newer than 1.9.1 and you are using 2.0.1. Did you try downgrading vagrant?
– bu5hman
Feb 1 '18 at 17:33
I just tried the same process (reinstalled virtualbox) with 1.9.1 but unfortunately it get the same errors.
– Alex Beam
Feb 1 '18 at 19:03
Do you have
guest additions
installed in your virtualbox?– bu5hman
Feb 3 '18 at 15:23
Guest additions are not relevant, as the problem is in running the VirtualBox host.
– telcoM
Feb 4 '18 at 21:10