Vnx-impacient

From VNX
Jump to: navigation, search

Quick recipes for the impatient

Calm down, relax...everything takes time...:-)

simple_ubuntu-gui.xml scenario

A simple scenario made of just one Ubuntu GUI virtual machine connected to a virtual network (Net0, 10.0.0.0/24), where the hosts has also a virtual network interface connected (10.0.0.1).

To start the scenario:

cd /usr/share/vnx/examples/
sudo vnx -f simple_ubuntu-gui.xml -v --create

Test the network connectivity from the host to the virtual machine:

# ping -c 4 10.0.0.1
PING 10.0.0.5 (10.0.0.5) 56(84) bytes of data.
64 bytes from 10.0.0.5: icmp_seq=1 ttl=64 time=0.197 ms 

Start the calculator or the xeyes application on the virtual machine with:

sudo vnx -f simple_ubuntu-gui.xml -v --exe calc
sudo vnx -f simple_ubuntu-gui.xml -v --exe xeyes

Close (kill) the calc application with:

sudo vnx -f simple_ubuntu-gui.xml -v --exe calcoff

Start or stop a web server in the virtual machine with:

sudo vnx -f /usr/share/vnx/examples/simple_ubuntu.xml -v --exe start-www
sudo vnx -f /usr/share/vnx/examples/simple_ubuntu.xml -v --exe stop-www

Stop the scenario preserving the changes made in virtual machines with:

sudo vnx -f simple_ubuntu-gui.xml -v --shutdown

Stop the scenario discarding the changes with:

sudo vnx -f simple_ubuntu-gui.xml -v --destroy

See a graphical map of the virtual scenario using the --show-map option:

sudo vnx -f simple_ubuntu-gui.xml -v --show-map

tutorial_ubuntu.xml scenario

An scenario made of 6 Ubuntu virtual machines (4 hosts -h1, h2, h3 and h4- and 2 routers -r1 and r2-) connected through three virtual networks. The host participates in the scenario having a network interface in Net3. All systems but h1 use an Ubuntu server root filesystem; h1 uses an Ubuntu Desktop to allow starting a web navigator.

Start the scenario with:

cd /usr/share/vnx/examples/
sudo vnx -f tutorial_ubuntu.xml -v --create

See a graphical map of the virtual scenario using:

sudo vnx -f tutorial_ubuntu.xml -v --show-map

You can start the web servers in h3 and h4 with:

sudo vnx -f tutorial_ubuntu.xml -v -x start-www -M h3,h4

Start a firefox navigator in h1 automatically using vnx:

sudo vnx -f tutorial_ubuntu.xml -v -x www-h3

Restart a virtual machines individually with:

sudo vnx -f tutorial_ubuntu.xml -v --shutdown -M h1
sudo vnx -f tutorial_ubuntu.xml -v --create -M h1

Stop the scenario preserving the changes with:

sudo vnx -f simple_ubuntu-gui.xml -v --shutdown

Or discarding changes with:

sudo vnx -f simple_ubuntu-gui.xml -v --destroy