I resend this, because It's could be helpful for another users. >From David Mair <[EMAIL PROTECTED]>:
I saw your message on the kvm-devel list and I think I can advise you. I don't yet have a functioning subscription to the list so replying there is not simple for me. If this works out for you please post a message to the kvm-devel list with the solution you use (no need to mention me). To be honest, the problem isn't really a kvm or qemu one, it's an Ethernet issue I think. One solution is to create a bridge interface on the host, add your public facing NIC to the bridge, create a tap interface and attach it to the same bridge then use that tap interface for the guest you want to assign a public IP to. Assuming Linux: * You'll need a bridge-utils package or you'll need to build it * Assuming your host's public interface is eth0, then as root: # brctl addbr br0 # brctl addif br0 eth0 # tunctl -u <owner> -t qtap0 # brctl addif br0 qtap0 Replace eth0 with the real interface name for your host's public facing interface. Replace <owner> with the username that will be starting the guest. Replace qtap0 with a name you prefer to use for the tap interface. Now you can start the guest with the following -net option: qemu <other guest argument> -net [vlan=n,]ifname=qtap0,script=no Replace qtap0 with whatever you used for the tunctl command above. If you are using a vlan other than zero for the guest NIC then include the vlan=n option replacing n with the vlan number. You can use script=yes and modify /etc/qemu-ifup to perform the bridge setup command above but I prefer to use my own and setup the bridge and tap at init time then just have the guest use the preset bridge. You can now just use the relevant static IP address as-is on the guest because the guest's NIC is on the public facing cabling. Good luck, I think you should be able to solve this fairly easily. -- ------------------------------------------------------------------------- ICQ: 147137905 Skype: linker83 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel