create kvm cent0S 7 with virsh by jofrantoba




wget -bqc http://mirror.unimagdalena.edu.co/centos/7.8.2003/isos/x86_64/CentOS-7-x86_64-Minimal-2003.iso

qemu-img create -f qcow2 /opt/images/centos7_node-vm.qcow2 200G sudo virt-install --name vm_centos7_node --ram 4096 --vcpu 2 --disk path=/opt/images/centos7_node-vm.qcow2 --os-type linux --os-variant centos7.0 --network bridge=br1 --graphics vnc,listen=0.0.0.0 --console pty,target_type=serial --cdrom '/opt/iso/CentOS-7-x86_64-Minimal-2003.iso'

Written by @jofrantoba

Comentarios