[packer] Re: Preseed.cfg file for ubuntu18.04
Hello Benjamin, Thanks a lot. Your suggestion fixed my issue. Thanks once again. :) On Wednesday, July 24, 2019 at 8:05:55 PM UTC+5:30, Benjamin Lu wrote: > > https://www.packer.io/docs/provisioners/shell.html > > > > On Monday, July 22, 2019 at 4:28:52 AM UTC-7, Tekchand Dagar wrote: >> >> Hello Team, >> >> Currently we have OVA of ubuntu16.04 which is created by packer with our >> required software. But now we want to create OVA of Ubuntu18.04 because LTS >> will be end for Ubuntu16.04 after some time. But when i am trying to create >> OVA using packer for ubuntu18.04 its seems that preseed.cfg is not working. >> I am using same preseed.cfg file which is used by Ubuntu16.04. >> >> Can you please confirm that same preseed.cfg will work or we have >> different preseed.cfg for ubuntu18.04? If we need to use different >> preseed.cfg can you please provide me the link for that file? >> >> Thanks. >> > -- 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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8ff55d68-34ee-44aa-9b13-bba2b2fceafc%40googlegroups.com.
[packer] Re: Preseed.cfg file for ubuntu18.04
https://www.packer.io/docs/provisioners/shell.html On Monday, July 22, 2019 at 4:28:52 AM UTC-7, Tekchand Dagar wrote: > > Hello Team, > > Currently we have OVA of ubuntu16.04 which is created by packer with our > required software. But now we want to create OVA of Ubuntu18.04 because LTS > will be end for Ubuntu16.04 after some time. But when i am trying to create > OVA using packer for ubuntu18.04 its seems that preseed.cfg is not working. > I am using same preseed.cfg file which is used by Ubuntu16.04. > > Can you please confirm that same preseed.cfg will work or we have > different preseed.cfg for ubuntu18.04? If we need to use different > preseed.cfg can you please provide me the link for that file? > > Thanks. > -- 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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8c45cbda-3a94-4eae-a4a4-4f6bec0ee569%40googlegroups.com.
[packer] Re: Preseed.cfg file for ubuntu18.04
in the provisioner, you can check out the chef.github.io/bento's preseed but you need "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'", in the provisioners part so that it can run as root, because provisioners are run in root. On Monday, July 22, 2019 at 4:28:52 AM UTC-7, Tekchand Dagar wrote: > > Hello Team, > > Currently we have OVA of ubuntu16.04 which is created by packer with our > required software. But now we want to create OVA of Ubuntu18.04 because LTS > will be end for Ubuntu16.04 after some time. But when i am trying to create > OVA using packer for ubuntu18.04 its seems that preseed.cfg is not working. > I am using same preseed.cfg file which is used by Ubuntu16.04. > > Can you please confirm that same preseed.cfg will work or we have > different preseed.cfg for ubuntu18.04? If we need to use different > preseed.cfg can you please provide me the link for that file? > > Thanks. > -- 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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/7a072b1c-a9e2-49ac-a00c-4aa34cf390ff%40googlegroups.com.
[packer] Re: Preseed.cfg file for ubuntu18.04
Hello Benjamin, Thank you for your response. I replaced my ISO with suggested by you. Now VM is registered as well as SSH connection is setup. But provisioner part is not working and showing the below error: ``` ==> virtualbox-iso: Typing the boot command... ==> virtualbox-iso: Using ssh communicator to connect: 127.0.0.1 ==> virtualbox-iso: Waiting for SSH to become available... ==> virtualbox-iso: Connected to SSH! ==> virtualbox-iso: Uploading VirtualBox version info (5.2.26) ==> virtualbox-iso: Uploading VirtualBox guest additions ISO... ==> virtualbox-iso: Provisioning with shell script: /tmp/packer-shell298352504 virtualbox-iso: sudo: no tty present and no askpass program specified ==> virtualbox-iso: Deregistering and deleting VM... ``` I have used the below option as well in my builder: ``` "ssh_pty" : "true" ``` But it stuck at provisioner part. Can you please help me. Thanks. On Tuesday, July 23, 2019 at 9:05:12 PM UTC+5:30, Benjamin Lu wrote: > > yeah, so the problem is the cd, don't use the live cd from ubuntu, but use > this instead > > > http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.2-server-amd64.iso > > > On Monday, July 22, 2019 at 4:28:52 AM UTC-7, Tekchand Dagar wrote: >> >> Hello Team, >> >> Currently we have OVA of ubuntu16.04 which is created by packer with our >> required software. But now we want to create OVA of Ubuntu18.04 because LTS >> will be end for Ubuntu16.04 after some time. But when i am trying to create >> OVA using packer for ubuntu18.04 its seems that preseed.cfg is not working. >> I am using same preseed.cfg file which is used by Ubuntu16.04. >> >> Can you please confirm that same preseed.cfg will work or we have >> different preseed.cfg for ubuntu18.04? If we need to use different >> preseed.cfg can you please provide me the link for that file? >> >> Thanks. >> > -- 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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9add225d-4377-49c6-9aaf-e68fa7de6a0e%40googlegroups.com.
[packer] Re: Preseed.cfg file for ubuntu18.04
yeah, so the problem is the cd, don't use the live cd from ubuntu, but use this instead http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.2-server-amd64.iso On Monday, July 22, 2019 at 4:28:52 AM UTC-7, Tekchand Dagar wrote: > > Hello Team, > > Currently we have OVA of ubuntu16.04 which is created by packer with our > required software. But now we want to create OVA of Ubuntu18.04 because LTS > will be end for Ubuntu16.04 after some time. But when i am trying to create > OVA using packer for ubuntu18.04 its seems that preseed.cfg is not working. > I am using same preseed.cfg file which is used by Ubuntu16.04. > > Can you please confirm that same preseed.cfg will work or we have > different preseed.cfg for ubuntu18.04? If we need to use different > preseed.cfg can you please provide me the link for that file? > > Thanks. > -- 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 packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ff728e99-0d89-4523-a49b-37cd38629307%40googlegroups.com.