Skip to content

Instantly share code, notes, and snippets.

@igalic
Created January 29, 2014 15:46
Show Gist options
  • Save igalic/8690758 to your computer and use it in GitHub Desktop.
Save igalic/8690758 to your computer and use it in GitHub Desktop.
vagrant, oracle virtualbox-4.2, everything fails and sadness
igalic@levix ~/src/puppet/puppetlabs-apache (git)-[master] % RS_DESTROY=no rspec spec/acceptance -f d -c -e 'itk'
WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1
Hypervisor for ubuntu-server-12042-x64 is vagrant
Beaker::Hypervisor, found some vagrant boxes to create
[ubuntu-server-12042-x64] VM not created. Moving on...
created Vagrantfile for VagrantHost ubuntu-server-12042-x64
Bringing machine 'ubuntu-server-12042-x64' up with 'virtualbox' provider...
[ubuntu-server-12042-x64] Importing base box 'ubuntu-server-12042-x64-vbox4210-nocm'...
[ubuntu-server-12042-x64] Matching MAC address for NAT networking...
[ubuntu-server-12042-x64] Setting the name of the VM...
[ubuntu-server-12042-x64] Clearing any previously set forwarded ports...
[ubuntu-server-12042-x64] Fixed port collision for 22 => 2222. Now on port 2200.
[ubuntu-server-12042-x64] Clearing any previously set network interfaces...
[ubuntu-server-12042-x64] Preparing network interfaces based on configuration...
[ubuntu-server-12042-x64] Forwarding ports...
[ubuntu-server-12042-x64] -- 22 => 2200 (adapter 1)
[ubuntu-server-12042-x64] Running 'pre-boot' VM customizations...
[ubuntu-server-12042-x64] Booting VM...
[ubuntu-server-12042-x64] Waiting for machine to boot. This may take a few minutes...
[ubuntu-server-12042-x64] Machine booted and ready!
[ubuntu-server-12042-x64] Setting hostname...
[ubuntu-server-12042-x64] Configuring and enabling network interfaces...
[ubuntu-server-12042-x64] Mounting shared folders...
[ubuntu-server-12042-x64] -- /vagrant
configure vagrant boxes (set ssh-config, switch to root user, hack etc/hosts)
Give root a copy of vagrant's keys
ubuntu-server-12042-x64 $ sudo su -c "cp -r .ssh /root/."
ubuntu-server-12042-x64 executed in 0.16 seconds
ubuntu-server-12042-x64 $ echo '127.0.0.1 localhost localhost.localdomain
10.255.33.249 ubuntu-server-12042-x64
' > /etc/hosts
ubuntu-server-12042-x64 executed in 0.16 seconds
ubuntu-server-12042-x64 $ which curl
/usr/bin/curl
ubuntu-server-12042-x64 executed in 0.04 seconds
ubuntu-server-12042-x64 $ which ntpdate
/usr/sbin/ntpdate
ubuntu-server-12042-x64 executed in 0.04 seconds
ubuntu-server-12042-x64 $ apt-get update
Err http://security.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://us.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-backports Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu-server-12042-x64 executed in 3.07 seconds
ubuntu-server-12042-x64 $ apt-get install -y rubygems
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
build-essential g++ g++-4.6 libruby1.8 libstdc++6-4.6-dev ruby1.8
ruby1.8-dev
Suggested packages:
g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
libstdc++6-4.6-doc ruby1.8-examples ri1.8
The following NEW packages will be installed:
build-essential g++ g++-4.6 libruby1.8 libstdc++6-4.6-dev ruby1.8
ruby1.8-dev rubygems
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.5 MB of archives.
After this operation, 38.1 MB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise/main libstdc++6-4.6-dev amd64 4.6.3-1ubuntu5
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ precise/main g++-4.6 amd64 4.6.3-1ubuntu5
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ precise/main g++ amd64 4:4.6.3-1ubuntu5
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main build-essential amd64 11.5ubuntu2.1
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libruby1.8 amd64 1.8.7.352-2ubuntu1.2
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ precise-security/main libruby1.8 amd64 1.8.7.352-2ubuntu1.2
Temporary failure resolving 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ precise-security/main ruby1.8 amd64 1.8.7.352-2ubuntu1.2
Temporary failure resolving 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ precise-security/main ruby1.8-dev amd64 1.8.7.352-2ubuntu1.2
Temporary failure resolving 'security.ubuntu.com'
Err http://security.ubuntu.com/ubuntu/ precise-security/main rubygems all 1.8.15-1ubuntu0.1
Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libstdc++6-4.6-dev_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/g++-4.6_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_11.5ubuntu2.1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/libruby1.8_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/ruby1.8_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/ruby1.8-dev_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/rubygems/rubygems_1.8.15-1ubuntu0.1_all.deb Temporary failure resolving 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu-server-12042-x64 executed in 0.76 seconds
Exited: 100
/var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/host.rb:184:in `exec': Host 'ubuntu-server-12042-x64' exited with 100 running: (Beaker::Host::CommandFailure)
apt-get install -y rubygems
Last 10 lines of output were:
Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libstdc++6-4.6-dev_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/g++-4.6_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_4.6.3-1ubuntu5_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_11.5ubuntu2.1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/libruby1.8_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/ruby1.8_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/ruby1.8/ruby1.8-dev_1.8.7.352-2ubuntu1.2_amd64.deb Temporary failure resolving 'security.ubuntu.com'
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/r/rubygems/rubygems_1.8.15-1ubuntu0.1_all.deb Temporary failure resolving 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/command_factory.rb:8:in `execute'
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/host/unix/pkg.rb:41:in `install_package'
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/dsl/helpers.rb:212:in `install_package'
from /home/igalic/src/puppet/puppetlabs-apache/spec/spec_helper_acceptance.rb:12:in `block in <top (required)>'
from /home/igalic/src/puppet/puppetlabs-apache/spec/spec_helper_acceptance.rb:4:in `each'
from /home/igalic/src/puppet/puppetlabs-apache/spec/spec_helper_acceptance.rb:4:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/igalic/src/puppet/puppetlabs-apache/spec/acceptance/apache_parameters_spec.rb:1:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
RS_DESTROY=no rspec spec/acceptance -f d -c -e 'itk' 6,54s user 3,57s system 21% cpu 45,999 total
igalic@levix ~/src/puppet/puppetlabs-mysql (git)-[backup-postscript] % RS_DESTROY=no rspec spec/acceptance -f d -c -e 'backup'
WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1
Beaker::Hypervisor, found some vagrant boxes to create
/var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/host.rb:184:in `exec': Host 'centos-64-x64.local' exited with 1 running: (Beaker::Host::CommandFailure)
yum -y install rubygems
Last 10 lines of output were:
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/command_factory.rb:8:in `execute'
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/host/unix/pkg.rb:38:in `install_package'
from /var/lib/gems/1.9.1/gems/beaker-1.4.1/lib/beaker/dsl/helpers.rb:212:in `install_package'
from /home/igalic/src/puppet/puppetlabs-mysql/spec/spec_helper_acceptance.rb:5:in `block in <top (required)>'
from /home/igalic/src/puppet/puppetlabs-mysql/spec/spec_helper_acceptance.rb:3:in `each'
from /home/igalic/src/puppet/puppetlabs-mysql/spec/spec_helper_acceptance.rb:3:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/igalic/src/puppet/puppetlabs-mysql/spec/acceptance/mysql_account_delete_spec.rb:1:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
from /var/lib/gems/1.9.1/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
RS_DESTROY=no rspec spec/acceptance -f d -c -e 'backup' 10,35s user 7,44s system 12% cpu 2:25,02 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment