View previous topic :: View next topic |
Author |
Message |
torin Tux's lil' helper
Joined: 03 Feb 2003 Posts: 119
|
Posted: Sun Jul 19, 2009 9:39 pm Post subject: [SOLVED] trouble running kvm guests simultaneously |
|
|
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 |
|
|
Mad Merlin Veteran
Joined: 09 May 2005 Posts: 1155
|
Posted: Sun Jul 19, 2009 11:24 pm Post subject: Re: trouble running kvm guests simultaneously |
|
|
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 |
|
|
torin Tux's lil' helper
Joined: 03 Feb 2003 Posts: 119
|
Posted: Mon Jul 20, 2009 5:41 pm Post subject: re |
|
|
that worked!
thanks for the hint! |
|
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
|
|