All Projects → dwickern → packer-post-processor-virtualbox-to-hyperv

dwickern / packer-post-processor-virtualbox-to-hyperv

Licence: Apache-2.0 license
Packer plugin to create Hyper-V vagrant boxes from VirtualBox artifacts

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to packer-post-processor-virtualbox-to-hyperv

packer-windows
Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
Stars: ✭ 1,116 (+6100%)
Mutual labels:  packer, virtualbox, hyper-v
packer-ubuntu-18.04
packer example - Ubuntu Server 18.04.5
Stars: ✭ 37 (+105.56%)
Mutual labels:  packer, virtualbox, hyper-v
Nixbox
NixOS Vagrant boxes [[email protected]]
Stars: ✭ 189 (+950%)
Mutual labels:  packer, virtualbox
Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (+1005.56%)
Mutual labels:  packer, virtualbox
Packer
Packer helpers and templates for Docker, IIS, SQL Server and Visual Studio on Windows and Ubuntu
Stars: ✭ 242 (+1244.44%)
Mutual labels:  packer, virtualbox
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (+38.89%)
Mutual labels:  packer, virtualbox
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+461.11%)
Mutual labels:  packer, virtualbox
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (+1138.89%)
Mutual labels:  packer, virtualbox
Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (+333.33%)
Mutual labels:  packer, virtualbox
local-hashicorp-stack
Local Hashicorp Stack for DevOps Development without Hypervisor or Cloud
Stars: ✭ 23 (+27.78%)
Mutual labels:  packer, virtualbox
packer-FreeBSD
Build a FreeBSD VM for Vagrant using packer
Stars: ✭ 23 (+27.78%)
Mutual labels:  packer, virtualbox
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (+422.22%)
Mutual labels:  packer, virtualbox
Packer Templates
Stars: ✭ 90 (+400%)
Mutual labels:  packer, virtualbox
Packertemplates
Packer Templates for building Windows Operating Systems
Stars: ✭ 148 (+722.22%)
Mutual labels:  packer, virtualbox
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (+350%)
Mutual labels:  packer, virtualbox
Packer Templates
Scripts and Templates used for generating Vagrant images
Stars: ✭ 219 (+1116.67%)
Mutual labels:  packer, virtualbox
yosild
Yosild is a single shell script that builds a full, minimal Linux distribution based on BusyBox.
Stars: ✭ 97 (+438.89%)
Mutual labels:  virtualbox, hyper-v
Packer For Vsphere And More
Stars: ✭ 63 (+250%)
Mutual labels:  packer, virtualbox
Spel
STIG-Partitioned Enterprise Linux (spel)
Stars: ✭ 66 (+266.67%)
Mutual labels:  packer, virtualbox
packer-centos
Create CentOS images for different hypervisors with Packer
Stars: ✭ 18 (+0%)
Mutual labels:  packer, virtualbox

Download

Packer post-processor: VirtualBox to Hyper-V

A packer plugin to create Hyper-V vagrant boxes from VirtualBox artifacts.

You can use this plugin without having Hyper-V installed.

Usage

Add the plugin to your packer template:

{
  "builders": [
    {
      "type": "vmware-iso", ...
    },
    {
      "type": "virtualbox-iso", ...
    }
  ],
  "post-processors": [
    {
      "type": "vagrant",
      "output": "output_{{.Provider}}.box",
    },
    {
      "type": "virtualbox-to-hyperv",
      "only": ["virtualbox-iso"],
      "output": "output_hyperv.box"
    }
  ]
}

This would generate a vagrant box for vmware, virtualbox and hyperv providers

In order for a box to work in Hyper-V, the guest VM will need Hyper-V integration tools installed. Otherwise, vagrant will not be able to determine the guest's IP address.

For some real examples, see packer templates for Windows 2008 R2 and Ubuntu 14.04.

Configuration

This plugin extends the Vagrant post-processor and accepts the same configuration options.

It also accepts this additional configuration:

  • vm_name (string) - the name of the virtual machine displayed in Hyper-V Manager. By default this is "packer-BUILDNAME", where "BUILDNAME" is the name of the build. Can be changed in the Vagrantfile by setting vmname in the hyperv provider.

Installation

  1. Download the plugin into the same directory as your packer executable.
  2. Add the plugin to ~/.packerconfig or %APPDATA%\packer.config on Windows:
{
  "post-processors": {
    "virtualbox-to-hyperv": "packer-post-processor-virtualbox-to-hyperv"
  }
}

See also Installing Plugins.

Credits

Based on MSOpenTech/packer-hyperv using the techniques described in Creating a Hyper-V Vagrant box from a VirtualBox vmdk or vdi image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].