Skip to contentSkip to conversation

How to run KVM on non-X environment

DISCUSSION Stephen Liu 1 participant 1 message Jul 28, 2008 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Alberto,

Thanks for your advice.

Quoted 7 lines · you
Quoted 5 lines
# 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
Quoted 7 lines

The "IP" address is the listening IP address on the host. If you have more
than one NIC and wish to only listen on NIC, then you specify the IP address
(not "IP"). If you only have one NIC, or you wish to listen for VNC connections on all NIC's, or you just want the thing to work, then specify:

I have only one NIC on the server.

Quoted 1 line

kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0

I ran above command direct on the server as root (not remotely on desktop)

It just hangs there on Xterm.

ubuntu6.06.img is on /root/ubuntu6.06.img

Tried again;

# kvm ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0

It also hangs on the Xterm

If without -vnc :0

# kvm ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d
     =======================|  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

I expect clarifying following points;

1) I don't run X on the server. There are no X packages installed.
2) The CD on the CD-Drive is Ubuntu6.06 installer, NOT its iso image

Can I use the above command? TIA

B.R.
Stephen

Quoted 5 lines

Then, on your desktop, run "vncviewer host:0" to connect (substituting
"host" for the domain name or IP address of your KVM host).

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