Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riemann: vm riemann does not start. cause: reference to removed iso image #181

Open
tingox opened this issue Oct 26, 2024 · 5 comments
Open
Labels

Comments

@tingox
Copy link
Contributor

tingox commented Oct 26, 2024

When you try to start riemann, you get an error:

tingo@bite:~$ sudo virsh start riemann
error: Failed to start domain riemann
error: Cannot access storage file '/var/lib/iso/debian-9.1.0-amd64-netinst.iso': No such file or directory

dumping the xml via sudo virsh dumpxml riemann I see

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/iso/debian-9.1.0-amd64-netinst.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

which is the most likely cause.

@tingox tingox added the bug label Oct 26, 2024
@tingox
Copy link
Contributor Author

tingox commented Oct 26, 2024

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

@tingox
Copy link
Contributor Author

tingox commented Oct 26, 2024

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>

@tingox
Copy link
Contributor Author

tingox commented Oct 26, 2024

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,?]: 

@tingox
Copy link
Contributor Author

tingox commented Oct 26, 2024

but deleting that section worked

tingo@bite:~$ sudo EDITOR=vi virsh edit riemann
Domain riemann XML configuration edited.

@tingox
Copy link
Contributor Author

tingox commented Oct 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant