Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] trouble running kvm guests simultaneously
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
torin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2003
Posts: 119

PostPosted: Sun Jul 19, 2009 9:39 pm    Post subject: [SOLVED] trouble running kvm guests simultaneously Reply with quote

Hello,
I have 2 kvm guests (debian) set up on my gentoo host.
If I run either one of them everything is just fine but when I run both of them at the same time, one always has trouble being accessed:
Code:

ping debian_one

ping statistics ---
24 packets transmitted, 6 received, 75% packet loss, time 23000ms

Whenever I kill the other one it runs fine though:

Code:

kill debian_two

ping debian_one

ping statistics ---
24 packets transmitted, 24 received, 0% packet loss, time 22999ms

I start the 2 guests as follows:
Code:

kvm debian_HD_amd64_test.img -net nic, macaddr=52:54:00:12:34:66 -net tap,ifname=qtap1,script=no,downscript=no -m 2048 -boot c &
kvm debian_HD_amd64_prod.img -net nic, macaddr=52:54:00:12:34:57 -net tap,ifname=qtap0,script=no,downscript=no -m 2048 -boot c &

As you can see they both have different mac-addresses so there is no collision there.


ifconfig on my gentoo-host:
Code:

br0       Link encap:Ethernet  HWaddr 8a:94:48:d6:76:f1
          inet addr:188.40.45.228  Bcast:188.40.45.255  Mask:255.255.255.192
          inet6 addr: fe80::1893:43ff:fe98:801d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:502615 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1044589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:99647846 (95.0 MiB)  TX bytes:1364215918 (1.2 GiB)
         
qtap0     Link encap:Ethernet  HWaddr 9a:0d:ab:12:b8:0a
          inet6 addr: fe80::980d:abff:fe12:b80a/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:809 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1107 errors:0 dropped:86 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:125201 (122.2 KiB)  TX bytes:113645 (110.9 KiB)

qtap1     Link encap:Ethernet  HWaddr 8a:94:48:d6:76:f1
          inet6 addr: fe80::8894:48ff:fed6:76f1/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9763 errors:0 dropped:330 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:3959806 (3.7 MiB)  TX bytes:1752664 (1.6 MiB)

Any hints?


Last edited by torin on Mon Jul 20, 2009 5:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1155

PostPosted: Sun Jul 19, 2009 11:24 pm    Post subject: Re: trouble running kvm guests simultaneously Reply with quote

torin wrote:

I start the 2 guests as follows:
Code:

kvm debian_HD_amd64_test.img -net nic, macaddr=52:54:00:12:34:66 -net tap,ifname=qtap1,script=no,downscript=no -m 2048 -boot c &
kvm debian_HD_amd64_prod.img -net nic, macaddr=52:54:00:12:34:57 -net tap,ifname=qtap0,script=no,downscript=no -m 2048 -boot c &



I don't think you can put the space in there between the -net nic, and macaddr=...

Try this:

Code:

kvm debian_HD_amd64_test.img -net nic,macaddr=52:54:00:12:34:66 -net tap,ifname=qtap1,script=no,downscript=no -m 2048 -boot c &
kvm debian_HD_amd64_prod.img -net nic,macaddr=52:54:00:12:34:57 -net tap,ifname=qtap0,script=no,downscript=no -m 2048 -boot c &

_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
torin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2003
Posts: 119

PostPosted: Mon Jul 20, 2009 5:41 pm    Post subject: re Reply with quote

that worked!
thanks for the hint!
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
Page 1 of 1

 
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