Open mfaridi1394 opened 3 days ago
The network
configuration seems to be false.
You have network
mentioned twice
The
network
configuration seems to be false.You have
network
mentioned twice
I change it to these `#cloud-config autoinstall: version: 1 locale: en_US keyboard: layout: us ssh: install-server: true allow-pw: true packages:
but still I see these errors after build failed.
==> image.qemu.image: Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey password], no supported methods remain
==> image.qemu.image: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey password], no supported methods remain
`It will take time to build and image so the messages you see are normal. it takes about 20 - 40 minutes to build an image. If packer fails it will provide a complete log of why it failed and it will return you back to the terminal shell.
It will take time to build and image so the messages you see are normal. it takes about 20 - 40 minutes to build an image. If packer fails it will provide a complete log of why it failed and it will return you back to the terminal shell.
I use your code to build this image I do not change username and password everything is like your code , only I add network config and I see those errors I posted in three comments above, I think config for network setting is wrong or bad place. without network config building image start after 5 min and it build Ubuntu image quickly.
You can do this:
I have not been able to figure out where the problem lies but you need to do that research. I will keep this issue open and post something here if I find a solution
You can do this:
1. Build the initial image without network settings 2. Use the image built from Step 1 to add the files for network configuration in the image and then start using this image.
I have not been able to figure out where the problem lies but you need to do that research. I will keep this issue open and post something here if I find a solution
I want make more than 50 ubuntu image by this code and this so hard and get time I config network on these VMs manually
I want add network config to build and right now user-data is like this
but when I run make command for build ubuntu 22.04, I see these and building is stopped