Comments (9)
As mentioned in name of repository - this is Generation 2 repo. Gen 1 is not tested nor supported.
from hv-packer.
Hi.
at first glance it looks like you have problem with network or firewall ports.
Switch packer_log variable to 1 and paste log here
from hv-packer.
Hi,
Here is the packer_log attached.
packerlog.txt
NOTE: i am new to Packer and trying to learn from your repo, so if I am doing anything wrong kindly let me know
from hv-packer.
Here you have it:
2021/05/05 14:46:28 packer.exe plugin: Found available port: 8831 on IP: 0.0.0.0
Your packer is not getting an IP for VM. To be able to reach kickstart file your VM needs to reach HyperV hosts's IP (in your case):
192.168.6.101
from hv-packer.
Ok thanks for pointing out to that. but now how can we get this resolve. any possible solution?
from hv-packer.
Yes, you need to provide DHCP or set VM to static IP during deployment.
from hv-packer.
@marcinbojko, it will be very nice of you. if you can point me towards how can i do that? As i mention i lack knowledge as how can i do this.
IP is automatically determined by packer so far.
if u can let me know if there is any any changes that i can do?
from hv-packer.
@amitchettri - this has nothing to do with packer itself. You VM switch you've created should allow you to access host's IP.
as you can see Host has IP, VM doesn't which means network doesn't work as it should.
There is nothing I could help you with, as this depends on your infrastructure settings.
Long story short: make sure your switch is working (just run test v from iso file) and you're able to reach host's ports as mentioned in doc.
Unti that packer won't work.
from hv-packer.
Hi @marcinbojko,
Thanks for the details. Now i am able to create the image. and its working properly. but the only issue i have now is that, though i have mention generation to be 1 and changed the boot command, the image created is of type VHDX rather then VHD.
Can you guide me if i am missing anything like any specific attribute apart from generation: 1
WHAT I GET
2021/05/06 01:25:44 ui: ==> hyperv-iso: Compacting disks...
2021/05/06 01:25:49 ui: hyperv-iso: Compacting disk: packer-centos79-g2.vhdx
WHAT I WANT
2021/05/06 01:25:44 ui: ==> hyperv-iso: Compacting disks...
2021/05/06 01:25:49 ui: hyperv-iso: Compacting disk: packer-centos79-g2.vhd
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
- Provisioning step had errors - Ubuntu 22.04 - Windows 11 Hyper-v HOT 4
- centos 7 and 8 build error HOT 1
- centos 7 build error HOT 8
- 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.