Openstack
[openstack] libvirt error : Connection refused
plastic2113
2024. 5. 22. 16:00
728x90
반응형
증상
compute node에서 가상화 명령어(virsh)를 사용하면 error가 나온다..
virsh list --all
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused
but
ps -ef | grep libvirt
root 1595 1 0 2022 ? 02:34:19 /usr/sbin/libvirtd -d -l #데몬은 정상작동중
root 2343317 2343230 0 07:04 pts/6 00:00:00 grep --color=auto libvirtd
trouble-shooting
지금 동작중인 데몬을 죽이고 재시작
kill -9 [libvirt_pid] #현재 작동중인 데몬 kill
systemctl start libvirtd # 다시 데몬 시작
Verify
데몬 작동중 확인 & 가상화 명령어(virsh)실행 > 잘됨ㅎ
ps -ef | grep libvirtd
root 2343475 1 2 07:05 ? 00:00:00 /usr/sbin/libvirtd -d -l
root 2343538 2343230 0 07:05 pts/6 00:00:00 grep --color=auto libvirtd
virsh list --all # virsh명령어 작동 확인
Id Name State
------------------------------------
9 instance-00000901 running
11 instance-00000919 running
21 instance-00000971 running
30 instance-00001235 running
50 instance-0000140d running
- instance-000013f7 shut off
728x90
반응형