Howard Leadmon
2015-Dec-09 06:51 UTC
[CentOS-virt] How to manually add a new interface to a bridge device?
Maybe my google-fu is failing me, but I have spent the past couple hours looking at how to add a vnet? Device to my KVM host running CentOS 6, and for the life of me I can't get this going.>From all my research if I want to add a device I should just do 'brctl addifbr1 vnet14' if I want to add a vnet14 to bridge br1. When I do this, I get: # brctl addif br0 vnet14 interface vnet14 does not exist! If I run a 'brctl show' I get the following: # brctl show bridge name bridge id STP enabled interfaces br0 8000.00237dd22a4c no eth0 vnet0 vnet10 vnet11 vnet13 vnet2 vnet3 vnet4 vnet6 vnet8 br1 8000.00237dd22a50 no eth1 vnet1 vnet12 vnet5 vnet7 vnet9 Needless to say the existing vnet?? Devices are in use on guest VM's currently. When I create a new VM using virt-install, I usually add the following to my command line: --network=bridge:br0 --network=bridge:br1 I messed up building a new VM, and only added the br0 interface to the VM, but need the br1 interface as well. So my question is, or a pointer to how I can add that br1 interface to my existing VM, and create the needed vnet14 interface for it to attach to? If anyone can explain how to do this, or give me a good pointer on where the info is on how to do this, it would sure be a huge help.. Thanks. --- Howard Leadmon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20151209/3caf5f97/attachment.html>
Zoltan Frombach
2015-Dec-09 07:41 UTC
[CentOS-virt] How to manually add a new interface to a bridge device?
I would stop the VM, edit its definition file (that's an XML file) and then start it up. But be careful: After you edit the XML file, you need to execute a command so KVM re-reads that file. I forgot that command, but you can look it up on Google. On Dec 9, 2015 7:52 AM, "Howard Leadmon" <howard at leadmon.net> wrote:> > > Maybe my google-fu is failing me, but I have spent the past couple hours > looking at how to add a vnet? Device to my KVM host running CentOS 6, and > for the life of me I can?t get this going. > > > > From all my research if I want to add a device I should just do ?brctl > addif br1 vnet14? if I want to add a vnet14 to bridge br1. When I do > this, I get: > > > > # brctl addif br0 vnet14 > > interface vnet14 does not exist! > > > > > > If I run a ?brctl show? I get the following: > > > > # brctl show > > bridge name bridge id STP enabled interfaces > > br0 8000.00237dd22a4c no eth0 > > vnet0 > > vnet10 > > vnet11 > > vnet13 > > vnet2 > > vnet3 > > vnet4 > > vnet6 > > vnet8 > > br1 8000.00237dd22a50 no eth1 > > vnet1 > > vnet12 > > vnet5 > > vnet7 > > vnet9 > > > > > > Needless to say the existing vnet?? Devices are in use on guest VM?s > currently. > > > > When I create a new VM using virt-install, I usually add the following to > my command line: > > > > --network=bridge:br0 --network=bridge:br1 > > > > I messed up building a new VM, and only added the br0 interface to the VM, > but need the br1 interface as well. So my question is, or a pointer to how > I can add that br1 interface to my existing VM, and create the needed > vnet14 interface for it to attach to? > > > > If anyone can explain how to do this, or give me a good pointer on where > the info is on how to do this, it would sure be a huge help.. > > > > Thanks? > > > > > > --- > > Howard Leadmon > > > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20151209/5db7ed17/attachment-0001.html>
Howard Leadmon
2015-Dec-09 08:55 UTC
[CentOS-virt] How to manually add a new interface to a bridge device?
Tried that as well, but this has to be something that gets set at the OS level and loaded, as if you look at dmesg output, you can see all the vnet?? nodes as the OS comes online. So the question is, what is virt-install doing that creates the needed vnet interface that is part of the bridge. I really had to kill and reload the VM just to load a second interface.. --- Howard Leadmon From: centos-virt-bounces at centos.org [mailto:centos-virt-bounces at centos.org] On Behalf Of Zoltan Frombach Sent: Wednesday, December 9, 2015 2:42 AM To: Discussion about the virtualization on CentOS <centos-virt at centos.org> Subject: Re: [CentOS-virt] How to manually add a new interface to a bridge device? I would stop the VM, edit its definition file (that's an XML file) and then start it up. But be careful: After you edit the XML file, you need to execute a command so KVM re-reads that file. I forgot that command, but you can look it up on Google. On Dec 9, 2015 7:52 AM, "Howard Leadmon" <howard at leadmon.net <mailto:howard at leadmon.net> > wrote: Maybe my google-fu is failing me, but I have spent the past couple hours looking at how to add a vnet? Device to my KVM host running CentOS 6, and for the life of me I can?t get this going.>From all my research if I want to add a device I should just do ?brctl addif br1 vnet14? if I want to add a vnet14 to bridge br1. When I do this, I get:# brctl addif br0 vnet14 interface vnet14 does not exist! If I run a ?brctl show? I get the following: # brctl show bridge name bridge id STP enabled interfaces br0 8000.00237dd22a4c no eth0 vnet0 vnet10 vnet11 vnet13 vnet2 vnet3 vnet4 vnet6 vnet8 br1 8000.00237dd22a50 no eth1 vnet1 vnet12 vnet5 vnet7 vnet9 Needless to say the existing vnet?? Devices are in use on guest VM?s currently. When I create a new VM using virt-install, I usually add the following to my command line: --network=bridge:br0 --network=bridge:br1 I messed up building a new VM, and only added the br0 interface to the VM, but need the br1 interface as well. So my question is, or a pointer to how I can add that br1 interface to my existing VM, and create the needed vnet14 interface for it to attach to? If anyone can explain how to do this, or give me a good pointer on where the info is on how to do this, it would sure be a huge help.. Thanks? --- Howard Leadmon _______________________________________________ CentOS-virt mailing list CentOS-virt at centos.org <mailto:CentOS-virt at centos.org> https://lists.centos.org/mailman/listinfo/centos-virt -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20151209/5118b9a9/attachment-0002.html>
Reasonably Related Threads
- How to manually add a new interface to a bridge device?
- How to manually add a new interface to a bridge device?
- How to manually add a new interface to a bridge device?
- How to manually add a new interface to a bridge device?
- How to manually add a new interface to a bridge device?