{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6837","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6837/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6837/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6837/events","html_url":"https://github.com/mitchellh/vagrant/issues/6837","id":125771011,"number":6837,"title":"impossible provisionning vagrant","user":{"login":"darkomenx","id":16452686,"avatar_url":"https://avatars.githubusercontent.com/u/16452686?v=3","gravatar_id":"","url":"https://api.github.com/users/darkomenx","html_url":"https://github.com/darkomenx","followers_url":"https://api.github.com/users/darkomenx/followers","following_url":"https://api.github.com/users/darkomenx/following{/other_user}","gists_url":"https://api.github.com/users/darkomenx/gists{/gist_id}","starred_url":"https://api.github.com/users/darkomenx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkomenx/subscriptions","organizations_url":"https://api.github.com/users/darkomenx/orgs","repos_url":"https://api.github.com/users/darkomenx/repos","events_url":"https://api.github.com/users/darkomenx/events{/privacy}","received_events_url":"https://api.github.com/users/darkomenx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/waiting-reply","name":"waiting-reply","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-09T17:36:09Z","updated_at":"2016-01-17T19:59:35Z","closed_at":null,"body":"I would like to add package (eg : apache2) in a packer script for create a Vagrant (virtualbox-iso) that contain apache2 server installed.\r\n\r\nFor that I use this example project which run correctly (but without my package apache2) : https://github.com/jose-lpa/packer-ubuntu_14.04\r\n\r\nI just add 2 command in base.sh script\r\n* DEBIAN_FRONTEND=noninteractive\r\n* apt-get -y install apache2\r\n\r\nThe build packer run correctly and the Vagrant run correctly also but when a enter the vagrant with ssh I never find anyway a apache2 installation\r\n\r\nHowever the build log tell me that apache2 package is installed correctly. For that the team packer doesn't want to help me because she think that is a Vagrant problem, not a Packer\r\n\r\nlog\r\n\r\n```\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: The following extra packages will be installed:\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: libaprutil1-ldap ssl-cert\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Suggested packages:\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: apache2-utils openssl-blacklist\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: The following NEW packages will be installed:\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: libaprutil1-ldap ssl-cert\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: 0 upgraded, 8 newly installed, 0 to remove and 69 not upgraded.\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Need to get 1,285 kB of archives.\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: After this operation, 5,348 kB of additional disk space will be used.\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libapr1 amd64 1.5.0-1 [85.1 kB]\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1 amd64 1.5.3-1 [76.4 kB]\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1-dbd-sqlite3 amd64 1.5.3-1 [10.5 kB]\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/main libaprutil1-ldap amd64 1.5.3-1 [8,634 B]\r\n2016/01/09 17:43:07 ui:     virtualbox-iso: Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-bin amd64 2.4.7-1ubuntu4.8 [840 kB]\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2-data all 2.4.7-1ubuntu4.8 [160 kB]\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2 amd64 2.4.7-1ubuntu4.8 [87.6 kB]\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty/main ssl-cert all 1.0.33 [16.6 kB]\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preconfiguring packages ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Fetched 1,285 kB in 1s (859 kB/s)\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Selecting previously unselected package libapr1:amd64.\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: (Reading database ... 61917 files and directories currently installed.)\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preparing to unpack .../libapr1_1.5.0-1_amd64.deb ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Unpacking libapr1:amd64 (1.5.0-1) ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Selecting previously unselected package libaprutil1:amd64.\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preparing to unpack .../libaprutil1_1.5.3-1_amd64.deb ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Unpacking libaprutil1:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.3-1_amd64.deb ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Selecting previously unselected package libaprutil1-ldap:amd64.\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preparing to unpack .../libaprutil1-ldap_1.5.3-1_amd64.deb ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Unpacking libaprutil1-ldap:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Selecting previously unselected package apache2-bin.\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Preparing to unpack .../apache2-bin_2.4.7-1ubuntu4.8_amd64.deb ...\r\n2016/01/09 17:43:08 ui:     virtualbox-iso: Unpacking apache2-bin (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Selecting previously unselected package apache2-data.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Preparing to unpack .../apache2-data_2.4.7-1ubuntu4.8_all.deb ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Unpacking apache2-data (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Selecting previously unselected package apache2.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Preparing to unpack .../apache2_2.4.7-1ubuntu4.8_amd64.deb ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Unpacking apache2 (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Selecting previously unselected package ssl-cert.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Preparing to unpack .../ssl-cert_1.0.33_all.deb ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Unpacking ssl-cert (1.0.33) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Processing triggers for ureadahead (0.100.0-16) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: ureadahead will be reprofiled on next reboot\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Processing triggers for ufw (0.34~rc-0ubuntu2) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up libapr1:amd64 (1.5.0-1) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up libaprutil1:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up libaprutil1-ldap:amd64 (1.5.3-1) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up apache2-bin (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up apache2-data (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Setting up apache2 (2.4.7-1ubuntu4.8) ...\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module mpm_event.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module authz_core.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module authz_host.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module authn_core.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module auth_basic.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module access_compat.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module authn_file.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module authz_user.\r\n2016/01/09 17:43:09 ui:     virtualbox-iso: Enabling module alias.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module dir.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module autoindex.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module env.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module mime.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module negotiation.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module setenvif.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module filter.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module deflate.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling module status.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling conf charset.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling conf localized-error-pages.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling conf other-vhosts-access-log.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling conf security.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling conf serve-cgi-bin.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: Enabling site 000-default.\r\n2016/01/09 17:43:10 ui:     virtualbox-iso: * Starting web server apache2\r\n2016/01/09 17:43:11 ui:     virtualbox-iso: *\r\n2016/01/09 17:43:11 ui:     virtualbox-iso: Setting up ssl-cert (1.0.33) ...\r\n2016/01/09 17:43:11 ui:     virtualbox-iso: Processing triggers for libc-bin (2.19-0ubuntu6.6) ...\r\n2016/01/09 17:43:11 ui:     virtualbox-iso: Processing triggers for ureadahead (0.100.0-16) ...\r\n2016/01/09 17:43:11 ui:     virtualbox-iso: Processing triggers for ufw (0.34~rc-0ubuntu2) ...\r\n2016/01/09 17:43:12 ui:     virtualbox-iso: [sudo] password for vagrant: Generating grub configuration file ...\r\n2016/01/09 17:43:12 ui:     virtualbox-iso: Found linux image: /boot/vmlinuz-3.19.0-25-generic\r\n2016/01/09 17:43:12 ui:     virtualbox-iso: Found initrd image: /boot/initrd.img-3.19.0-25-generic\r\n2016/01/09 17:43:13 packer-builder-virtualbox-iso.exe: 2016/01/09 17:43:13 remote command exited with '0': echo 'vagrant'|sudo -S sh '/tmp/script_7943.sh'\r\n2016/01/09 17:43:13 packer-builder-virtualbox-iso.exe: 2016/01/09 17:43:13 [INFO] RPC endpoint: Communicator ended with: 0\r\n2016/01/09 17:43:13 [INFO] RPC client: Communicator ended with: 0\r\n2016/01/09 17:43:13 [INFO] RPC endpoint: Communicator ended with: 0\r\n2016/01/09 17:43:13 [INFO] 12338 bytes written for 'stdout'\r\n2016/01/09 17:43:13 [INFO] 179 bytes written for 'stderr'\r\n2016/01/09 17:43:13 ui:     virtualbox-iso: done\r\n```\r\n\r\nWhat process of Vagrant can cause this strange behaviour ? (cache system, virtualbox cache....)\r\n\r\nI try\r\n* delete .builds directory of project\r\n* delete image vm in virtualbox\r\n* delete packer_cache directory in project\r\n* create my own script that added in template\r\n* start from scratch a new packer project with same result\r\n\r\nIt seems to be a very very strange problem that not concern just a script but also the mechanism of vagrant and virtualbox run.\r\n\r\nWhy my package installed never find in my vagrant ?\r\n\r\nconfig\r\n* OS Host : windows 7 pro\r\n* OS Guest : Ubuntu 14.04 LTS\r\n* VM technology : VirtualBox 5.0.10\r\n* VM technology : Vagrant 1.7.4\r\n* VM tools builder : Packer 0.8.6\r\n\r\n\r\nCan you help to understand what is the problem please ?\r\n\r\nThank you so much !\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/172371926","html_url":"https://github.com/mitchellh/vagrant/issues/6837#issuecomment-172371926","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6837","id":172371926,"user":{"login":"darkomenx","id":16452686,"avatar_url":"https://avatars.githubusercontent.com/u/16452686?v=3","gravatar_id":"","url":"https://api.github.com/users/darkomenx","html_url":"https://github.com/darkomenx","followers_url":"https://api.github.com/users/darkomenx/followers","following_url":"https://api.github.com/users/darkomenx/following{/other_user}","gists_url":"https://api.github.com/users/darkomenx/gists{/gist_id}","starred_url":"https://api.github.com/users/darkomenx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkomenx/subscriptions","organizations_url":"https://api.github.com/users/darkomenx/orgs","repos_url":"https://api.github.com/users/darkomenx/repos","events_url":"https://api.github.com/users/darkomenx/events{/privacy}","received_events_url":"https://api.github.com/users/darkomenx/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T19:59:35Z","updated_at":"2016-01-17T19:59:35Z","body":"hi @sethvargo \r\n\r\nFinally, I have found my problem. I erased always the VM in virtualBox directory and never in the .Vagrant boxes directory on windows. Indeed All build run correctly but vagrant up loaded only the older box created. In this context i couldn't see any change of my packer project.\r\n"}}