After packer build ubuntu.json you first need to do: vagrant box add my-ubuntu <path to output .box from packer build>
Then you can do: vagrant up But you need to change it so it reference "my-ubuntu" in config.vm.box. On Wed, 22 Aug 2018 at 18:34, Adam Dallis <[email protected]> wrote: > Hi, > thanks for your reply. > I have uploaded my code to github here is the link > > https://github.com/adamdallis/Packer-ansible-ubuntu18.04VM > > I execute > > packer build ubuntu.json > > and during the setup i can see that ansible changed something see > ansibleresult.png. > > then i do vagrant up > > then i ssh into the box > > and see vimnotfound.png > > > I appreciate your help > Adam > > > On Wednesday, 22 August 2018 16:29:48 UTC+1, Rickard von Essen wrote: >> >> Most likely there is a flaw in your workflow. Show us the template you >> are building and exactly which commands you run and what you do to inspect >> the result. >> >> On Wed, 22 Aug 2018 at 17:26, Adam Dallis <[email protected]> wrote: >> >>> Hi all, >>> >>> i am fairly new to the world of packer and ansible, I have created a >>> template that installs fine I can see in the console that ansible-local has >>> made changes but when I ssh into the box the software is missing that >>> should have been installed by ansible. >>> >>> Any advice would be appreciated. >>> >>> >>> Regards, >>> Adam >>> >>> -- >>> This mailing list is governed under the HashiCorp Community Guidelines - >>> https://www.hashicorp.com/community-guidelines.html. Behavior in >>> violation of those guidelines may result in your removal from this mailing >>> list. >>> >>> GitHub Issues: https://github.com/mitchellh/packer/issues >>> IRC: #packer-tool on Freenode >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Packer" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/packer-tool/fe206438-8b3b-4851-bdbe-111dc1872a47%40googlegroups.com >>> <https://groups.google.com/d/msgid/packer-tool/fe206438-8b3b-4851-bdbe-111dc1872a47%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/bf4f68f0-c52d-4991-bb45-6f73b5335cfe%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/bf4f68f0-c52d-4991-bb45-6f73b5335cfe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-re%2Bie96ntr%2BsLCL7r%2BEt1ZnBGoUXw14qO%2BAENcMa0ww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
