Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

20.16.16. 채널

이는 호스트 물리적 시스템과 게스트 가상 머신 간의 개인 통신 채널을 나타내며 도메인 xml의 다음 섹션을 변경하는 관리 도구를 사용하여 게스트 가상 머신 가상 머신을 변경하여 조작됩니다.

그림 20.63. 채널


  ...
  <devices>
    <channel type='unix'>
      <source mode='bind' path='/tmp/guestfwd'/>
      <target type='guestfwd' address='10.0.2.1' port='4600'/>
    </channel>

    <!-- KVM virtio channel -->
    <channel type='pty'>
      <target type='virtio' name='arbitrary.virtio.serial.port.name'/>
    </channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
    </channel>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
    </channel>
  </devices>
  ...
이는 다양한 방법으로 구현할 수 있습니다. 특정 유형의 <채널은> <대상> 요소의 type 특성에 지정됩니다. 채널 유형에는 다음과 같이 대상 속성이 다릅니다.
  • guestfwd - 게스트 가상 시스템에서 지정된 IP 주소로 전송한 TCP 트래픽을 호스트 물리적 시스템의 채널 장치로 전달되도록 합니다. target 요소에는 address 및 port 속성이 있어야 합니다.
  • virtio - 반가상화 virtio 채널. <채널은> /dev/vport* 아래의 게스트 가상 머신에 노출되며 선택적 요소 이름이지정된 경우 /dev/virtio-ports/$name (자세한 내용은 http://fedoraproject.org/wiki/Features/VirtioSerial을 참조하십시오). 선택적 요소 주소는 위에 설명된 특정 type='virtio-serial' 컨트롤러에 채널을 연결할 수 있습니다. QEMU를 사용하면 이름이 "org.qemu.guest_agent.0"인 경우 libvirt는 게스트 가상 머신에 설치된 게스트 가상 머신 에이전트와 상호 작용하여 게스트 가상 머신 종료 또는 파일 시스템 격리와 같은 작업을 수행할 수 있습니다.
  • spicevmc - 반가상화 SPICE 채널. 도메인에는 그래픽 장치로 SPICE 서버도 있어야 합니다. 이 장치에는 기본 채널의 물리적 머신 비둘기 메시지 호스트도 있어야 합니다. 속성 type='virtio' 과 함께 target 요소가 있어야 합니다. 선택적 속성 이름은 게스트 가상 머신이 채널에 액세스하는 방법을 제어하고 기본값은 name='com.redhat.spice.0' 입니다. 선택적 <address> 요소는 채널을 특정 type='virtio-serial' 컨트롤러에 연결할 수 있습니다.