From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsxjU-0002B5-CO for qemu-devel@nongnu.org; Thu, 23 Oct 2008 06:48:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsxjS-0002Ar-TW for qemu-devel@nongnu.org; Thu, 23 Oct 2008 06:48:00 -0400 Received: from [199.232.76.173] (port=43535 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsxjS-0002Am-NO for qemu-devel@nongnu.org; Thu, 23 Oct 2008 06:47:58 -0400 Received: from mx1.redhat.com ([66.187.233.31]:40658) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsxjS-0003ri-Ax for qemu-devel@nongnu.org; Thu, 23 Oct 2008 06:47:58 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m9NAlufg023412 for ; Thu, 23 Oct 2008 06:47:56 -0400 Received: from file.fab.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m9NAlu0s013716 for ; Thu, 23 Oct 2008 06:47:56 -0400 Received: from file.fab.redhat.com (localhost.localdomain [127.0.0.1]) by file.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m9NAltw8027428 for ; Thu, 23 Oct 2008 11:47:55 +0100 Received: (from berrange@localhost) by file.fab.redhat.com (8.13.1/8.13.1/Submit) id m9NAlteE027424 for qemu-devel@nongnu.org; Thu, 23 Oct 2008 11:47:55 +0100 Date: Thu, 23 Oct 2008 11:47:55 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] VNC Password Message-ID: <20081023104755.GI30571@redhat.com> References: <87skqn7gnt.fsf@alamut.mobiliz.com.tr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87skqn7gnt.fsf@alamut.mobiliz.com.tr> Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 :|