
예기치 않게 로드되지 않는 실행 중인 가상 머신이 있습니다. CentOS7에서 virt-manager 사용
오류는 다음과 같습니다
Error Starting Domain: internal error: Did not find USB device 05ac:12a8
05ac:12a8
QEMU GUI에 USB 장치가 표시됩니다.
가상화이기 때문에 서버에 어떤 USB 장치가 있는지 모르겠습니다.
오류 세부정보는 다음과 같습니다.
Error starting domain: internal error: Did not find USB device 05ac:12a8
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1506, in startup
self._backend.create()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1080, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: Did not find USB device 05ac:12a8
libvirtd
상태는 또한 장치를 찾을 수 없음을 확인합니다.
[orca@orcacomputers ~]$ systemctl status libvirtd -l
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-09-22 15:44:22 PDT; 12min ago
Docs: man:libvirtd(8)
https://libvirt.org
Main PID: 2419 (libvirtd)
Tasks: 17 (limit: 32768)
Memory: 23.4M
CGroup: /system.slice/libvirtd.service
└─2419 /usr/sbin/libvirtd
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.269+0000: 2523: error : storageDriverAutostartCallback:209 : internal error: Failed to autostart storage pool 'CentOS': cannot open directory '/mnt/raid5/VM/CentOS': No such file or directory
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.295+0000: 2523: error : virUSBDeviceFindByVendor:229 : internal error: Did not find USB device 05ac:12a8
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.386+0000: 2523: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.386+0000: 2523: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.386+0000: 2523: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
Sep 22 15:44:23 orcacomputers libvirtd[2419]: 2021-09-22 22:44:23.386+0000: 2523: error : qemuAutostartDomain:258 : internal error: Failed to autostart VM 'Debian': internal error: Did not find USB device 05ac:12a8
Sep 22 15:45:18 orcacomputers libvirtd[2419]: 2021-09-22 22:45:18.706+0000: 2473: error : virUSBDeviceFindByVendor:229 : internal error: Did not find USB device 05ac:12a8
Sep 22 15:45:18 orcacomputers libvirtd[2419]: 2021-09-22 22:45:18.706+0000: 2473: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
Sep 22 15:45:18 orcacomputers libvirtd[2419]: 2021-09-22 22:45:18.706+0000: 2473: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
Sep 22 15:45:18 orcacomputers libvirtd[2419]: 2021-09-22 22:45:18.706+0000: 2473: warning : virHostdevReAttachUSBDevices:1922 : Unable to find device 000.000 in list of active USB devices
답변1
일반적인:
05ac:12a8
USB 버스의 식별자입니다. 기본적으로 사용할 수 없으며 수동으로 추가해야 합니다. 문제가 있는 장치를 제거하고 가상 머신을 시작하기만 하면 됩니다. 가상 머신이 USB 장치에 액세스하는 것을 허용하지 않으려면 세 개를 모두 삭제할 수도 있습니다.
이 작업을 수행하기 전에 평소대로 가상 머신을 백업하는 것이 좋습니다. 기본 저장 경로는 이며 /var/lib/libvirt/images
확장자는 입니다 .qcow
. 또한 확인하는 것이 좋습니다 /var/lib/libvirt/qemu/save
. 컴퓨터가 저장 상태에 있으면 여기에서 이름은 일치하지만 확장자는 동일한 파일을 찾을 수 있습니다 .save
. USB 버스를 제거하면 문제가 발생하는 경우 파일을 원래 위치로 다시 복사하기만 하면 현재 상태를 쉽게 복원할 수 있습니다.
이 특별한 경우에는:
메시지도 있어요
cannot open directory '/mnt/raid5/VM/CentOS'
이는 VM이 생성될 때 USB 버스에 연결된 실제 USB 저장소를 참조할 수 있습니다. 나는 분명히 알 방법이 없으며 테스트만 할 수 있습니다. 따라서 무엇이든 변경하기 전에 파일을 백업하십시오.