Posted on 2012/01/09 23:04
Filed Under Etc/Linux-KVM

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

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2012/01/09 23:04 2012/01/09 23:04


Posted on 2009/10/20 15:48
Filed Under Etc/Linux-KVM

RHEL 5.4 부터는 가상화와 관련하여 KVM 이 제공되고 있습니다.

그러나 x86 버전엔 해당 패키지가 존제하지 않습니다. ( xen Package 만 있을뿐 )

당연히 update 도 없구요

관련하여 Red Hat 홈페이지의 내용을 첨부 합니다.

KVM requirements
The KVM hypervisor requires:
  • an Intel processor with the Intel VT and the Intel 64 extensions, or
  • an AMD processor with the AMD-V and the AMD64 extensions.
Refer to Section 28.6, “Verifying virtualization extensions” to determine if your processor has the virtualization extensions.

출처 : http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Virtualization_Guide/chap-Virtualization-System_requirements.html

Migration limitations
Live migration is only possible with CPUs from the same vendor (that is, Intel to Intel or AMD to AMD only).
The No eXecution (NX) bit in Must be set on or off for both CPUs for live migration.
출처 : http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Virtualization_Guide/sect-Virtualization-Virtualization_limitations-KVM_limitations.html

Important

KVM only supports AMD64 and Intel 64 versions of Red Hat Enterprise Linux. Other architectures are not supported at this time.

출처 : http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Virtualization_Guide/chap-Virtualization-KVM_Restrictions_and_support.html


RHEL5.4 에서 KVM 을 사용하기 위해선 x86_64 버전을 사용하시기 바랍니다.

추가 . 2009. 11. 11
CentOS 5.4 에선 x86 도 KVM 을 지원 하는군요...

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/10/20 15:48 2009/10/20 15:48


About

by 삐꾸강아쥐

Counter

· Total
: 138036
· Today
: 12
· Yesterday
: 155
블로그코리아에 블UP하기