Skip to content

vemarsas/margay-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Install Vagrant -- https://www.vagrantup.com/.

Then run

vagrant up

The above is equivalent to:

vagrant up mgy

You can start a "client" VM, connected "behind" Margay via virtualized internal network (this is not another Margay network appliance, but rather a "regular PC"):

vagrant up client

eth0 in the client is connected to eth1 in Margay.

You can also fire up a second Margay "downstream":

vagrant up mgy_downstr

eth1 in mgy_downstr is connected to eth2 in mgy.

The client VM will show the VBox GUI, you will see a graphical login. Enter with credentials vagrant:vagrant, then right-click and open Web Browser (or Terminal etc.)

The same argument mgy, mgy_downstr, or client holds for other Vagrant commands: provision, halt, suspend, destroy etc. (see documentation on the Vagrant website).

Margay setup

At this point Margay is not setup yet.

vagrant ssh
sudo -i

Then, please refer to: https://github.com/vemarsas/margay#readme.

It's the same installation procedure you would use on real hardware!

Synced folder

We do not use it. Use sshfs or a plugin in your editor/IDE to connect to the machine /home/onboard and edit / git push etc. from the host.

Very optional Vagrant tweaks

Proxy

If you install the vagrant-proxyconf plugin, you also set proxy environment variables if you want to use a proxy for downloading packages during provisioning etc.

See https://github.com/tmatilai/vagrant-proxyconf#environment-variables for more.

Suggested values (from the host!) are

VAGRANT_HTTP_PROXY=http://10.0.2.2:8123
VAGRANT_HTTPS_PROXY=http://10.0.2.2:8123

if, for example, you use polipo with default config (10.0.2.2 is the default gateway for vbox NAT interface in the vm).

Beware this may conflict with captive portal in the client, as browsers will then use the proxy and therefore circumvent the captive portal (depending on the configuration).

After installation

Upstream Margay
Downstream margay

See also COMMON_MESSAGE (and *.vm.post_up_message) in Vagrantfile.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published