From mboxrd@z Thu Jan 1 00:00:00 1970 From: Freddie Cash Subject: Re: New version of my kvmctl script Date: Mon, 2 Jun 2008 11:11:58 -0700 Message-ID: <200806021111.59207.fjwcash@gmail.com> References: <6e10be650806021029o29c0346dp6886312cb10fdf0b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from smtp.sd73.bc.ca ([142.24.13.140]:58633 "EHLO smtp.sd73.bc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526AbYFBSMH (ORCPT ); Mon, 2 Jun 2008 14:12:07 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 33A1D1A000B38 for ; Mon, 2 Jun 2008 11:12:04 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MxG1bG7pLSiB for ; Mon, 2 Jun 2008 11:11:59 -0700 (PDT) Received: from coal (s10.sbo [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id D78E11A0007B7 for ; Mon, 2 Jun 2008 11:11:59 -0700 (PDT) In-Reply-To: <6e10be650806021029o29c0346dp6886312cb10fdf0b@mail.gmail.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On June 2, 2008 10:29 am you wrote: > For some reason I couldn't reply to my previous post... > > But here is a new version. Now with version number! :) > > Changes: > - includes init script /etc/initd.d/kvm which starts and stops virtual > machines when booting and shutting down the host. Shutting down the > guest is done by sending "system_powerdown" to the guest. If the guest > doesn't powerdown in 120 seconds (adjustable) it will be killed. You should rename the init script. At least on Debian systems, there's already an /etc/init.d/kvm script that auto-loads the kvm modules. > - kvmctl can set vm to start or not to start during boot (kvmctl > vmname onboot yes|no). Without yes/no script shows whether VM is > started on boot or not. You may want to rename the script. There's already a kvmctl (at least on Debian) in the /usr/sbin directory that is used for testing. I ran into this issue when I named my management script kvmctl, and /usr/sbin is ahead of /usr/local/sbin in the default PATH. -- Freddie Cash fjwcash@gmail.com