From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Liu Subject: Re: How to run KVM on non-X environment Date: Wed, 30 Jul 2008 00:04:52 +0800 (CST) Message-ID: <788618.95660.qm@web35207.mail.mud.yahoo.com> References: <200807291050.04450.javier@guerrag.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT To: kvm@vger.kernel.org Return-path: Received: from web35207.mail.mud.yahoo.com ([66.163.179.86]:36898 "HELO web35207.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752756AbYG2QEx (ORCPT ); Tue, 29 Jul 2008 12:04:53 -0400 In-Reply-To: <200807291050.04450.javier@guerrag.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Javier, Thanks for your advice. --- Javier Guerra Giraldez wrote: > On Tuesday 29 July 2008, Stephen Liu wrote: > > # kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :1 > > > > It was hanging there. > > it's not a hang. it's running, but all feedback goes to the VNC > port. maybe > you'd like it to run in the background, so you get the prompt back. > just add > a '&' at the end: > > kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :1 & > > > On local desktop Xterm after ssh-connect the server; > > > > # 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 the VM running? > > yes, and port 5901 is VNC's port 1 (since you used -vnc :1) > > you do need a VNC client. it would be the 'screen and keyboard' of > the > virtual machine. you need at least that to install an OS. I ran Knoppix 5.1 on a PC using tightvnc viewer to install the OS, Ubuntu6.06 as guest. It is working now. I also ran update and upgrade afterwards. However I haven't figured out how to start it on next boot. Do I need putting the installer on CDRom? On next boot what command shall I run to start KVM. What command shall I run to start the guest. How to resize the vncviewer window? TIA > after > that, you > could setup any kind of network access you like directly to the VM > (ssh, X, > RDP, etc) Please explain in more detail. ssh is running on the host. Thanks B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com