Ubuntu 13.10 서버에 KVM 설치

Ubuntu 13.10 서버에 KVM 설치

Ubuntu 13.10 서버에 KVM을 어떻게 설치/활성화합니까?

다음 단계를 실행했습니다.

egrep -c ‘(svm|vmx)’ /proc/cpuinfo
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
sudo adduser test1 libvirtd

설치 문제가 발생하지 않았습니다. 하지만 실행하려고 할 때

sudo virsh -c qemu:///system list

다음 오류가 발생합니다.

error: failed to connect to the hypervisor 
error: Cannot recv data: Connection reset by peer

Ubuntu 13.10 서버가 있는 다른 컴퓨터에서 위의 설치 프로세스를 반복했습니다. 이 컴퓨터에서는 다음과 같은 오류가 발생합니다.

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

이러한 문제에 대한 도움이 필요합니다.

답변1

오류 의 경우 /var/run/libvirt/libvirt-sock:No such file or directory:

기본 그룹(libvirtd)에 루트가 있는지 확인하고 로그(/var/log/messages)를 관찰한 후 다음을 확인하세요.

virsh 'net-list '

실제로 기본 옵션이 있는지 확인하십시오. 이 문제는 libvirtd가 실행되지 않는 것일 수도 있습니다. 그렇다면 다음을 시도해 보십시오.

service libvirtd restart
/etc/init.d/libvirt restart

또는 rc.d 파일에 있는지 확인하고 머신이 부팅될 때 시작하세요.http://wiki.libvirt.org/page/The_daemon_cannot_be_started

관련 정보