On 02/09/2011, at 0:32, Michael Pope <ma...@corsairsolutions.com.au> wrote:
> I've got a need to boot pxe using qemu and I've heard it can be done, but I've spent a few hours tonight on it and haven't got far.
...
> I've tried a few different combinations of qemu to boot, but without any success. It keeps getting the wrong IP, ie: 10.0.2.2.
>
> Do I have to setup a bridge? If so how would I go about this?
> What qemu commands should I try? has anyone got this working?
It seems that 10.0.2 is coming from the dhcp server internal to qemu.
This page shows how to config bridging with qemu using tap interfaces: http://www.linux-kvm.org/page/Networking#public_bridge
but... you are likely not able to properly bridge Ethernet with a WLAN interface, especially if it's using WPA. Even if the WLAN card and drivers support it, the AP may drop frames from the bridged qemu MAC address, because it's only expecting your laptop MAC on that association
it's worth a try though. I've had success with atheros chips and bridges, but without encryption
On 02/09/2011, at 8:36, map7 <map...@gmail.com> wrote:
> to get around the mac address problem should i set the qemu net device
> to the same mac address as my card? i've done this before with my
> wireless router with mac filtering turned on.
did that work for you? I'd imagine having the same MAC on two interfaces may cause trouble. though if you only need to forward IP over the bridge, it might be able to overcome the issue.
there is also ebtables which could allow you to do a sort of NAT a la iptables MASQUERADE at the Ethernet layer. I recently read a HOWTO on using ebtables to have multiple bridged computers share the same Mac upstream. I'll try and find it
did you try just creating a bridge with wlan0 and the qemu tap device, with no extra tricks?
>
> On Sep 2, 3:30 am, hannah commodore <han...@tinfoilhat.net> wrote:
>> On 02/09/2011, at 0:32, Michael Pope <m...@corsairsolutions.com.au> wrote:
>>
>>> I've got a need to boot pxe using qemu and I've heard it can be done, but I've spent a few hours tonight on it and haven't got far.
>>
>> ...
>>
>>> I've tried a few different combinations of qemu to boot, but without any success. It keeps getting the wrong IP, ie: 10.0.2.2.
>>
>>> Do I have to setup a bridge? If so how would I go about this?
>>> What qemu commands should I try? has anyone got this working?
>>
>> It seems that 10.0.2 is coming from the dhcp server internal to qemu.
>>
>> This page shows how to config bridging with qemu using tap interfaces:http://www.linux-kvm.org/page/Networking#public_bridge
>>
>> but... you are likely not able to properly bridge Ethernet with a WLAN interface, especially if it's using WPA. Even if the WLAN card and drivers support it, the AP may drop frames from the bridged qemu MAC address, because it's only expecting your laptop MAC on that association
>>
>> it's worth a try though. I've had success with atheros chips and bridges, but without encryption
>
> --
> You received this message because you are subscribed to the Google Groups "mlug-au" group.
> To post to this group, send email to mlu...@googlegroups.com.
> To unsubscribe from this group, send email to mlug-au+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mlug-au?hl=en.
>
On 02/09/2011, at 8:36, map7 <map...@gmail.com> wrote:
If I run the command: /usr/bin/sudo /usr/sbin/tunctl -u root -t tap0 on the command line it works! So it doesn't like it when qemu is trying to start it through the script for some reason.