qemu tun/tap problem running from qemu on slackware 14.2 64bit
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 Code:
#!/bin/sh Code:
#!/bin/sh Quote:
if I manually run Code:
/etc/qemu-ifup Code:
/etc/qemu-ifdown 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. |
Hi,
Instead of using OpenVPN to create the tun device, you might try the tool that is made specifically for that purpose: tunctl, although I have no idea if it's gonna solve your problem. My blind guess would be that openvpn command somehow interferes, but that's only a guess. BTW, maybe this would be of help? It's another method for doing what you want; the helper program is installed under: /usr/libexec/qemu-bridge-helper -- Best regards, Andrzej Telszewski |
I avoid the ifup/down scripts and just use the qemu-bridge-helper to create my qemu VM network devices. Just
Code:
chmod u+s /usr/libexec/qemu-bridge-helper Code:
qemu-system-x86_64 -m 512 -net nic -net bridge,br=br0 |
thanks guys, I'll give it a go and report back; ( although it would be nice to know why one method seems broken.)
I installed qemu using sbopkg, just for reference. The main objective is to have the vm's on the same lan as the real lan, with the same ip4 mask, so to all intents and purposes, they are just local pc's. |
the -net bridge,br=br0 works just fine, thanks slacker1337 and atelszewski
I had to create the /etc/qemu directory as it didn't exist, and then add the Code:
allow br0 |
Glad to hear you got it working! Enjoy!
|
All times are GMT -5. The time now is 02:18 AM. |