HVM으로 windows를 설치하는데 설치 초반에 드라이브 로딩하고 나서 VNC 화면이
검게 변하면서 전혀 출력이 안됩니다.
VGA 드라이브는 nvidia 기본 드라이브를 개인적으로 패치한 버전입니다.
1. VNC로 출력되는데 있어서 VGA 드라이버 특성도 타나요?
2. 이 문제에 대해서 아시는분 계신가요?
3. 그리고 HVM이 원래 이렇게 느린가요?
HVM만 실행시키면 마우스 포인트가 느리게 움직일 정도네요.
설정파일 (/etc/xen/winxp_hvm)
=============================
# -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#============================================================================
#import os, re
#arch = os.uname()[4]
#if re.search('64', arch):
# arch_libdir = 'lib64'
#else:
# arch_libdir = 'lib'
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/usr/lib/xen/boot/hvmloader"
# The domain build function. HVM domain uses 'hvm'.
builder='hvm'
# Initial memory allocation (in megabytes) for the new domain.
#
# WARNING: Creating a domain with insufficient memory may cause out of
# memory errors. The domain needs enough memory to boot kernel
# and modules. Allocating less than 32MBs is not recommended.
# max memory
maxmem = 512
#start memory
memory = 512
# Shadow pagetable memory for the domain, in MB.
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
# shadow_memory = 8
# New stuff
device_model = '/usr/lib/xen/bin/qemu-dm'
# A name for your domain. All domains must have different names.
name = "winxp_hvm"
# 128-bit UUID for the domain. The default behavior is to generate a new UUID
# on each call to 'xm create'.
#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
#-----------------------------------------------------------------------------
# The number of cpus guest platform has, default=1
vcpus=1
# Enable/disable HVM guest PAE, default=1 (enabled)
#pae=1
# Enable/disable HVM guest ACPI, default=1 (enabled)
#acpi=1
# Enable/disable HVM APIC mode, default=1 (enabled)
# Note that this option is ignored if vcpus > 1
#apic=1
# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
vif = [ 'type=ioemu, bridge=xenbr0' ]
# type=ioemu specify the NIC is an ioemu device not netfront
# vif = [ 'type=ioemu, bridge=virbr0' ]
# vif = [ 'type=ioemu, bridge=xenbr0' ]
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
#disk = [ 'phy:hda1,hda1,r' ]
#disk = [ 'file:/var/images/min-el3-i386.img,hda,w', ',hdc:cdrom,r' ]
#disk = [ 'phy:/dev/VMGuests/winxp_xen1,ioemu:hda,w' ]
#disk = [ 'phy:/dev/VMGuests/example,ioemu:hda,w' ]
#disk = [ 'phy:/dev/sda1,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,ioemu:hdc:cdrom,r' ]
disk = [ 'phy:/dev/sda1,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,hdc:cdrom,r' ]
#disk = [ 'file:/mnt/imsi/winxp.img,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,hdc:cdrom,r' ]
#----------------------------------------------------------------------------
# Configure the behaviour when a domain exits. There are three 'reasons'
# for a domain to stop: poweroff, reboot, and crash. For each of these you
# may specify:
#
# "destroy", meaning that the domain is cleaned up as normal;
# "restart", meaning that a new domain is started in place of the old
# one;
# "preserve", meaning that no clean-up is done until the domain is
# manually destroyed (using xm destroy, for example); or
# "rename-restart", meaning that the old domain is not cleaned up, but is
# renamed and a new domain started in its place.
#
# The default is
#
# on_poweroff = 'destroy'
# on_reboot = 'restart'
# on_crash = 'restart'
#
# For backwards compatibility we also support the deprecated option restart
#
# restart = 'onreboot' means on_poweroff = 'destroy'
# on_reboot = 'restart'
# on_crash = 'destroy'
#
# restart = 'always' means on_poweroff = 'restart'
# on_reboot = 'restart'
# on_crash = 'restart'
#
# restart = 'never' means on_poweroff = 'destroy'
# on_reboot = 'destroy'
# on_crash = 'destroy'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
#============================================================================
#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
#boot="dca"
#cdrom="/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso"
boot="d"
#-----------------------------------------------------------------------------
# write to temporary files instead of disk image files
#snapshot=1
#----------------------------------------------------------------------------
# enable SDL library for graphics, default = 0
sdl=0
#----------------------------------------------------------------------------
# enable VNC library for graphics, default = 1
vnc=1
#vncviewer=1
#----------------------------------------------------------------------------
# address that should be listened on for the VNC server if vnc is set.
# default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp
#vnclisten="127.0.0.1"
#----------------------------------------------------------------------------
# set VNC display number, default = domid
#vncdisplay=1
#----------------------------------------------------------------------------
# try to find an unused port for the VNC server, default = 1
#vncunused=1
#----------------------------------------------------------------------------
# enable spawning vncviewer for domain's console
# (only valid when vnc=1), default = 0
vncconsole=1
#----------------------------------------------------------------------------
# set password for domain's VNC console
# default is depents on vncpasswd in xend-config.sxp
#vncpasswd='dkagh1004'
#----------------------------------------------------------------------------
# no graphics, use serial port
#nographic=0
#----------------------------------------------------------------------------
# enable stdvga, default = 0 (use cirrus logic device model)
#stdvga=0
#-----------------------------------------------------------------------------
# serial port re-direct to pty deivce, /dev/pts/n
# then xm console or minicom can connect
serial='pty'
#-----------------------------------------------------------------------------
# Qemu Monitor, default is disable
# Use ctrl-alt-2 to connect
#monitor=1
#-----------------------------------------------------------------------------
# enable sound card support, [sb16|es1370|all|..,..], default none
#soundhw='sb16'
#-----------------------------------------------------------------------------
# set the real time clock to local time [default=0 i.e. set to utc]
#localtime=1
#-----------------------------------------------------------------------------
# set the real time clock offset in seconds [default=0 i.e. same as dom0]
#rtc_timeoffset=3600
#-----------------------------------------------------------------------------
# start in full screen
#full-screen=1
#-----------------------------------------------------------------------------
# Enable USB support (specific devices specified at runtime through the
# monitor window)
#usb=1
# Enable USB mouse support (only enable one of the following, `mouse' for
# PS/2 protocol relative mouse, `tablet' for
# absolute mouse)
# usbdevice='mouse'
#usbdevice='mouse'
#-----------------------------------------------------------------------------
# Set keyboard layout, default is en-us keyboard.
keymap='en-us'
검게 변하면서 전혀 출력이 안됩니다.
VGA 드라이브는 nvidia 기본 드라이브를 개인적으로 패치한 버전입니다.
1. VNC로 출력되는데 있어서 VGA 드라이버 특성도 타나요?
2. 이 문제에 대해서 아시는분 계신가요?
3. 그리고 HVM이 원래 이렇게 느린가요?
HVM만 실행시키면 마우스 포인트가 느리게 움직일 정도네요.
설정파일 (/etc/xen/winxp_hvm)
=============================
# -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#============================================================================
#import os, re
#arch = os.uname()[4]
#if re.search('64', arch):
# arch_libdir = 'lib64'
#else:
# arch_libdir = 'lib'
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/usr/lib/xen/boot/hvmloader"
# The domain build function. HVM domain uses 'hvm'.
builder='hvm'
# Initial memory allocation (in megabytes) for the new domain.
#
# WARNING: Creating a domain with insufficient memory may cause out of
# memory errors. The domain needs enough memory to boot kernel
# and modules. Allocating less than 32MBs is not recommended.
# max memory
maxmem = 512
#start memory
memory = 512
# Shadow pagetable memory for the domain, in MB.
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
# shadow_memory = 8
# New stuff
device_model = '/usr/lib/xen/bin/qemu-dm'
# A name for your domain. All domains must have different names.
name = "winxp_hvm"
# 128-bit UUID for the domain. The default behavior is to generate a new UUID
# on each call to 'xm create'.
#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
#-----------------------------------------------------------------------------
# The number of cpus guest platform has, default=1
vcpus=1
# Enable/disable HVM guest PAE, default=1 (enabled)
#pae=1
# Enable/disable HVM guest ACPI, default=1 (enabled)
#acpi=1
# Enable/disable HVM APIC mode, default=1 (enabled)
# Note that this option is ignored if vcpus > 1
#apic=1
# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
vif = [ 'type=ioemu, bridge=xenbr0' ]
# type=ioemu specify the NIC is an ioemu device not netfront
# vif = [ 'type=ioemu, bridge=virbr0' ]
# vif = [ 'type=ioemu, bridge=xenbr0' ]
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
#disk = [ 'phy:hda1,hda1,r' ]
#disk = [ 'file:/var/images/min-el3-i386.img,hda,w', ',hdc:cdrom,r' ]
#disk = [ 'phy:/dev/VMGuests/winxp_xen1,ioemu:hda,w' ]
#disk = [ 'phy:/dev/VMGuests/example,ioemu:hda,w' ]
#disk = [ 'phy:/dev/sda1,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,ioemu:hdc:cdrom,r' ]
disk = [ 'phy:/dev/sda1,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,hdc:cdrom,r' ]
#disk = [ 'file:/mnt/imsi/winxp.img,hda,w', 'file:/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso,hdc:cdrom,r' ]
#----------------------------------------------------------------------------
# Configure the behaviour when a domain exits. There are three 'reasons'
# for a domain to stop: poweroff, reboot, and crash. For each of these you
# may specify:
#
# "destroy", meaning that the domain is cleaned up as normal;
# "restart", meaning that a new domain is started in place of the old
# one;
# "preserve", meaning that no clean-up is done until the domain is
# manually destroyed (using xm destroy, for example); or
# "rename-restart", meaning that the old domain is not cleaned up, but is
# renamed and a new domain started in its place.
#
# The default is
#
# on_poweroff = 'destroy'
# on_reboot = 'restart'
# on_crash = 'restart'
#
# For backwards compatibility we also support the deprecated option restart
#
# restart = 'onreboot' means on_poweroff = 'destroy'
# on_reboot = 'restart'
# on_crash = 'destroy'
#
# restart = 'always' means on_poweroff = 'restart'
# on_reboot = 'restart'
# on_crash = 'restart'
#
# restart = 'never' means on_poweroff = 'destroy'
# on_reboot = 'destroy'
# on_crash = 'destroy'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
#============================================================================
#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
#boot="dca"
#cdrom="/DATA/OS/WinXP_SP2/WindowXP_Pro_Sp2_Kor.iso"
boot="d"
#-----------------------------------------------------------------------------
# write to temporary files instead of disk image files
#snapshot=1
#----------------------------------------------------------------------------
# enable SDL library for graphics, default = 0
sdl=0
#----------------------------------------------------------------------------
# enable VNC library for graphics, default = 1
vnc=1
#vncviewer=1
#----------------------------------------------------------------------------
# address that should be listened on for the VNC server if vnc is set.
# default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp
#vnclisten="127.0.0.1"
#----------------------------------------------------------------------------
# set VNC display number, default = domid
#vncdisplay=1
#----------------------------------------------------------------------------
# try to find an unused port for the VNC server, default = 1
#vncunused=1
#----------------------------------------------------------------------------
# enable spawning vncviewer for domain's console
# (only valid when vnc=1), default = 0
vncconsole=1
#----------------------------------------------------------------------------
# set password for domain's VNC console
# default is depents on vncpasswd in xend-config.sxp
#vncpasswd='dkagh1004'
#----------------------------------------------------------------------------
# no graphics, use serial port
#nographic=0
#----------------------------------------------------------------------------
# enable stdvga, default = 0 (use cirrus logic device model)
#stdvga=0
#-----------------------------------------------------------------------------
# serial port re-direct to pty deivce, /dev/pts/n
# then xm console or minicom can connect
serial='pty'
#-----------------------------------------------------------------------------
# Qemu Monitor, default is disable
# Use ctrl-alt-2 to connect
#monitor=1
#-----------------------------------------------------------------------------
# enable sound card support, [sb16|es1370|all|..,..], default none
#soundhw='sb16'
#-----------------------------------------------------------------------------
# set the real time clock to local time [default=0 i.e. set to utc]
#localtime=1
#-----------------------------------------------------------------------------
# set the real time clock offset in seconds [default=0 i.e. same as dom0]
#rtc_timeoffset=3600
#-----------------------------------------------------------------------------
# start in full screen
#full-screen=1
#-----------------------------------------------------------------------------
# Enable USB support (specific devices specified at runtime through the
# monitor window)
#usb=1
# Enable USB mouse support (only enable one of the following, `mouse' for
# PS/2 protocol relative mouse, `tablet' for
# absolute mouse)
# usbdevice='mouse'
#usbdevice='mouse'
#-----------------------------------------------------------------------------
# Set keyboard layout, default is en-us keyboard.
keymap='en-us'
댓글 4
-
김광태
2008.04.24 09:52
-
김광태
2008.04.24 09:53
Windows Server 2008의 경우에도 HVM 상태로만 돌릴경우 못봐줄 정도 입니다. ㅋㅋ -
백창우
2008.04.24 10:01
VNC쪽은 초기 부팅화면은 보이는걸로 봐서 접속은 잘되는데 중간에 뭔가 문제가 있는것 같습니다.
그랬군요... Xen도 못봐줄 정도입니다. :)
그래서 VMware로 갈아탔습니다. ㅋ
-
정성욱
2008.05.06 14:02
제가 요즘 너무 바쩌서 글을 이제야 봤습니다.
죄송합니다.
HVM 느리지 않습니다. 전혀 느리지 않아요.
꾀 빠른 편입니다. 디스크 I/O만 빼놓고 말이죠.
뭐 하드웨어에 따라 틀리겠지만.
너무 늦은거 같지만,
설정파일은 대충 맞는거 같습니다.
dom0의 ip가 192.168.1.1이라는 가정하에
vncviewer 192.168.1.1:1
이렇게 하시면 될거 같습니다.
뒤의 :1 은 vnc의 세션 넘버입니다.
0번은 dom0가 사용하고 있기 때문에
1번부터 할당된답니다.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | [공지] 하이퍼바이져 스터디 관련 Q&A 게시판 입니다. | woos | 2016.04.09 | 237 |
175 | [XEN] 5/26 스터디 [2] | 문대혁 | 2011.05.26 | 7012 |
174 | Virtualization 자료 [2] | 백창우 | 2007.11.15 | 6825 |
173 | 저희 다시 시작해야죠~ [8] | 이상철 | 2011.08.04 | 6774 |
172 | 이번주 일이 생겨서 스터디 불참해야 될거 같습니다. | 이상철 | 2011.06.10 | 6750 |
171 | 추천 책 [2] | 정성욱 | 2007.12.26 | 6639 |
170 | [PPT 자료] Interrupt Handling | 백창우 | 2008.07.19 | 6606 |
169 | Xen 소스 및 문서자료 | 백창우 | 2007.11.15 | 6533 |
168 | putty로 ssh터널링하기 | 정찬호 | 2008.03.12 | 6528 |
167 | 가상화 기술로 사설 IP에서 여러 웹서버를 운영할 수 있을까요? [3] | 김기태 | 2008.03.13 | 6522 |
» | Xen HVM 설치문제 [4] | 백창우 | 2008.04.24 | 6396 |
165 | XEN Scheduler 비교 | 박은병 | 2010.10.09 | 6373 |
164 | [정보] Xen Book (pdf) | 김광태 | 2008.01.22 | 6335 |
163 | Windows Kernel에서 suspend 문제 [9] | 백창우 | 2008.04.20 | 6323 |
162 | Xen의 구성입니다. | 정성욱 | 2007.12.19 | 6310 |
161 | vimrc 파일 입니다. | 김연희 | 2011.09.03 | 6217 |
160 | x86 시뮬레이터 [2] | 백창우 | 2008.01.25 | 6153 |
159 | 스터디를 위한 소스를 google code에 업로드 하였습니다. [3] | 김연희 | 2011.09.24 | 6027 |
158 | XenEnterprise source [1] | 백창우 | 2008.01.02 | 5985 |
157 | Xen 부팅과정 메모리 맵 [4] | 백창우 | 2008.03.20 | 5924 |
156 | 스터디참여문의 [2] | 서영덕 | 2011.11.27 | 5922 |
.
Dom0에서 VNC Listening port를 "netstat -l | grep tcp | grep 59"로 얻어올수 있다고 하네요..
글구 HVM은 엄청나게 느리다는거는 알려진것 아닌가요? 그래서 paravirtualization을 시도해서 hipercall이 최소한으로 일어나게 하여 Domain <-> VMM <-> Domain 간의 스위칭을 최소화 해야 속도를 좀 낼수 있는것으로 이해하고 있었는데요.