Changes between Initial Version and Version 1 of Heravms


Ignore:
Timestamp:
03/27/23 15:37:12 (20 months ago)
Author:
ypap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Heravms

    v1 v1  
     1== VMs at hera ==
     2
     3In order to create a new VM based on the template at hera: `cslab@hera:/store/vm/`
     4
     51.  `cp -r template <new_vm_name>`
     6
     72.  `cd <new_vm_name>`
     8
     93.  Modify appropriately the define.xml file:
     10    - Change the VM name
     11    - Change the vcpus number and RAM size appropriately
     12    - Delete the boot dev=cdrom attribute
     13    - Delete the comments
     14    - Change the MAC address
     15    - Change the source file of the disks.
     16
     174.  `virsh create define.xml`
     18
     195.  `virsh console <new_vm_name>`
     20
     216.  change the VM's hostname at `/etc/hostname`
     22
     237.  modify entries in `/etc/hosts`
     24
     258.  reboot
     26
     279.  Setup DHCP for enp1s0: `vi /etc/network/interfaces` (under auto lo and iface): `auto enp1s0 iface enp1s0 inet dhcp`
     28
     2910. (optional) setup static ip address if necessary
     30
     3111. `apt update && apt upgrade`
     32
     3312. `apt install openssh-server`
     34
     3513. `mkdir -m 700 /root/.ssh/`
     36
     3714. `touch -m 600 /root/.ssh/authorized_keys`
     38
     3915. put the appropriate ssh keys inside
     40
     4116. `ssh` and have fun!!
     42
     43
     44put the appropriate ssh keys inside
     45ssh and have fun!!
     46Give feedback