Commit 00ceebd8 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for qemu-kvm and bridged networking

parent d28b0cca
all: all: bridge-netdev
dd if=/dev/zero of=swap bs=1048576 count=1024 dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap chmod 600 swap
mkswap swap mkswap swap
...@@ -11,5 +11,17 @@ all: ...@@ -11,5 +11,17 @@ all:
$(MAKE) -C qemu-3.1.0 install $(MAKE) -C qemu-3.1.0 install
rm -rf qemu-3.1.0 rm -rf qemu-3.1.0
install -v -m755 qemu-kvm /usr/bin/qemu-kvm
swapoff swap swapoff swap
rm -rf swap rm -rf swap
echo "$$BRIDGE_NETDEV" > /etc/systemd/network/br0.netdev
bridge-netdev:
define BRIDGE_NETDEV
[NetDev]
Name=br0
Kind=bridge
endef
export BRIDGE_NETDEV
#!/bin/sh
# Libvirt introspects the binary using -M none. In that case, don't try
# to init KVM, which will fail and be noisy if the host has kvm disabled
opts="-machine accel=kvm"
if echo "$@" | grep -q " -M none "; then
opts=
fi
exec /usr/bin/qemu-system-x86_64 $opts "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment