You are not logged in.

#21 2019-12-30 02:41:18

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Here's what I have on VirtualBox side:

00:00:19.016484 VMMDev: Guest Additions capability report: (0x0 -> 0x4) seamless: no, hostWindowMapping: no, graphics: yes
00:00:19.016691 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:19.016728 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.016756 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.016763 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.061181 VMMDev: Guest Log: 23:35:55.097064 main     VBoxService 6.1.0 r135406 (verbosity: 0) linux.amd64 (Dec 10 2019 16:03:14) release log
00:00:19.061203 VMMDev: Guest Log: 23:35:55.097067 main     Log opened 2019-12-29T23:35:55.097024000Z
00:00:19.061245 VMMDev: Guest Log: 23:35:55.097151 main     OS Product: Linux
00:00:19.061271 VMMDev: Guest Log: 23:35:55.097178 main     OS Release: 4.9.0-11-amd64
00:00:19.061292 VMMDev: Guest Log: 23:35:55.097199 main     OS Version: #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11)
00:00:19.061326 VMMDev: Guest Log: 23:35:55.097232 main     Executable: /opt/VBoxGuestAdditions-6.1.0/sbin/VBoxService
00:00:19.061334 VMMDev: Guest Log: 23:35:55.097233 main     Process ID: 762
00:00:19.061338 VMMDev: Guest Log: 23:35:55.097233 main     Package type: LINUX_64BITS_GENERIC
00:00:19.061909 VMMDev: Guest Log: 23:35:55.097813 main     6.1.0 r135406 started. Verbose level = 0
00:00:19.070277 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.070324 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.070745 VMMDev: Guest Log: 23:35:55.106634 main     vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
00:00:19.070823 Guest Control: GUEST_MSG_REPORT_FEATURES: 0x1, 0x8000000000000000
00:00:19.101364 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:19.101392 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.101418 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.101425 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.373335 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1024 h=768 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:19.391105 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000ad10000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
00:00:19.403257 GUI: UIMachineLogic: Guest-screen count changed
00:00:19.697633 GUI: UIMachineView::sltPerformGuestResize: Sending guest size-hint to screen 0 as 800x600 if necessary
00:00:29.083365 VMMDev: Guest Log: 02:36:06.346852 timesync vgsvcTimeSyncWorker: Radical guest time change: 10 811 234 849 000ns (GuestNow=1 577 673 366 346 813 000 ns GuestLast=1 577 662 555 111 964 000 ns fSetTimeLastLoop=true )
00:00:35.081863 Shared Clipboard: New Clipboard API enabled
00:00:35.089988 VMMDev: Guest Additions capability report: (0x4 -> 0x5) seamless: yes, hostWindowMapping: no, graphics: yes
00:00:35.090183 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:35.090212 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:35.090236 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:35.090242 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:37.690153 DSound: Error enumeration capture device 'Primary Sound Capture Driver', rc=VERR_GENERAL_FAILURE
00:01:58.577726 Changing the VM state from 'RUNNING' to 'SUSPENDING'
00:01:58.591866 AIOMgr: Endpoint for file 'C:\Users\Paulo\VirtualBox VMs\Helium\Helium.vdi' (flags 000c0781) created successfully
00:01:58.645512 PDMR3Suspend: 67 743 487 ns run time
00:01:58.645543 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
00:01:58.645559 Console: Machine state changed to 'Paused'
00:02:00.799506 Changing the VM state from 'SUSPENDED' to 'RESUMING'
00:02:00.806326 AIOMgr: Endpoint for file 'C:\Users\Paulo\VirtualBox VMs\Helium\Helium.vdi' (flags 000c0723) created successfully
00:02:00.807302 Changing the VM state from 'RESUMING' to 'RUNNING'
00:02:00.807318 Console: Machine state changed to 'Running'
00:02:10.044571 AIOMgr: Async flushes not supported

Offline

#22 2019-12-30 11:14:21

Sun For Miles
Member
Registered: 2017-04-12
Posts: 263

Re: [SOLVED] Failing to install VirtualBox Guest Additions

There is nothing regarding "SharedFolder" in the pasted log, can you confirm that there is no entries in the entire log containing that keyword?

In any case, can you hit this command in Bunsen Labs and report the result:

sudo modprobe vboxsf

If this fixed your problem we need to make that module load automatically every time after (re)boot:

echo 'vboxsf' | sudo tee -a /etc/modules-load.d/modules.conf

This would indicate that Guest additions install is somehow broken. The steps I follow to minimize problems when installing VBox GA on Debian guest are these:

1.

sudo apt update

BunsenLabs welcome script offers this option right at the start.

2. Reboot (because of kernel update)

3.

