The officially official Devuan Forum!

You are not logged in.

#1 2022-05-02 15:08:15

Micronaut
Member
Registered: 2019-07-04
Posts: 201  

Devuan and VirtualBox

Not wanting to use Windows 10 / 11 or how ever many iterations are coming to the MS Kiosk, but not being certain I can completely toss all access to Windows, I have been trying to configure a VM to use as a browser sandbox. Hopefully this would allow the safe maintenance of a Windows 8.1 system after security patches end next year. Other exposure to the Internet should not be necessary.

Installing Devuan 3.1 into a Virtual Box VM, I find an oddity. It is not possible to run the VB Additions CD. BUT... Devuan seems to already be integrated in certain ways. I don't have to fiddle around with the focus settings or use right-ctrl to capture focus. Usually you have to install the additions to have integration like that. And yet, the other things I need the additions for don't work. Clipboard integration, for example. I can click the options on the menu, but they have no effect. There is just no way to copy from the VM to the host. Or vice versa. I had been using the shared folder option to get data into and out of the VM, but today that stopped working and I can't get it to work again.

WHY would Devuan not allow the additions CD to run? I mean, really not allow. I get 'permission denied' when I try to run it either a s user or as root. And since it won't allow the additions to be installed, why is it partially integrated anyway?

Offline

#2 2022-05-02 16:32:59

rolfie
Member
Registered: 2017-11-25
Posts: 1,047  

Re: Devuan and VirtualBox

I think you need to be a bit more specific.
* What is the host system?
* Where did you get VBox from? Version?
* Extension pack installed?
* On Linux host: kernel modules built?
To install guest additions on a Debian based Linux guest:
* Insert guest addition iso in guest via menu.
* Get root privilegues with su -
* # mount /dev/sr0 /media/cdrom0
* # cd /media/cdrom0
* # sh ./LinuxGuestAdditons.run

In the properties of your guest enable drag'n'drop and clipboard both ways. These settings sometimes require a few boots to work.

rolfie

Edith: corrected the sh command to run the guest additions

Last edited by rolfie (2022-05-03 19:00:31)

Offline

#3 2022-05-02 16:50:15

Micronaut
Member
Registered: 2019-07-04
Posts: 201  

Re: Devuan and VirtualBox

The host is Windows 8.1, and the VirtualBox install comes directly from the Oracle site, not a third-party 'download site'. This is version 6.1.32 so it's pretty recent.

Are special modules needed in the kernel? I didn't need to build anything special with CentOS, though it might have detected its environment and chosen a kernel with any special modules already installed. In that case, it was possible to install the Additions CD and everything seems to work.

Edit: I went and got the latest from Oracle, it's 6.1.34, and also the extensions and additions. After updating the VBox software itself, the CentOS happily updated its additions. That worked fine. The Devuan VM won't let me change the iso in the virtual drive. Error:

Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

Result Code:
E_FAIL (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Callee:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

Clicking the 'force unmount' button has not effect.

Last edited by Micronaut (2022-05-02 17:10:14)

Offline

#4 2022-05-02 17:19:57

rolfie
Member
Registered: 2017-11-25
Posts: 1,047  

Re: Devuan and VirtualBox

Sounds like a Windose problem. Is that iso by chance mounted on the host? Have you got access rights to that folder?

Is your CentOS another VM on the same host? Then make sure the iso is not assigned to CentOS.

Last edited by rolfie (2022-05-02 17:22:53)

Offline

#5 2022-05-02 17:31:36

Micronaut
Member
Registered: 2019-07-04
Posts: 201  

Re: Devuan and VirtualBox

After literally removing the virtual drive and re-adding it, the machine still won't run the additions CD. I get a popup that says "Error autorunning software" and "cannot find the autorun program"...

This is the exact same CD that just ran in the CentOS VM.

Manually running it as root doesn't work:
/media/cdrom/auotrun.sh returns "permission denied"

Last edited by Micronaut (2022-05-02 17:40:01)

Offline

#6 2022-05-02 17:40:15

rolfie
Member
Registered: 2017-11-25
Posts: 1,047  

Re: Devuan and VirtualBox

Have a look at: https://superuser.com/questions/760327/ … ed#1407054

Make sure the cd drive in the Devuan machine is empty. Then reboot. Then insert the guest additions from the Device -> Insert GuestAdditions CD Image

Offline

#7 2022-05-02 17:54:12

Micronaut
Member
Registered: 2019-07-04
Posts: 201  

Re: Devuan and VirtualBox

Just got to work by invoking with sh instead of a plain reference. Apparently that gets around whatever the permissions issue is. We'll see how difficult it is next time...

Now to test the interface and see if it's possible to communicate between host and VM properly.

Last edited by Micronaut (2022-05-02 17:54:45)

Offline

#8 2022-05-02 18:16:51

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: Devuan and VirtualBox

Micronaut wrote:

Just got to work by invoking with sh instead of a plain reference. Apparently that gets around whatever the permissions issue is.

This ^ . . . I ran into the same problem recently . . .

Offline

#9 2022-05-03 05:55:02

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Devuan and VirtualBox

Micronaut wrote:

Manually running it as root doesn't work:
/media/cdrom/auotrun.sh returns "permission denied"

The file needs to be made executable (chmod +x) before it can be run directly.


Brianna Ghey — Rest In Power

Offline

#10 2022-05-03 12:17:48

Micronaut
Member
Registered: 2019-07-04
Posts: 201  

Re: Devuan and VirtualBox

But it's on an ISO image. I'd have to edit the ISO. Kinda extreme for a small glitch. Though I found a fix with the sh invocation, someone else had another idea. Edit fstab and replace the 'auto' attribute on the cdrom mount with 'exec' and then it should run. Apparently this is the mistake that Devuan makes compared to CentOS. Using 'auto' on the cdrom mount.

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

Offline

#11 2022-05-03 18:34:23

thierrybo
Member
Registered: 2017-11-11
Posts: 107  

Re: Devuan and VirtualBox

Excerpt from the Virtualbox manual

4.2.2.1 Installing the Linux Guest Additions
The Oracle VM VirtualBox Guest Additions for Linux are provided on the same virtual CD-ROM
file as the Guest Additions for Windows. See chapter 4.2.1.1, Installing the Windows Guest Addi-
tions, page 69. They also come with an installation program that guides you through the setup
process. However, due to the significant differences between Linux distributions, installation
may be slightly more complex when compared to Windows.
Installation generally involves the following steps:
1. Before installing the Guest Additions, you prepare your guest system for building external
kernel modules. This works as described in chapter 2.3.2, The Oracle VM VirtualBox Kernel
Modules, page 37, except that this step must be performed in your Linux guest instead of
on a Linux host system.
If you suspect that something has gone wrong, check that your guest is set up correctly and
run the following command as root:

rcvboxadd setup

2. Insert the VBoxGuestAdditions.isoCD file into your Linux guest’s virtual CD-ROM drive,
as described for a Windows guest in chapter 4.2.1.1, Installing the Windows Guest Additions,
page 69.
3. Change to the directory where your CD-ROM drive is mounted and run the following com-
mand as root:

sh ./VBoxLinuxAdditions.run

Offline

Board footer