Skip to content

Instantly share code, notes, and snippets.

@mpeters
Created August 1, 2016 00:05
Show Gist options
  • Save mpeters/79ab371fa35d90081c7c33699e09fa45 to your computer and use it in GitHub Desktop.
Save mpeters/79ab371fa35d90081c7c33699e09fa45 to your computer and use it in GitHub Desktop.
vagrant up with centos 5.7
vagrant up
Bringing machine 'foo' up with 'virtualbox' provider...
==> foo: Importing base box 'hansode/centos-5.7-i386'...
==> foo: Matching MAC address for NAT networking...
==> foo: Checking if box 'hansode/centos-5.7-i386' is up to date...
==> foo: Setting the name of the VM: centos_vagrant_57_foo_1470009402755_29149
==> foo: Clearing any previously set network interfaces...
==> foo: Preparing network interfaces based on configuration...
foo: Adapter 1: nat
foo: Adapter 2: hostonly
==> foo: Forwarding ports...
foo: 22 (guest) => 2222 (host) (adapter 1)
==> foo: Booting VM...
==> foo: Waiting for machine to boot. This may take a few minutes...
foo: SSH address: 127.0.0.1:2222
foo: SSH username: vagrant
foo: SSH auth method: private key
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo:
foo: Vagrant insecure key detected. Vagrant will automatically replace
foo: this with a newly generated keypair for better security.
foo:
foo: Inserting generated public key within guest...
foo: Removing insecure key from the guest if it's present...
foo: Key inserted! Disconnecting and reconnecting using new SSH key...
==> foo: Machine booted and ready!
GuestAdditions versions on your host (5.0.8) and guest (4.3.14) do not match.
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: centos.aol.com
* extras: mirror.datto.com
* updates: mirror.math.princeton.edu
Setting up Install Process
Package 1:make-3.81-3.el5.i386 already installed and latest version
Package bzip2-1.0.3-6.el5_5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-55.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-55.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-55.el5 for package: gcc
---> Package perl.i386 4:5.8.8-43.el5_11 set to be updated
--> Running transaction check
---> Package cpp.i386 0:4.1.2-55.el5 set to be updated
---> Package libgcc.i386 0:4.1.2-55.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
gcc i386 4.1.2-55.el5 base 5.2 M
perl i386 4:5.8.8-43.el5_11 updates 12 M
Updating for dependencies:
cpp i386 4.1.2-55.el5 base 2.7 M
libgcc i386 4.1.2-55.el5 base 97 k
Transaction Summary
================================================================================
Install 0 Package(s)
Upgrade 4 Package(s)
Total download size: 20 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 1.5 MB/s | 20 MB 00:12
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc 1/8
Updating : perl 2/8
Updating : cpp 3/8
Updating : gcc 4/8
Cleanup : cpp 5/8
Cleanup : perl 6/8
Cleanup : gcc 7/8
Cleanup : libgcc 8/8
Updated:
gcc.i386 0:4.1.2-55.el5 perl.i386 4:5.8.8-43.el5_11
Dependency Updated:
cpp.i386 0:4.1.2-55.el5 libgcc.i386 0:4.1.2-55.el5
Complete!
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 5.0.8 - guest version is 4.3.14
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.8 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
add_symlink: link file /usr/lib/VBoxGuestAdditions already exists
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
The make utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
Building the main Guest Additions module[ OK ]
Building the shared folder support module[ OK ]
Not building the VirtualBox advanced graphics driver as this Linux version is
too old to use it.
Doing non-kernel setup of the Guest Additions[ OK ]
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 5.0.8. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Restarting VM to apply changes...
==> foo: Attempting graceful shutdown of VM...
==> foo: Booting VM...
==> foo: Waiting for machine to boot. This may take a few minutes...
foo: SSH address: 127.0.0.1:2222
foo: SSH username: vagrant
foo: SSH auth method: private key
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
foo: Warning: Remote connection disconnect. Retrying...
==> foo: Machine booted and ready!
==> foo: Checking for guest additions in VM...
==> foo: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
# Down the interface before munging the config file. This might
# fail if the interface is not actually set up yet so ignore
# errors.
/sbin/ifdown '' || true
# Move new config into place
mv '/tmp/vagrant-network-entry--1470009693-0' '/etc/sysconfig/network-scripts/ifcfg-'
# Bring the interface up
ARPCHECK=no /sbin/ifup ''
Stdout from the command:
Stderr from the command:
usage: ifdown <device name>
Usage: ifup <device name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment