From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Mikheev Subject: kvmctl Date: Wed, 07 Jan 2009 21:48:39 -0500 Message-ID: <1231382919.16157.20.camel@max-work-lap> Reply-To: mikhmv@gmail.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from qw-out-2122.google.com ([74.125.92.26]:62710 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbZAHCsn (ORCPT ); Wed, 7 Jan 2009 21:48:43 -0500 Received: by qw-out-2122.google.com with SMTP id 3so7697618qwe.37 for ; Wed, 07 Jan 2009 18:48:41 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: Hi, You wrote pretty nice script but I guess i found several bugs in last version kvmctl (2.1). 1) ubuntu already have executable kvmctl (It is probably not your bug) 2) If host="XPnew" but file name "XP.kvm" (different host and filename) than some methods work incorrectly (for example whichvnc). Sometimes you are using filename sometimes host. 3) method vnc has error. If change last line in do_vnc on ${vncviewer} localhost$(get_portvnc "${1}") > /dev/null 2>&1 & it is work. 4) start and startvnc work only under root. 5) probably will be better to add in script line for checking: does directory /var/run/kvn exist or not if not than create it. Without it script doesn't work. But Anyway you made great job. Good luck, and hope my comments will be little helpful in your work. Max