VirtualBox 6.x broken after Kernel update ZORIN 17 Pro - How to Install VBox 7x

Greetings all !
just a little help here if you need it,
i had an old version of Virtual box running and last kernel upgrade broke it
Here are the steps to get rid of the old 6.x and upgrade to the new 7x version
Hope this helps some folks out !
Cheers !

What you’ll need to install VirtualBox 7.0
To install VirtualBox 7.0, you’ll need a running instance of a Ubuntu-based Linux distribution and a user with sudo privileges. That’s it.

How to install VirtualBox 7.0

The first thing you must do is purge your current VirtualBox installation. If you don’t do this, your guest OSes will fail to run.
To purge VirtualBox log in to your Linux host, open a terminal window and issue the command:

sudo apt-get autoremove purge virtualbox*

Out with the old; in with the new.
Next, we need to download and install a pair of GPG keys. First, download them with the commands:

curl https://www.virtualbox.org/download/ora ... x_2016.asc | gpg --dearmor > oracle_vbox_2016.gpg
curl https://www.virtualbox.org/download/oracle_vbox.asc | gpg --dearmor > oracle_vbox.gpg

Now you can install those keys with:

sudo install -o root -g root -m 644 oracle_vbox_2016.gpg /etc/apt/trusted.gpg.d/
sudo install -o root -g root -m 644 oracle_vbox.gpg /etc/apt/trusted.gpg.d/

Create the repository for VirtualBox 7.0 with:

echo "deb [arch=amd64] Index of http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Update apt with:

sudo apt-get update

If you don’t already have the kernel headers installed on your system, do so with the command:

sudo apt install linux-headers-$(uname -r) dkms

Finally, install VirtualBox 7.0 with:

sudo apt-get install virtualbox-7.0 -y

Last but not least, fix any lingering problems with the command:

sudo /sbin/vboxconfig

Thank you! This is what I needed!

1 Like

Or you could just download the .DEB file for Ubuntu 22.04 directly from Oracle's website and install it via GDebi. Go here: Oracle website. It works. Just did it myself. No problems. Just be sure to download the Ubuntu 22.04 version.

1 Like

I've requested that this thread be moved to Tutorials & Guides. The information is greatfully received but can I respectfully point out that the General Help section is for forum users to use as a request for help section, not a solution section. :wink:

Just to add my 5¢, virt-manager is much better than Virtual Box.

2 Likes

my bad, ty for moving to the right place

1 Like
  • took your point and trying this out
    noticed it was already installed with Zorin17 Pro

just wanted to verify this choice with you guys,
since zorin is not found in the search, i went with Ubuntu 22.04
should i have gone with a generic choice instead ?

hrmm, at a loss here, trying a few different ways to get this working,
seems that Virt-manager cannot read the drive that my VM's live on

Any help is appreciated :sweat_smile: i'll keep messing with it

Unable to complete install: 'Cannot access storage file '/mnt/33a58f82-dc4b-495b-9233-d989512ece8e/VM's/ZORINPRO17/ZORINPRO17.qcow2' (as uid:64055, gid:109): No such file or directory'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
File "/usr/lib/python3/dist-packages/libvirt.py", line 4400, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Cannot access storage file '/mnt/33a58f82-dc4b-495b-9233-d989512ece8e/VM's/ZORINPRO17/ZORINPRO17.qcow2' (as uid:64055, gid:109): No such file or directory

OK, first off, virt-manager defaults to /var. When I first started using this I created a folder named 'storage' in my /home folder on Devuan. If you are going to have multiple VM's then this is what you should do. If you are only going to have one VM running then the default location is fine. You can import VB .vhd files into Virt-Maager. Note, .vhd. I also use the option to make this variable so it can expand. I have never used the .vdi option in VB. Always used .vhd.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.