
명령 을 통해 게스트에 직렬 장치(콘솔)를 추가하고 싶습니다 virsh attach-device
. 다음을 포함하는 console.xml 파일이 있습니다.
<serial type="pty">
<target port="0"/>
</serial>
그리고 다음 명령을 실행합니다.
sudo virsh attach-device VMNAME console.xml
그러나 다음과 같은 오류가 발생합니다.
error: Failed to attach device from console.xml
error: XML error: unknown device type
내 버전 정보는 다음과 같습니다.
Compiled against library: libvir 0.9.8
Using library: libvir 0.9.8
Using API: QEMU 0.9.8
Running hypervisor: QEMU 1.0.0
내가 도대체 뭘 잘못하고있는 겁니까? 스크립트에서 이것을 어떻게 추가할 수 있나요? 어떤 도움이라도 주시면 감사하겠습니다!!
미리 감사드립니다.
답변1
libvirt에 따르면선적 서류 비치, 당신은 또한원천요소. 이 같은:
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='0'/>
</serial>