From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Liu Subject: Re: How to run KVM on non-X environment (RESEND) Date: Tue, 29 Jul 2008 17:01:38 +0800 (CST) Message-ID: <58482.7107.qm@web35207.mail.mud.yahoo.com> References: <4e9085270807281040yc4445cak9ecb6888d33fba13@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT To: kvm@vger.kernel.org Return-path: Received: from web35207.mail.mud.yahoo.com ([66.163.179.86]:29120 "HELO web35207.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754828AbYG2JBi (ORCPT ); Tue, 29 Jul 2008 05:01:38 -0400 In-Reply-To: <4e9085270807281040yc4445cak9ecb6888d33fba13@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Henrik, Henrik Holst wrote: > >> # kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0 > > > >Tried it just hangs there. I don't run X on the server. > Then it is working, since you are running it with -vnc :0 kvm/qemu > will provide all the output to the vnc console. so this is a sign > that > it is working. > By now performing netstat -antp you should see that the qemu process > is listening on port 5900 which is the vnc-port. On the local desktop after ssh-connect the server running; # netstat -antp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 5682/kvm tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 5100/dnsmasq tcp6 0 0 :::22 :::* LISTEN 5561/sshd tcp6 0 0 192.168.0.110:22 192.168.0.36:45338 ESTABLISHED 5566/0 Is it 5901 the vnc-port? > >> qemu contains a built in vnc-server. Thomas meant that you should > >> then > >> connect with a vncviewer to this machines ip:0. > > > >I can connect the server with SSH on desktop. I doubt whether I > have > >VNC-client running on desktop > You will have to install a vnc-client on your desktop (not on the > image that you are trying to run, on the desktop that you are writing > on right now!). If you install it on the same machine that you run > qemu/kvm on then simply put 127.0.0.1 as the remote server. Could you please explain in more detail. Thanks Can I install vnc-client on the server and run it on the desktop remotely? Similar to X forwarding. If YES please advise how to achieve it. TIA B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com