Last active
February 16, 2021 23:30
-
-
Save nhojpatrick/6a8284fe85ce5d6f30762ac525e418c1 to your computer and use it in GitHub Desktop.
MacOS Vagrant VirtualBox centos/7 2020/11/23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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: 127.0.0.1:2222 | |
centos-7: SSH username: vagrant | |
centos-7: SSH auth method: private key | |
centos-7: | |
centos-7: Vagrant insecure key detected. Vagrant will automatically replace | |
centos-7: this with a newly generated keypair for better security. | |
centos-7: | |
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: mirror.freethought-internet.co.uk | |
* extras: mirror.freethought-internet.co.uk | |
* updates: centos.mirroring.pulsant.co.uk | |
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 | |
================================================================================ | |
Updating: | |
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) <[email protected]>" | |
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 | |
Updated: | |
centos-release.x86_64 0:7-9.2009.0.el7.centos | |
Complete! | |
Loaded plugins: fastestmirror | |
Loading mirror speeds from cached hostfile | |
* base: mirror.freethought-internet.co.uk | |
* extras: mirror.freethought-internet.co.uk | |
* updates: centos.mirroring.pulsant.co.uk | |
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: | |
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 | |
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 | |
#config.vm.network "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| | |
inst.vm.box = "centos/8" | |
end | |
end |
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
Just in case someone stumbles upon this, it looks like it's related to an outdated vagrant-vbguest plugin version.