So it just never boots I guess?

Here's the output of it just sitting there:
https://www.dropbox.com/s/d4iwviljt6div5d/packer.png?dl=0

The "Spurious NAK on isa0060/serio2" message appears when I press keys to
release keyboard/mouse input from the VM, so that seems to be unhelpful and
unrelated.

Not quite sure what to look at next...



On Thu, Jul 13, 2017 at 11:35 AM, Nicholas Bayle <
[email protected]> wrote:

> OK, I think I finally get it. I'll need a base image on each platform and
> packer will just run chef-solo on each.
>
> I haven't turned headless off because this is in a vm without X11. I'll
> probably build a new vm with it so I can turn it on.
>
> Re: RDP, I've been trying to connect with the CoRD RDP client on MacOS
> using whatever port packer displays. The connection just times out. There
> are no firewall rules active on the vm running packer. Not entirely sure
> what's going on there.
>
> When I get a non-headless version up, I'll let you know what I find.
>
> Thanks.
>
>
>
>
> On Thu, Jul 13, 2017 at 3:50 AM, Rickard von Essen <
> [email protected]> wrote:
>
>> I would say Packer is the right tool for that use case, but it's
>> important to understand that it doesn't take one source image and
>> convert it to multiple outputs. Instead it takes one source per
>> platform and do the same manipulations on each of the.
>>
>> Why don't you just enable head? (headless: false)
>> And can you describe how you try to connect with VRDP?
>>
>> On 12 July 2017 at 19:51, 'Nicholas Bayle' via Packer
>> <[email protected]> wrote:
>> > Well, let me see if I'm even using the right tool, before we head down
>> the
>> > rabbit hole.
>> >
>> > My goal is to generate mostly identical images in various formats (ovf,
>> ami,
>> > vhd, etc), customized using chef-solo. I'd like to start with a nicely
>> pared
>> > down ubuntu image. My original plan was to simply do this in vagrant and
>> > then convert the resulting ovf to the varying platforms. Then I saw
>> someone
>> > mention that packer might be a better tool.
>> >
>> > Am I remotely on the right path?
>> >
>> > SSH works when the ovf is booted by vagrant alone, so I assume that
>> > networking is fine. I cannot get vrdp to work at all to monitor the boot
>> > process with packer though.
>> >
>> > Meanwhile, here's the template, I never make it to the provisioner:
>> > {
>> >   "variables": {
>> >     "home": "{{env `HOME`}}"
>> >   },
>> >   "builders": [{
>> >     "type": "virtualbox-ovf",
>> >     "source_path": "{{user
>> > `home`}}/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/20170705.0.0
>> /virtualbox/box.ovf",
>> >     "headless": "true",
>> >     "boot_wait": "10s",
>> >     "ssh_username": "ubuntu",
>> >     "ssh_password": "48a16ff5a87dbd49b28864f6",
>> >     "ssh_wait_timeout": "10m",
>> >     "shutdown_command": "echo 'vagrant' | sudo -S shutdown -h 0",
>> >     "vrdp_bind_address": "0.0.0.0"
>> >   }],
>> >   "provisioners": [{
>> >     "type": "chef-solo",
>> >     "cookbook_paths": ["cookbooks"]
>> >   }],
>> >   "post-processors": [{
>> >     "type": "vagrant",
>> >     "keep_input_artifact": true,
>> >     "output": "box/akm_4.5.3.box"
>> >   }]
>> > }
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Jul 11, 2017 at 9:14 PM, Rickard von Essen
>> > <[email protected]> wrote:
>> >>
>> >> Packer doesn't do anything with your guest, so it doesn't (need) know
>> >> anything about NIC naming.
>> >>
>> >> If you post your template, scripts, and kickstart etc we can help you
>> >> troubleshoot. Have you logged into the console of the VM and check
>> what it's
>> >> doing and troubleshooted the network from the guest side?
>> >>
>> >> On Jul 12, 2017 01:26, "'Nicholas' via Packer"
>> >> <[email protected]> wrote:
>> >>
>> >> Does packer support "predictable" network interface names (systemd)?
>> >>
>> >> I'm trying to use the vagrant ubuntu/xenial64 box as my source ovf.
>> Works
>> >> fine in vagrant, but ssh is never reachable in packer.
>> >>
>> >> 2017/07/11 10:56:04 packer: 2017/07/11 10:56:04 [DEBUG] TCP connection
>> to
>> >> SSH ip/port failed: dial tcp 127.0.0.1:2875: getsockopt: connection
>> refused
>> >>
>> >> packer.json:
>> >> {
>> >>   "variables": {
>> >>     "home": "{{env `HOME`}}"
>> >>   },
>> >>   "builders": [{
>> >>     "type": "virtualbox-ovf",
>> >>     "source_path": "{{user
>> >> `home`}}/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/20170705.0.0
>> /virtualbox/box.ovf",
>> >>     "headless": "true",
>> >>     "boot_wait": "10s",
>> >>     "ssh_username": "ubuntu",
>> >>     "ssh_password": "48a16ff5a87dbd49b28864f6",
>> >>     "ssh_wait_timeout": "10m",
>> >>     "shutdown_command": "echo 'vagrant' | sudo -S shutdown -h 0",
>> >>     "vrdp_bind_address": "0.0.0.0"
>> >>   }],
>> >>   "provisioners": [{
>> >>     "type": "chef-solo",
>> >>     "cookbook_paths": ["cookbooks"]
>> >>   }],
>> >>   "post-processors": [{
>> >>     "type": "vagrant",
>> >>     "keep_input_artifact": true,
>> >>     "output": "box/akm_4.5.3.box"
>> >>   }]
>> >> }
>> >>
>> >> Packer output:
>> >> nicholas@pickle:~/dev/chef-akm$ packer build packer.json
>> >> virtualbox-ovf output will be in this color.
>> >>
>> >> ==> virtualbox-ovf: Downloading or copying Guest additions
>> >>     virtualbox-ovf: Downloading or copying:
>> >> file:///usr/share/virtualbox/VBoxGuestAdditions.iso
>> >> ==> virtualbox-ovf: Downloading or copying OVF/OVA
>> >>     virtualbox-ovf: Downloading or copying:
>> >> file:///home/nicholas/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/
>> 20170705.0.0/virtualbox/box.ovf
>> >> ==> virtualbox-ovf: Importing VM:
>> >> /home/nicholas/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/
>> 20170705.0.0/virtualbox/box.ovf
>> >> ==> virtualbox-ovf: Creating forwarded port mapping for communicator
>> (SSH,
>> >> WinRM, etc) (host port 2363)
>> >> ==> virtualbox-ovf: Starting the virtual machine...
>> >>     virtualbox-ovf: The VM will be run headless, without a GUI. If you
>> >> want to
>> >>     virtualbox-ovf: view the screen of the VM, connect via VRDP
>> without a
>> >> password to
>> >>     virtualbox-ovf: rdp://0.0.0.0:5924
>> >> ==> virtualbox-ovf: Waiting 1m0s for boot...
>> >> ==> virtualbox-ovf: Typing the boot command...
>> >> ==> virtualbox-ovf: Waiting for SSH to become available...
>> >> ==> virtualbox-ovf: Timeout waiting for SSH.
>> >> ==> virtualbox-ovf: Unregistering and deleting imported VM...
>> >> ==> virtualbox-ovf: Deleting output directory...
>> >> Build 'virtualbox-ovf' errored: Timeout waiting for SSH.
>> >>
>> >> ==> Some builds didn't complete successfully and had errors:
>> >> --> virtualbox-ovf: Timeout waiting for SSH.
>> >>
>> >> ==> Builds finished but no artifacts were created.
>> >>
>> >>
>> >> Thanks,
>> >> Nick
>> >>
>> >> --
>> >> 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/ad0dc855-d6ee-
>> 4953-abbf-8f1834898c33%40googlegroups.com.
>> >> 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-w8rJKp
>> xfnPEienyJ6sea2ZQZ1JB_g-DXtwR7uvHBcZg%40mail.gmail.com.
>> >>
>> >> 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/CAGzi4%3D6M8qX
>> PBzoqu5SZxvQEJYnNNke9W8J5VyhAyXGYt540jg%40mail.gmail.com.
>> >
>> > 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/CALz9Rt9UXxYYUE%3DQyKPvcyAbeJ7fzWf427-ayGhLH
>> h36jZ4Qcg%40mail.gmail.com.
>> 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/CAGzi4%3D6WTve0aQP4hFV%3DXshFDmh6teOQCd2Qo2ONovAAhc8t7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to