From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Liu Subject: Re: How to run KVM on non-X environment Date: Tue, 29 Jul 2008 17:10:33 +0800 (CST) Message-ID: <128297.12825.qm@web35207.mail.mud.yahoo.com> References: <200807281127.20719.alberto@byu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from web35207.mail.mud.yahoo.com ([66.163.179.86]:38897 "HELO web35207.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755878AbYG2JKd (ORCPT ); Tue, 29 Jul 2008 05:10:33 -0400 In-Reply-To: <200807281127.20719.alberto@byu.edu> Sender: kvm-owner@vger.kernel.org List-ID: Hi Alberto, Thanks for your detail advice. --- Alberto Trevi=F1o wrote: > On Monday 28 July 2008 10:06:32 am you wrote: > > I ran above command direct on the server as root (not remotely on > > desktop) > > > > It just hangs there on Xterm. >=20 > As it should. :-) At that point, the VM is running. It is a process > on the=20 > system. When the VM is powered off, the process will end and your > XTerm=20 > will return to a bash prompt. If you want your KVM to run in the=20 > background, run with the -daemonize option: >=20 > kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0 > -daemonize >=20 > > I expect clarifying following points; >=20 > > 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 >=20 > Check. >=20 > > Can I use the above command? TIA >=20 > Yep. However, I think at you this point you are not sure what's > going on or=20 > how to proceed. >=20 > When you run the above command on the server, KVM is going to start > the=20 > Virtual Machine. It will assign the first hard drive to the > ubuntu6.06.img=20 > file (which should have already been created using qemu-img), attach > the CD=20 > drive to the Virtual Machine, assign it 512 MB of memory, and attach > the=20 > virtual video output (what the monitor on a normal computer would > display),=20 > keyboard and mouse to a VNC server. At that point, the VM will > perform a=20 > BIOS POST and attempt to boot from the CD drive. >=20 > At this stage, you need to connect to the virtual keyboard, mouse and >=20 > monitor via VNC from your desktop (not the server). To do that, you > use a=20 > VNC viewer to connect to your server (that means your server firewall > needs=20 > to accept connections to port 5900). Once you connect, your VNC > session=20 > will display the video output of the VM. >=20 > As a side note, I would recommend you don't use the -daemonize option > until=20 > you are ready to leave the VM running. If your need to "reset" the > virtual=20 > machine, you can use Ctrl-C to kill it and rerun the last command to > restart=20 > it. Be aware that using Ctrl-C is the equivalent of pulling the > power cord=20 > on a regular machine, so use with care. My problem here I don't have vnc-viewer running on the local desktop.=20 Nor I know which package I need. Can I install vnc-client on the server. Let the local desktop to start it remotely and forward it to the desktop as vncviewer. The desktop can ssh-connect the server w/o problem. If YES please advise how to do it. TIA B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.= com=20