End Sysadmin

How to destroy a virtual machine in PLACO ?

First uncomment the lexec delete_vm.sh line in the etc/default/vm.defines where <vm> is the name of the virtual machine you want to remove. Run delete_vm.sh script using placosh :

placosh> delete_vm.sh -m vm

To avoid accidental virtual machine destruction, don't forget to comment again the lexec delete_vm.sh line after running delete_vm.sh.

Developpers

placomgr

How to get help ?

placomgr --man

How to debug your template expansion ?

placomgr --put your_file_template --dry-run --no-clean -v

or

placomgr --rexec your_script_template --dry-run --no-clean -v

or

placomgr --lexec your_script_template --dry-run --no-clean -v

You will see the name of a temporary file which is created. It contains the result of the expansion of your template.

How to add a new virtual machine ?

First, you may understand three abstraction levels used in PLACO. File doc/Architecture.txt located in your devel directory explains this concept. After you need to create scripts in toplevel, middleware and repository directory according to README files located in each of these directories. In etc/default you must add a definition file that describe your new virtual machine. It contains allowed templates, memory size, apache virtual hosts... Before runing your toplevel script to start creation of your VM in placosh, don't forget to add the IP address of your virtual machine (such as 10.0.0.x) in internal_address section of etc/global.defines. Otherwise, when running your toplevel script, you may have errors saying that vm.default is does not exists.