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

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)

- Thomas



^ 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 17:40 How to run KVM on non-X environment (RESEND) Henrik Holst
2008-07-29  9:01 ` Stephen Liu
  -- 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

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