I am trying to use the shared folders feature when running the Arch ISO as a VirtualBox guest OS. The reason is that in the shared folder I have the scripts to make my persistent setup.
After the Arch ISO bootstrap, I run:
pacman -Syu virtualbox-guest-utils
Everything seems smooth but when I load VirtualBox modules:
modprobe -a vboxguest vboxsf vboxvideo #Following guide here: vboxsf only might do
it gives an error. I know that I can fix it creating the dependency file:
The version is that from
uname -r and I get an error again, as there is no directory:
pacman -Syu ... has updated the kernel and therefore I have now a
3.16.2-1-ARCH directory. In fact:
modprobe keeps not working.
I assume that this is due to the mismatch between the
uname -r and the updated kernel. Reading around it is suggested to reboot, but in my case I will lose everything since I am running from an ISO.
I reboot an try to install the guest additions without updating, using the last Arch ISO available:
pacman -Sy virtualbox-guest-utils # now no -u
but I know that this is a bad practice! Anyway I run:
depmod 3.16.1-1-ARCH # non-updated kernel! modprobe -a vboxguest vboxsf vboxvideo mount.vboxsf arch /mnt ls /mnt
and I can finally see my shared files.
This process was a kind of lucky trial and error.
Can you tell me which is the best practice to accomplish this? That is installing the VirtualBox guest additions in a volatile environment (the Arch ISO).