Skip to content

Instantly share code, notes, and snippets.

Last active Feb 16, 2021
What would you like to do?
MacOS Vagrant VirtualBox centos/7 2020/11/23
% vagrant up centos-7
Bringing machine 'centos-7' up with 'virtualbox' provider...
==> centos-7: Importing base box 'centos/7'...
==> centos-7: Matching MAC address for NAT networking...
==> centos-7: Checking if box 'centos/7' version '2004.01' is up to date...
==> centos-7: Setting the name of the VM: centos_centos-7_1606154652130_80786
==> centos-7: Clearing any previously set network interfaces...
==> centos-7: Preparing network interfaces based on configuration...
centos-7: Adapter 1: nat
==> centos-7: Forwarding ports...
centos-7: 22 (guest) => 2222 (host) (adapter 1)
==> centos-7: Running 'pre-boot' VM customizations...
==> centos-7: Booting VM...
==> centos-7: Waiting for machine to boot. This may take a few minutes...
centos-7: SSH address:
centos-7: SSH username: vagrant
centos-7: SSH auth method: private key
centos-7: Vagrant insecure key detected. Vagrant will automatically replace
centos-7: this with a newly generated keypair for better security.
centos-7: Inserting generated public key within guest...
centos-7: Removing insecure key from the guest if it's present...
centos-7: Key inserted! Disconnecting and reconnecting using new SSH key...
==> centos-7: Machine booted and ready!
[centos-7] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated
---> Package centos-release.x86_64 0:7-9.2009.0.el7.centos will be an update
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version Repository Size
centos-release x86_64 7-9.2009.0.el7.centos base 27 k
Transaction Summary
Upgrade 1 Package
Total download size: 27 k
Downloading packages:
No Presto metadata available for base
Public key for centos-release-7-9.2009.0.el7.centos.x86_64.rpm is not installed
warning: /var/cache/yum/x86_64/7/base/packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : centos-release-7-9.2009.0.el7.centos.x86_64 1/2
Cleanup : centos-release-7-8.2003.0.el7.centos.x86_64 2/2
Verifying : centos-release-7-9.2009.0.el7.centos.x86_64 1/2
Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 2/2
centos-release.x86_64 0:7-9.2009.0.el7.centos
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
No package kernel-devel-3.10.0-1127.el7.x86_64 available.
Error: Nothing to do
Unmounting Virtualbox Guest Additions ISO from: /mnt
umount: /mnt: not mounted
==> centos-7: Checking for guest additions in VM...
centos-7: No guest additions were detected on the base box for this VM! Guest
centos-7: additions are required for forwarded ports, shared folders, host only
centos-7: networking, and more. If SSH fails on this machine, please install
centos-7: the guest additions and repackage the box to continue.
centos-7: This is not an error message; everything may continue to work properly,
centos-7: in which case you may ignore this message.
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "384"]
vb.customize ["modifyvm", :id, "--audio", "none"]
end "private_network", type: "dhcp"
#config.vm.synced_folder ".", "/vagrant", type: "nfs"
#config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
config.vm.define "centos-8" do |inst| = "centos/8"
Copy link

kwhat commented Nov 25, 2020

Just in case someone stumbles upon this, it looks like it's related to an outdated vagrant-vbguest plugin version.

Copy link

nhojpatrick commented Feb 16, 2021

Just in case someone stumbles upon this, it looks like it's related to an outdated vagrant-vbguest plugin version.

I think a newer version of vagrant-vbguest did fix that initial problem regarding shared folders. But I've not been able to get a two way shared folder for a rhel/centos distribution working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment