All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] VNC Password
Date: Thu, 23 Oct 2008 11:47:55 +0100	[thread overview]
Message-ID: <20081023104755.GI30571@redhat.com> (raw)
In-Reply-To: <87skqn7gnt.fsf@alamut.mobiliz.com.tr>

On Thu, Oct 23, 2008 at 01:24:38PM +0300, Volkan YAZICI wrote:
> Hi,
> 
> I use "-monitor stdio -vnc localhost:1" arguments to start qemu from
> command line and connect to the related qemu instance using a vnc
> viewer. Despite I know it's possible to use something like "-vnc
> localhost:1,password=foo", I don't want to type password in the command
> line. (Neither using "change vnc password" in the qemu command line is
> very practical when you're starting related qemu instance as a daemon.)
> How can I make vnc read password from a file?

If you want daemonized instances, and wish to use the monitor, then
rather than using '-monitor stdio', it'd be better to have it connect
to something like a UNIX socket, eg

   -monitor unix:/var/run/qemu/mysock,server -vnc localhost:1,password

Then, you can have a simple command line tool to send & receive
individual monitor commands via that socket. 

> BTW, is vnc option poorly documented or I'm missing something? I checked
> this[1] and this[2] but none supplied a useful information.
> Documentation pointers are welcome too.
> 
> 
> Regards.
> 
> [1] http://bellard.org/qemu/qemu-doc.html

Take a look at

  "3.10 VNC security"

  http://bellard.org/qemu/qemu-doc.html#SEC36

There's also some docs under

  "3.3 Invocation"

  http://bellard.org/qemu/qemu-doc.html#SEC10

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

  reply	other threads:[~2008-10-23 10:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-23 10:24 [Qemu-devel] VNC Password Volkan YAZICI
2008-10-23 10:47 ` Daniel P. Berrange [this message]
2008-10-23 11:30   ` [Qemu-devel] " Volkan YAZICI
2008-10-23 11:50     ` Gerd Hoffmann
2008-10-23 12:07       ` Volkan YAZICI
2008-10-23 12:52         ` Gerd Hoffmann
2008-10-23 15:15         ` Anthony Liguori
2008-10-23 11:46 ` [Qemu-devel] " Gerd Hoffmann
2008-10-23 12:08   ` [Qemu-devel] " Volkan YAZICI
2008-10-23 12:57     ` Gerd Hoffmann
2008-10-23 15:10       ` François Revol
2008-10-23 15:45         ` Laurent Vivier
2008-10-24 11:06           ` François Revol
2008-10-24 11:20             ` Jamie Lokier
2008-10-24 11:47               ` François Revol
2008-10-24 12:02                 ` Gerd Hoffmann

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=20081023104755.GI30571@redhat.com \
    --to=berrange@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.