View previous topic :: View next topic |
Author |
Message |
michaelbenson n00b
Joined: 16 Jul 2012 Posts: 1
|
Posted: Mon Sep 10, 2012 9:16 am Post subject: |
|
|
Is there any other thread which has more information on this topic or where this topic has been discussed in detail. |
|
Back to top |
|
|
Mad Merlin Veteran
Joined: 09 May 2005 Posts: 1155
|
Posted: Thu Sep 13, 2012 9:34 pm Post subject: |
|
|
DaggyStyle wrote: | Mad Merlin wrote: | DaggyStyle wrote: |
I do:
- create BR0 without mac address.
- create tun0 with mac address for the linux group.
- create tun1 without mac for the vm group.
- define a mac address within the vm.
|
- Create br0 without MAC address
- Plug eth0 into br0
- qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap -hda linux.img ...
- qemu-kvm -net nic,macaddr=52:54:00:00:00:01 -net tap -hda windows.img ...
Replace 52:54:00:00:00:00 and 52:54:00:00:00:01 with whatever MAC addresses your router expects. |
ok, shouldn't that be this?
qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap0 -hda linux.img ...
qemu-kvm -net nic,macaddr=52:54:00:00:00:01 -net tap1 -hda windows.img ... |
No, -net tap will have qemu-kvm dynamically create a new tap device and use it. -net tap0 will not work.
There is the option of using already created tap devices, which is mainly useful for invoking qemu-kvm without root privileges (tap creation requires root), this happens with -net tap,ifname=tap0, for example. _________________ Game! - Where the stick is mightier than the sword! |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Fri Sep 14, 2012 9:10 am Post subject: |
|
|
Mad Merlin wrote: | DaggyStyle wrote: | Mad Merlin wrote: | DaggyStyle wrote: |
I do:
- create BR0 without mac address.
- create tun0 with mac address for the linux group.
- create tun1 without mac for the vm group.
- define a mac address within the vm.
|
- Create br0 without MAC address
- Plug eth0 into br0
- qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap -hda linux.img ...
- qemu-kvm -net nic,macaddr=52:54:00:00:00:01 -net tap -hda windows.img ...
Replace 52:54:00:00:00:00 and 52:54:00:00:00:01 with whatever MAC addresses your router expects. |
ok, shouldn't that be this?
qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap0 -hda linux.img ...
qemu-kvm -net nic,macaddr=52:54:00:00:00:01 -net tap1 -hda windows.img ... |
No, -net tap will have qemu-kvm dynamically create a new tap device and use it. -net tap0 will not work.
There is the option of using already created tap devices, which is mainly useful for invoking qemu-kvm without root privileges (tap creation requires root), this happens with -net tap,ifname=tap0, for example. |
ok, I understand, I'll give it a try, thanks. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|