Accepting request 222193 from home:bfrogers:branches:Virtualization

Transition kvm package contents to a qemu submodule named qemu-kvm as announced on opensuse-factory ml (see: http://lists.opensuse.org/opensuse-factory/2014-02/msg00206.html)

OBS-URL: https://build.opensuse.org/request/show/222193
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=181
This commit is contained in:
Bruce Rogers
2014-02-13 13:36:37 +00:00
committed by Git OBS Bridge
parent 04929fcdcd
commit 461fcb06c0
8 changed files with 708 additions and 0 deletions

23
qemu-ifup Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
echo 'config qemu network with bridge for ' $*
# If bridge is not specified, try device with default route.
bridge=$2
if [ -z "$bridge" ]; then
bridge=$(ip route list | awk '/^default / { print $NF }')
fi
# Exit if $bridge is not a bridge. Exit with 0 status
# so qemu-dm process is not terminated. No networking in
# vm is bad but not catastrophic. The vm could still run
# cpu and disk IO workloads.
# Include an useful error message in qemu-dm log file.
if [ ! -e "/sys/class/net/${bridge}/bridge" ]
then
echo "WARNING! ${bridge} is not a bridge. qemu-ifup exiting. VM may not have a functioning networking stack."
exit 0
fi
ifconfig $1 0.0.0.0 up
brctl addif $bridge $1 || true