* [gentoo-commits] proj/kvm-tools:master commit in: app-emulation/kvm-init-script/files/, /
@ 2012-04-14 6:26 Brian Harring
0 siblings, 0 replies; only message in thread
From: Brian Harring @ 2012-04-14 6:26 UTC (permalink / raw
To: gentoo-commits
commit: 0febb845b529a281b65d8ac68bceb4761be3583b
Author: Brian Harring <ferringb <AT> chromium <DOT> org>
AuthorDate: Sat Apr 14 04:55:02 2012 +0000
Commit: Brian Harring <ferringb <AT> gentoo <DOT> org>
CommitDate: Sat Apr 14 06:23:28 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kvm-tools.git;a=commit;h=0febb845
drop the README, instead add comments to the kvm init script
---
README | 36 --------------------
.../kvm-init-script/files/kvm-init-script | 5 +++
2 files changed, 5 insertions(+), 36 deletions(-)
diff --git a/README b/README
deleted file mode 100644
index 71a890f..0000000
--- a/README
+++ /dev/null
@@ -1,36 +0,0 @@
-This copy of kvm-init-script has a bugfix from the one at
-http://www.pkgcore.org/~ferringb/kvm-example-conf-funtoo
-It also adds printing the vnc port number to the "Starting..."
- message. This makes it easier to know the port # to connect to with
- vnc viewer , etc. Usefull info when you run several vm's at the same time.
-
-
-the instructions are quite simple.
-
-
- cp kvm-init-script /etc/init.d/kvm
- cp kvm-conf.example /etc/conf.d/kvm.example
-
-
-Edit the kvm.example changing mac address, vnc port, etc. as needed.
-You can see I have several OTHER_ARGS= lines pre-defined, so that it is easy to
- switch the boot up options by just commenting/uncommenting the desired line.
-
- Hmm, this could probably be extended to accept startup options that can select
- which OTHER_ARGS=line to use for the startup.
-
-Save it to /etc/kvm.instance-name
-
-create the init script instance with a matching name
-
- ln -s /etc/init.d/kvm /etc/init.d/kvm.instance-name
-
-then start it;
-
- /etc/init.d/kvm.instance-name start
-
-It also responds to stop, reboot (which sends the vm the reboot signal,
- so it can do a proper shutdown/reboot).
-
-It can also be added to different run levels using rc-update.
-
diff --git a/app-emulation/kvm-init-script/files/kvm-init-script b/app-emulation/kvm-init-script/files/kvm-init-script
index 7bfeb9d..cfd35c2 100644
--- a/app-emulation/kvm-init-script/files/kvm-init-script
+++ b/app-emulation/kvm-init-script/files/kvm-init-script
@@ -2,6 +2,11 @@
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+# To use this, symlink a target kvm instance to this script.
+# Literally, ln -s kvm /etc/init.d/kvm.<vmname>
+# then have a config named /etc/conf.d/kvm.<vmname>
+
+
VMNAME=${SVCNAME#*.}
PIDFILE=/var/run/vm/${VMNAME}.pid
MONITOR=/var/run/vm/${VMNAME}.monitor
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-14 6:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14 6:26 [gentoo-commits] proj/kvm-tools:master commit in: app-emulation/kvm-init-script/files/, / Brian Harring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox