running on slackware 14.2 64bit
Hi all, I have created a bridge (editing rc.inet1.conf ) giving it the ip that the eth0 used to have, and the host machine networks ok.
running
Code:
qemu-system-x86_64 -cpu qemu64 -m 4G -drive /data/images/slack14.2_64bit_base.qcow2 -boot c -net nic,vlan=0,model=i82551 -net tap,vlan=0,ifname=tap0 -enable-kvm -display gtk
with the following for /etc/qemu-ifup and /etc/qemu-ifdown
Code:
#!/bin/sh
echo "create $1"
/usr/sbin/openvpn --mktun --dev $1 --user `id -un`
/sbin/ifconfig $1 0.0.0.0 promisc up
echo "add $1 to br0"
/usr/sbin/brctl addif br0 $1
and
Code:
#!/bin/sh
echo "remove $1 from bridge br0"
brctl delif br0 $1
echo "remove device $1"
/usr/sbin/openvpn --rmtun --dev $1
i get the error message
Quote:
cannot ioctl tunsetiff tap0 device or resource busy (errno=16)
|
on creation of the tap device.
if I manually run
then
I get no error messages at all.
I should say that the scripts are executable and I am running everything as root.
I can't see why the script doesn't work when called by qemu-system-x86_64 yet works fine when called directly. The echo statements just allow me to witness the script being called from either method, ie. are just for debugging.
Has anyone got any ideas how to sort this?
I should also say that the rest of the virtual machine appears to run just fine.