You are not logged in.

#1 2017-03-29 22:37:37

Niarbeht
Member
Registered: 2010-05-24
Posts: 6

Weird file errors with libvirt/Virtual Machine Manager.

I, uhh, don't even really know what to say about this one.  I had an isolated host-only network set up in Virtual Machine Manager so my passthrough VM used for my Windows games would be able to stream to the host (an experiment in laziness, with the result being that AMD's VCE doesn't quite seem to be up to snuff yet), while still having a NIC set up using macvtap/VEPA for performance.  After a libvirt update a while back, everything got.... weird?

Here's the error on starting a VM that has a NIC attached to the host-only network:

Error starting domain: cannot create file '/var/lib/libvirt/dnsmasq/virbr1.macs.new': File exists

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 124, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1479, in startup
    self._backend.create()
  File "/usr/lib/python2.7/site-packages/libvirt.py", line 1037, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: cannot create file '/var/lib/libvirt/dnsmasq/virbr1.macs.new': File exists

And here's the obviously needed ls -l output:

$ sudo ls -l /var/lib/libvirt/dnsmasq/
\ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
total 24
-rw-r--r-- 1 root root   0 Mar  5 09:47 default.addnhosts
-rw------- 1 root root 588 Mar  5 09:47 default.conf
-rw-r--r-- 1 root root   0 Mar  5 09:47 default.hostsfile
-rw-r--r-- 1 root root   0 Mar 29 13:15 NoForward.addnhosts
-rw------- 1 root root 667 Mar 29 13:15 NoForward.conf
-rw-r--r-- 1 root root   0 Mar 29 13:15 NoForward.hostsfile
-rw-r--r-- 1 root root   5 Feb 17 18:43 virbr0.macs
-rw-r--r-- 1 root root   5 Feb 17 19:37 virbr0.status
-rw-r--r-- 1 root root   5 Mar 15 18:38 virbr1.macs
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-rw-r--r-- 1 root root   5 Mar 13 00:25 virbr1.status
sudo cat /var/lib/libvirt/dnsmasq/virbr1.macs.new 
cat: /var/lib/libvirt/dnsmasq/virbr1.macs.new: No such file or directory

I, uhh....  I'm at a bit of a loss on this one.  What is even going on?

Arch Linux 64-bit, btrfs filesystem.  I can provide anything else needed as requested.  Except answers.  I don't have answers.  Or a clue.

EDIT:

A friend of mine on TeamSpeak asked, "Have you tried deleting the file?"

$ sudo rm -rf /var/lib/libvirt/dnsmasq/virbr1.macs.new 
[user@hostname ~]$ sudo ls -l /var/lib/libvirt/dnsmasq/
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
ls: cannot access '/var/lib/libvirt/dnsmasq/virbr1.macs.new': No such file or directory
total 24
-rw-r--r-- 1 root root   0 Mar  5 09:47 default.addnhosts
-rw------- 1 root root 588 Mar  5 09:47 default.conf
-rw-r--r-- 1 root root   0 Mar  5 09:47 default.hostsfile
-rw-r--r-- 1 root root   0 Mar 29 17:32 NoForward.addnhosts
-rw------- 1 root root 667 Mar 29 17:32 NoForward.conf
-rw-r--r-- 1 root root   0 Mar 29 17:32 NoForward.hostsfile
-rw-r--r-- 1 root root   5 Feb 17 18:43 virbr0.macs
-rw-r--r-- 1 root root   5 Feb 17 19:37 virbr0.status
-rw-r--r-- 1 root root   5 Mar 15 18:38 virbr1.macs
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-????????? ? ?    ?      ?            ? virbr1.macs.new
-rw-r--r-- 1 root root   5 Mar 13 00:25 virbr1.status

Last edited by Niarbeht (2017-03-29 22:40:43)


"He says the best way out is always through.   
And I agree to that, or in so far   
As that I can see no way out but through—   
Leastways for me" -Robert Frost

Offline

Board footer

Powered by FluxBB