Page 1 of 1
Installing Virtualbox from Terminal Command-line (19.3)
Posted: Thu Dec 19, 2019 5:53 pm
by greentea
=
I'm preparing to install
Virtualbox and want to know if this is still the best method and correct syntax.
I made one change on the last line. Is this correct?
viewtopic.php?f=90&t=300723&p=1678327#p1678327
Code: Select all
echo "deb http://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee -a /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
apt update
apt install virtualbox-6.1
Already ran
apt purge virtualbox. There were no previous installations.
The upgrade to 19.3 was smooth and successful.
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Thu Dec 19, 2019 6:11 pm
by gm10
Slightly modified:
Code: Select all
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee -a /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
apt update
apt install virtualbox-6.1
And the first line only like that because it's bugged on Mint. Users of my PPA can just do the following, but this will fail on official Mint on several levels:
Code: Select all
apt add-repository deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib
Re: Installing Virtualbox (and Extensions) from Terminal Command-line (19.3)
Posted: Fri Dec 20, 2019 2:54 pm
by greentea
Thanks
gm10
Much appreciated. Installation seems good.
I modified the thread title to include Extensions. Hope that's OK.
I was advised to add
Guest Extensions
AZgl1500 wrote: ⤴Sun Dec 15, 2019 12:47 am
I suspect you will have to install VirtualBox, and then install some version of windows there.
and then run the executable within the Windows program inside VirtualBox.
Make sure you install Guest Extensions.
I followed the instructions in the included
Help section
Installing Oracle VM VirtualBox and Extension Packs
Downloaded from
https://www.virtualbox.org/wiki/Downloads
Install looks good.
Re: Installing Virtualbox (and Extensions) from Terminal Command-line (19.3)
Posted: Fri Dec 20, 2019 3:23 pm
by gm10
greentea wrote: ⤴Fri Dec 20, 2019 2:54 pm
I was advised to add
Guest Extensions
AZgl1500 wrote: ⤴Sun Dec 15, 2019 12:47 am
I suspect you will have to install VirtualBox, and then install some version of windows there.
and then run the executable within the Windows program inside VirtualBox.
Make sure you install Guest Extensions.
I followed the instructions in the included
Help section
Installing Oracle VM VirtualBox and Extension Packs
Downloaded from
https://www.virtualbox.org/wiki/Downloads
Guest Additions (that's their actual name) are included with the virtualbox-6.1 package. You install them from the running virtual machine's devices menu, there's an option at the bottom to insert the guest additions image.
What you downloaded is the optional extension pack for when you want to use your host system's webcam or USB2/3 devices in the virtual machine, otherwise there is no reason to install it.
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Fri Jan 31, 2020 4:00 pm
by muffybean
gm10 wrote: ⤴Thu Dec 19, 2019 6:11 pm
Slightly modified:
Code: Select all
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee -a /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
apt update
apt install virtualbox-6.1
And the first line only like that because it's bugged on Mint.
Did this ok GM and it installed fine. However, when I clicked on the /mnt/Sandisk/Windows 10 VM/Windows 10 VM.vbox that my Windows 10 install is on (SSD) I got the following error.
I assume it is still pointing to the old VB 6.0 which I do not think is completely eradicated from my system. Any idea how to circumvent this?
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Fri Jan 31, 2020 5:19 pm
by gm10
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Fri Jan 31, 2020 5:38 pm
by muffybean
Code: Select all
muffy@muffy:~$ sudo /sbin/vboxconfig
[sudo] password for muffy:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
muffy@muffy:~$
Did this OK but still getting the same error when I select the vbox on my SSD.
This is the error
Code: Select all
Failed to open a session for the virtual machine Windows 10 VM.
The virtual machine 'Windows 10 VM' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 6:12 am
by gm10
Hmm, I'd say remove everything vbox you've got installed:
Code: Select all
apt purge --autoremove "virtualbox*"
and then reinstall it
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 7:32 am
by muffybean
gm10 wrote: ⤴Sat Feb 01, 2020 6:12 am
Hmm, I'd say remove everything vbox you've got installed:
Code: Select all
apt purge --autoremove virtualbox*"
and then reinstall it
Morning GM, I noted that " mark at the end of the first command and left that out as I assumed it a typo. Anyway it worked and then ran the second command and all seemed to go well. However, when I selected the vbox I have now got a second error.
Code: Select all
Failed to open a session for the virtual machine Windows 10 VM.
Implementation of the USB 2.0 controller not found!
Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.
Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
I had previously installed that so assummed that the first command had removed it and re-installed the extension pack and this time it vbox booted fine. I did try to do this first of all by terminal using this command
Code: Select all
apt install Oracle VM VirtualBox Extension Pack
but that did not work; tried leaving the Oracle and then the VM bit off but neither of them worked. Out of interest what would have been the proper terminal command for that. I Finished up doing through VM Virtualbox.
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 8:34 am
by gm10
There was no typo in the command I gave.
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 9:29 am
by muffybean
gm10 wrote: ⤴Sat Feb 01, 2020 8:34 am
There was no typo in the command I gave.
when I copied and pasted the command
Code: Select all
apt purge --autoremove virtualbox*"
nothing happened so I tried it without the " at the end and it worked. Have I done something wrong?
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 11:57 am
by gm10
oh lol, I'll be, my bad, there was indeed a typo, but it was that I forgot the initial
"
. All good though, you don't need to redo it.
I believe the extension pack is not available from the repository, you need to download it from
https://www.virtualbox.org/wiki/Downloads.
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Feb 01, 2020 12:06 pm
by muffybean
Yep that is where I got it from and when I right clicked on it, the top line said "Open with Oracle VM VirtualBox" and that did the trick. Many thanks for your help. I would have put SOLVED but as I was not the instigator of this thread did not not think that was correct. So have noted it on my thread here
viewtopic.php?p=1746370#p1746370
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sat Jun 20, 2020 1:59 am
by nerozero
Guys, Thank you so much!
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Sun Nov 01, 2020 1:35 am
by Netherprovinc3
gm10 wrote: ⤴Thu Dec 19, 2019 6:11 pm
Slightly modified:
Code: Select all
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee -a /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
apt update
apt install virtualbox-6.1
And the first line only like that because it's bugged on Mint.
When I installed VirtualBox 6.0 on Linux Mint 19.1 Cinnamon (around August 2019), I didn't have this part of your code in there:
(which you have towards the beginning of the 1st line).
You give some explanation as to why we need that in there but I don't follow what you are saying. (A bug with Linux Mint?)
I just updated to 6.1.
Everything seems to be fine so far.
Should I just add that extra part to the code for if I ever had to install again (Maybe onto Linux Mint 20)?
Re: Installing Virtualbox from Terminal Command-line (19.3)
Posted: Thu Mar 10, 2022 3:00 pm
by Megapixelus
Guys, why i have only win 10 32-bit in menu when creating VM ?
All other windows versions are also 32-bits only Ist smth with my pc??
My first linux...and program to learn about linux(plus other stuff like SQL)which i need to install, works on mac + windows only
Or maybe its ok with 32 bits?
Code: Select all
System: Kernel: 5.4.0-99-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.2.7
wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal
Machine: Type: Desktop Mobo: Gigabyte model: B550 AORUS ELITE V2 serial: <filter>
UEFI: American Megatrends LLC. v: F14e date: 10/13/2021
CPU: Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen
L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86233
Speed: 2204 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2195 2: 2196 3: 2099
4: 4192 5: 2196 6: 2096 7: 2102 8: 4191 9: 2195 10: 2195 11: 2195 12: 2096
Graphics: Device-1: NVIDIA vendor: Gigabyte driver: nvidia v: 470.103.01 bus ID: 07:00.0
chip ID: 10de:2216
Display: x11 server: X.Org 1.20.13 driver: nvidia
resolution: 2560x1440~60Hz, 1920x1080~60Hz
OpenGL: renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2 v: 4.6.0 NVIDIA 470.103.01
direct render: Yes
Audio: Device-1: NVIDIA vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 07:00.1
chip ID: 10de:1aef
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel
v: kernel bus ID: 09:00.4 chip ID: 1022:1487
Device-3: Texas Instruments PCM2702 16-bit stereo audio DAC type: USB
driver: snd-usb-audio bus ID: 3-2:2 chip ID: 08bb:2702
Device-4: Razer USA Razer USB Audio Controller type: USB
driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-9:5 chip ID: 1532:0520
Sound Server: ALSA v: k5.4.0-99-generic
Network: Device-1: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8125 v: 9.007.01-NAPI
port: e000 bus ID: 06:00.0 chip ID: 10ec:8125
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 938.73 GiB used: 141.46 GiB (15.1%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T1X0E-00AFY0 size: 931.51 GiB
speed: 63.2 Gb/s lanes: 4 serial: <filter>
ID-2: /dev/sda type: USB vendor: Verbatim model: STORE N GO size: 7.21 GiB
serial: <filter>
Partition: ID-1: / size: 915.40 GiB used: 137.29 GiB (15.0%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 29.0 C mobo: N/A gpu: nvidia temp: 22 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos: No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list
1: deb https: //dl.winehq.org/wine-builds/ubuntu/ focal main
Active apt repos in: /etc/apt/sources.list.d/grapejuice.list
1: deb [signed-by=/usr/share/keyrings/grapejuice-archive-keyring.gpg] https: //brinkervii.gitlab.io/grapejuice/repositories/debian/ universal main
Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-focal.list
1: deb http: //ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb https: //ftp.acc.umu.se/mirror/linuxmint.com/packages una main upstream import backport
2: deb http: //ftp.lysator.liu.se/ubuntu focal main restricted universe multiverse
3: deb http: //ftp.lysator.liu.se/ubuntu focal-updates main restricted universe multiverse
4: deb http: //ftp.lysator.liu.se/ubuntu focal-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http: //archive.canonical.com/ubuntu/ focal partner
Active apt repos in: /etc/apt/sources.list.d/spotify.list
1: deb http: //repository.spotify.com stable non-free
Active apt repos in: /etc/apt/sources.list.d/webupd8team-y-ppa-manager-focal.list
1: deb http: //ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu focal main
Info: Processes: 354 Uptime: 3h 40m Memory: 15.60 GiB used: 5.81 GiB (37.3%) Init: systemd
v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8 client
inxi: 3.0.38