public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* How to run KVM on non-X environment
@ 2008-07-28  5:18 Stephen Liu
  2008-07-28  6:33 ` Ian Kirk
  2008-07-28  6:41 ` Thomas Mueller
  0 siblings, 2 replies; 16+ messages in thread
From: Stephen Liu @ 2008-07-28  5:18 UTC (permalink / raw)
  To: kvm

Hi folks,


Ubuntu 8.04 server amd64, headless
KVM 1:62+dfsg
QEMU 0.9.1
OpenSSH 1:4.7p1


On running
# kvm -m 750 -cdrom /dev/scd0 -boot d ubuntu6.06.img

     =======================|  DirectFB 1.0.1  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-04-08 15:15) 
(*) Direct/Memcpy: Using libc memcpy()
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
variable.
(!) DirectFB/Core: Could not initialize 'system' core!
    --> Initialization error!
Could not initialize SDL - exiting


Please advise how to fix the problem.  TIA


B.R.
Stephen L

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

^ permalink raw reply	[flat|nested] 16+ 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; 16+ 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] 16+ 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; 16+ 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] 16+ messages in thread

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

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

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