Hello, I'm new to using libvirt. After a few days of installing and removing libvirt, virt-manager and a few others to get VT-d working with a virtual machine, I finally got the latest virt-manager and libvirt installed from source to get the most recent versions. However, when I start up virt-manager I get a popup saying "Unable to connect to libvirt; Verify that the 'libvirtd' deamon is running.". When running "service libvirtd start", I get an error saying libvirtd.service cannot be found. I can, however, use libvirtd from the command line. The service file does not exist in /lib/systemd/system/. log from launching with "./virt-manager --debug": jon@jon-desktop:/media/jon/Data/Programs/virt-manager$ ./virt-manager --debug[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (cli:256) Launched with command line: ./virt-manager --debug[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:160) virt-manager version: 1.2.1[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:161) virtManager import: <module 'virtManager' from '/media/jon/Data/Programs/virt-manager/virtManager/__init__.pyc'>[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:220) GTK version: 3.14.13[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:467) libguestfs inspection support: False[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (systray:153) Showing systray: False[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:237) About to connect to uris ['qemu:///system'][Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (manager:208) Showing manager[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:368) window counter incremented to 1[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:567) conn=qemu:///system changed to state=Connecting[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:886) Scheduling background open thread for qemu:///system[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:567) conn=qemu:///system changed to state=Disconnected[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (error:99) error dialog message:summary=Unable to connect to libvirt. Verify that the 'libvirtd' daemon is running.details=Unable to connect to libvirt. Verify that the 'libvirtd' daemon is running. Libvirt URI is: qemu:///system Traceback (most recent call last): File "/media/jon/Data/Programs/virt-manager/virtManager/connection.py", line 902, in _do_open self._backend.open(self._do_creds_password) File "/media/jon/Data/Programs/virt-manager/virtinst/connection.py", line 148, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed')libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory Any help appreciated,Jon
On Wed, Sep 23, 2015 at 11:00:34PM +0000, Jonathan Rurka wrote:>Hello, I'm new to using libvirt. After a few days of installing and >removing libvirt, virt-manager and a few others to get VT-d working >with a virtual machine, I finally got the latest virt-manager and >libvirt installed from source to get the most recent >versions. However, when I start up virt-manager I get a popup saying >"Unable to connect to libvirt; Verify that the 'libvirtd' deamon is >running.". When running "service libvirtd start", I get an error >saying libvirtd.service cannot be found. I can, however, use libvirtd >from the command line. The service file does not exist >in /lib/systemd/system/. >Did you probably forget to specify the prefix to install it into? you can do "which libvirtd" to see that you probably installed it into /usr/local/sbin. Specifying the prefix should help. Getting to your "to get VT-d working", you should check whether everything is enabled in BIOS. That's usually the case if it's not working for you. Please wrap long lines, Martin>log from launching with "./virt-manager --debug": >jon@jon-desktop:/media/jon/Data/Programs/virt-manager$ ./virt-manager --debug[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (cli:256) Launched with command line: ./virt-manager --debug[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:160) virt-manager version: 1.2.1[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:161) virtManager import: <module 'virtManager' from '/media/jon/Data/Programs/virt-manager/virtManager/__init__.pyc'>[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (virt-manager:220) GTK version: 3.14.13[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:467) libguestfs inspection support: False[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (systray:153) Showing systray: False[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:237) About to connect to uris ['qemu:///system'][Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (manager:208) Showing manager[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (engine:368) window counter incremented to 1[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:567) conn=qemu:///system changed to state=Connecting[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:886) Scheduling background open thread for qemu:///system[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (connection:567) conn=qemu:///system changed to state=Disconnected[Wed, 23 Sep 2015 15:59:22 virt-manager 3904] DEBUG (error:99) error dialog message:summary=Unable to connect to libvirt. >Verify that the 'libvirtd' daemon is running.details=Unable to connect to libvirt. >Verify that the 'libvirtd' daemon is running. >Libvirt URI is: qemu:///system >Traceback (most recent call last): File "/media/jon/Data/Programs/virt-manager/virtManager/connection.py", line 902, in _do_open self._backend.open(self._do_creds_password) File "/media/jon/Data/Programs/virt-manager/virtinst/connection.py", line 148, in open open_flags) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed')libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory > > >Any help appreciated,Jon>_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users
On Thu, Sep 24, 2015 at 06:47:43AM +0200, Martin Kletzander wrote:> On Wed, Sep 23, 2015 at 11:00:34PM +0000, Jonathan Rurka wrote: > >Hello, I'm new to using libvirt. After a few days of installing and > >removing libvirt, virt-manager and a few others to get VT-d working > >with a virtual machine, I finally got the latest virt-manager and > >libvirt installed from source to get the most recent > >versions. However, when I start up virt-manager I get a popup saying > >"Unable to connect to libvirt; Verify that the 'libvirtd' deamon is > >running.". When running "service libvirtd start", I get an error > >saying libvirtd.service cannot be found. I can, however, use libvirtd > >from the command line. The service file does not exist > >in /lib/systemd/system/. > > > > Did you probably forget to specify the prefix to install it into? you > can do "which libvirtd" to see that you probably installed it into > /usr/local/sbin. Specifying the prefix should help. > > Getting to your "to get VT-d working", you should check whether > everything is enabled in BIOS. That's usually the case if it's not > working for you.[A small addendum to what Martin says.] Jon, you can use `virt-host-validate` to check the above, if everything is setup correctly, it should look like that: $ sudo virt-host-validate QEMU: Checking for hardware virtualization : PASS QEMU: Checking for device /dev/kvm : PASS QEMU: Checking for device /dev/vhost-net : PASS QEMU: Checking for device /dev/net/tun : PASS LXC: Checking for Linux >= 2.6.26 : PASS [. . .] -- /kashyap
On Thursday, September 24, 2015 12:29 PM, Jonathan Rurka <jon.rurka@yahoo.com> wrote: Yes the "which libvirtd" and "sudo virt-host-validate" commands return correct values However, I am having a new problem now; "UEFI" is not selectable under firmware: http://i.imgur.com/O4ypOTX.png I do have VT-d enabled in my bios, my processor supports VT-d, and I am booting ubuntu in UEFI mode. The yellow triangle says "Libvirt did not detect any UEFI/OVMF firmware image installed on the host.". Another person instructed me to set the nvram opeion in /etc/libvirt/qemu.conf to where I have my OVMF placed (which I downloaded from https://www.kraxel.org/repos/jenkins/edk2/), however it hasn't helped. it is set to: nvram = [ "/usr/share/edk2.git/ovmf-x64/OVMF_pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd" ] On Thursday, September 24, 2015 3:29 AM, Kashyap Chamarthy <kchamart@redhat.com> wrote: On Thu, Sep 24, 2015 at 06:47:43AM +0200, Martin Kletzander wrote:> On Wed, Sep 23, 2015 at 11:00:34PM +0000, Jonathan Rurka wrote: > >Hello, I'm new to using libvirt. After a few days of installing and > >removing libvirt, virt-manager and a few others to get VT-d working > >with a virtual machine, I finally got the latest virt-manager and > >libvirt installed from source to get the most recent > >versions. However, when I start up virt-manager I get a popup saying > >"Unable to connect to libvirt; Verify that the 'libvirtd' deamon is > >running.". When running "service libvirtd start", I get an error > >saying libvirtd.service cannot be found. I can, however, use libvirtd > >from the command line. The service file does not exist > >in /lib/systemd/system/. > > > > Did you probably forget to specify the prefix to install it into? you > can do "which libvirtd" to see that you probably installed it into > /usr/local/sbin. Specifying the prefix should help. > > Getting to your "to get VT-d working", you should check whether > everything is enabled in BIOS. That's usually the case if it's not > working for you.[A small addendum to what Martin says.] Jon, you can use `virt-host-validate` to check the above, if everything is setup correctly, it should look like that: $ sudo virt-host-validate QEMU: Checking for hardware virtualization : PASS QEMU: Checking for device /dev/kvm : PASS QEMU: Checking for device /dev/vhost-net : PASS QEMU: Checking for device /dev/net/tun : PASS LXC: Checking for Linux >= 2.6.26 : PASS [. . .] -- /kashyap
Martin Kletzander
2015-Sep-26 08:32 UTC
Re: [libvirt-users] Fw: libvirtd service not starting
On Sat, Sep 26, 2015 at 04:31:42AM +0000, Jonathan Rurka wrote:>On Thursday, September 24, 2015 12:29 PM, Jonathan Rurka <jon.rurka@yahoo.com> wrote: >Yes the "which libvirtd" and "sudo virt-host-validate" commands return correct values However, I am having a new problem now; "UEFI" is not selectable under firmware: http://i.imgur.com/O4ypOTX.png I do have VT-d enabled in my bios, my processor supports VT-d, and I am booting ubuntu in UEFI mode. The yellow triangle says "Libvirt did not detect any UEFI/OVMF firmware image installed on the host.". Another person instructed me to set the nvram opeion in /etc/libvirt/qemu.conf to where I have my OVMF placed (which I downloaded from https://www.kraxel.org/repos/jenkins/edk2/), however it hasn't helped. it is set to: >Please set your mail client to wrap those long lines, thank you.>nvram = [ >"/usr/share/edk2.git/ovmf-x64/OVMF_pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd" >] >I assume these files exist in the system and you restarted libvirtd after adding this option in the config file. Then there's not much to tell just from the looks of it. Is that the latest libvirt you are trying? Is there something about the nvram in the output of 'virsh capabilitites'? If all else fails, debug logs should help [1] Martin [1] http://wiki.libvirt.org/page/DebugLogs