Virtualbox guest additions does not mount, no internet in guest

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Virtualbox guest additions does not mount, no internet in guest

Post by macandroid »

I have a Centos 7 running as guest under a macOS 10.17 Monterey host and since the update of VBox to 6.1.30, the guest does not have internet connection. I did not change any network settings in the guest. Network host - guest works without problems, but inside the VM there is no internet connection.
Then I saw in the .vbox file that the guest additions are based on 6.1.14, so I wanted to update that.


When I want to update the guest additions Devices => insert Guest additions ... I got an error (screenshot 1). But the file does exist:

-rw-r--r--@ 1 root admin 61104128 Nov 22 16:45 /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso

And I see in the settings that there is already a vbox guest additions mounted.

Does anyone know:

- How can I get internet connection inside the guest ?
- How can I update the guest additions ?
Attachments
Screenshot 2021-12-08 at 08.11.00.png
Screenshot 2021-12-08 at 08.11.00.png (73.96 KiB) Viewed 5374 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Virtualbox guest additions does not mount, no internet in guest

Post by mpack »

Try searching for previous discussion of VERR_PDM_MEDIA_LOCKED. Basically it means that you never ejected the CD since last time, and Linux requires you to explicitly unmount them before they can be ejected.

Open another topic to discuss Internet issues (one issue per topic).
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Re: Virtualbox guest additions does not mount, no internet in guest

Post by macandroid »

Thanks, I searched VERR_PDM_MEDIA_LOCKED in this forum and found topic:

viewtopic.php?f=3&t=59146&p=275151&hili ... ED#p275151

which was useful.

I ran these commands (as root):

Code: Select all

mkdir /media/cdrom
mount /dev/sr0 /media/cdrom
cd /media/cdrom
sh VBoxLinuxAdditions.run

(output)
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.30 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 
3.10.0-1160.45.1.el7.x86_64.
But internet still did not work (using Bridged mode) :-(

I can access the VM from the host (or any devive in the same wifi) by SSH or http(s).

I checked the guest additions version:

Code: Select all

# modinfo vboxguest
filename:       /lib/modules/3.10.0-1160.45.1.el7.x86_64/misc/vboxguest.ko
version:        6.1.30 r148432
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
retpoline:      Y
rhelversion:    7.9
srcversion:     6CE242DE8F5357F56B287FE
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:        
vermagic:       3.10.0-1160.45.1.el7.x86_64 SMP mod_unload modversions
#
But in the .vbox file I still (after stopping and starting VM) see this:

Code: Select all

      <GuestProperty name="/VirtualBox/GuestAdd/Version" value="6.0.14" timestamp="1638880861500249000" flags=""/>
      <GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="6.0.14" timestamp="1638880861500383000" flags=""/>
Another Linux (Ubuntu 20.04) guest has the same issue.

Host is macOS 10.17 Monterey, VB is 6.1.30.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox guest additions does not mount, no internet in guest

Post by scottgus1 »

mpack wrote:Open another topic to discuss Internet issues (one issue per topic).
@macandroid, It's a good idea to read the whole response to your question. :D
macandroid
Posts: 27
Joined: 10. Nov 2018, 14:04

Re: Virtualbox guest additions does not mount, no internet in guest

Post by macandroid »

I have opened a separate topic on lacking internet connection.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox guest additions does not mount, no internet in guest

Post by scottgus1 »

Re the Guest Additions version, please zip and post a vbox.log:

Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Post Reply