I get the VM running with the error:
deployingrails/first_box  $ vagrant up vagrant up [default] Importing base box 'lucid64'... [default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box. Guest Additions Version: 4.1.16 VirtualBox Version: 4.1.18 [default] Matching MAC address for NAT networking...
This is, apparently, the warning mentioned in the VirtualBox Guest Additions section in the book. But when I try to follow the instructions I get a bunch of @Could not resolve ‘us.archive.ubuntu.com@ errors:
vagrant@lucid64:~$ sudo apt-get install dkms -y Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fakeroot make patch Suggested packages: make-doc diffutils-doc The following NEW packages will be installed: dkms fakeroot make patch 0 upgraded, 4 newly installed, 0 to remove and 23 not upgraded. Need to get 458kB of archives. After this operation, 2,359kB of additional disk space will be used. Err http://us.archive.ubuntu.com/ubuntu/ lucid/main make 3.81-7ubuntu1 Could not resolve 'us.archive.ubuntu.com' Err http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1 Could not resolve 'us.archive.ubuntu.com' Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main dkms 22.214.171.124-2ubuntu1 Could not resolve 'us.archive.ubuntu.com' Err http://us.archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1 Could not resolve 'us.archive.ubuntu.com' Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_3.81-7ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com' Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.6-2ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com' Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_126.96.36.199-2ubuntu1_all.deb Could not resolve 'us.archive.ubuntu.com' Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.14.4-1ubuntu1_amd64.deb Could not resolve 'us.archive.ubuntu.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I try to ping @us.archive.ubuntu.com@ from within the VM and I cannot. But I can ping google.com and www.apple.com and ge.com (but not apple.com (w/out the www)) from w/in the VM.
FWIW the host can ping @us.archive.ubuntu.com@ and every other domain name just fine.
@sudo apt-get update@ fails as well for same reason. I have no idea how to proceed…
Looking at @/etc/resolv.conf@ I notice it’s been populated with some nonexistant nameserver (there is no @10.0.2.3@ machine, that I’m aware of, certainly not before Vagrant & VirtualBox rolled into town):
vagrant@lucid64:~$ cat /etc/resolv.conf nameserver 10.0.2.3 domain mydomain.com search mydomain.com
I was expecting this book to be challenging but not to stump me on the very first steps…
BTW- Host is Mac OS X Lion (10.7.4)
appreciate any help!