sudo apt install build-essential linux-headers-$(uname -r)

4. Run VirtualBox guest additions install script


Señor Chang, why do you teach Spanish?

Offline

#23 2019-12-30 11:41:07

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

Here's what I have on VirtualBox side:

If I interpret it rigt, it is the guest machine log shown from host Virtualbox GUI menu => Machine => Show log => VBox.log
But, it can not be the whole log.

I have now reinstalled linux headers on my faulty WM:

# apt install linux-headers-`uname -r` 

And rerun VBoxLinuxAdditions.run. Now automount of shared directory works. But, I was reminded of why I do not use it: Its only accessible for root. Maybe, I have done something wrong. I have not investigate it, as I use NFS instead.

My  VBox.log says:

VirtualBox VM 5.2.24_Debian r128122 linux.amd64 (Jan 17 2019 12:17:18) release log
00:00:01.591417 Log opened 2019-12-30T09:28:38.383800000Z
[...]
00:00:01.824394 Shared clipboard service loaded
00:00:01.824421 Shared clipboard mode: Bidirectional
00:00:01.834060 Drag and drop service loaded
00:00:01.834097 Drag and drop mode: Bidirectional
00:00:01.846026 Guest Control service loaded
[ comment: those worked before]
[...]
00:00:02.014222 Shared Folders service loaded

I asked you if your subject liner realy was true or if it only was shared directory that did not work. You have not answered...

Have you installed Linuxheaders:

# apt install linux-headers-`uname -r` 

(that command should also install gcc.
and after that installed Linux guest additions?

What does the guests /var/log/vboxadd-setup.log say?

If you search for

error "modprobe vboxsf failed"

you will se that most often it will get fixed wit installing linux headers.

Btw, I maybe shall explain why you can not run /media/cdrom/VBoxLinuxAdditions.run directly?

You have an entry for DVD/Cd in your guests /etc/fstab, probaly something like:

/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

"user" also means "noexec". That means you can not execute any program from that filesystem. You can edit fstab and ad "exec" after user, but that can be an security risk.
That, is why you have to execute the shell (bash or sh) and read in the skript. You can test with the copy of VBoxLinuxAdditions.run in your home. Remove the executable bit and you can still execute it with "bash VBoxLinuxAdditions.run".


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#24 2019-12-30 13:23:11

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Hi!

sudo modprobe vboxsf

The above command yielded no response; rebooted, still no shared folder.

I will create another Helium VM from scratch, this time following the recommendations contained on prior replies - perhaps this may iron out some weird behavior.

Offline

#25 2019-12-30 13:42:06

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:
sudo modprobe vboxsf

The above command yielded no response;

That is actualy good... I neihter get any respons on working guest.
If you run it on the host, you will get an error.

Still curious. If it still ther, whats the answer for root command "rcvboxadd setup", on the guest.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#26 2019-12-30 13:42:52

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg:
Inside GUEST, open terminal and execute:

$ sudo adduser $USER vboxsf

Log-out and log-in. Shared folder should now be accessible.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#27 2019-12-30 14:10:46

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@iMBeCil

Had already done that... (learned it was required while experimenting with PeppermintOS, which I completed OK).

Offline

#28 2019-12-30 14:14:38

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh

paulo@helium:~$ rcvboxadd setup
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxguest.ko': Permission denied
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxsf.ko': Permission denied
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxvideo.ko': Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.softdep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.builtin.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.devname.tmp, 1101, 644): Permission denied
ln: failed to create hard link '/boot/initrd.img-4.9.0-11-amd64.dpkg-bak' => '/boot/initrd.img-4.9.0-11-amd64': Operation not permitted
cp: cannot create regular file '/boot/initrd.img-4.9.0-11-amd64.dpkg-bak': Permission denied
update-initramfs failed with error code 1.
rm: cannot remove '/etc/depmod.d/vboxvideo-upstream.conf': Permission denied
rm: cannot remove '/var/lib/VBoxGuestAdditions/skip-4.9.0-11-amd64': Permission denied
rm: cannot remove '/var/lib/VBoxGuestAdditions/skip-4.9.0-9-amd64': Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.softdep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.builtin.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.devname.tmp, 1101, 644): Permission denied

^C
paulo@helium:~$

Offline

#29 2019-12-30 14:22:29

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg Well ... so far it always worked for me. Could you please post output of this command ()from GUEST):

$ grep vbox /etc/group

# output in my working BL guest:
vboxsf:x:998:myusername

where 'myusername' is my real username on th install. And please doulecheck it is 'vboxsf' and not 'vboxfs'.

And generally, double check everything ...

Note: my host is Debian, and my guest is BusenLabs. Perhaps there is some 'secret ingredient' required for Win10 HOST? I can test it later, perhaps ...

