by Anish
Posted on Tuesday June 26
Getting virt-install error guest name already in use
virt-install --virt-type kvm --name centos --ram 1024 \
--disk centos-7.qcow2,format=qcow2 \
--network network=default \
--graphics vnc,listen=0.0.0.0 --noautoconsole \
--os-type=linux --os-variant=centos7.0 \
--location=CentOS-7-x86_64-Minimal-1804.iso \
--wait=-1 \
--noreboot
ERROR Guest name 'centos' is already in use.
Type the command virsh in console
bash ~ virsh
Welcome to virsh, the virtualization interactive terminal.
Undefine centos
virsh # undefine centos
Domain centos has been undefined
Re-run the virt-install command