Vnx-impacient

From VNX
Revision as of 17:19, 28 July 2011 by David (talk | contribs) (simple_ubuntu-gui.xml scenario)
Jump to: navigation, search

Quick recipe for the impatient

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