qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Two taps, same IP?


From: Anthony Liguori
Subject: Re: [Qemu-devel] Two taps, same IP?
Date: Wed, 16 Jul 2008 08:51:22 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

David Barrett wrote:
Anthony Liguori wrote:
David Barrett wrote:
I'm considering a tap-based alternative to the -redir patch I proposed earlier, but I'm just not quite getting how it works. In particular, I'm able to access the webserver on one image just fine, but not the other: wget fails with "Connecting to 172.20.0.3:80... failed: No route to host."

Can you explain why and set me straight?

sudo qemu -kernel-kqemu -net nic,vlan=0 -net tap,vlan=0 image0.raw
sudo qemu -kernel-kqemu -net nic,vlan=0 -net tap,vlan=0 image1.raw

You need to pass a unique mac address for each guest. You're probably getting mac address collisions.

Hm, you're right, they had the same MAC address. Unfortunately fixing that had no effect. Now I'm launching with:

sudo qemu -kernel-kqemu -net nic,vlan=0,macaddr=00:00:00:00:00:00 -net tap,vlan=0 image0.raw

sudo qemu -kernel-kqemu -net nic,vlan=0,macaddr=00:00:00:00:00:11 -net tap,vlan=0 image1.raw

I'm still able to wget image0, but so long as it's operational I can't wget image1. Like before, shutting down image0 enables wget access to image1.

Looking at ipconfig in the both guests show that the MAC address is being picked up correctly, so it must be something else.

Any other ideas?  Thanks!

What's in your qemu-ifup script?

Regards,

Anthony Liguori

-david








reply via email to

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