[Solved] Cannot install Guest Additions in Arch Linux guest machine
Posted: 12. Apr 2019, 01:51
I am running an Arch Linux virtual machine in Virtual Box 6.0.5 in an Ubuntu 16.04 host. I am trying to install the guest additions.
The first problem is that when I go to "Devices" in the LXDE desktop and insert the guest .iso file, it does not autorun. OK, no problem there, but neither does the optical drive appear in the file system, plus there is no "media" directory in the file system. But when I go to the Virtual Box GUI and look in the "settings", it shows that the guest.iso file has indeed been inserted in the virtual optical drive.
How do I mount the virtual optical drive in Arch? I have tried the command: "mount /dev/sr0 /media/cdrom" but that is no good.
I used "mkdir /media/cdrom" to creat the needed directories and then ran "mount /dev/cdrom /media/cdrom". The guest .iso image is now there, but I cannot get it to run. I double click on the autorun.sh file and when it tells me the file is execuble and asks if I want to run it, I say "yes" but nothing happens.
A second question is that, even if I get it to run, the Arch wiki says "do not install the guest additions from the .iso file that is installed with Virtual Box in your host system, but use the guest additions from the Arch repository. The problem with that is, due to the recent Ubuntu kernel incompatibility, I am having to run VBox 6.0.5 (a test edition), and the guest additions in the Arch repository is 6.0.4. That won't work.
The wiki says I can reconfigure the 6.0.5 guest.iso so it will work in Arch by running the command " rcvboxdrv" as root. When I run that command I get "command not found".
Richard
The first problem is that when I go to "Devices" in the LXDE desktop and insert the guest .iso file, it does not autorun. OK, no problem there, but neither does the optical drive appear in the file system, plus there is no "media" directory in the file system. But when I go to the Virtual Box GUI and look in the "settings", it shows that the guest.iso file has indeed been inserted in the virtual optical drive.
How do I mount the virtual optical drive in Arch? I have tried the command: "mount /dev/sr0 /media/cdrom" but that is no good.
I used "mkdir /media/cdrom" to creat the needed directories and then ran "mount /dev/cdrom /media/cdrom". The guest .iso image is now there, but I cannot get it to run. I double click on the autorun.sh file and when it tells me the file is execuble and asks if I want to run it, I say "yes" but nothing happens.
A second question is that, even if I get it to run, the Arch wiki says "do not install the guest additions from the .iso file that is installed with Virtual Box in your host system, but use the guest additions from the Arch repository. The problem with that is, due to the recent Ubuntu kernel incompatibility, I am having to run VBox 6.0.5 (a test edition), and the guest additions in the Arch repository is 6.0.4. That won't work.
The wiki says I can reconfigure the 6.0.5 guest.iso so it will work in Arch by running the command " rcvboxdrv" as root. When I run that command I get "command not found".
Richard