== VMs at hera == In order to create a new VM based on the template at hera: `cslab@hera:/store/vm/` 1. `cp -r template ` 2. `cd ` 3. Modify appropriately the define.xml file: - Change the VM name - Change the vcpus number and RAM size appropriately - Delete the boot dev=cdrom attribute - Delete the comments - Change the MAC address - Change the source file of the disks. 4. `virsh create define.xml` 5. `virsh console ` 6. change the VM's hostname at `/etc/hostname` 7. modify entries in `/etc/hosts` 8. reboot 9. Setup DHCP for enp1s0: `vi /etc/network/interfaces` (under auto lo and iface): `auto enp1s0 iface enp1s0 inet dhcp` 10. (optional) setup static ip address if necessary 11. `apt update && apt upgrade` 12. `apt install openssh-server` 13. `mkdir -m 700 /root/.ssh/` 14. `touch -m 600 /root/.ssh/authorized_keys` 15. put the appropriate ssh keys inside 16. `ssh` and have fun!! put the appropriate ssh keys inside ssh and have fun!! Give feedback