[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] Can I assign a dedicated NIC to a container?

On Wed, May 07, 2014 at 08:34:59AM +0000, WANG Cheng D wrote:
> Dear all,
> There are two containers hosted by my host machine. And the host
> machine has two same 1G NICs. I want to assign a dedicated NIC to
> one container. The host and the other container share the second
> NIC. How can I achieve this?

There are several options for the dedicated NIC

 - Use <hostdev mode="capabilities" type="net">


   This simply moves the host NIC into the container's network
   namespace, making it invisible to the host, and only usable
   by that one container

 - Use <interface type="direct">


   This connects the host NIC to a container via macvlan
   device.  This can also be used for the shared NICs.

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]