Open maksym-fishman opened 3 years ago
There is no issue mentioned above for guest OS as below:
[vagrant@repo ~]$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"
Hey there, it looks like this is maybe a problem with the box. In particular, these debug lines are of interest:
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: There are no enabled repos.
It looks like the installation of the guest additions is failing out here (at the dependency installation stage). To resolve this you'll need to setup the guest OS to be able to install software using the system package manager. Or, you can choose to not auto update the guest additions by adding the line config.vbguest.auto_update = false
.
Vagrant version
$ vagrant --version Vagrant 2.2.16 $ vagrant plugin list vagrant-guest_ansible (0.0.4, global) vagrant-vbguest (0.29.0, global)
Host operating system
$ lsb_release -a LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal
$ virtualbox -h Oracle VM VirtualBox VM Selector v6.1.22
Guest operating system
[vagrant@node2 ~]$ lsb_release -a LSB Version: :core-4.1-ia32:core-4.1-noarch Distributor ID: RedHatEnterprise Description: Red Hat Enterprise Linux release 8.0 (Ootpa) Release: 8.0 Codename: Ootpa
Vagrantfile
Debug output
==> node3: Attempting graceful shutdown of VM... ==> node3: Clearing any previously set forwarded ports... ==> node3: Fixed port collision for 22 => 2222. Now on port 2202. ==> node3: Clearing any previously set network interfaces... ==> node3: Preparing network interfaces based on configuration... node3: Adapter 1: nat node3: Adapter 2: hostonly ==> node3: Forwarding ports... node3: 22 (guest) => 2202 (host) (adapter 1) ==> node3: Running 'pre-boot' VM customizations... ==> node3: Booting VM... ==> node3: Waiting for machine to boot. This may take a few minutes... node3: SSH address: 127.0.0.1:2202 node3: SSH username: vagrant node3: SSH auth method: private key ==> node3: Machine booted and ready! [node3] GuestAdditions versions on your host (6.1.22) and guest (5.2.30) do not match. Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: There are no enabled repos. Unmounting Virtualbox Guest Additions ISO from: /mnt umount: /mnt: not mounted. ==> node3: Checking for guest additions in VM... node3: The guest additions on this VM do not match the installed version of node3: VirtualBox! In most cases this is fine, but in rare cases it can node3: prevent things such as shared folders from working properly. If you see node3: shared folder errors, please make sure the guest additions within the node3: virtual machine match the version of VirtualBox you have installed on node3: your host and reload your VM. node3: node3: Guest Additions Version: 5.2.30 node3: VirtualBox Version: 6.1 The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!
umount /mnt
Stdout from the command:
Stderr from the command:
umount: /mnt: not mounted.
Expected behavior
[control] GuestAdditions seems to be installed (6.1.22) correctly, but not running. Redirecting to /bin/systemctl start vboxadd.service Redirecting to /bin/systemctl start vboxadd-service.service 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
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
4.18.0-80.el8.x86_64.
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Restarting VM to apply changes...
Actual behavior
vagrant ssh node3 Last login: Mon Sep 23 23:53:03 2019 from 10.0.2.2 [vagrant@rhel8 ~]$ wget https://download.virtualbox.org/virtualbox/6.1.22/VBoxGuestAdditions_6.1.22.iso --2021-05-19 16:53:31-- https://download.virtualbox.org/virtualbox/6.1.22/VBoxGuestAdditions_6.1.22.iso Resolving download.virtualbox.org (download.virtualbox.org)... 184.30.24.84 Connecting to download.virtualbox.org (download.virtualbox.org)|184.30.24.84|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 61020160 (58M) [application/octet-stream] Saving to: 'VBoxGuestAdditions_6.1.22.iso'
VBoxGuestAdditions_6.1.22.is 100%[=============================================>] 58.19M 11.9MB/s in 5.0s
2021-05-19 16:53:36 (11.7 MB/s) - 'VBoxGuestAdditions_6.1.22.iso' saved [61020160/61020160]
[vagrant@rhel8 ~]$ sudo mount VBoxGuestAdditions_6.1.22.iso /mnt/ mount: /mnt: WARNING: device write-protected, mounted read-only. [vagrant@rhel8 ~]$ sudo /mnt/VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.22 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 5.2.30 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
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
4.18.0-80.el8.x86_64.
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Steps to reproduce
Use existing vagrant file run "vagrant up"
References
vagrant (2).log