* 8 NIC limit
@ 2010-10-05 14:48 linux_kvm
2010-10-05 15:24 ` Dustin Kirkland
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: linux_kvm @ 2010-10-05 14:48 UTC (permalink / raw)
To: kvm
Hello list:
I'm working on a project that calls for the creation of a firewall in
KVM.
While adding a 20-interface trunk of virtio adapters to bring in a dual
10GB bond, I've discovered an 8 NIC limit in QEMU.
I found the following thread in the list archives detailing a similar
problem:
http://kerneltrap.org/mailarchive/linux-kvm/2009/1/29/4848304
It includes a patch for the file qemu/net.h to allow 24 NICs:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm">qemu-kvm/+bug/595873/+attachment/1429544/+files/max_nics.patch
In my case I want to attach 29, and have simply changed line 8 to 30
from 24.
This will be the first patch I've ever had to do, and so far my internet
search yields results that don't seem to apply.
Would someone like to recommend a pertinent tutorial?
Many thanks
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: 8 NIC limit
2010-10-05 14:48 8 NIC limit linux_kvm
@ 2010-10-05 15:24 ` Dustin Kirkland
[not found] ` <1286294888.11462.1398488135@webmail.messagingengine.com>
2010-10-05 15:57 ` 8 NIC limit Markus Armbruster
2010-10-05 16:43 ` Brian Jackson
2 siblings, 1 reply; 11+ messages in thread
From: Dustin Kirkland @ 2010-10-05 15:24 UTC (permalink / raw)
To: linux_kvm; +Cc: kvm, qemu-devel
On Tue, Oct 5, 2010 at 7:48 AM, <linux_kvm@proinbox.com> wrote:
> Hello list:
>
> I'm working on a project that calls for the creation of a firewall in
> KVM.
> While adding a 20-interface trunk of virtio adapters to bring in a dual
> 10GB bond, I've discovered an 8 NIC limit in QEMU.
>
> I found the following thread in the list archives detailing a similar
> problem:
> http://kerneltrap.org/mailarchive/linux-kvm/2009/1/29/4848304
>
> It includes a patch for the file qemu/net.h to allow 24 NICs:
> https://bugs.launchpad.net/ubuntu/+source/qemu-kvm">qemu-kvm/+bug/595873/+attachment/1429544/+files/max_nics.patch
>
> In my case I want to attach 29, and have simply changed line 8 to 30
> from 24.
>
> This will be the first patch I've ever had to do, and so far my internet
> search yields results that don't seem to apply.
>
> Would someone like to recommend a pertinent tutorial?
Hi there,
I commented on the original bug in Launchpad. We're willing and able
to carry the patch against qemu-kvm in Ubuntu, I just asked that the
reporter at least submit the patch upstream for discussion. I don't
see where that has happened yet. It's a trivial patch to submit.
Please note in that bug a pointer to the mailing list thread, if you
start one.
To your specific question, different communities have different
requirements on patch submission, so you do need to consult each
community. A good place to start might be the
Documentation/SubmittingPatches how-to in the kernel tree:
* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/SubmittingPatches;hb=HEAD
In this case, I think you're going to want to send your patch to the
qemu-devel (on CC) mailing list (perhaps in addition to sending it
here, to the kvm list).
:-Dustin
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: 8 NIC limit
2010-10-05 14:48 8 NIC limit linux_kvm
2010-10-05 15:24 ` Dustin Kirkland
@ 2010-10-05 15:57 ` Markus Armbruster
2010-10-05 16:20 ` linux_kvm
2010-10-05 16:43 ` Brian Jackson
2 siblings, 1 reply; 11+ messages in thread
From: Markus Armbruster @ 2010-10-05 15:57 UTC (permalink / raw)
To: linux_kvm; +Cc: kvm
linux_kvm@proinbox.com writes:
> Hello list:
>
> I'm working on a project that calls for the creation of a firewall in
> KVM.
> While adding a 20-interface trunk of virtio adapters to bring in a dual
> 10GB bond, I've discovered an 8 NIC limit in QEMU.
Have you tried creating NICs with -device? The limit shouldn't apply
there.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: 8 NIC limit
2010-10-05 15:57 ` 8 NIC limit Markus Armbruster
@ 2010-10-05 16:20 ` linux_kvm
0 siblings, 0 replies; 11+ messages in thread
From: linux_kvm @ 2010-10-05 16:20 UTC (permalink / raw)
To: Markus Armbruster; +Cc: KVM mailing list
> Have you tried creating NICs with -device?
I'm not sure what that is, will look into it, thanks.
I'm using ProxmoxVE, and currently add them via a web interface.
Someone happens to host a screenshot of that part here:
http://c-nergy.be/blog/wp-content/uploads/Proxmox_Net2.png
On Tue, 05 Oct 2010 17:57 +0200, "Markus Armbruster" <armbru@redhat.com>
wrote:
> linux_kvm@proinbox.com writes:
>
> > Hello list:
> >
> > I'm working on a project that calls for the creation of a firewall in
> > KVM.
> > While adding a 20-interface trunk of virtio adapters to bring in a dual
> > 10GB bond, I've discovered an 8 NIC limit in QEMU.
>
> Have you tried creating NICs with -device? The limit shouldn't apply
> there.
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: 8 NIC limit
2010-10-05 14:48 8 NIC limit linux_kvm
2010-10-05 15:24 ` Dustin Kirkland
2010-10-05 15:57 ` 8 NIC limit Markus Armbruster
@ 2010-10-05 16:43 ` Brian Jackson
2 siblings, 0 replies; 11+ messages in thread
From: Brian Jackson @ 2010-10-05 16:43 UTC (permalink / raw)
To: linux_kvm; +Cc: kvm
On 10/5/2010 9:48 AM, linux_kvm@proinbox.com wrote:
> Hello list:
>
> I'm working on a project that calls for the creation of a firewall in
> KVM.
> While adding a 20-interface trunk of virtio adapters to bring in a dual
> 10GB bond, I've discovered an 8 NIC limit in QEMU.
>
> I found the following thread in the list archives detailing a similar
> problem:
> http://kerneltrap.org/mailarchive/linux-kvm/2009/1/29/4848304
>
> It includes a patch for the file qemu/net.h to allow 24 NICs:
> https://bugs.launchpad.net/ubuntu/+source/qemu-kvm">qemu-kvm/+bug/595873/+attachment/1429544/+files/max_nics.patch
>
> In my case I want to attach 29, and have simply changed line 8 to 30
> from 24.
I'd guess you'll bump into a pci device number limit (I believe it is 32
at the moment).
> This will be the first patch I've ever had to do, and so far my internet
> search yields results that don't seem to apply.
>
> Would someone like to recommend a pertinent tutorial?
>
> Many thanks
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: Re: 8 NIC limit
@ 2010-10-05 16:19 linux_kvm
2010-10-05 18:39 ` Chris Wright
0 siblings, 1 reply; 11+ messages in thread
From: linux_kvm @ 2010-10-05 16:19 UTC (permalink / raw)
To: KVM mailing list
Forgot to cc list, forwarding.
> In this case, I think you're going to want to send your patch to the
> qemu-devel (on CC) mailing list (perhaps in addition to sending it
> here, to the kvm list).
Will do, thanks for the pointer.
Before I do so, I'd like to bring up one thing that comes to mind.
I don't know how to make the determination, but it makes sense to me for
the limit defined here to be indicitive of an actual limitation, rather
than what seems an arbitrary best-guess as to the most someone might
need.
If the change ends up being permanent, then I would hope it would be a
large enough value to provide a degree of extensibility and prevent the
necessity of bumping it up again later when someone else comes along
with even greater bandwidth requirements.
Perhaps someone could provide some guidance as to a sane, higher number,
as opposed to an arbitrary '65000' which would surely prevent this from
happening again (knock on wood).
For the time being I still have to find something to help learn how to
implement the change locally.
I rarely have to compile let alone deal with patches, so to me at least
this is a considerable obstacle.
-Thanks
On Tue, 05 Oct 2010 08:24 -0700, "Dustin Kirkland"
<kirkland@canonical.com> wrote:
> On Tue, Oct 5, 2010 at 7:48 AM, <linux_kvm@proinbox.com> wrote:
> > Hello list:
> >
> > I'm working on a project that calls for the creation of a firewall in
> > KVM.
> > While adding a 20-interface trunk of virtio adapters to bring in a dual
> > 10GB bond, I've discovered an 8 NIC limit in QEMU.
> >
> > I found the following thread in the list archives detailing a similar
> > problem:
> > http://kerneltrap.org/mailarchive/linux-kvm/2009/1/29/4848304
> >
> > It includes a patch for the file qemu/net.h to allow 24 NICs:
> > https://bugs.launchpad.net/ubuntu/+source/qemu-kvm">qemu-kvm/+bug/595873/+attachment/1429544/+files/max_nics.patch
> >
> > In my case I want to attach 29, and have simply changed line 8 to 30
> > from 24.
> >
> > This will be the first patch I've ever had to do, and so far my internet
> > search yields results that don't seem to apply.
> >
> > Would someone like to recommend a pertinent tutorial?
>
> Hi there,
>
> I commented on the original bug in Launchpad. We're willing and able
> to carry the patch against qemu-kvm in Ubuntu, I just asked that the
> reporter at least submit the patch upstream for discussion. I don't
> see where that has happened yet. It's a trivial patch to submit.
> Please note in that bug a pointer to the mailing list thread, if you
> start one.
>
> To your specific question, different communities have different
> requirements on patch submission, so you do need to consult each
> community. A good place to start might be the
> Documentation/SubmittingPatches how-to in the kernel tree:
> *
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/SubmittingPatches;hb=HEAD
>
> In this case, I think you're going to want to send your patch to the
> qemu-devel (on CC) mailing list (perhaps in addition to sending it
> here, to the kvm list).
>
> :-Dustin
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: 8 NIC limit
2010-10-05 16:19 Fwd: " linux_kvm
@ 2010-10-05 18:39 ` Chris Wright
0 siblings, 0 replies; 11+ messages in thread
From: Chris Wright @ 2010-10-05 18:39 UTC (permalink / raw)
To: linux_kvm; +Cc: KVM mailing list
* linux_kvm@proinbox.com (linux_kvm@proinbox.com) wrote:
> I don't know how to make the determination, but it makes sense to me for
> the limit defined here to be indicitive of an actual limitation, rather
> than what seems an arbitrary best-guess as to the most someone might
> need.
The actual limitation is that we have only a single PCI bus. The
network devices are single function devices. While there are 32 slots
on the PCI bus, a few are already taken (typically the first 3, leaving
29 free slots).
But, as Markus mentioned, this limitation is only for legacy command
line option. The modern qdev way[1] should not hit this same limitation.
thanks,
-chris
[1] http://www.linux-kvm.org/page/Qdev_status
^ permalink raw reply [flat|nested] 11+ messages in thread
* 8 nic limit
@ 2011-09-03 11:54 Richard Weinberger
2011-09-05 6:58 ` Jan Kiszka
0 siblings, 1 reply; 11+ messages in thread
From: Richard Weinberger @ 2011-09-03 11:54 UTC (permalink / raw)
To: kvm
Hi!
qemu-kvm seems to support only 8 network interfaces.
I found this posting from 2009:
http://www.mail-archive.com/kvm@vger.kernel.org/msg10104.html
Why is MAX_NICS still only 8?
Please raise this limit in future releases.
I have some use cases where much more than 8 nics are needed.
(Lot's of VLANs...)
Thanks,
//richard
P.s: Please CC me.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-09-05 6:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 14:48 8 NIC limit linux_kvm
2010-10-05 15:24 ` Dustin Kirkland
[not found] ` <1286294888.11462.1398488135@webmail.messagingengine.com>
[not found] ` <1286295603.7731.28.camel@x200>
2010-10-06 5:46 ` 8 NIC limit - patch - places limit at 32 linux_kvm
[not found] ` <4CAC719E.6060004@codemonkey.ws>
2010-10-06 17:11 ` linux_kvm
2010-10-07 1:39 ` Chris Wright
2010-10-05 15:57 ` 8 NIC limit Markus Armbruster
2010-10-05 16:20 ` linux_kvm
2010-10-05 16:43 ` Brian Jackson
-- strict thread matches above, loose matches on Subject: below --
2010-10-05 16:19 Fwd: " linux_kvm
2010-10-05 18:39 ` Chris Wright
2011-09-03 11:54 8 nic limit Richard Weinberger
2011-09-05 6:58 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox