wiki:Heravms

Version 1 (modified by ypap, 20 months ago) ( diff )

--

VMs at hera

In order to create a new VM based on the template at hera: cslab@hera:/store/vm/

  1. cp -r template <new_vm_name>
  1. cd <new_vm_name>
  1. 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.
  1. virsh create define.xml
  1. virsh console <new_vm_name>
  1. change the VM's hostname at /etc/hostname
  1. modify entries in /etc/hosts
  1. reboot
  1. Setup DHCP for enp1s0: vi /etc/network/interfaces (under auto lo and iface): auto enp1s0 iface enp1s0 inet dhcp
  1. (optional) setup static ip address if necessary
  1. apt update && apt upgrade
  1. apt install openssh-server
  1. mkdir -m 700 /root/.ssh/
  1. touch -m 600 /root/.ssh/authorized_keys
  1. put the appropriate ssh keys inside
  1. ssh and have fun!!

put the appropriate ssh keys inside ssh and have fun!! Give feedback

Note: See TracWiki for help on using the wiki.