1

I created a fedora 27 guest on my fedora 27 host, added 2 Filesystem shares, added entries in the guest/s fstab, booted, and all works fine. However, when i try to add another drive/mount from the host, "d_drive", I get the following error, and I'm not sure how to troubleshoot it. As far as I can tell the working shares have the same user ownership and permissions as the problematic d_drive, and from a simple "getfacl", it looks like those permissions are nearly the same too, less the flags (which I don't understand).

Where/how do I start troubleshooting this?

system info:

2017-12-20 19:51:36.813+0000: starting up libvirt version: 3.7.0, package: 3.fc27 (Fedora Project, 2017-12-04-17:14:09, buildhw-06.phx2.fedoraproject.org), qemu version: 2.10.1(qemu-2.10.1-1.fc27)

From virt-manager gui when i try to start the domain:

Error starting domain: internal error: qemu unexpectedly closed the monitor: x4 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-32-f26-data/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -spice port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x5 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x9 -msg timestamp=on
2017-12-20T19:37:54.023729Z qemu-system-x86_64: -chardev pty,id=ch

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 1062, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: qemu unexpectedly closed the monitor: x4 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-32-f26-data/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -spice port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x5 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x9 -msg timestamp=on
2017-12-20T19:37:54.023729Z qemu-system-x86_64: -chardev pty,id=ch

from the /var/log/libvirt/qemu/f26-data.log

2017-12-20T19:51:36.979416Z qemu-system-x86_64: -device virtio-9p-pci,id=fs2,fsdev=fsdev-fs2,mount_tag=d_drive,bus=pci.0,addr=0xa: 9pfs Failed to initialize fs-driver with id:fsdev-fs2 and export path:/mnt/d_drive
2017-12-20 19:51:37.212+0000: shutting down, reason=failed

ACL info

getfacl: Removing leading '/' from absolute path names
# file: mnt/d_drive/
# owner: root
# group: root
user::rwx
group::rwx
other::r-x

...and the working "h_drive" share

[root@brainiac-fedora ~]# getfacl /mnt/h_drive/
getfacl: Removing leading '/' from absolute path names
# file: mnt/h_drive/
# owner: root
# group: root
# flags: ss-
user::rwx
group::rwx
other::r-x
2

This may not be the entirety of it, but it seems to work (apparently I already had the first command...).

from https://github.com/adrahon/vagrant-kvm/pull/125#issuecomment-38251664

[root@localhost ~]# sudo semanage fcontext -a -t virt_content_t "/mnt/d_drive(/.*)?"
ValueError: File context for /mnt/d_drive(/.*)? already defined
[root@localhost ~]# sudo restorecon -R /mnt/d_drive

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.