Git Product home page Git Product logo

vagrant-pxe's Introduction

Vagrant PXE test environment

A vagrant PXE client/server environment which supports virtualbox and libvirt providers.
Inspired by https://github.com/stephenrlouie/PXE-Boot-VM/

It is designed to learn and test cloning solutions, nfsroot, syslinux, etc...

Setup

1° install Qemu / Libvirt / Virtualbox

  • See your distribution documentation.

2° if using, install Vagrant-libvirt Provider

git clone http://github.com/eoli3n/vagrant-pxe

Edit PXE configuration

PXE server's installation script is config/setup.sh.
All required files are in config/ressources.
Default pxe configuration load pxelinux with a menu to boot local disk.

Run PXE server

  • System Box => debian/jessie64
  • Default CPU => 1
  • Default RAM => 1024
  • Networking
  • eth0 => Management network
  • eth1 => Private network "pxe_network"

Virtualbox provider

$ cd vagrant-pxe/server
$ vagrant up --provider virtualbox
$ vagrant ssh

Libvirt provider

$ cd vagrant-pxe/server
$ vagrant up --provider libvirt
$ vagrant ssh

Run PXE client

  • System Box => debian/jessie64
  • Default CPU => 1
  • Default RAM => 1024
  • Networking
  • eth0 => Private network "pxe_network"

Virtualbox provider

A box needs to be set for virtualbox provider.
If changing, please choose one which supports virtualbox and libvirt providers.

Requires virtualbox extension pack.

$ cd vagrant-pxe/client
$ vagrant up --provider virtualbox

Vagrant will hang on Warning: Connection refused. Retrying... error. That's because we edited network configuration to enable pxeboot. Please ignore it.

Virtualbox gui will pop up, showing vm netboot.

Libvirt provider

No box required, but will use Debian 8 as with virtualbox provider.

$ cd vagrant-pxe/client
$ vagrant up --provider libvirt

Vagrant will hang on Waiting for domain to get an IP address....
That's because box ask for network configuration on management network which do not exist here. Please ignore it.

To restart boot procedure.

$ vagrant reload

Refs

Todo

  • Doc : submodule include

vagrant-pxe's People

Contributors

eoli3n avatar null-none avatar

Watchers

James Cloos 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.