You are not logged in.
Hi.
(The host is running Arch Linux)
I installed Debian on QEMU virtual machine (samba4 - active directory domain controller) and Windows7 on the second QEMU virtual machine. I want guests (Win7 && Debian) to be able to connect together, connect from the host to the guests and to have access to the Internet on guests. Internet on the host I got through wlan0:
inet 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
I created tap interfaces for guests;
echo 1 > /proc/sys/net/ipv4/ip_forward
ip tuntap add dev tap0 mode tap user kelloco2 group kvm
ip tuntap add dev tap1 mode tap user kelloco2 group kvm
brctl addbr br0
brctl addif br0 tap0
brctl addif br0 tap1
ifconfig br0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i br0 -o wlan0 -j ACCEPT
iptables -t nat -A PREROUTING -i wlan0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
ifconfig tap0 up
ifconfig tap1 up
And everything works except the Internet (guests can't connect to the Internet). I entered addresses OpenDNS.
What could be wrong?
Ofc I run the machine by adding
-net nic,macaddr=52:52:52:ac:3f:65 -net tap,ifname="tap1",script=no,downscript=no
Regards K. Sorry for language errors.
Last edited by kelloco2 (2013-10-19 15:25:24)
Offline
well lets see,
i use libvirt but its just a wrapper so it can not be that different
....
<interface type='bridge'>
<mac address='52:54:00:64:2f:b1'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
.....
br0 is my bridge connection on host
i do not see anywhere to point a vnetlan that is in that bridge but
brctl show
bridge name bridge id STP enabled interfaces
br0 0080.fe5400642fb1 yes vnet0
vnet0 is acctual vnetlan that is uset by my guest os
tho clarify : there is none of tap0,tap1 ecuivallent
O' rly ? Ya rly Oo
Offline