From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Guerra Giraldez Subject: Re: How to run KVM on non-X environment Date: Tue, 29 Jul 2008 10:50:03 -0500 Message-ID: <200807291050.04450.javier@guerrag.com> References: <939610.42666.qm@web35203.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6674482.59A1D4Vzrs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Stephen Liu Return-path: Received: from an-out-0708.google.com ([209.85.132.247]:19079 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbYG2PuO (ORCPT ); Tue, 29 Jul 2008 11:50:14 -0400 Received: by an-out-0708.google.com with SMTP id d40so1000913and.103 for ; Tue, 29 Jul 2008 08:50:13 -0700 (PDT) In-Reply-To: <939610.42666.qm@web35203.mail.mud.yahoo.com> Sender: kvm-owner@vger.kernel.org List-ID: --nextPart6674482.59A1D4Vzrs Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. may= be=20 you'd like it to run in the background, so you get the prompt back. just a= dd=20 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=20 virtual machine. you need at least that to install an OS. after that, you= =20 could setup any kind of network access you like directly to the VM (ssh, X,= =20 RDP, etc) =2D-=20 Javier --nextPart6674482.59A1D4Vzrs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIjzwssIoGnxsRK/ERAhekAJwIiLTaqBpxca1cs+t/WFBYoATdEgCgmanC Z/OlZXGg4yOQBDDnracP1pc= =Qkvw -----END PGP SIGNATURE----- --nextPart6674482.59A1D4Vzrs--