I've recently installed Debian Lenny witch Xen (xen-utils, xen.tools and xen-linux-system-2.6.26-2-xen-amd64).
I want to virtualize some windows servers, but I'm unable to connect to localhost VNC when I start the vm (xm create) to proceed with windows instalation.
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen-3.2-1/boot/hvmloader"
builder='hvm'
memory =
2048
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "w2k8"
vif = [ 'type=ioemu, bridge=eth1' ]
acpi = 1
apic = 1
disk = [ 'file:/virtual/vm/w2k8.img,hda,w', 'file:/virtual/iso/w2k8.iso,hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/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
vncconsole=1
vncpasswd=''
#serial='pty'
#usbdevice='tablet'
And I've activated the listenig to 0.0.0.0 into the xend config.
When I start the VM I try to connect to the vnc (vncviewer localhost or vncviewer localhost:1) and it allways returns:
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
I'm doing something wrong???