public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Liu <satimis@yahoo.com>
To: kvm@vger.kernel.org
Subject: Re: How to run KVM on non-X environment
Date: Tue, 29 Jul 2008 17:10:33 +0800 (CST)	[thread overview]
Message-ID: <128297.12825.qm@web35207.mail.mud.yahoo.com> (raw)
In-Reply-To: <200807281127.20719.alberto@byu.edu>

Hi Alberto,


Thanks for your detail advice.


--- Alberto Treviño <alberto@byu.edu> 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.
> 
> As it should. :-) At that point, the VM is running.  It is a process
> on the 
> system.  When the VM is powered off, the process will end and your
> XTerm 
> will return to a bash prompt.  If you want your KVM to run in the 
> background, run with the -daemonize option:
> 
>  kvm -hda ubuntu6.06.img -cdrom /dev/scd0 -m 512 -boot d -vnc :0
> -daemonize
> 
> > 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
> 
> Check.
> 
> > Can I use the above command? TIA
> 
> Yep.  However, I think at you this point you are not sure what's
> going on or 
> how to proceed.
> 
> When you run the above command on the server, KVM is going to start
> the 
> Virtual Machine.  It will assign the first hard drive to the
> ubuntu6.06.img 
> file (which should have already been created using qemu-img), attach
> the CD 
> drive to the Virtual Machine, assign it 512 MB of memory, and attach
> the 
> virtual video output (what the monitor on a normal computer would
> display), 
> keyboard and mouse to a VNC server.  At that point, the VM will
> perform a 
> BIOS POST and attempt to boot from the CD drive.
> 
> At this stage, you need to connect to the virtual keyboard, mouse and
> 
> monitor via VNC from your desktop (not the server).  To do that, you
> use a 
> VNC viewer to connect to your server (that means your server firewall
> needs 
> to accept connections to port 5900).  Once you connect, your VNC
> session 
> will display the video output of the VM.
> 
> As a side note, I would recommend you don't use the -daemonize option
> until 
> you are ready to leave the VM running.  If your need to "reset" the
> virtual 
> machine, you can use Ctrl-C to kill it and rerun the last command to
> restart 
> it.  Be aware that using Ctrl-C is the equivalent of pulling the
> power cord 
> on a regular machine, so use with care.

My problem here I don't have vnc-viewer running on the local desktop. 
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 

       reply	other threads:[~2008-07-29  9:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200807281127.20719.alberto@byu.edu>
2008-07-29  9:10 ` Stephen Liu [this message]
2008-07-28 17:42 How to run KVM on non-X environment (RESEND) 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
     [not found] <alpine.LFD.1.10.0807281529480.12809@bcny.fcbq.bet>
2008-07-28 16:09 ` Stephen Liu
     [not found] <200807280936.48137.alberto@byu.edu>
2008-07-28 16:06 ` Stephen Liu
  -- strict thread matches above, loose matches on Subject: below --
2008-07-28  5:18 Stephen Liu
2008-07-28  6:33 ` Ian Kirk
2008-07-28  7:02   ` Stephen Liu
2008-07-28  6:41 ` Thomas Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=128297.12825.qm@web35207.mail.mud.yahoo.com \
    --to=satimis@yahoo.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox