View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000090 | Containers | General | public | 2022-05-06 17:15 | 2023-02-17 03:54 |
Reporter | Trevor Cooper | Assigned To | Neil Hanlon | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0000090: No guest additions in vagrant box for virtualbox provider | ||||
Description | The latest RESF Official Vagrant box for Rocky Linux 8.5 virtualbox provider (box version 5.0.0) does not provide working VirtualBox Guest Additions preventing the use of advanced features of VirtualBox such as shared folders. | ||||
Steps To Reproduce | 1. Download Official Rocky Linux Vagrant box for VirtualBox provider - `vagrant box add --provider virtualbox --box-version 5.0.0 rockylinux/8` 2. Create default Vagrantfile for the box - `vagrant init --box-version 5.0.0 rockylinux/8` 3. Provision a VM in VirtualBox using the downloaded box and generated Vagrantfile - `vagrant up` 4. When provisioned vagrant attempts to mount `$PWD` at `/vagrant` inside the VM but fails... ``` ==> default: Mounting shared folders... default: /vagrant => /Users/tcooper/boxes/official/rocky8u5 Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. Please verify that these guest additions are properly installed in the guest. This is not a bug in Vagrant and is usually caused by a faulty Vagrant box. For context, the command attempted was: mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant The error output from the command was: mount: /vagrant: unknown filesystem type 'vboxsf'. ``` | ||||
Additional Information | Likely cause... The kickstart file used to provision the Vagrant box for VirtualBox provider attempts to install VirtualBox guest additions for *running kernel* (and fails) but needs to install guest additions for the kernel installed as a result of network install (which will change as the repo is updated). Examples from inside VM... ``` ➜ rocky8u5 vagrant ssh Last login: Fri May 6 16:58:49 2022 from 10.0.2.2 [vagrant@localhost ~]$ sudo grep -Ei "vbox additions" /root/anaconda-ks.cfg -B1 -A10 # Lets just make sure we have vbox additions installed sudo dnf -y install kernel-devel gcc make perl elfutils-libelf-devel wget -O /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/6.1.32/VBoxGuestAdditions_6.1.32.iso sudo mkdir /media/VBoxGuestAdditions sudo mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run rm /tmp/vboxadditions.iso sudo umount /media/VBoxGuestAdditions sudo rmdir /media/VBoxGuestAdditions sudo dnf -y remove kernel-devel gcc make perl elfutils-libelf-devel [vagrant@localhost ~]$ find /lib/modules -name "vboxsf*" [vagrant@localhost ~]$ ``` I have a working box with VirtualBox Guest Additions installed in/via kickstart... 1. Init box - `vagrant init tcooper/rockylinux` 2. Provision VM - `vagrant up` 3. Verify Guest Additions ``` ➜ rocky8u5 vagrant ssh [vagrant@localhost ~]$ modinfo -F filename vboxsf /lib/modules/4.18.0-348.23.1.el8_5.x86_64/misc/vboxsf.ko [vagrant@localhost ~]$ mount -t vboxsf vagrant on /vagrant type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=1000,gid=1000,_netdev) ``` Please provide repository for PR of the kickstart used to build the working vagrant box for virtualbox provider show above or add/use provided kickstart in this report. | ||||
Tags | No tags attached. | ||||
Hi @tcooper - thank you for this. You can commit the updates here: https://git.resf.org/sig_core/kickstarts/ Let me know and I can run a new build! |
|
Issue created... https://git.resf.org/sig_core/kickstarts/issues/1 | |
Draft PR submitted... https://git.resf.org/sig_core/kickstarts/pulls/2 @neil please see comment in PR. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-05-06 17:15 | Trevor Cooper | New Issue | |
2022-07-12 02:56 | Neil Hanlon | Assigned To | => Neil Hanlon |
2022-07-12 02:56 | Neil Hanlon | Status | new => assigned |
2022-07-12 03:13 | Neil Hanlon | Note Added: 0000259 | |
2022-07-12 14:43 | Trevor Cooper | Note Added: 0000261 | |
2022-07-12 15:08 | Trevor Cooper | Note Added: 0000262 | |
2023-02-17 03:54 | Neil Hanlon | Status | assigned => resolved |
2023-02-17 03:54 | Neil Hanlon | Resolution | open => fixed |