Giter Club home page Giter Club logo

Comments (9)

marcinbojko avatar marcinbojko commented on June 6, 2024 1

As mentioned in name of repository - this is Generation 2 repo. Gen 1 is not tested nor supported.

from hv-packer.

marcinbojko avatar marcinbojko commented on June 6, 2024

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.

amitchettri avatar amitchettri commented on June 6, 2024

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.

marcinbojko avatar marcinbojko commented on June 6, 2024

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.

amitchettri avatar amitchettri commented on June 6, 2024

Ok thanks for pointing out to that. but now how can we get this resolve. any possible solution?

from hv-packer.

marcinbojko avatar marcinbojko commented on June 6, 2024

Yes, you need to provide DHCP or set VM to static IP during deployment.

from hv-packer.

amitchettri avatar amitchettri commented on June 6, 2024

@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?

image

from hv-packer.

marcinbojko avatar marcinbojko commented on June 6, 2024

@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.

amitchettri avatar amitchettri commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.