VNC不工作在XEN / libvirt domU – debian jessie

您好最近configuration了一个全新的服务器进行testing:

我通过virt-install创build并启动了一个新的domU:

virt-install \ --network=bridge:br0 \ --name=test1 \ --disk path=/home/xen/tests/test1.qcow2,format=qcow2 \ --boot hd \ --ram 512 \ --vcpus=1 \ --check-cpu \ --hvm \ --graphics vnc,listen=0.0.0.0,port=5901,password="secret" \ --noautoconsole 

创build工作正常,VM按预期启动,但不能通过VNC访问domU。

遵循virt-install创build的XML:

 <domain type='xen'> <name>test1</name> <uuid>53cf8b9b-9fa8-4751-8bea-6c2bf8519b96</uuid> <memory unit='KiB'>524288</memory> <currentMemory unit='KiB'>524288</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='xenfv'>hvm</type> <loader type='rom'>/usr/lib/xen/boot/hvmloader</loader> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator> <disk type='file' device='disk'> <source file='/home/xen/tests/test1.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='ide' index='0'/> <interface type='bridge'> <mac address='00:16:3e:8f:a2:59'/> <source bridge='br0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0' keymap='it' passwd='secret'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='16384' heads='1'/> </video> </devices> 

通过查看进程列表,我发现:

 root 17576 70.1 6.1 468588 26788 ? SLsl 03:23 0:14 /usr/bin/qemu-system-i386 -xen-domid 73 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-73,server,nowait -mon chardev=libxl-cmd,mode=control -nodefaults -name test1 -vnc 0.0.0.0:1 -display none -serial pty -device cirrus-vga -global vga.vram_size_mb=8 -boot order=c -device rtl8139,id=nic0,netdev=net0,mac=00:16:3e:8f:a2:59 -netdev type=tap,id=net0,ifname=vif73.0-emu,script=no,downscript=no -machine xenfv -m 504 -drive file=/home/xen/tests/test1.qcow2,if=ide,index=0,media=disk,format=raw,cache=writeback 

如果我使用KVM而不是XEN创build完全相同的机器

 --connect=qemu:///system 

VNC连接工作顺利,我可以很容易地authentication到访客虚拟机。

我认为问题在于VNC没有以密码参数开始,但是我真的不知道在哪里看。

注意:

  • 相同的XMLconfiguration在debian wheezy 7.5上正常工作(用xen代替xl toolstack)
  • 在进程列表中查看使用KVM创build的domU具有“ -vnc 0.0.0.0:1,password ”,而具有XEN的domU具有“ -vnc 0.0.0.0:1(对我来说这似乎很奇怪)
  • domUs通过virsh进行pipe理

这是在debian Jessie中新xen toolstack(xl)和virsh的问题吗? 有人有这个相同的问题或类似的东西?

让我知道如果我可以添加一些缺失的细节,以更好地了解情况。