Even though virtual machines are completely independent, we need some conventions to simplify tools usage (to avoid specifying full path in the command line)
So, we adopt following convention:
- All files related to each machine are stored in the one directory, named after the machine. See virtual machine directory.
- There are three types of virtual machine - shared, autostarted and user. shared and autostarted are stored in the some area, described in the global configuration file /etc/vws/vws.conf, user stored in ${HOME}/VWs.
- There is also /etc/vws/vm.conf which contains global configuration as shell vars and sourced by each vm script.
- There is startup script which starts autostart machines upon system startup
- There is shutdown script which stops all machines which are found running during system shutdown.