PDA

View Full Version : Virtualbox problem on Kali



Pat-le-gaine
2022-12-17, 13:35
Hi,

I don't know if i 'm on the good place for ask help about a problem with a install and error reporting about it ...

I have a problem with Virtualbox after install it on last version of Kali.

A moderator can move my post in the good place if is not here ? ;)

thanks a lot !

sorry for my english, i from belgium ;)

My problem is ...

I have been up to date the last Kali version (apt update && apt upgrade all), on this point all is ok :)
Then, i have try to install the package VirtualBox, it's too ok.
But when i start in command line this one, i have this error in bash commands line but virtualbox start


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.
Qt WARNING: QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
Qt WARNING: QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000




uname -a
Linux OnTheLanAgain 6.0.0-kali5-rt-amd64 #1 SMP PREEMPT_RT Debian 6.0.10-2kali1 (2022-12-06) x86_64 GNU/Linux




dpkg -l | grep linux-headers
ii linux-headers-6.0.0-kali5-amd64 6.0.10-2kali1 amd64 Header files for Linux 6.0.0-kali5-amd64
ii linux-headers-6.0.0-kali5-common 6.0.10-2kali1 all Common header files for Linux 6.0.0-kali5
ii linux-headers-6.0.0-kali5-common-rt 6.0.10-2kali1 all Common header files for Linux 6.0.0-kali5-rt
ii linux-headers-6.0.0-kali5-rt-amd64 6.0.10-2kali1 amd64 Header files for Linux 6.0.0-kali5-rt-amd64
ii linux-headers-amd64 6.0.10-2kali1 amd64 Header files for Linux amd64 configuration (meta-package)




sudo dpkg-reconfigure virtualbox-dkms
Module virtualbox-7.0.4 for kernel 6.0.0-kali5-rt-amd64 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
- Uninstallation
- Deleting from: /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
- Uninstallation
- Deleting from: /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
- Uninstallation
- Deleting from: /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module virtualbox-7.0.4 completely from the DKMS tree.
Loading new virtualbox-7.0.4 DKMS files...
Building for 6.0.0-kali5-rt-amd64
Building initial module for 6.0.0-kali5-rt-amd64
Done.

vboxdrv.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.0.0-kali5-rt-amd64/updates/dkms/
depmod...



I have been search on the web , but nothing can't help me ...
Can you help me with this problem please ?

Thanks

briansachetto
2022-12-20, 12:42
Good morning!:cool:

Kali versions offer several options:

you can virtualize it with virtual machine

you can install it with its .iso extension with an external drive

The solution would be:
Download the version of kali linux directly prepared for virtual machines

I leave the download information here: https://www.kali.org/get-kali/#kali-virtual-machines

Step by step:
1- Download the file

2-Unzip it in a fixed internal folder that you use for your system files

3-In the virtual machine, instead of installing it, simply click on "search" and look for the file that you unzipped

4-Start the visual machine

5-Fun and entertainment!:D

Pat-le-gaine
2022-12-20, 22:45
Good morning!:cool:

Kali versions offer several options:

you can virtualize it with virtual machine

you can install it with its .iso extension with an external drive

The solution would be:
Download the version of kali linux directly prepared for virtual machines

I leave the download information here: https://www.kali.org/get-kali/#kali-virtual-machines

Step by step:
1- Download the file

2-Unzip it in a fixed internal folder that you use for your system files

3-In the virtual machine, instead of installing it, simply click on "search" and look for the file that you unzipped

4-Start the visual machine

5-Fun and entertainment!:D


Hi briansachetto,

Thank you for your answer, but in fact I want to have a Virtualbox in the Kali system :) and not emulate kali in another system :p

Then I would like to import Sumo in virtualBox ;)

VirtualBox is installed on my Kali machine but I have small errors that I want to correct with the help of people who are knowledgeable on the subject.

When i start Virtualbox i have this in my bash:

Qt WARNING: QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
Qt WARNING: QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000

Fred Sheehan
2022-12-21, 00:39
You need to add the extension packs to virtual box;

https://wiki.debian.org/VirtualBox

briansachetto
2022-12-23, 13:47
hey!

The error may be related to write permissions, check this topic:

https://www.linuxquestions.org/questions/linux-newbie-8/access-denied-in-virtual-box-4175707429/

briansachetto
2022-12-23, 13:48
and add the extensions to use :rolleyes:

Iammrgrim
2022-12-31, 17:39
$groups
$ls -alR .config/VirtualBox

Check your permission settings.
If you set up parts of the Vbox with sudo then change it back to user.

Or it can be like three other problems that i ran into. What fixed it the easiest.

purged, remove, clean, autoclean, everything out of sudo apt-get VirtualBox

then update and upgrade

exit sudo
restart would not hurt as well

And do the VM set up as user.
not sudo

Iammrgrim
2022-12-31, 17:41
If you want a virtual box for linux. A live iso and a flash drive is the easiest. For windows wine64 works fine

Not sure why but wine proper set up is harder for me than making a RAT. Had to pull my battery out to reset my laptop. From here on out. Live boots

gerlinde
2023-01-05, 06:24
HI,

what is the output off : dpkg --configure -a ?
If there are errors, check the mentioned files.
VBox worked for me, but actually I can't because of VBox Version 7

Error! Bad return status for module build on kernel: 6.0.0-kali6-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.1.22/build/make.log for more information.

Regards