Nub cannot connect to Virtual Machines


#1

Ok i am totally new to KVM and this seems silly but i cannot figure out how to my KMV Virtual Machines. I think i have successfully installed the necessary KVM packages on** Ubuntu 10.04 LTS** mostly followed the Ubuntu community docs for KVM, and my machine supports Virtualization.

$ kvm-ok
INFO: Your CPU supports KVM extensions
INFO: /dev/kvm exists
KVM acceleration can be used

Here is the version infos

c0mputerking@sun:~$ virsh -c qemu:///system
Welcome to virsh, the virtualization interactive terminal.

Type: ‘help’ for help with commands
’quit’ to quit

virsh # version
Compiled against library: libvir 0.7.5
Using library: libvir 0.7.5
Using API: QEMU 0.7.5
Running hypervisor: QEMU 0.12.3

virsh # list
Id Name State

2 lucid2 running
3 lucid running

As you can see above I have created some virtual machines from a ubuntu 10.04 LTS 64bit iso using a command like this
sudo virt-install --connect qemu:///system -n lucid -r 512 -f lucid.qcow2 -s 12 -c /home/c0mputerking/ubuntu64server.iso --vnc --noautoconsole --os-type linux --os-variant ubuntuLucid --accelerate --network=network:default

I have tried connecting to my virtual machines, but like i stated in my subject am a total nub here and do not really know where to go from here please help.

virsh # connect lucid
error: Failed to connect to the hypervisor
error: internal error unexpected Xen URI path ‘lucid’, try ///var/lib/xen/xend-socket

virsh # console lucid
error: no valid connection

virsh # exit
error: unknown command: 'exit’
virsh # quit

c0mputerking@sun:~$ virt-viewer -c qemu+ssh:///system lucid

(virt-viewer:19958): Gtk-WARNING **: cannot open display: