Vlan with vargant & puppet
Posted: 2. Mar 2012, 12:31
I have a physical server running linux with 1 ip address and 1 port opened. This is all I get to run x amount of virtual machines (also linux) which all need to be accessible from the internet.
To achieve this I want to put all virtual machines into a vlan once they are created (for example 10.10.10.0 /24) and have them run ssh.
To access them I would use ssh's port forwarding, like , which means that once I am into the server (ssh PHYServer), it will connect to port 22 of the virtual server with internal ip address 10.10.10.1
My problem is, our virtual machines are created with Vagrant & Puppet, we download preconfigured boxes and I can't really figure out how to use VBoxManager with them (VirtualBox says it can't find box with name x)
Even then, I am not really able to figure out how to create my own box and how to configure it to have them join a LAN.
None of the virtual machines have a GUI because I want to virtualise servers and manage them from the internet, so every tutorial which involves a GUI is useless to me.
Does anybody know a solution?
ps. I am still new to VirtualBox, Vagrant & Puppet, so I might miss some simple solutions
Thanks!
To achieve this I want to put all virtual machines into a vlan once they are created (for example 10.10.10.0 /24) and have them run ssh.
To access them I would use ssh's port forwarding, like
Code: Select all
ssh PHYServer -L 8888 10.10.10.1:22My problem is, our virtual machines are created with Vagrant & Puppet, we download preconfigured boxes and I can't really figure out how to use VBoxManager with them (VirtualBox says it can't find box with name x)
Even then, I am not really able to figure out how to create my own box and how to configure it to have them join a LAN.
None of the virtual machines have a GUI because I want to virtualise servers and manage them from the internet, so every tutorial which involves a GUI is useless to me.
Does anybody know a solution?
ps. I am still new to VirtualBox, Vagrant & Puppet, so I might miss some simple solutions
Thanks!