Re: failed to bind the UNIX domain socket under qemu libvirtd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17:55 Mon 27 Apr, Liu, Changcheng wrote:
> Hi all,
>    I'm trying to dump perf counter when attaching rbd volume into
>    KVM-Qemu guest machine.
> 
>    It always failed at creating asok file when starting the guest machine.
>    Without asok file, I can' use below "ceph perf dump" to get the perf counters.
>    The failure log is below:
>       ||AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen:
>       ||failed to bind the UNIX domain socket to
>       ||'/tmp/ceph-asok_changcheng/ceph-client.libvirt.2388472.93848128323264.asok':
>       ||(13) Permission denied
>    
>    Does anyone know how to sovle it?
Sovled: Add user "libvirt-qemu" into the user's group who created "/tmp/ceph-asok_changcheng/"
>    I've looked below webpage without solution.
>        https://docs.ceph.com/docs/master/rbd/libvirt/
> 
>    My host OS info is below:
>       ||cat /etc/os-release 
>       ||NAME="Ubuntu"
>       ||VERSION="18.04.1 LTS (Bionic Beaver)"
>       ||ID=ubuntu
>       ||ID_LIKE=debian
>       ||PRETTY_NAME="Ubuntu 18.04.1 LTS"
> 
>    ceph.conf is below:
>       ||[client.libvirt]
>       ||log file = /tmp/qemu-guest-$pid.log
>       ||admin socket = /tmp/ceph-asok_changcheng/$cluster-$type.$id.$pid.$cctid.asok
> 
>    Apparmor has stopped:
>       ||liuc@aep-test02:~$ sudo aa-status 
>       ||apparmor module is loaded.
>       ||0 profiles are loaded.
>       ||0 profiles are in enforce mode.
>       ||0 profiles are in complain mode.
>       ||0 processes have profiles defined.
>       ||0 processes are in enforce mode.
>       ||0 processes are in complain mode.
>       ||0 processes are unconfined but have a profile defined.
>       ||liuc@aep-test02:~$ sudo systemctl status apparmor
>       ||● apparmor.service - AppArmor initialization
>       ||   Loaded: loaded (/lib/systemd/system/apparmor.service; disabled; vendor preset: enabled)
>       ||   Active: inactive (dead)
>       ||     Docs: man:apparmor(7)
>       ||           http://wiki.apparmor.net/
> 
> B.R.
> Changcheng
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx




[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux