vagrant-cachier doesn't seem to do anything with Guest Additions. Perhaps I am missing some configuration.
Also it doesn't seem to be doing anything with any of the other packages that I am provisioning using apt-get. I tried creating a complete new project with only one provisioning script that just installs apache2 and php5. I also tried enabling the NFS setting but then I received an error when vagrant attempted to mount the NFS shared folders. I am working on a Mac running OSX 10.9.1. This no doubt is contributing to my issues. On Friday, January 24, 2014 9:37:21 AM UTC-6, AJ Michels wrote: > > Thanks. vagrant-cachier seems to be what I was looking for. I didn't > realize something like that even existed. I have been doing my own apt-get > package caching in my provisioning scripts. I will check this out. Will > it work with the Guest Additions stuff though? That process happens before > the provisioning stage of the UP process. > > I get what you were saying about using a base box which is already updated > but then I need to find a place on our network to host it for our team... > and it has to be maintained... and it generally adds more complexity to > something that is supposed to be dead simple for all members of our team. > > I find it unfortunate that the Guest Addition stuff is needed at all. It > creates a dependency between the host and guest which reduces the > usefulness of using a virtual machine all together. > > > On Thursday, January 23, 2014 2:30:12 AM UTC-6, Robert Schulze wrote: >> >> Hi AJ, >> >> Probably the best is to use a base box which already has matching guest >> additions running. There are many ways of getting there: >> - download from vagrantbox.es >> - bring up a clean vagrant box, update guest additions and repackage >> - create a new box from scratch. Eg using packer >> >> If you just want to speed things up, try vagrant-cachier which could >> cache package downloads. But you would still need to wait for the guest >> additions to compile. >> >> Best >> Robert >> >> On 22.01.2014, at 21:50, AJ Michels <[email protected]> wrote: >> >> I have found several posts about the "Guest Additions warning" message. >> The question I have is whether there is anything I can do to keep my >> machine from automatically updating guest additions every time I build a >> new VM. It makes the build process extremely slow. Instead of taking 10 >> seconds to bring up a VM it takes several minutes as it downloads packages >> from ubuntu.com every time. Does anyone have any suggestions? >> >> This is the output I get. >> >> [default] Importing base box 'precise32'... >> >> [default] Matching MAC address for NAT networking... >> >> [default] Setting the name of the VM... >> >> [default] Clearing any previously set forwarded ports... >> >> [default] Fixed port collision for 22 => 2222. Now on port 2200. >> >> [default] Creating shared folders metadata... >> >> [default] Clearing any previously set network interfaces... >> >> [default] Preparing network interfaces based on configuration... >> >> [default] Forwarding ports... >> >> [default] -- 22 => 2200 (adapter 1) >> >> [default] Running 'pre-boot' VM customizations... >> >> [default] Booting VM... >> >> [default] Waiting for machine to boot. This may take a few minutes... >> >> [default] Machine booted and ready! >> >> GuestAdditions versions on your host (4.3.6) and guest (4.2.0) do not >> match. >> >> stdin: is not a tty >> >> Reading package lists... >> >> Building dependency tree... >> >> Reading state information... >> >> The following extra packages will be installed: >> >> fakeroot linux-headers-3.2.0-23 make patch >> >> Suggested packages: >> >> make-doc diffutils-doc >> >> Recommended packages: >> >> linux-headers-generic-pae linux-headers-686-pae linux-headers-amd64 >> >> linux-headers-generic linux-headers >> >> The following NEW packages will be installed: >> >> dkms fakeroot linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic-pae >> make >> >> patch >> >> 0 upgraded, 6 newly installed, 0 to remove and 66 not upgraded. >> >> Need to get 12.7 MB of archives. >> >> After this operation, 68.5 MB of additional disk space will be used. >> >> Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main make i386 >> 3.81-8.1ubuntu1 [116 kB] >> >> Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main patch i386 >> 2.6.1-3 [86.0 kB] >> >> Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main dkms all >> 2.2.0.3-1ubuntu3 [73.1 kB] >> >> Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main fakeroot i386 >> 1.18.2-1 [87.9 kB] >> >> Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main >> linux-headers-3.2.0-23 all 3.2.0-23.36 [11.4 MB] >> >> Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main >> linux-headers-3.2.0-23-generic-pae i386 3.2.0-23.36 [944 kB] >> >> dpkg-preconfigure: unable to re-open stdin: No such file or directory >> >> Fetched 12.7 MB in 2min 49s (74.9 kB/s) >> >> Selecting previously unselected package make. >> >> (Reading database ... 29361 files and directories currently installed.) >> >> Unpacking make (from .../make_3.81-8.1ubuntu1_i386.deb) ... >> >> Selecting previously unselected package patch. >> >> Unpacking patch (from .../patch_2.6.1-3_i386.deb) ... >> >> Selecting previously unselected package dkms. >> >> Unpacking dkms (from .../dkms_2.2.0.3-1ubuntu3_all.deb) ... >> >> Selecting previously unselected package fakeroot. >> >> Unpacking fakeroot (from .../fakeroot_1.18.2-1_i386.deb) ... >> >> Selecting previously unselected package linux-headers-3.2.0-23. >> >> Unpacking linux-headers-3.2.0-23 (from >> .../linux-headers-3.2.0-23_3.2.0-23.36_all.deb) ... >> >> Selecting previously unselected package >> linux-headers-3.2.0-23-generic-pae. >> >> Unpacking linux-headers-3.2.0-23-generic-pae (from >> .../linux-headers-3.2.0-23-generic-pae_3.2.0-23.36_i386.deb) ... >> >> Processing triggers for man-db ... >> >> Setting up make (3.81-8.1ubuntu1) ... >> >> Setting up patch (2.6.1-3) ... >> >> Setting up dkms (2.2.0.3-1ubuntu3) ... >> >> Setting up fakeroot (1.18.2-1) ... >> >> update-alternatives: using /usr/bin/fakeroot-sysv to provide >> /usr/bin/fakeroot (fakeroot) in auto mode. >> >> Setting up linux-headers-3.2.0-23 (3.2.0-23.36) ... >> >> Setting up linux-headers-3.2.0-23-generic-pae (3.2.0-23.36) ... >> >> Examining /etc/kernel/header_postinst.d. >> >> run-parts: executing /etc/kernel/header_postinst.d/dkms >> 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae >> >> Copy iso file >> /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the >> box /tmp/VBoxGuestAdditions.iso >> >> stdin: is not a tty >> >> mount: warning: /mnt seems to be mounted read-only. >> >> Installing Virtualbox Guest Additions 4.3.6 - guest version is 4.2.0 >> >> stdin: is not a tty >> >> Verifying archive integrity... All good. >> >> Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............ >> >> VirtualBox Guest Additions installer >> >> Removing installed version 4.2.0 of VirtualBox Guest Additions... >> >> Copying additional installer modules ... >> >> Installing additional modules ... >> >> Removing existing VirtualBox DKMS kernel modules ...done. >> >> Removing existing VirtualBox non-DKMS kernel modules ...done. >> >> Building the VirtualBox Guest Additions kernel modules ...done. >> >> Doing non-kernel setup of the Guest Additions ...done. >> >> You should restart your guest to make sure the new modules are actually >> used >> >> >> >> Installing the Window System drivers ...fail! >> >> (Could not find the X.Org or XFree86 Window System.) >> >> An error occurred during installation of VirtualBox Guest Additions >> 4.3.6. Some functionality may not work as intended. >> >> In most cases it is OK that the "Window System drivers" installation >> failed. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
