cdk-2 Bring the interface up, fails Vagrant VirtualBox MacBook

Latest response

Hi,

I am struggling to get CDK Virtualbox working on my Max 10.12. I have tried quite a few variations of vagrant and virtualbox. There a few topics related to the network not starting but could not find one specific enough to resolve my issue. Sorry my Linux skill are redeveloping developing after a long leave of absent. The MacBook was suppose to solve lack of integration with Windows :-(

https://access.redhat.com/documentation/en/red-hat-container-development-kit/2.0/single/installation-guide/#installing_red_hat_container_development_kit_on_mac_os_x

bash-3.2# vagrant plugin list
vagrant-registration (1.3.0)
- Version Constraint: 1.3.0
vagrant-service-manager (1.3.3)
- Version Constraint: 1.3.3
vagrant-share (1.1.5, system)
vagrant-sshfs (1.2.0)
- Version Constraint: 1.2.0
vagrant-vbguest (0.13.0)

Virtualbox 5.0.26

#

This was the latest version of VMBox

Dependency Installed:
cpp.x86_64 0:4.8.5-4.el7
glibc-devel.x86_64 0:2.17-106.el7_2.8
glibc-headers.x86_64 0:2.17-106.el7_2.8
kernel-headers.x86_64 0:3.10.0-327.36.1.el7
libmpc.x86_64 0:1.0.1-3.el7
mpfr.x86_64 0:3.1.1-4.el7

Complete!
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 5.1.6 - guest version is unknown
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.6 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: Starting the VirtualBox Guest Additions.

Could not find the X.Org or XFree86 Window System, skipping.

==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...

This is where it hangs.......

#

So I downgrade to 5.0.26

Complete!
Downloading VirtualBox Guest Additions ISO from http://download.virtualbox.org/virtualbox/5.0.26/VBoxGuestAdditions_5.0.26.iso
Copy iso file /Users/jeanduminy/.vagrant.d/tmp/VBoxGuestAdditions_5.0.26.iso into the box /tmp/VBoxGuestAdditions.iso
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 5.0.26 - guest version is unknown
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.26 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[ OK ]
Building the shared folder support module[ OK ]
Building the graphics driver module[ OK ]
Doing non-kernel setup of the Guest Additions[ OK ]
Starting the VirtualBox Guest Additions Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
[ OK ]
Cleaning up downloaded VirtualBox Guest Additions ISO...

==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...

#

I ran the vagrant debug and here is the out put.

vcpscreens=0
vcpfile="/var/root/VirtualBox VMs/rhel-ose_default_1475719393201_85211/rhel-ose_default_1475719393201_85211.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
GuestOSType="Linux26_64"
GuestAdditionsRunLevel=2
GuestAdditionsVersion="5.0.26 r108824"
GuestAdditionsFacility_VirtualBox Base Driver=50,1475719803942
GuestAdditionsFacility_VirtualBox System Service=50,1475719804589
GuestAdditionsFacility_Seamless Mode=0,1475719803940
GuestAdditionsFacility_Graphics Mode=0,1475719803939
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO interface: info: Configuring and enabling network interfaces...
INFO interface: info: ==> default: Configuring and enabling network interfaces...
==> default: Configuring and enabling network interfaces...
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: configure_networks
DEBUG guest: Checking in: redhat
DEBUG guest: Found cap: configure_networks in redhat
INFO guest: Execute capability: configure_networks [#, [{:type=>:static, :adapter_ip=>"10.1.2.1", :ip=>"10.1.2.2", :netmask=>"255.255.255.0", :auto_config=>true, :interface=>1}]] (redhat)
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: network_scripts_dir
DEBUG guest: Checking in: redhat
DEBUG guest: Found cap: network_scripts_dir in redhat
INFO guest: Execute capability: network_scripts_dir [#] (redhat)
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: network_interfaces
DEBUG guest: Checking in: redhat
DEBUG guest: Checking in: linux
DEBUG guest: Found cap: network_interfaces in linux
INFO guest: Execute capability: network_interfaces [#] (redhat)
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: /sbin/ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://' (sudo=true)
DEBUG ssh: Exit status: 0
DEBUG network_interfaces: Unsorted list: ["eth0", "eth1", "docker0"]
DEBUG network_interfaces: Sorted list: ["docker0", "eth0", "eth1"]
DEBUG ssh: Uploading: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-redhat-configure-networks20161006-9016-116soak to /tmp/vagrant-network-entry-eth0-1475719806-0
DEBUG ssh: Re-using SSH connection.
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: # 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 'eth0' || true

Move new config into place

mv '/tmp/vagrant-network-entry-eth0-1475719806-0' '/etc/sysconfig/network-scripts/ifcfg-eth0'

Bring the interface up

ARPCHECK=no /sbin/ifup 'eth0'
(sudo=true)
DEBUG ssh: Sending SSH keep-alive...
DEBUG ssh: Sending SSH keep-alive...
DEBUG ssh: Sending SSH keep-alive...

Responses

I just reinstalled the vagrant and virtual box to the virtual box. During the last install vagrant-sshfs-1.2.0.gem' plugin, it caused and error, that I fixed. However the fix seems to break starting the image. So I ignore the error and continued, this allow me to start and use the image. Moral of the story, don't try fix all errors :-), it might not be worth the effort. Well it is working now

Installing the '.vagrant-sshfs-1.2.0.gem' plugin. This can take a few minutes... /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/package.rb:522:in `rescue in verify': No such file or directory @ rb_sysopen - .vagrant-sshfs-1.2.0.gem (Gem::Package::FormatError)

vagrant-adbinfo (0.1.0) vagrant-registration (1.3.0) - Version Constraint: 1.3.0 vagrant-service-manager (1.3.3) - Version Constraint: 1.3.3 vagrant-share (1.1.6, system) vagrant-sshfs (1.2.1) vagrant-vbguest (0.13.0)