Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kvm and networking, not sure I understand the tutorials.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
michaelbenson
n00b
n00b


Joined: 16 Jul 2012
Posts: 1

PostPosted: Mon Sep 10, 2012 9:16 am    Post subject: Reply with quote

Is there any other thread which has more information on this topic or where this topic has been discussed in detail.
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1143

PostPosted: Thu Sep 13, 2012 9:34 pm    Post subject: Reply with quote

DaggyStyle wrote:
Mad Merlin wrote:
DaggyStyle wrote:

I do:

  1. create BR0 without mac address.
  2. create tun0 with mac address for the linux group.
  3. create tun1 without mac for the vm group.
  4. define a mac address within the vm.



  1. Create br0 without MAC address
  2. Plug eth0 into br0
  3. qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap -hda linux.img ...
  4. 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
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4958

PostPosted: Fri Sep 14, 2012 9:10 am    Post subject: Reply with quote

Mad Merlin wrote:
DaggyStyle wrote:
Mad Merlin wrote:
DaggyStyle wrote:

I do:

  1. create BR0 without mac address.
  2. create tun0 with mac address for the linux group.
  3. create tun1 without mac for the vm group.
  4. define a mac address within the vm.



  1. Create br0 without MAC address
  2. Plug eth0 into br0
  3. qemu-kvm -net nic,macaddr=52:54:00:00:00:00 -net tap -hda linux.img ...
  4. 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
ProjectFootball
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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