public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: How to run KVM on non-X environment (RESEND)
  2008-07-28  6:41 How to run KVM on non-X environment Thomas Mueller
@ 2008-07-28  7:06 ` Stephen Liu
  2008-07-28  7:09   ` Thomas Mueller
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Liu @ 2008-07-28  7:06 UTC (permalink / raw)
  To: kvm

--- Thomas Mueller <thomas@chaschperli.ch> wrote:

> On Mon, 28 Jul 2008 13:18:32 +0800, Stephen Liu wrote:
> 
> 
> > 
> > On running
> > # kvm -m 750 -cdrom /dev/scd0 -boot d ubuntu6.06.img
> 
> add -vnc :<number>
> 
> or disable graphics completly (see kvm --help)


Hi Thomas,


Thanks for your advice.


There is no graphic running on the server which is headless.  I
configure the server remotely via ssh connection on a workstation.


Please explain in more detail.  The CD running on /dev/scd0 is an
installer to install Ubuntu 6.06 NOT an ISO image.


TIA


B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Mueller @ 2008-07-28  7:09 UTC (permalink / raw)
  To: kvm

On Mon, 28 Jul 2008 15:06:17 +0800, Stephen Liu wrote:


>> 
>> 
>> > On running
>> > # kvm -m 750 -cdrom /dev/scd0 -boot d ubuntu6.06.img
>> 
>> add -vnc :<number>
>> 
>> or disable graphics completly (see kvm --help)
> 
> 
> Hi Thomas,
> 
> 
> Thanks for your advice.
> 
> 
> There is no graphic running on the server which is headless.  I
> configure the server remotely via ssh connection on a workstation.
> 
> 
> Please explain in more detail.  The CD running on /dev/scd0 is an
> installer to install Ubuntu 6.06 NOT an ISO image.

so if you want to access the "vga monitor" of the virtual machine, you 
have to add "-vnc :0" and then connect with a vnc to "physical-host-ip-or-
dnsname:0"

- Thomas

http://en.wikipedia.org/wiki/Virtual_Network_Computing



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
  2008-07-28  7:09   ` Thomas Mueller
@ 2008-07-28 14:09     ` Stephen Liu
  2008-07-28 17:42       ` Thomas Mueller
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Liu @ 2008-07-28 14:09 UTC (permalink / raw)
  To: kvm


--- Thomas Mueller <thomas@chaschperli.ch> wrote:

> On Mon, 28 Jul 2008 15:06:17 +0800, Stephen Liu wrote:
> 
> 
> >> 
> >> 
> >> > On running
> >> > # kvm -m 750 -cdrom /dev/scd0 -boot d ubuntu6.06.img
> >> 
> >> add -vnc :<number>
> >> 
> >> or disable graphics completly (see kvm --help)
> > 
> > 
> > Hi Thomas,
> > 
> > 
> > Thanks for your advice.
> > 
> > 
> > There is no graphic running on the server which is headless.  I
> > configure the server remotely via ssh connection on a workstation.
> > 
> > 
> > Please explain in more detail.  The CD running on /dev/scd0 is an
> > installer to install Ubuntu 6.06 NOT an ISO image.
> 
> so if you want to access the "vga monitor" of the virtual machine,
> you 
> have to add "-vnc :0" and then connect with a vnc to
> "physical-host-ip-or-
> dnsname:0"

> http://en.wikipedia.org/wiki/Virtual_Network_Computing


Hi Thomas,


Thanks for your advice and URL.


Performed following test but failed.


# kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:0
Could not parse VNC address

# kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:1
Could not parse VNC address


# dpkg -l | grep vnc
No printout


I suppose VNC not installed.  Which of the following packages need to
install?
vnc4server 
linuxvnc 
python-gtk-vnc


TIA


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
@ 2008-07-28 14:40 Henrik Holst
  2008-07-28 16:15 ` Stephen Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Henrik Holst @ 2008-07-28 14:40 UTC (permalink / raw)
  To: kvm, satimis

>--- Thomas Mueller <thomas <at> chaschperli.ch> wrote:
>
>> On Mon, 28 Jul 2008 15:06:17 +0800, Stephen Liu wrote:
>>
>>
>> >>
>> >>
>> >> > On running
>> >> > # kvm -m 750 -cdrom /dev/scd0 -boot d ubuntu6.06.img
>> >>
>> >> add -vnc :<number>
>> >>
>> >> or disable graphics completly (see kvm --help)
>> >
>> >
>> > Hi Thomas,
>> >
>> >
>> > Thanks for your advice.
>> >
>> >
>> > There is no graphic running on the server which is headless.  I
>> > configure the server remotely via ssh connection on a workstation.
>> >
>> >
>> > Please explain in more detail.  The CD running on /dev/scd0 is an
>> > installer to install Ubuntu 6.06 NOT an ISO image.
>>
>> so if you want to access the "vga monitor" of the virtual machine,
>> you
>> have to add "-vnc :0" and then connect with a vnc to
>> "physical-host-ip-or-
>> dnsname:0"

> Hi Thomas,
>
>Thanks for your advice and URL.
>
>Performed following test but failed.
>
># kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:0
>Could not parse VNC address
>
># kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:1
>Could not parse VNC address

You should run it as:
# kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0

qemu contains a built in vnc-server. Thomas meant that you should then
connect with a vncviewer to this machines ip:0.

/Henrik Holst

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
  2008-07-28 14:40 How to run KVM on non-X environment (RESEND) Henrik Holst
@ 2008-07-28 16:15 ` Stephen Liu
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Liu @ 2008-07-28 16:15 UTC (permalink / raw)
  To: kvm

Hi Henrik,


Thanks for your advice.


- snip -
 
> You should run it as:
> # 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.


> 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

# dpkg -l | grep vnc
No printout


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
@ 2008-07-28 17:40 Henrik Holst
  2008-07-29  9:01 ` Stephen Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Henrik Holst @ 2008-07-28 17:40 UTC (permalink / raw)
  To: kvm

>Hi Henrik,
>
>Thanks for your advice.
>
>- snip -
>
>> You should run it as:
>> # 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.

>> 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.

/Henrik Holst

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
  2008-07-28 14:09     ` Stephen Liu
@ 2008-07-28 17:42       ` Thomas Mueller
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Mueller @ 2008-07-28 17:42 UTC (permalink / raw)
  To: kvm


> 
> 
> Thanks for your advice and URL.
> 
> 
> Performed following test but failed.
> 
> 
> # kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:0
> Could not parse VNC address
> 
> # kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc IP:1

on kvm-machine) kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d \
-vnc :1

on another host with) vncviewer kvm-machine:1

- Thomas



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to run KVM on non-X environment (RESEND)
  2008-07-28 17:40 Henrik Holst
@ 2008-07-29  9:01 ` Stephen Liu
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Liu @ 2008-07-29  9:01 UTC (permalink / raw)
  To: kvm

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 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-29  9:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 14:40 How to run KVM on non-X environment (RESEND) Henrik Holst
2008-07-28 16:15 ` Stephen Liu
  -- strict thread matches above, loose matches on Subject: below --
2008-07-28 17:40 Henrik Holst
2008-07-29  9:01 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox