tag:blogger.com,1999:blog-6645400723413928790.post3099727218869576754..comments2024-02-08T02:42:59.748+01:00Comments on Elasticity: QEMU/KVM Bridged Network with TAP interfacesddisshttp://www.blogger.com/profile/04290801977788838499noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-6645400723413928790.post-1317881419587644632021-11-17T14:51:20.671+01:002021-11-17T14:51:20.671+01:00Sweet and simple - and it works. Excellent writeup...Sweet and simple - and it works. Excellent writeup. I used it for my Manjaro setup.Ramkumarhttps://www.blogger.com/profile/08358589771509771693noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-20289874200330825362019-03-08T16:49:35.733+01:002019-03-08T16:49:35.733+01:00I had to also run dhclient on br0 afterwards on th...I had to also run dhclient on br0 afterwards on the host, F29.ajhhttps://www.blogger.com/profile/01492636677782437309noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-31309978477804463552018-06-11T05:03:41.743+02:002018-06-11T05:03:41.743+02:00Thank you so much for a great guide. Would you ple...Thank you so much for a great guide. Would you please post <br />1. static IP instructions (preferably the Arch linux way)<br />2. solution on how to make this changes permanent so that they survive the reboot. Your guide works for me but resets after reboot. I have to go through the whole thing again with every reboot.<br />Thanks!hakayovahttps://www.blogger.com/profile/12731377004574606403noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-7471573145169717902018-03-26T19:38:06.124+02:002018-03-26T19:38:06.124+02:00Thank you for the nice write up. What if the guest...Thank you for the nice write up. What if the guest VM should be in a different subnet than the host?<br /><br />sudo ip link add br0 type bridge<br />sudo ip tuntap add dev tap0 mode tap user $(whoami)<br />sudo ip link set tap0 master br0<br />sudo ip link set dev br0 up<br />sudo ip link set dev tap0 up<br />sudo sysctl -w net.ipv4.ip_forward=1<br />sudo ip route add to $prefix dev tap0<br /><br />sudo qemu-system-x86_64 -enable-kvm -hda ./tpot/vm.img -device e1000,netdev=network0,mac=52:54:00:09:9b:15 -netdev tap,id=network0,ifname=tap0,script=no,downscript=no -display none -daemonize<br /><br />and then static network configuration in /etc/network/interfaces in the guest did not work for me. I cant ping from host-->guest. :(<br /><br />Cheers. MNAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-32165128745643014282018-03-12T19:03:53.241+01:002018-03-12T19:03:53.241+01:00Thanks for the feedback. I deliberately avoided br...Thanks for the feedback. I deliberately avoided bridge IP assignment, as I wanted to keep the documentation as simple as possible. I'll consider adding it in future if there's enough demand.ddisshttps://www.blogger.com/profile/04290801977788838499noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-33037121752655215452018-03-09T10:25:58.258+01:002018-03-09T10:25:58.258+01:00I always get confused by taps. This is by far the ...I always get confused by taps. This is by far the best tutorial on bridging the tap. I like that you didn't use brctl but ip link instead. It just misses a line about assinging IP to bridge. Usually it would be like sudo dhclient br0.Narduokhttps://www.blogger.com/profile/09042947044652118333noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-79662055243112908772017-04-29T02:50:24.088+02:002017-04-29T02:50:24.088+02:00Hi Prashast, if you're bridging your VM with a...Hi Prashast, if you're bridging your VM with a physical network device (e.g. eth0 in this example) then a DHCP server will very likely already be running on that network.<br /><br />If not, then you could start your own on br0 via:<br />> dnsmasq --no-hosts --no-resolv --interface="br0" --dhcp-range="192.168.31.10,192.168.31.20,12h"ddisshttps://www.blogger.com/profile/04290801977788838499noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-30547372450012540072017-04-29T01:05:08.993+02:002017-04-29T01:05:08.993+02:00Hey, in the article you mentioned to ensure that t...Hey, in the article you mentioned to ensure that the dhcp server is up and running. By that did you mean I should start a dhcp server on the host itself? If so, could you tell me as to what it's configuration should be?Anonymoushttps://www.blogger.com/profile/03494311905611515166noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-81374766827064990542016-12-19T06:47:00.750+01:002016-12-19T06:47:00.750+01:00Thanks for posting this, I had a meatball of a tim...Thanks for posting this, I had a meatball of a time getting qemu to play nice with my local network.Chester T. Field Esq.noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-20628501585971598892016-11-23T15:23:46.289+01:002016-11-23T15:23:46.289+01:00Thanks for the brctl -> ip link type bridge rec...Thanks for the brctl -> ip link type bridge recommendation. I'll give it a test and update the tutorialddisshttps://www.blogger.com/profile/04290801977788838499noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-77559425178234990222016-11-23T15:21:51.520+01:002016-11-23T15:21:51.520+01:00Hi Dimon, guest to guest communication works fine ...Hi Dimon, guest to guest communication works fine for me. Could your firewall be getting in the way?ddisshttps://www.blogger.com/profile/04290801977788838499noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-20713068588966916632016-11-04T03:26:16.647+01:002016-11-04T03:26:16.647+01:00Thanks for the short and informative tutorial. I h...Thanks for the short and informative tutorial. I have followed this and it worked. I can ping guests from host. From guests I can ping host, my internet router and internet hosts. However I can't ping guest from guest. Would you update your article on how to accomplish this?Dimonhttps://www.blogger.com/profile/04120962595982760400noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-40915059410433177752016-10-17T17:46:19.923+02:002016-10-17T17:46:19.923+02:00An important note for static ip addresses: the ip ...An important note for static ip addresses: the ip address that was previously at eth0, now have to be set to `br0` device, then LAN starts working.<br /><br />I also think `sudo /sbin/brctl addbr br0` can be changed to `sudo ip link add br0 type bridge`, and `sudo /sbin/brctl addif br0 eth0` → `sudo ip link set eth0 master br0`.Hi-Angelhttps://www.blogger.com/profile/10661636579329649996noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-8662573059159916822016-07-01T14:39:54.675+02:002016-07-01T14:39:54.675+02:00Thank you very .. it was very helpful for meThank you very .. it was very helpful for meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-67011932661414632492016-02-12T22:48:24.690+01:002016-02-12T22:48:24.690+01:00Great tutorial, will be using this to create VM to...Great tutorial, will be using this to create VM to VM taps for SDN services.Cliffnoreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-2764146561472455242015-12-12T20:03:18.818+01:002015-12-12T20:03:18.818+01:00Thank you for simple instructions you put together...Thank you for simple instructions you put together. It has been great help to us.naghttps://www.blogger.com/profile/13098037492187613975noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-87649101801118417912015-11-25T16:42:17.552+01:002015-11-25T16:42:17.552+01:00Glad to hear it was helpful. Thanks for the feedba...Glad to hear it was helpful. Thanks for the feedback Kenneth!ddisshttps://www.blogger.com/profile/04290801977788838499noreply@blogger.comtag:blogger.com,1999:blog-6645400723413928790.post-11753609302014074682015-11-10T22:06:54.051+01:002015-11-10T22:06:54.051+01:00I was looking for solid, simple examples for how t...I was looking for solid, simple examples for how to bridge a QEMU guest to my host without using SLIRP. This is the most distro agnostic and to the point example I've found so far, thank you for putting this together!Kenneth Wilkehttp://www.github.com/KennethWilkenoreply@blogger.com