출처 : http://blog.seabow.pe.kr/?p=1286


RHEL6 와 KVM 환경에서 Windows Spice Client 를 이용하여 Guest OS 에 접근 하는 방법을
찾아 보도록 하겠다.


## Spice 활성화 화기


#vi example.xml
————————edit———————————————–
    <channel type=’spicevmc’>
      <target type=’virtio’ name=’com.redhat.spice.0′/>
      <address type=’virtio-serial’ controller=’0′ bus=’0′ port=’1′/>
    </channel>


    <graphics type=’spice’ autoport=’yes’ listen=’0.0.0.0′ passwd=’password’>
————————edit———————————————–


혹은 virt-manager 를 이용하여 spice 사용 항목을 활성화 시켜준다.


사용자 삽입 이미지


>> 공통) 위 virt-manager 를 이용하여 spice 를 활성화 시킬경우 graphics 섹션에 listen=’0.0.0.0′ 를 추가해 줘야 외부에서도 접근이 된다.


## Windows 용 Spice Client DownLoad


link : http://spice-space.org/download.html


사이트에 접속하면 아래와 같은 파일들이 존재한다.


사용자 삽입 이미지
여기서 직접적으로 필요한 파일은 Windows Client – spice-client-win32-xxx.zip 파일과
Windows libraries – spice_libs_win32_xxx_and_earlier.zip 파일이다.


설치 방법은 비교적 간단하다… 더 자세한 내용은 찾기가 힘들다…ㅠㅠ 이 부분도 어렵게 찾았음.


1. spice_libs_win32_xxx_and_earlier.zip 압축 해제
2. spice-client-win32-xxx.zip 압축 해제
3. spice_libs_win32_xxx_and_earlier.zip 를 압축 해제하면 include, libs 디렉토리가 생성 된다.
4. 3번 작업에서 확인된 libs 디렉토리에 spice-client-win32-xxx.zip 에서 압축 해제된 spicec.exe
파일을 이동시키면 spicec.exe 가 실행된다. ( 그렇지 않을경우 libcelt-xxx.dll 파일이 없다는 메시지가 발생된다. )


## Windows 용 Spice Client 실행


#spicec.exe


사용자 삽입 이미지사용자 삽입 이미지
위 그림과 같이 spicec.exe 를 이용하여 Debian6 시스템에 접속을 하였습니다.
qxl 드라이버를 적용하면 spice 의 성능을 느낄 수 있다고 하는데 Debian6 에서는 아직 찾지 못 했으며 RHEL6 버전에선 따로 설정을 안 해줘도 된다는 내용이 있습니다.


Guest OS 의 .xml 설정과 관련하여 Remote 접속 설정 부분은
link : https://access.redhat.com/kb/docs/DOC-53300 (RHN ID 필요)
을 보시면 좀더 자세히 나와 있습니다.


### 내용 간단 설명 ###


기존 Guest OS 의 .xml 파일엔 vnc를 사용하게 되어있어서

<graphics type='vnc' port='-1' autoport='yes'/>
로 설정 되어 있으나

#To always use the same tcp port
<graphics type='spice' port='5900' tlsPort='5901' autoport='no' listen='0.0.0.0'/>

#To have libvirtd choose ports when the guest is started.  Use a -1 for the ports and enable autoport.
<graphics type='spice' port='-1' tlsPort='-1' autoport='yes' listen='0.0.0.0'/>

#
To password protect the connection
<graphics type='spice' port='5900' tlsPort='5901' autoport='no' passwd='redhat' listen='0.0.0.0'/>

로 설정을 하고 Video HardWare 부분도 기존 cirrus 에서 qxl 로 설정

<video>
     <model type='qxl' heads='1'/>
</video>

## RHEL Guest OS 에서 qxl 설정


RHEL6 는 별도로 설정해줄 부분이 없으며


RHEL 5.4 이상의 버전에선  “/etc/X11/xorg.conf”에 하단의 qxl 드라이버 설정을 해준다.


Section "Device"
    Identifier  "Videocard0"
    Driver      "qxl"
EndSection
## Windows Guest OS 에서 qxl 설정
link : http://www.linux-kvm.com/content/rhev-spice-guest-drivers-released-windows

(KVM) Windows 에서 Spice Client 사용하기

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다