Re: [packer] 16031 Terminated sudo shutdown -r now

2019-08-05 Thread sasha.meltser
I am disabling IPv6 and running dracut to update kernel and need to reboot 
so VM don't boot with IPv6 enabled after kernel updated

On Monday, August 5, 2019 at 3:02:23 PM UTC-6, Rickard von Essen wrote:
>
> Is there any good reason why you need to reboot a GCE instance during 
> provisioning? 
>
> On Mon, Aug 5, 2019, 22:31 sasha.meltser  > wrote:
>
>> Thank you  for replying
>>
>> this is what i see in logs
>>
>> [1;32m==> googlecompute: Provisioning with shell script: 
>> /var/folders/2q/dmvlb7w13fnfh_xlwwrt2ytmgn/T/packer-shell683874453
>>
>> [1;31m==> googlecompute: /tmp/script_9664.sh: line 2: 16050 Terminated  
>> sudo reboot
>>
>> [1;32m==> googlecompute: Deleting instance...
>>
>> [0;32mgooglecompute: Instance has been deleted!
>>
>> [1;32m==> googlecompute: Deleting disk...
>>
>> [0;32mgooglecompute: Disk has been deleted!
>>
>> [1;31mBuild 'googlecompute' errored: Script exited with non-zero exit 
>> status: 143.Allowed exit codes are: [0]
>>
>>
>> and this is snippet from json
>>
>> "provisioners": [
>> {
>> "type": "shell",
>> "scripts": [
>> "./postscripts/common/disable-ipv6.sh"
>>]
>>   },
>> {
>> "type": "shell",
>> "inline": ["sudo reboot"],
>> "expect_disconnect": true
>> }, 
>> {
>> "type": "shell",
>> "scripts": [
>> "./postscripts/common/common.sh",
>>   "./postscripts/gui/gnome.sh"
>>]
>>   }
>>
>> its failing after reboot.
>>
>> On Monday, August 5, 2019 at 2:20:43 PM UTC-6, Rickard von Essen wrote:
>>>
>>> How does it fail? Please provide some more context. 
>>>
>>> On Mon, Aug 5, 2019, 20:06 sasha.meltser  wrote:
>>>
 I am trying to provision CIS CentOS 7 image and its failing when I do 
 basic reboot. Any advice please

 {
 "type": "shell",
 "inline": ["sudo shutdown -r now"],
 "expect_disconnect": true
 }, 

 -- 
 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 packe...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/packer-tool/b6312147-84f7-45de-8ffb-5a28f5836c4b%40googlegroups.com
  
 
 .

>>> -- 
>> 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 packe...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/cd54a1ae-16d6-48ca-9d94-7a02e3c6b1a4%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/62c63036-0c9d-4841-b390-fff7442212af%40googlegroups.com.


Re: [packer] 16031 Terminated sudo shutdown -r now

2019-08-05 Thread Rickard von Essen
Is there any good reason why you need to reboot a GCE instance during
provisioning?

On Mon, Aug 5, 2019, 22:31 sasha.meltser  wrote:

> Thank you  for replying
>
> this is what i see in logs
>
> [1;32m==> googlecompute: Provisioning with shell script:
> /var/folders/2q/dmvlb7w13fnfh_xlwwrt2ytmgn/T/packer-shell683874453
>
> [1;31m==> googlecompute: /tmp/script_9664.sh: line 2: 16050 Terminated
>   sudo reboot
>
> [1;32m==> googlecompute: Deleting instance...
>
> [0;32mgooglecompute: Instance has been deleted!
>
> [1;32m==> googlecompute: Deleting disk...
>
> [0;32mgooglecompute: Disk has been deleted!
>
> [1;31mBuild 'googlecompute' errored: Script exited with non-zero exit
> status: 143.Allowed exit codes are: [0]
>
>
> and this is snippet from json
>
> "provisioners": [
> {
> "type": "shell",
> "scripts": [
> "./postscripts/common/disable-ipv6.sh"
>]
>   },
> {
> "type": "shell",
> "inline": ["sudo reboot"],
> "expect_disconnect": true
> },
> {
> "type": "shell",
> "scripts": [
> "./postscripts/common/common.sh",
>   "./postscripts/gui/gnome.sh"
>]
>   }
>
> its failing after reboot.
>
> On Monday, August 5, 2019 at 2:20:43 PM UTC-6, Rickard von Essen wrote:
>>
>> How does it fail? Please provide some more context.
>>
>> On Mon, Aug 5, 2019, 20:06 sasha.meltser  wrote:
>>
>>> I am trying to provision CIS CentOS 7 image and its failing when I do
>>> basic reboot. Any advice please
>>>
>>> {
>>> "type": "shell",
>>> "inline": ["sudo shutdown -r now"],
>>> "expect_disconnect": true
>>> },
>>>
>>> --
>>> 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 packe...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/b6312147-84f7-45de-8ffb-5a28f5836c4b%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/cd54a1ae-16d6-48ca-9d94-7a02e3c6b1a4%40googlegroups.com
> 
> .
>

-- 
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/CALz9Rt8B11rCih-0upEpPhz-nPjmONxtm5uuiDa_R-9BfA9%2BHA%40mail.gmail.com.


Re: [packer] 16031 Terminated sudo shutdown -r now

2019-08-05 Thread sasha.meltser
Thank you  for replying

this is what i see in logs

[1;32m==> googlecompute: Provisioning with shell script: 
/var/folders/2q/dmvlb7w13fnfh_xlwwrt2ytmgn/T/packer-shell683874453

[1;31m==> googlecompute: /tmp/script_9664.sh: line 2: 16050 Terminated  
sudo reboot

[1;32m==> googlecompute: Deleting instance...

[0;32mgooglecompute: Instance has been deleted!

[1;32m==> googlecompute: Deleting disk...

[0;32mgooglecompute: Disk has been deleted!

[1;31mBuild 'googlecompute' errored: Script exited with non-zero exit 
status: 143.Allowed exit codes are: [0]


and this is snippet from json

"provisioners": [
{
"type": "shell",
"scripts": [
"./postscripts/common/disable-ipv6.sh"
   ]
  },
{
"type": "shell",
"inline": ["sudo reboot"],
"expect_disconnect": true
}, 
{
"type": "shell",
"scripts": [
"./postscripts/common/common.sh",
  "./postscripts/gui/gnome.sh"
   ]
  }

its failing after reboot.

On Monday, August 5, 2019 at 2:20:43 PM UTC-6, Rickard von Essen wrote:
>
> How does it fail? Please provide some more context. 
>
> On Mon, Aug 5, 2019, 20:06 sasha.meltser  > wrote:
>
>> I am trying to provision CIS CentOS 7 image and its failing when I do 
>> basic reboot. Any advice please
>>
>> {
>> "type": "shell",
>> "inline": ["sudo shutdown -r now"],
>> "expect_disconnect": true
>> }, 
>>
>> -- 
>> 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 packe...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/b6312147-84f7-45de-8ffb-5a28f5836c4b%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/cd54a1ae-16d6-48ca-9d94-7a02e3c6b1a4%40googlegroups.com.


Re: [packer] 16031 Terminated sudo shutdown -r now

2019-08-05 Thread Rickard von Essen
How does it fail? Please provide some more context.

On Mon, Aug 5, 2019, 20:06 sasha.meltser  wrote:

> I am trying to provision CIS CentOS 7 image and its failing when I do
> basic reboot. Any advice please
>
> {
> "type": "shell",
> "inline": ["sudo shutdown -r now"],
> "expect_disconnect": true
> },
>
> --
> 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/b6312147-84f7-45de-8ffb-5a28f5836c4b%40googlegroups.com
> 
> .
>

-- 
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/CALz9Rt9hHxo7bz__cyV4a-E7oev7%2BVjKCn91xwDYTepcq01pOQ%40mail.gmail.com.


[packer] Re: if then statement inside of inline shell?

2019-08-05 Thread Vritual Packer
I know something like this works:

" if [ ${SOMETHING} -eq 1 ]; then do this; fi"

I just can't figure out how to get it formatted for multiple lines so it 
looks nice/more readable.

On Monday, August 5, 2019 at 12:08:07 PM UTC-5, Benjamin Lu wrote:
>
> I don't think you can, the best way to use scripts on its own file and you 
> can do if statements. 
>
> "scripts": [
> "scripts/setup.sh",
> "scripts/update.sh",
> "scripts/packages.sh"
> ],
>
>
> On Monday, August 5, 2019 at 10:01:29 AM UTC-7, Vritual Packer wrote:
>
>> Spent quite a while googling this and can't find an example...
>>
>> What is the proper way to do a if then statement inside of an inline  
>> shell?
>>
>> example:
>> "type": "shell",
>> "inline" : [
>> "yum update -y"
>>  " if [ $VAR -eq "something" ]; then
>>do this
>>and this
>>and finally this
>>   else
>>   do something else
>> fi",
>>
>> Thank you for any help...
>>
>>
>>

-- 
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/ff3acf8d-2d6e-4e09-835f-e3ae3d54dad8%40googlegroups.com.


[packer] 16031 Terminated sudo shutdown -r now

2019-08-05 Thread sasha.meltser
I am trying to provision CIS CentOS 7 image and its failing when I do basic 
reboot. Any advice please

{
"type": "shell",
"inline": ["sudo shutdown -r now"],
"expect_disconnect": true
}, 

-- 
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/b6312147-84f7-45de-8ffb-5a28f5836c4b%40googlegroups.com.


[packer] Re: if then statement inside of inline shell?

2019-08-05 Thread Benjamin Lu
I don't think you can, the best way to use scripts on its own file and you 
can do if statements. 

"scripts": [
"scripts/setup.sh",
"scripts/update.sh",
"scripts/packages.sh"
],


On Monday, August 5, 2019 at 10:01:29 AM UTC-7, Vritual Packer wrote:

> Spent quite a while googling this and can't find an example...
>
> What is the proper way to do a if then statement inside of an inline  
> shell?
>
> example:
> "type": "shell",
> "inline" : [
> "yum update -y"
>  " if [ $VAR -eq "something" ]; then
>do this
>and this
>and finally this
>   else
>   do something else
> fi",
>
> Thank you for any help...
>
>
>

-- 
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/66ccce05-98ed-49a1-9cdd-24fc13a876e2%40googlegroups.com.


[packer] if then statement inside of inline shell?

2019-08-05 Thread Vritual Packer
Spent quite a while googling this and can't find an example...

What is the proper way to do a if then statement inside of an inline  shell?

example:
"type": "shell",
"inline" : [
"yum update -y"
 " if [ $VAR -eq "something" ]; then
   do this
   and this
   and finally this
  else
  do something else
fi",

Thank you for any help...


-- 
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/8f2976e2-c912-4af2-842d-15a6739e5a09%40googlegroups.com.


Re: [packer] Boots into UEFI interactive Shell

2019-08-05 Thread Alvaro Miranda Aguilera
hello

without using packer, how do you create a VM in virtualbox that does what
you need ?

what OS you use for the VM ?

those settings may include legacy bios or UEFI.

On Thu, Jul 18, 2019 at 4:53 PM StateFarm_94  wrote:

> I have this code that when I run the packer command on my .json, the VM
> will boot up but will go into the UEFI interactive shell.
>
> Sample code is below:
>
> {
> "variables": {
> },
> "builders": [
> {
> "type": "virtualbox-iso",
> "guest_os_type": "Other_64",
> "http_directory": "http",
> "iso_url": "--the location of my .iso file",
> "iso_checksum_type": "md5",
> "iso_checksum": "the .iso's checksum",
> "vm_name": "test_VM",
> "vboxmanage": [
> ["modifyvm", "{{.Name}}", "--firmware", "efi"],
> ["modifyvm", "{{.Name}}", "--ioapic", "on"],
> ["modifyvm", "{{.Name}}", "--rtcuseutc", "on"],
> ["modifyvm", "{{.Name}}", "--memory", "4096"],
> ["modifyvm", "{{.Name}}", "--mouse", "usbtablet"],
> ["modifyvm", "{{.Name}}", "--vram", "10"],
> ["modifyvm", "{{.Name}}", "--cpus", "2"],
> ["hostonlyif", "ipconfig", "vboxnet0", "--ip", "172.17.42.108"],
> ["modifyvm", "{{.Name}}", "--hostonlyadapter1", "vboxnet0"],
> ["modifyvm", "{{.Name}}", "--nic1", "hostonly"],
> ["modifyvm", "{{.Name}}", "--nictype1", "82540EM"],
> ["modifyvm", "{{.Name}}", "--cableconnected1", "on"],
> ["storagectl", "{{.Name}}", "--name", "SATA Controller", "--add",
> "sata"],
> ["createmedium", "disk", "--filename", "{{.Name}}.vdi", "--size",
> "512000", "--format", "VDI"],
> ["storageattach", "{{.Name}}", "--storagectl", "SATA Controller",
> "--medium", "{{.Name}}.vdi", "--port", "1", "--type", "hdd"],
> ["modifyvm", "{{.Name}}", "--boot1", "dvd", "--boot2", "disk",
> "--boot3", "none", "--boot4", "none"],
> ["showvminfo", "{{.Name}}"]
> ],
> "headless": false,
> "ssh_username": "root",
> "ssh_password": "root",
> "ssh_wait_timeout": "1s",
> "boot_wait": "5s",
> "boot_command": [
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> "",
> ""
> ],
> "shutdown_command": ""
> }]
> }
>
> --
> 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/7a34b338-5bfc-4caf-a72f-97cf1ece5b55%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Alvaro

-- 
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/CAHqq0exWsPZ-Mw7NdwwKpvE%3DQQnB2g2ACqznhmqzSRTkTgtDZQ%40mail.gmail.com.


Re: [packer] Packer automatically create WIM

2019-08-05 Thread Alvaro Miranda Aguilera
whats a WIM ?

On Tue, Jul 30, 2019 at 11:12 AM Erik  wrote:

> Hi,
> As you can see in my headline, I'm looking for a way to directly create a
> WIM using Packer, since this will be added automatically to a customized
> ISO later on.
>
> I would be happy about ideas and suggestions.
>
> Thank you in advance
>
> Erik
>
> --
> 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/e69259e4-57c6-450c-beaf-33616adc8d21%40googlegroups.com
> 
> .
>


-- 
Alvaro

-- 
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/CAHqq0ewmsHPyauOaJxNgTvyrwDzwg9dQ5f_rMTBRAS5__y-RyA%40mail.gmail.com.


Re: [packer] Unable to use AMI created by Packer

2019-08-05 Thread Alvaro Miranda Aguilera
packer is building the VM just fine.


you are running bubectl on your laptop, seems you need to check the
configuration of that side

On Mon, Aug 5, 2019 at 5:47 PM Mahesh Kumar  wrote:

> Hi,
>
> I could able to create an AMI with the help of Packer successfully. I
> could able to create a nodegroup in AWS EKS cluster with this AMI without
> any issue.
> But when I deployed a deployment inside that nodegroup and try to go
> inside the pod below error is thrown.
>
> mahesh@mahesh-Latitude-5591:~/.ssh$ kubectl exec -it
> test-7987df8cb5-fj8vg -c test-gain bash
> Error from server: error dialing backend: x509: cannot validate
> certificate for  because it doesn't contain any IP SANs
>
> I have attached the json used to create the nodegroup and custom AMI as
> well.
>
> Is there anything should be done in Packer build instructions?
>
> Thanks,
> Mahesh
>
> --
> 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/b577d525-695e-495e-9d1e-4b1f05d9fe52%40googlegroups.com
> 
> .
>


-- 
Alvaro

-- 
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/CAHqq0ewgF7MuGP7VNPH4cnm3ANB8mvQdhZ%3DEDE8F0LNHSn7srQ%40mail.gmail.com.


[packer] Unable to use AMI created by Packer

2019-08-05 Thread Mahesh Kumar
Hi,

I could able to create an AMI with the help of Packer successfully. I could 
able to create a nodegroup in AWS EKS cluster with this AMI without any 
issue.
But when I deployed a deployment inside that nodegroup and try to go inside 
the pod below error is thrown.

mahesh@mahesh-Latitude-5591:~/.ssh$ kubectl exec -it test-7987df8cb5-fj8vg 
-c test-gain bash
Error from server: error dialing backend: x509: cannot validate certificate 
for  because it doesn't contain any IP SANs

I have attached the json used to create the nodegroup and custom AMI as 
well.

Is there anything should be done in Packer build instructions?

Thanks,
Mahesh

-- 
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/b577d525-695e-495e-9d1e-4b1f05d9fe52%40googlegroups.com.


test.json
Description: application/json