virt-install says name is in use, but virsh list --all is empty. Where is virt-install finding this name?

Solution 1:

You are using different URI's in each command. Either add -c qemu:///system to your virt-install command, or change it in your listing to use qemu:///session. To undefine use the command virsh -c qemu:///THECORRECTURI undefine android.

Solution 2:

You have to undefined the Virtual Machine. If its running stop it

[root@fed18 isos]# virt-install --hvm --name OracleLinux64-1 --ram 2048 --vcpus 1 -f /dev/virtual-machines/OracleLinux64-1 --network bridge=br0 --cdrom /isos/Oracle_Linux_Release_6_Update_4_x86_64.iso --graphics vnc,listen=0.0.0.0,port=5901 --noautoconsole 
warning: failed to set locale, defaulting to C
ERROR    Guest name 'OracleLinux64-1' is already in use.

root@fed18 ~]# virsh
setlocale: No such file or directory
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
   'quit' to quit
virsh #  undefine OracleLinux64-1
Domain OracleLinux64-1 has been undefined

virsh # quit

[root@fed18 ~]# virt-install --hvm --name OracleLinux64-1 --ram 2048 --vcpus 1 -f /dev/virtual-machines/OracleLinux64-1 --network bridge=br0 --cdrom /isos/Oracle_Linux_Release_6_Update_4_x86_64.iso --graphics vnc,listen=192.168.2.103,port=5901 --noautoconsole 
warning: failed to set locale, defaulting to C

Starting install...
Creating domain...                                                                                                                                          |    0 B  00:00:12     
Domain installation still in progress. You can reconnect to 
the console to complete the installation process.