All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Liu <satimis@yahoo.com>
To: kvm@vger.kernel.org
Subject: Re: How to run KVM on non-X environment (RESEND)
Date: Tue, 29 Jul 2008 17:01:38 +0800 (CST)	[thread overview]
Message-ID: <58482.7107.qm@web35207.mail.mud.yahoo.com> (raw)
In-Reply-To: <4e9085270807281040yc4445cak9ecb6888d33fba13@mail.gmail.com>

Hi Henrik,


Henrik Holst <henrik@witsbits.com> 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 

  reply	other threads:[~2008-07-29  9:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 17:40 How to run KVM on non-X environment (RESEND) Henrik Holst
2008-07-29  9:01 ` Stephen Liu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-28 14:40 Henrik Holst
2008-07-28 16:15 ` Stephen Liu
2008-07-28  6:41 How to run KVM on non-X environment Thomas Mueller
2008-07-28  7:06 ` How to run KVM on non-X environment (RESEND) Stephen Liu
2008-07-28  7:09   ` Thomas Mueller
2008-07-28 14:09     ` Stephen Liu
2008-07-28 17:42       ` Thomas Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58482.7107.qm@web35207.mail.mud.yahoo.com \
    --to=satimis@yahoo.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.