[SOLVED] Updating Guest Additions

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
rickNS
Level 4
Level 4
Posts: 390
Joined: Tue Jan 25, 2011 11:59 pm

[SOLVED] Updating Guest Additions

Post by rickNS » Mon Feb 11, 2019 2:35 pm

I updated one of my HDDs to mint 19 yesterday, (so I can go back to LM18 in a few seconds + boot time) and virtualbox version changed from 5.0.40 to 5.2.18, so I need to update the guest additions on a Debian vm.

It turns out according to Pjotr in this thread, viewtopic.php?t=221879 that it is "cumbersome"...yeah, I think it is too.

Anyway the host is;

Code: Select all

rick@t420 ~ $ inxi -Fxz
System:    Host: t420 Kernel: 4.15.0-20-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: MATE 1.20.1 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: LENOVO product: 4236EY2 v: ThinkPad T420 serial: N/A
           Mobo: LENOVO model: 4236EY2 serial: N/A
           UEFI [Legacy]: LENOVO v: 83ET61WW (1.31 ) date: 07/07/2011
Battery    BAT0: charge: 41.8 Wh 98.3% condition: 42.6/47.5 Wh (90%)
           model: SANYO 42T4763 status: N/A
CPU:       Dual core Intel Core i5-2520M (-MT-MCP-) 
           arch: Sandy Bridge rev.7 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9967
           clock speeds: max: 3200 MHz 1: 926 MHz 2: 1082 MHz 3: 1018 MHz
           4: 937 MHz
Graphics:  Card: Intel 2nd Generation Core Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1600x900@59.98hz
           OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile
           version: 3.3 Mesa 18.0.0-rc5 Direct Render: Yes
Audio:     Card Intel 6 Series/C200 Series Family High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-20-generic
Network:   Card-1: Intel 82579LM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: 5080 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak]
           driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 500.1GB (51.0% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
           ID-2: USB /dev/sdb model: MJA2250BH_G2 size: 250.1GB
Partition: ID-1: / size: 19G used: 6.4G (37%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 184G used: 99G (57%) fs: ext4 dev: /dev/sda6
           ID-3: swap-1 size: 4.00GB used: 0.00GB (0%)
           fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 1972
Info:      Processes: 194 Uptime: 12:35 Memory: 2734.9/7863.4MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 
and the guest is Debian 9 stretch.
I've looked at the official virtual documentation, not much help to me, maybe someone else can cypher it better.
I wonder if this could be modified slightly, https://gist.github.com/hubgit/3293481
although I already tried sudo VBoxLinuxAdditions.run, and autorun.sh, and got command not found ?

Thought I had an ah-huh moment and ran the last line of code (line 14 only from the vm) from that link.

Code: Select all

sudo sh /media/cdrom/VBoxLinuxAdditions.run
but failed with;

Code: Select all

VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
EDIT, SOLVED, sorry yes that last bit of code did solve this problem, just needed restart, should have read more carefully. This may be of use to someone else...someday.
On to the next "problem".
Mint 18 mate on 2 identical Thinkpad T420's

Post Reply

Return to “Newbie Questions”