qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Getting tap networking working


From: Dale R. Worley
Subject: [Qemu-discuss] Getting tap networking working
Date: Tue, 3 Jun 2014 15:47:29 -0400

I'm trying to get 'tap' networking working, but it seems that there's
something I'm overlooking.  However, I've followed all the advice I've
been able to track down on the Web.

On the host:
        brctl addbr br0
        ifconfig br0 up

        /usr/sbin/openvpn --mktun --dev tap1 --user worley
        brctl addif br0 tap1
        ifconfig tap1 0.0.0.0 promisc up

        /usr/sbin/openvpn --mktun --dev tap2 --user worley
        brctl addif br0 tap2
        ifconfig tap2 0.0.0.0 promisc up

        systemctl stop firewalld

        # Run two VMs.
        qemu-system-i386 -m 1G -machine accel=kvm -enable-kvm \
                -drive file=linux.system.disk1,media=disk,index=0,snapshot=on \
                -hdb linux.second.disk1 \
                -device e1000,id=eth \
                -net tap,id=eth,ifname=tap1,script=no,downscript=no &
        qemu-system-i386 -m 1G -machine accel=kvm -enable-kvm \
                -drive file=linux.system.disk1,media=disk,index=0,snapshot=on \
                -hdb linux.second.disk2 \
                -device e1000,id=eth \
                -net tap,id=eth,ifname=tap2,script=no,downscript=no &

In VM 1:
        ifconfig ens3 10.1.1.11 up
In VM 2:
        ifconfig ens3 10.1.1.12 up

But when I try to telnet from one VM to the other, I get
        telnet: connect to address 10.1.1.12: No route to host

Does anyone have any suggestions for what I've overlooked?

Thanks,

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]