Results 1 to 5 of 5

Thread: unable to connect to '/var/run/libvirt/libvirt-sock'

  1. #1
    Join Date
    Oct 2011
    Beans
    3

    unable to connect to '/var/run/libvirt/libvirt-sock'

    I followed the setup procedure in https://help.ubuntu.com/community/KVM/Installation but after the following command:

    $ virsh -c qemu:///system list

    the system give me the following error:

    error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: File or directory does not exist

    I have the same error with VirtManager.

    Any suggestion?

    The system is Laptop çenovo T60 with UBUNTU 11.10 (32bit)

  2. #2
    Join Date
    Jun 2007
    Location
    Neverland
    Beans
    894
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: unable to connect to '/var/run/libvirt/libvirt-sock'

    Do you have the libvirt daemon running?
    If you do /etc/init.d/libvirt (or libvirtd) status, what does it return?
    Dedoimedo
    Linux Systems Expert / Systems Programmer, LPIC-1, LPIC-2(WIP), GSEC, CCHD, CCHA
    http://www.dedoimedo.com - A place to learn a lot about a lot!

    Pangolin Review | Ringtail Review | Linux Games | My books

  3. #3
    Join Date
    Oct 2011
    Beans
    3

    Angry Re: unable to connect to '/var/run/libvirt/libvirt-sock'

    (1) I check the file '/var/run/libvirt/libvirt-sock' and I have nor the dir "libvirt".

    (2) I search the file "libvirt-sock" in all file system but there is not file with this name.

    (3) I remove with "apt-get remove qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils" and reistall its without success.

    probably there a bug in the KVM installation procedure "https://help.ubuntu.com/community/KVM/Installation"

    Any suggestion? Please help me.

  4. #4
    Join Date
    Oct 2011
    Beans
    3

    Re: unable to connect to '/var/run/libvirt/libvirt-sock'

    I have not libvirtd deamon running......

  5. #5
    Join Date
    Aug 2012
    Beans
    1

    Re: unable to connect to '/var/run/libvirt/libvirt-sock'

    i think you should uncomment the libvirtd.conf variable unix_sock_dir and before that be sure that /usr/sbin libvirtd -d is running.
    Last edited by gasbakid; August 30th, 2012 at 01:01 PM.

Tags for this Thread

Bookmarks

Posting Permissions

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