Open tingox opened 1 week ago
and of course you can't change that via attach-disk for a non running domain
tingo@bite:~$ sudo virsh attach-disk riemann " " hda --type cdrom --mode readonly
error: Failed to attach disk
error: Requested operation is not valid: domain is not running
but I can do this
tingo@bite:~$ sudo virsh attach-disk riemann " " hda --type cdrom --mode readonly --print-xml
<disk type='block' device='cdrom'>
<source dev=' '/>
<target dev='hda'/>
<readonly/>
</disk>
and if I try to edit it fails to validate
sudo EDITOR=vi virsh edit riemann
error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content
Failed. Try again? [y,n,i,f,?]:
but deleting that section worked
tingo@bite:~$ sudo EDITOR=vi virsh edit riemann
Domain riemann XML configuration edited.
and then riemann can be started
tingo@bite:~$ !1443
sudo virsh start riemann
Domain riemann started
leaving this issue open for root cause analysis and fix.
When you try to start riemann, you get an error:
dumping the xml via
sudo virsh dumpxml riemann
I seewhich is the most likely cause.