The easiest way to test VNX over a system with Linux, Mac OSX or Windows is to install Vagrant and clone the virtual machine we have prepared with VNX software and examples installed.
Beware that with this virtual machine you only can start LXC based virtual machines (no nested virtualization supported by VirtualBox).
Once you have Vagrant installed in your system, follow this procedure to create the VM:
vagrant box add vnx http://idefix.dit.upm.es/vnx/vnx-vm/vnx-ubuntu-15.10-v01.box mkdir vnx cd vnx vagrant init vnx vagrant up
Once the VM has started, you can access it using:
slogin email@example.com -X # password 'xxxx'
And test, for example, the LXC VNX tutorial scenario:
cd /usr/share/vnx/examples/ sudo vnx -f tutorial_lxc_ubuntu.xml -v -t
See more details about LXC tutorial scenario here.
- Installation on Windows:
- X11 server: to allow virtual machine consoles to be shown properly, you need to install and start an X11 server in your Windows machine. We recommend using Xming (http://sourceforge.net/projects/xming/).
- SSH client: for "vagrant ssh" command to work on windows you need a "ssh" command available from PATH directories. We recommend using git for windows (http://git-scm.com/download/win), which includes and ssh command and automatically modifies PATH variable. Just download and install it choosing "Use Git and optional Unix tools from the Windows Command Prompt" in "Adjusting your PATH enviromnment" step. Use default values for the rest of parameters.
- Installation on Mac OSX:
- X11 server: to allow virtual machine consoles to be shown properly, you need to install an X11 server. The recommended one for Mac OSX is Xquartz (http://xquartz.macosforge.org/landing/)
- You can customize the VM (e.g. memory assigned or the number of cpus) by editing Vagrantfile. For example, to increase memory to 2Gb and the number of CPUs to 4, add the following lines:
config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "4"] end