Giter VIP home page Giter VIP logo

proxmox-ve's Introduction

This builds an up-to-date Proxmox VE Vagrant Base Box.

Currently this targets Proxmox VE 7.0.

Usage

Create the base box as described in the section corresponding to your provider.

If you want to troubleshoot the packer execution see the .log file that is created in the current directory.

After the example vagrant enviroment is started, you can access the Proxmox Web Interface with the default root user and password vagrant.

For a cluster example see rgl/proxmox-ve-cluster-vagrant.

libvirt/VirtualBox

Create the base box:

make build-libvirt # or build-virtualbox

Start the example vagrant environment with:

cd example
vagrant up --no-destroy-on-error --provider=libvirt # or --provider=virtualbox

Hyper-V

Follow the rgl/debian-vagrant Hyper-V Usage section.

Create a vSwitch for proxmox:

PowerShell -NoLogo -NoProfile -ExecutionPolicy Bypass <<'EOF'
$switchName = 'proxmox'
$networkAdapterName = "vEthernet ($switchName)"
$networkAdapterIpAddress = '10.10.10.1'
$networkAdapterIpPrefixLength = 24

# create the vSwitch.
New-VMSwitch -Name $switchName -SwitchType Internal | Out-Null

# assign it an host IP address.
$networkAdapter = Get-NetAdapter $adapterName
$networkAdapter | New-NetIPAddress `
    -IPAddress $networkAdapterIpAddress `
    -PrefixLength $networkAdapterIpPrefixLength `
    | Out-Null

# remove all virtual switches from the windows firewall.
Set-NetFirewallProfile `
    -DisabledInterfaceAliases (
            Get-NetAdapter -name "vEthernet*" | Where-Object {$_.ifIndex}
        ).InterfaceAlias
EOF

Create the base box:

make build-hyperv

Start the example vagrant environment with:

cd example
vagrant up --provider=hyperv

Packer boot_command

As Proxmox does not have any way to be pre-seeded, this environment has to answer all the installer questions through the packer boot_command interface. This is quite fragile, so be aware when you change anything. The following table describes the current steps and corresponding answers.

step boot_command
select "Intall Proxmox VE" <enter>
wait for boot <wait1m>
agree license <enter><wait>
target disk <enter><wait>
type country United States<wait><enter><wait><tab><wait>
timezone <tab><wait>
keyboard layout <tab><wait>
advance to the next button <tab><wait>
advance to the next page <enter><wait5>
password vagrant<tab><wait>
confirm password vagrant<tab><wait>
email [email protected]<tab><wait>
advance to the next button <tab><wait>
advance to the next page <enter><wait5>
hostname pve.example.com<tab><wait>
ip address <tab><wait>
netmask <tab><wait>
gateway <tab><wait>
DNS server <tab><wait>
advance to the next button <tab><wait>
advance to the next page <enter><wait5>
install <enter><wait5>

NB Do not change the keyboard layout. If you do, the email address will fail to be typed.

proxmox-ve's People

Contributors

fabacab avatar kosmonavtika avatar meaty-popsicle avatar mihailstoynov avatar pyseed avatar rgl avatar sticky-note avatar xahare avatar

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.