If I use "kvm ubuntu.img -vnc :1" , I can use vncviewer and input the "192.168.7.126:1" entering the VM successfully.
Is there any log file about libvirt that may show some clue?

best regards,
qinguan

2011/5/5 Daniel P. Berrange <berrange@redhat.com>
On Thu, May 05, 2011 at 06:46:32PM +0800, guan qin wrote:
> yeh,it's working !
> I can see that the VM already running and never kill itself now.
> I appreciate your help very much.
>
> but I meet another problem after I upgrade the libvirt version from 0.8.3 to
> 0.9.0.
> I find that if I use "virt-viewer -c
> qemu+ssh://192.168.7.126/systemvt_d_ubuntu",
> the machine shows a message that "Unable to connect to libvirt with URL
> qemu+ssh://192.168.7.126/system ".

This is ssh'ing as an unprivileged user, and so it likely doesn't have
permission for the socket. You can try  'qemu+ssh://root@192.168.7.126/system'
instead

Also see these pages

 http://wiki.libvirt.org/page/Main_Page#SSH

Daniel
--
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|