@anyone: I have put a small how-to for installing and configuring VBox here in BL forum. I'm sure there are tons of these on the internet, then why not having one here as well?

In particular, pay attention on the reference [1] in the how-to, as this should solve quite a few questions here in this topic.

Last edited by iMBeCil (2019-12-30 14:28:30)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#30 2019-12-30 15:46:54

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

paulo@helium:~$ rcvboxadd setup
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxguest.ko': Permission denied

Yes, if you run it as regular user you will get permission denied. I wrote:

rbh wrote:

root command "rcvboxadd setup", on the guest.

Before that, I wrote;

# rcvboxadd setup

The command has to be run with rootrights

The crunch (#) indicates that the following command is issued by root.
Commands by regular user is preeceded by dollar sign ($).


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#31 2019-12-30 17:31:12

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

=============
FRESH INSTALL
=============

On VB side, did not forget to select auto-mount shared folder.

After installing the new Helium, as directed:

apt-get install build-essential

Then:

sudo ap-get install 4.9.0-11-amd64

but it wasn't needed (was already in the last version).
Next:

sudo bash /media/cdrom/VBoxLinuxAdditions.run

This time I was prepared to take a photo of the screen:
IMG-20191230-133148865.jpg

That's all for now.

Must say that this community provides superb (and amazingly prompt) support - the problem will be sorted out.

Offline

#32 2019-12-30 17:47:28

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

After installing the new Helium, as directed:

apt-get install build-essential

Then:

sudo ap-get install 4.9.0-11-amd64

You shall install kernel headers, not kernel:

apt install linux-headers-`uname -r`  build-essential

// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#33 2019-12-30 17:58:18

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh You are doing some amazing and patient help. Kudos! :clap clap clap:


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#34 2019-12-30 18:57:05

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh

paulo@helium:~$ sudo apt install linux-headers-`uname -r`  build-essential
[sudo] password for paulo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
The following additional packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-11-common linux-kbuild-4.9
The following NEW packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-11-amd64
  linux-headers-4.9.0-11-common linux-kbuild-4.9
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,673 kB of archives.
After this operation, 52.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.189-3+deb9u2 [656 kB]
Get:2 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-11-common all 4.9.189-3+deb9u2 [7,705 kB]
Get:3 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-kbuild-4.9 amd64 4.9.189-3+deb9u2 [862 kB]
Get:4 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-11-amd64 amd64 4.9.189-3+deb9u2 [450 kB]
Fetched 9,673 kB in 3s (3,212 kB/s)               
Selecting previously unselected package linux-compiler-gcc-6-x86.
(Reading database ... 106668 files and directories currently installed.)
Preparing to unpack .../linux-compiler-gcc-6-x86_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-headers-4.9.0-11-common.
Preparing to unpack .../linux-headers-4.9.0-11-common_4.9.189-3+deb9u2_all.deb ...
Unpacking linux-headers-4.9.0-11-common (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../linux-kbuild-4.9_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-headers-4.9.0-11-amd64.
Preparing to unpack .../linux-headers-4.9.0-11-amd64_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-headers-4.9.0-11-amd64 (4.9.189-3+deb9u2) ...
Setting up linux-headers-4.9.0-11-common (4.9.189-3+deb9u2) ...
Setting up linux-compiler-gcc-6-x86 (4.9.189-3+deb9u2) ...
Setting up linux-kbuild-4.9 (4.9.189-3+deb9u2) ...
Setting up linux-headers-4.9.0-11-amd64 (4.9.189-3+deb9u2) ...
paulo@helium:~$ 

then

paulo@helium:~$ sudo bash /media/cdrom1/VBoxLinuxAdditions.run
[sudo] password for paulo: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 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 4.9.0-11-amd64.
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
paulo@helium:~$ 

Finally I can see sf_lin-win!
Now, I have to add myself

paulo@helium:~$ sudo adduser paulo vboxsf
[sudo] password for paulo: 
Adding user `paulo' to group `vboxsf' ...
Adding user paulo to group vboxsf
Done.
paulo@helium:~$

Rebooted and...

SO VERY HAPPY - it finally worked!

Thank you
damo;
Sun for Miles;
DeepDayze;
iMBeCil;
and last, but not least,
rbh.

Offline

#35 2019-12-30 19:19:06

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Ahh there you go. You can edit title of the first post to mark Solved.


Real Men Use Linux

Offline

#36 2019-12-30 20:34:30

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

Rebooted and...
SO VERY HAPPY - it finally worked!
Thank you

You are welcome!

I've posted som thoughts in thread Forum rules


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

Board footer

Powered by FluxBB