VPS Ubuntu 16.04 LTS(헤드리스)의 KVM libvirt-sock: 해당 파일 없음

VPS Ubuntu 16.04 LTS(헤드리스)의 KVM libvirt-sock: 해당 파일 없음

(원격 호스팅) VPS(Ubuntu 16.04 LTS)에서 KVM 서버를 생성하려고 합니다.

이 패키지를 설치했습니다

sudo apt-get install kvm ubuntu-vm-builder libvirt-bin bridge-utils

sudo egrep '(vmx|svm)' --color=always /proc/cpuinfo

그러면 VMX가 반환됩니다(8회).

kvm-ok

보고

INFO: /dev/kvm exists
KVM acceleration can be used

그러나 다음 명령을 실행할 때

virsh --connect qemu:///system list --all

다음을 반환합니다.

error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or di

달릴 때

systemctl status libvirtd

그것은 다음을 반환합니다 :

● libvirt-bin.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
Active: inactive (dead) since di 2018-02-27 16:10:50 CET; 37min ago
Process: 465 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=0/SUCCESS)
Main PID: 465 (code=exited, status=0/SUCCESS)
feb 27 16:10:50 xxxxxxx.stratoserver.net libvirtd[465]: 488: error : udevGetDMIData:1578 : Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or '/sys/class/dmi/id'
feb 27 16:10:50 xxxxxxx.stratoserver.net libvirtd[465]: 488: error : udevEnumerateDevices:1456 : udev scan devices returned -2
feb 27 16:10:50 xxxxxxx.stratoserver.net libvirtd[465]: 488: error : virStateInitialize:783 : Initialization of udev state driver failed: Unknown problem
feb 27 16:10:50 xxxxxxx.stratoserver.net libvirtd[465]: 488: error : daemonRunStateInit:950 : Driver state initialization failed

나는 여기에 거의 갇혀 있습니다. libvirt-sock 파일이 전혀 없습니다.

누구든지 나를 도와줄 수 있다면 정말 감사하겠습니다!

친애하는,

PS 이것이 오류와 관련이 있는지는 잘 모르겠지만 내 /etc/network/interfaces 파일에서 "eth" 인터페이스는 없고 "venet" 인터페이스만 있는 것으로 나타났습니다.

답변1

귀하의 "VPS"는 실제로 완전한 가상 머신이 아닌 OpenVZ Linux 컨테이너입니다. Libvirtd는 OpenVZ 컨테이너 내에서 시작할 수 없습니다.

KVM, Hyper-V, Xen, VMware 등과 같은 중첩 가능한 가상화를 기반으로 하고 공급자가 중첩된 가상화를 활성화한 VPS를 얻어야 합니다.

관련 정보