Log my thoughts

Home About GitHub

12 Jan 2014
Run Puppet-PE virtual machine remotely

Virtualbox has a commandline toolbox that can do a lot of things.

Here’s the steps to run Puppet VM on a remote server without GUI. So you can play with it.

  1. Download the unzip the VM.

    wget https://downloads.puppetlabs.com/learning/learn_puppet_centos-6.4-pe-3.1.0-ovf-20131031.zip
    unzip learn_puppet_centos-6.4-pe-3.1.0-ovf-20131031.zip
  2. Import VM from ovf.

    VBoxManage import learn_puppet_centos-6.4-pe-3.1.0.ovf
    VBoxManage list vms
  3. Modify Network Setting

    # enable bridge mode on 2nd adapter
    VBoxManage modifyvm learn_puppet_centos-6.4-pe-3.1.0 --nic2 bridged --bridgeadapter2 enp3s0
    # enable port-forward on 1st adapter
    VBoxManage modifyvm learn_puppet_centos-6.4-pe-3.1.0 --natpf1 "guestssh,tcp,,2222,,22"
  4. start headless VM

    VBoxHeadless --startvm learn_puppet_centos-6.4-pe-3.1.0 --vrde off
  5. rm VM

    VBoxManage unregistervm     <uuid>|<name> [--delete]



Carpe diem,
JZR at 11:08

Home About GitHub