Update KVM and add qemu
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 22 Feb 2014 04:02:15 +0000 (23:02 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Jul 2014 02:15:25 +0000 (22:15 -0400)
config/packages-list
stage5/hv-install-1
stage5/misc/kvm-udev.rules [new file with mode: 0644]
stage5/packages-update
stage5/pkg/qemu [new file with mode: 0644]

index f7f1c00..2642ed0 100644 (file)
@@ -196,7 +196,6 @@ KERBEROS5="krb5-1.10.3"
 KERNEL="linux-3.14.4"
 KEYUTILS="keyutils-1.5.5"
 KMOD="kmod-13"
-KVM="kvm-88"
 
 LADSPA="ladspa_sdk"
 LAME="lame-3.99.5"
@@ -344,6 +343,7 @@ PYGOBJECT="pygobject-2.28.6"
 PYGTK="pygtk-2.24.0"
 PYTHON="Python-2.7.3"
 
+QEMU="qemu-1.7.0"
 QT="qt-everywhere-opensource-src-4.8.5"
 
 RALENTI="ralenti-0.1"
index b355514..24b0cbd 100755 (executable)
@@ -250,7 +250,9 @@ if [ "x${INST_TYPE}" = "xltsp-server" ]; then
     ipkg ${LTSP_UTILS}
 fi
 
-ipkg -m acnb ${KVM}
+ipkg -j ${QEMU} "--libexecdir=/usr/lib/qemu \
+    --docdir=/usr/share/doc/qemu-1.7.0 \
+    --target-list=x86_64-softmmu"
 ipkg -m acnb ${BRIDGE_UTILS}
 ipkg -m noac ${TUNCTL}
 
diff --git a/stage5/misc/kvm-udev.rules b/stage5/misc/kvm-udev.rules
new file mode 100644 (file)
index 0000000..481cfcf
--- /dev/null
@@ -0,0 +1 @@
+KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
index 31cdc73..b1a8c17 100755 (executable)
@@ -185,7 +185,7 @@ fpkg -m gnu ${INDENT}
 
 fpkg -e "tgz" ${LTSP_UTILS} "http://ltsp.mirrors.tds.net/pub/ltsp/utils"
 fpkg -s "software/network/tftp/tftp-hpa" ${TFTP_HPA} ${KERNEL_URL}
-fpkg -m sf ${KVM}
+fpkg ${QEMU} "http://wiki.qemu-project.org/download"
 fpkg -m sf -s "bridge" ${BRIDGE_UTILS}
 fpkg -m sf ${TUNCTL}
 
diff --git a/stage5/pkg/qemu b/stage5/pkg/qemu
new file mode 100644 (file)
index 0000000..1c8cd52
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+hvbuild_post()
+{
+    [ -e  /usr/lib/libcacard.so ] && chmod -v 755 /usr/lib/libcacard.so
+
+    hv_groupadd kvm
+
+    usermod -a -G kvm ${REGUSER}
+
+    # Add a Udev rule so that the KVM device gets correct permissions:
+    install -v -m644 ${SCRDIR}/misc/kvm-udev.rules  \
+        /lib/udev/rules.d/65-kvm.rules
+}