Configuring TUN/TAP for a virtual machine
So here is a scenario i want to use an interface which would get its address through dhcp ..
and another interface that will be used by the local machine ..
Here it goes i plan to use ipcop firewall on a VM ..(qemu) those who are familiar with ipcop .. i wana tcreate a green+red interface , where red would get its address through dhcp , its through the green
that i would be connecting to internet ..
For those unfamiliar consider it this way a virtual machine wants an address from dhcp .. what should be done to do so and next thing the host is to be connected to VM through a virtual lan .. and host also must be able to connect to net ..
For this purpose some hints and tools are tun/tap and bridging associated tool brtcl ..
So any ideas ...
PS: VM of choice is qemu .
Some options for you:
First, simple but inflexible: use Fedora's Virtual Machine manager, which does all the TAP bridging business transparently for you. Of course, it also runs as root, so it has permission to do stuff. It also straps you into running through that awful Virtual Machine manager. Blech.
Wikibooks has a simple setup for TAP, whereby the bridging is established using scripts that are run as root, but QEMU is run in user mode. I know this one works, but it is a little messy.
This Fedora forum post has some good stuff on it also, however I ran into problems with it - I needed to run everything as root, including QEMU. Blech. But the information there is good.
The #qemu wiki has a few links for more information about bridged networking too.
Finally, there was a really good post about this on the QEMU forum a little while ago, but the forum has been down for about a week now. Maybe you'll be lucky and it will come up again soon.
thank u for ur reply
|All times are GMT -5. The time now is 04:30 AM.|