Git Product home page Git Product logo

Comments (16)

pvandervelde avatar pvandervelde commented on May 18, 2024

@v-vlshch Anybody have any idea on what needs to be done to move this forward? I unfortunately have little time and no experience with Go :( but it would be awesome if we could get this code extended to work with different OSes.

from packer-hyperv.

uchagani avatar uchagani commented on May 18, 2024

Couldn't you just fork this repo and add the other Windows versions yourself?

from packer-hyperv.

pvandervelde avatar pvandervelde commented on May 18, 2024

If I had time then yes I could do that, but it would be nicer if all that code was in one spot and I was hoping that there was some momentum behind this plugin. On the other hand when I have time to play with this more I might be able to add the additional Windows versions etc.

from packer-hyperv.

vladimir-shcherbakov avatar vladimir-shcherbakov commented on May 18, 2024

@eduardkoller Are we going to move this forward?

from packer-hyperv.

kouk avatar kouk commented on May 18, 2024

@v-vlshch @eduardkoller yes, please tell, is this going to happen anytime soon? I can help with testing and perhaps even bug fixes.

from packer-hyperv.

petro-rudenko avatar petro-rudenko commented on May 18, 2024

Is there a way to build a linux image on hyper-v with this plugin?

from packer-hyperv.

vladimir-shcherbakov avatar vladimir-shcherbakov commented on May 18, 2024

Unfortunately, the plugin targets restricted by Windows Server 2012.

from packer-hyperv.

pbolduc avatar pbolduc commented on May 18, 2024

I have been working on a fork that supports an expanded OS selection. Linux is on backlog but I am currently focusing on supporting all supported version of Windows OS first.

In the other providers, like Virtual Box, they are able to send key strokes to the console to instruct the linux installer to use a install template. Is there another way to do this? I do not think we can send key strokes to the Hyper-V console of a VM.

from packer-hyperv.

uchagani avatar uchagani commented on May 18, 2024

What do you mean by "install template"
On Dec 12, 2014 5:37 PM, "Phil Bolduc" [email protected] wrote:

I have been working on a fork https://github.com/pbolduc/packer-hyperv
that supports an expanded OS selection. Linux is on backlog but I am
currently focusing on supporting all supported version of Windows OS first.

In the other providers, like Virtual Box, they are able to send key
strokes to the console to instruct the linux installer to use a install
template. Is there another way to do this? I do not think we can send key
strokes to the Hyper-V console of a VM.


Reply to this email directly or view it on GitHub
#10 (comment)
.

from packer-hyperv.

pbolduc avatar pbolduc commented on May 18, 2024

See 'Boot Command' in VIRTUALBOX BUILDER (FROM AN ISO)

The boot_command configuration is very important: it specifies the keys to type when the virtual machine is first booted in order to start the OS installer. This command is typed after boot_wait, which gives the virtual machine some time to actually load the ISO.

from packer-hyperv.

pbolduc avatar pbolduc commented on May 18, 2024

By install template, I think I meant a config file for the linux environment. However, I just read How do I create a completely unattended install of Ubuntu? and it appears you do not need to have to send any key strokes. I would assume something similar can be done for other linix distros, ie CentOS, etc

from packer-hyperv.

andyburton avatar andyburton commented on May 18, 2024

For Debian you use preseed to specify the options during install - https://wiki.debian.org/DebianInstaller/Preseed e.g. https://github.com/box-cutter/debian-vm/blob/master/http/preseed.cfg

Currently we use Packer to build virualbox/vmware/aws images using the following, but we do not have the ability to use packer for hyper-v as there is no plugin to support the build commands required -

        "boot_command": [
            "<esc><wait>",
            "install",
            " auto",
            " url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
            " debian-installer=en_US",
            " locale=en_US",
            " keymap=us",
            " netcfg/get_hostname=vagrant",
            " netcfg/get_domain=vm ",
            "<enter>"
        ],

+1 for a hyper-v packer plugin that supports Debian/Ubuntu :)

from packer-hyperv.

spuder avatar spuder commented on May 18, 2024

+1 Very eagerly looking forward to linux support

from packer-hyperv.

marcofranssen avatar marcofranssen commented on May 18, 2024

+1 would love to have the hyperv builder so I can run my VM's on hyper-v and also be able to deploy them to azure.

from packer-hyperv.

marcofranssen avatar marcofranssen commented on May 18, 2024

Would also be awesome to have some documentation on the packer website on how to use the hyper-v stuff with packer. Could someone experienced with the hyper-v stuff add some docs on the packer website, this also might give a boost to people interesting to further develop the hyper-v support. Probably few people know of the existence of packer + hyper-v. A pull request here should make the docs appear on the packer website. https://github.com/mitchellh/packer/tree/master/website

from packer-hyperv.

taliesins avatar taliesins commented on May 18, 2024

See: hashicorp/packer#2576 for full support of other operating system with Hyper-V

from packer-hyperv.

Related Issues (20)

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.