Version 1 (modified by 19 months ago) ( diff ) | ,
---|
VMs at hera
In order to create a new VM based on the template at hera: cslab@hera:/store/vm/
-
cp -r template <new_vm_name>
-
cd <new_vm_name>
- 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.
-
virsh create define.xml
-
virsh console <new_vm_name>
- change the VM's hostname at
/etc/hostname
- modify entries in
/etc/hosts
- reboot
- Setup DHCP for enp1s0:
vi /etc/network/interfaces
(under auto lo and iface):auto enp1s0 iface enp1s0 inet dhcp
- (optional) setup static ip address if necessary
apt update && apt upgrade
apt install openssh-server
mkdir -m 700 /root/.ssh/
touch -m 600 /root/.ssh/authorized_keys
- put the appropriate ssh keys inside
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.