CreateVM

From T2B Wiki
Jump to navigation Jump to search

Hardware information on the vHosts

All technical information about the hardware (brand, model, IP address for the remote management,...) of the vHosts can be found in a document shared in Google Drive...

Capacity and usage of the vHosts

If you want to list all the VMs living on the vHosts and/or to get an idea of the allocated and free resources on each vHost, you can run the script ./view_vhosts.pl located in the directory /root/vm_tools on quatcli.

An easy way to create VMs to be managed by Quattor

The procedure goes this way :

  1. Decide on which "dom" machine (vhost) you will install your new VM. (In the future, there will be some scripts/facilities to help in making this choice...)
2. On quatcli, generate the MAC address(es) by typing the following :
./generate_random_mac.sh
3. Create the templates for the machine in the Quattor SVN, injecting the MAC address(es) generated above in the hardware template. Build, commit and deploy ("runcheck").
4. On quatcli, type something like :
./create_vm_from_profile.pl <node_name> <vhost_name>
For example, if you want to create the virtual workernode node19-101 on dom06, you have to type the following :
./create_vm_from_profile.pl node19-101.wn.iihe.ac.be dom06.wn.iihe.ac.be


Template:TracNotice