Comments (4)
Update:
Made it work using a hack, the reason why it was failing is because after running the provision script it reboots the machine and the machine is assigned another IP upon boot and the IP previously used for SSH by packer doesn't work. I was able to login after the provisioning step and assign the IP in the netplan config and apply the changes. It completed the build but I think a better solution is definitely required.
from hv-packer.
Update 2:
The setup works without any hacks by removing the reboot command. @marcinbojko do you foresee any issues without reboot?
from hv-packer.
Please adjust DHCP settings in your environment. This has nothing to do with scripts or packer itself.
from hv-packer.
As DHCP doesn't necessarily mean that after reboot the machine will be given the same IP, this is a possible issue with packer and I have created an issue here. This issue is similar to the one mentioned here
from hv-packer.
Related Issues (16)
- Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop. HOT 8
- disk space HOT 2
- Confirmation on the use of Ansible Provisioner HOT 1
- Can't login HOT 22
- I fail to override variable values HOT 4
- I get a warning and it says that source code is not available HOT 2
- Ubuntu 22.04.1 Not able to Install HOT 12
- Can not SSH to VM and create a box for Vagrant - Using Packer with Ubuntu HOT 1
- packer not taking kickstart file HOT 2
- WS22 - Datacenter Edition - Incorrect Value HOT 2
- centos 7 and 8 build error HOT 1
- centos 7 build error HOT 8
- Template Fail to Boot HOT 9
- Support for Packer Windows Update Provisioner HOT 5
- ubuntu 20.04 LVM not created as per user-data HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hv-packer.