Xen

Xen Windows Guest spawn 不會產生 vnc 顯示

  • December 28, 2010

我正在使用這個 HVM 文件來創建一個新的來賓

kernel = "/usr/lib/xen-3.2-1/boot/hvmloader"
builder='hvm'
memory = 4096

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 64
name = "hessel-windows2008"
vif = [ 'ip=188.40.xx.xx,mac=00:16:3E:C1:8F:CE' ]

acpi = 1
apic = 1
disk = [ 'file:/home/xen/disks/hessel/win2008/win2008.img,hda,w', 'file:/home/xen/isopool/win2008_32.iso,hdc:cdrom,r' ]

device_model = '/usr/lib/xen/bin/qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d) 
# default: hard disk, cd-rom, floppy
boot="dc"

sdl=0
vnc=1
vncdisplay=1 
vnclisten="0.0.0.0"
vncconsole=1
vncpasswd='howtoforge'

stdvga=0 

serial='pty'
usbdevice='tablet'

來賓創建時沒有錯誤。但是沒有創建 vnc 顯示。任何想法,如何解決?

prometheus:~# netstat -ant

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.0.1:615           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN
tcp        0    232 188.40.xx.xx:8080      195.36.75.26:54032      ESTABLISHED
tcp        0      0 188.40.xx.xx:8080      195.36.75.26:53085      ESTABLISHED
tcp6       0      0 :::8080                 :::*                    LISTEN
tcp6       0      0 :::53                   :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:6010                :::*                    LISTEN

我用於我的線看起來像這樣:

vfb=['type=vnc,vncdisplay=2,vnclisten=192.168.100.10,vncpasswd=howtoforge']

這會導致埠監聽。但是,我使用的 Xen 版本比你稍舊。

vncunused = 0在你的配置中失踪了。這是您的設置與我們在此處執行的設置之間的唯一真正區別。

引用自:https://serverfault.com/questions/53372