[libvirt-users] how to use libvirt

Michal Privoznik mprivozn at redhat.com
Wed Jan 9 08:52:55 UTC 2013


On 09.01.2013 07:22, tianwei zhang wrote:
> Hi Eric:
> 
> Yes, I mean sudo make install.
> 
> What I installed the libvirt on ubuntu is as below:
> 
> ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
> make
> sudo make install. 
> 
> after installation, I try to start the libvirtd and the error is:
> 
> service libvirtd start
> libvirtd: unrecognized service

I don't know what your init daemon is, but you need to tell configure
which style of init script you want to install:

./configure --with-init-script=systemd

or whatever you are using. See ./configure --help for more info on this.

> 
> Also when I type:
> 
> virsh list --all:
> error: Failed to reconnect to the hypervisor
> error: no valid connection
> error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No
> such file or directory
> 
> So what's wrong with that?

This is the result of libvirtd not running.

> 
> Thank you so much
> 
> Tianwei

Michal




More information about the libvirt-users mailing list