virsh list not working

WebHostingNeeds

Renowned Member
Dec 4, 2015
19
0
66
I have OVH ProxMox v4.0 server. When i run


Code:
# virsh list
setlocale: No such file or directory
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory




#


I tried starting libvirtd


Code:
# systemctl start libvirtd
Job for libvirtd.service failed. See 'systemctl status libvirtd.service' and 'journalctl -xn' for details.
#


journalctl -xn shows

Code:
# journalctl -xn
-- Logs begin at Fri 2015-12-04 03:42:26 GMT, end at Fri 2015-12-04 04:14:23 GMT. --
Dec 04 04:14:23 server1 libvirtd[5733]: cannot connect to netlink socket with protocol 0: Permission denied
Dec 04 04:14:23 server1 systemd[1]: libvirtd.service: main process exited, code=exited, status=6/NOTCONFIGURED
Dec 04 04:14:23 server1 systemd[1]: Failed to start Virtualization daemon.
-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- 
-- Unit libvirtd.service has failed.
-- 
-- The result is failed.
Dec 04 04:14:23 server1 systemd[1]: Unit libvirtd.service entered failed state.
Dec 04 04:14:23 server1 systemd[1]: libvirtd.service holdoff time over, scheduling restart.
Dec 04 04:14:23 server1 systemd[1]: Stopping Virtualization daemon...
-- Subject: Unit libvirtd.service has begun shutting down
-- Defined-By: systemd
-- 
-- Unit libvirtd.service has begun shutting down.
Dec 04 04:14:23 server1 systemd[1]: Starting Virtualization daemon...
-- Subject: Unit libvirtd.service has begun with start-up
-- Defined-By: systemd
-- 
-- Unit libvirtd.service has begun starting up.
Dec 04 04:14:23 server1 systemd[1]: libvirtd.service start request repeated too quickly, refusing to start.
Dec 04 04:14:23 server1 systemd[1]: Failed to start Virtualization daemon.
-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- 
-- Unit libvirtd.service has failed.
-- 
-- The result is failed.
Dec 04 04:14:23 server1 systemd[1]: Unit libvirtd.service entered failed state.
#


How i fix this ?
 
virsh in not part of Proxmox, so you must have installed it, did you install it, which packages did you download, did you miss something?
 
It is part of libvirt package, i installed it with

Code:
apt-get install libvirt-bin

This is what i used to manage KVM VPS on another server with no control panel, it is command line tool. Since i am new to ProxMox, i can checking this, so i can control my VPS even if ProxMox did not work.

Is there anyway i can see list of running VPS on a ProxMox server ?
 
It is part of libvirt package, i installed it with

Code:
apt-get install libvirt-bin

This is what i used to manage KVM VPS on another server with no control panel, it is command line tool. Since i am new to ProxMox, i can checking this, so i can control my VPS even if ProxMox did not work.

Is there anyway i can see list of running VPS on a ProxMox server ?

Hi,
pve doesn't use libvirt...

for cli commands use
Code:
qm list
lxc-ls
lxc-info
Udo
 
Thanks Udo, qm list works.

So we can't connect to VPS on ProxMox server with virt-manager ?

Code:
virt-manager.org

EDIT: Done some googling, found it do not working with virt-manager.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!