Attach the output of the packer build. And be sure you have destroyed the vagrant machine (vagrant destroy -f) before starting it so you are sure you don't have an old.
What's your VirtualBox version? If you run vagrant ssh-config and check which port ssh is mapped to and then run: ssh -p <port> -l vagrant 127.0.0.1 cat .ssh/authorized_keys What's the output of that? On 15 November 2016 at 22:09, Kevin Clarke <[email protected]> wrote: > When I login with username/password after the login via `vagrant up` has > failed, I do not see a .ssh directory in the vagrant user's home directory > (though it is in the box's vmdk file before I run `vagrant up`, just not > with the insecure key). > > Kevin > > > On Tuesday, November 15, 2016 at 4:02:26 PM UTC-5, Kevin Clarke wrote: >> >> Hmm, I'm running: >> >> packer build --only=virtualbox-iso kakadu.json >> vagrant up virtualbox --provider=virtualbox >> >> I get a long list of "virtualbox: Warning: Authentication failure. >> Retrying..." and then it gives up. My other packer projects are building >> VMs that can be started though. >> >> Puzzled, >> Kevin >> >> >> >> On Tuesday, November 15, 2016 at 2:21:31 PM UTC-5, Rickard von Essen >> wrote: >>> >>> So which commands do you run and what's the output of them? From one >>> look it seems that everything is correct but I haven't had any computer to >>> test it on yet. >>> >>> On Nov 15, 2016 5:15 PM, "Kevin S. Clarke" <[email protected]> wrote: >>> >>> Hi Richard, >>> >>> https://github.com/ksclarke/packer-kakadu/tree/master/centos-6 >>> >>> This is my first time using Ansible. My previous Packer builds have used >>> Bash scripts. The Bash script builds are still working. I check the >>> contents of the Ansible provisioned /home/vagrant/.ssh/authorized_keys >>> in the last clean.sh and it looks okay to me there but perhaps I'm missing >>> something? >>> >>> Thanks, >>> Kevin >>> >>> >>> On Tue, Nov 15, 2016 at 12:27 AM, Rickard von Essen < >>> [email protected]> wrote: >>> >>>> Could you attach your template and scripts or link to a repo with them >>>> in? >>>> >>>> On Nov 15, 2016 01:02, "Kevin Clarke" <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I have a Packer (v. 0.11.0) build that outputs a VirtualBox (v. >>>>> 5.0.24_Ubuntu >>>>> r108355) VM that I then want Packer to make Vagrant (v 1.8.7) >>>>> friendly. I have my Vagrant post-processor configured to leave the >>>>> VirtualBox working files: >>>>> >>>>> "post-processors": [ >>>>> { >>>>> "output": "builds/{{.Provider}}-centos6.box", >>>>> "type": "vagrant", >>>>> "keep_input_artifact": true >>>>> } >>>>> ] >>>>> >>>>> I'm wanting to use the insecure SSH key but when I try to `vagrant up` >>>>> on the finished product the key authentication fails. Looking at the >>>>> ~/.ssh/authorized_keys files I see they are different between the vmdk >>>>> that's bundled up in the final .box versus the vmdk working file. The >>>>> working files vmdk's authorized_keys file has the public key that I've >>>>> downloaded and configured as a part of my provisioning, but after the >>>>> Vagrant post-processor runs, the key in authorized_keys has been changed. >>>>> I've tried setting the config.ssh.private_key_path in my Vagrantfile to my >>>>> personal private key and the private key at >>>>> ~/.vagrant.d/insecure_private_key >>>>> but neither seems to correspond to key in the vagrant output (or at least >>>>> I >>>>> get an authentication failure when I try to vagrant up). >>>>> >>>>> I want to use the insecure SSH in the vagrant box but I don't see an >>>>> option in the vagrant post-processor to not do whatever it's doing to >>>>> rewrite the value in the authorized_keys file. Any tips? >>>>> >>>>> Thanks, >>>>> Kevin >>>>> >>>>> -- >>>>> 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/267c96fe-4ed3- >>>>> 4a70-8549-a7bdd71e7a78%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/packer-tool/267c96fe-4ed3-4a70-8549-a7bdd71e7a78%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/ms >>>> gid/packer-tool/CALz9Rt-bnYp1XQgdRVNMwvABmXBygizFO_V0NMDz% >>>> 3DTfJREH1hQ%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt-bnYp1XQgdRVNMwvABmXBygizFO_V0NMDz%3DTfJREH1hQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> "There are two kinds of people in this world: those who believe there >>> are two kinds of people in this world and those who know better." >>> >>> -- >>> 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/ms >>> gid/packer-tool/CAE6YT8R4nEX1G7O-guo-RDmUaCOCdN1ZAsRCgU_u8s4 >>> bQ9OrDQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/packer-tool/CAE6YT8R4nEX1G7O-guo-RDmUaCOCdN1ZAsRCgU_u8s4bQ9OrDQ%40mail.gmail.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/9b06c8b2-7dec-4d6b-9088-adc42f3da649%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/9b06c8b2-7dec-4d6b-9088-adc42f3da649%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/CALz9Rt8V%3DJ-wy48S%2BmJr-BxLFGNhcVCM8nsiQ6Ef269eeBApzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
