Monday, April 29, 2024
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 27689  / 3 Years ago, sat, may 22, 2021, 10:35:19

virt-install says name is in use, but virsh list --all says there is nothing.



jrwren@delays:{%22}~ $ virt-install -d -n android -r 512 --disk android.qcow2 -s 4 -c /d/cd images/android-x86-2.2-generic.iso --vnc --noautoconsole 
[Thu, 05 Jul 2012 16:57:19 virt-install 23170] DEBUG (cli:220) Launched with command line:
/usr/bin/virt-install -d -n android -r 512 --disk android.qcow2 -s 4 -c /d/cd images/android-x86-2.2-generic.iso --vnc --noautoconsole
[Thu, 05 Jul 2012 16:57:19 virt-install 23170] DEBUG (cli:326) Requesting libvirt URI default
[Thu, 05 Jul 2012 16:57:19 virt-install 23170] DEBUG (cli:328) Received libvirt URI qemu:///session
[Thu, 05 Jul 2012 16:57:20 virt-install 23170] DEBUG (virt-install:259) Requesting virt method 'default', hv type 'default'.
[Thu, 05 Jul 2012 16:57:20 virt-install 23170] DEBUG (virt-install:469) Received virt method 'hvm'
[Thu, 05 Jul 2012 16:57:20 virt-install 23170] DEBUG (virt-install:470) Hypervisor name is 'kvm'
[Thu, 05 Jul 2012 16:57:20 virt-install 23170] DEBUG (cli:950) --graphics compat generated: vnc
[Thu, 05 Jul 2012 16:57:20 virt-install 23170] ERROR (cli:597) Guest name 'android' is already in use.
(venv)jrwren@delays:{%22}~ $ sudo virsh -c qemu:///system list --all
Id Name State
----------------------------------


Where is virt-install finding this name?



edit: I should mention that LIBVIRT_DEFAULT_URI is not set.


More From » virtualization

 Answers
7

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.


[#37057] Sunday, May 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whoppinolo

Total Points: 93
Total Questions: 113
Total Answers: 107

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
;