The test for <vcpu> element is unrelated to vnc so the easiest fix is to
remove related configuration.
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
-sdl = 0
-vnc = 1
-vncunused = 1
-vnclisten = "127.0.0.1"
-vncpasswd = "123poi"
disk = [ "phy:/dev/HostVG/XenGuest1,xvda,w" ]
vif = [ "mac=00:16:3e:66:94:9c,bridge=br0,script=vif-bridge" ]
<console type='pty'>
<target type='xen' port='0'/>
</console>
- <input type='mouse' bus='xen'/>
- <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>
</devices>
</domain>