FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    11

    QEMU/KVM Is the guest install lost?

    Any ideas to the underlying cause of this error and whether the guest install can
    be saved or is it lost?

    This is a recent Ryzen build running Fedora 26 on a SSD and another disk used
    for the a single guest image.The error is coming from QMEU/KVM when attempting to start
    the Windows 10 guest. Just got through the installation/update/customization and
    getting bash and ssh working under Windows 10. Did a controlled shutdown of
    the Window system yesterday with everything appearing fine.
    Today did a full Fedora shutdown to make minor changes to the BIOS (which I
    believe were restored when this problem was encountered. From the error below
    it looks like a /dev/sr0 entry is missing. Fedora and the drives seem to be working okay.

    Error starting domain: Cannot access storage
    file '/dev/sr0' (as uid:107,gid:107); No such
    file or directory

    Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
    File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
    callback(*args, **kwargs)
    File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
    ret = fn(self, *args, **kwargs)
    File "/usr/share/virt-manager/virtManager/domain.py", line 1505, in startup
    self._backend.create()
    File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1039, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
    libvirtError: Cannot access storage file '/dev/sr0' (as uid:107, gid:107): No such file or directory

    # guestfs-browser -x
    libguestfs: trace: add_drive "/kvm/images/w10" "readonly:true" "format:qcow2"
    libguestfs: trace: get_tmpdir
    libguestfs: trace: get_tmpdir = "/tmp"
    libguestfs: trace: disk_create "/tmp/libguestfszFenAq/overlay1" "qcow2" -1 "backingfile:/kvm/images/w10" "backingformat:qcow2"
    libguestfs: trace: disk_create = 0
    libguestfs: trace: get_backend_setting "internal_libvirt_imagelabel"
    libguestfs: trace: get_backend_setting = NULL (error)
    libguestfs: trace: add_drive = 0
    libguestfs: trace: add_drive "/dev/sr0" "readonly:true" "format:raw"
    libguestfs: trace: add_drive = -1 (error)
    Fatal error: exception Queue.Empty
    libguestfs: trace: close

    # ls -laR /dev/sr0
    ls: cannot access '/dev/sr0': No such file or directory


    $ ls -lah /kvm/images
    total 57G
    drwxr-xr-x. 2 root root 4.0K Oct 24 16:10 .
    drwxr-xr-x. 4 root root 4.0K Oct 22 11:59 ..
    -rw-------. 1 root root 129G Oct 25 17:23 w10


    # df -h |grep kvm
    /dev/sdb4 246G 57G 177G 25% /kvm

  2. #2
    Join Date
    Jul 2009
    Posts
    11

    Re: QEMU/KVM Is the guest install lost?

    In virt-manager I found I could create another by VM pointing it at the original /kvm/images/w10 qcow file and after a warning that it was in use by another VM it created a new entry that can be accessed and run by the vitual machine manager. There is only the one file referenced by the both the broken entry and the new entry so I will try to remember not to delete the bad entry in case that loses the image.

Similar Threads

  1. Replies: 1
    Last Post: 3rd December 2015, 04:20 AM
  2. Replies: 10
    Last Post: 18th July 2014, 12:34 PM
  3. [SOLVED] qemu kvm fedora guest problems
    By Grub3r in forum Servers & Networking
    Replies: 5
    Last Post: 25th January 2013, 11:37 PM
  4. qemu-kvm F15 host and guest - guest screen problem
    By gmangum in forum Using Fedora
    Replies: 0
    Last Post: 25th June 2011, 05:39 PM
  5. F8 qemu 0.9.0, XP x64 Guest OS, rtl8139 drivers?
    By early-ehlinger in forum Using Fedora
    Replies: 12
    Last Post: 23rd May 2008, 11:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •