Network and webvirtmgr

hi all,
i’m playing with webvirtmgr but i’m having some problem with network on VM.
I read that i have to create a br0 interface trought ns webui…
i have only eth0(green), i click on “new interface” , select bridge and the checkbox with eth0 and click submit. but the result is that NS become unreachable.
Where is the error?
after the sucessful cration of br0 i have to add it on networks section on webvirtmgr?
sorry for the noob question but this is my first exp with this :tired_face:

Can you describe what you exactly want to do and where you read, that the creation of the bridge is required?

1 Like

I want to give internet access to the VMs :smile:
In future i plan to add 2 more ethernet port and test dietro (like firewall) on one vm…but i have no exp with webvirtmgr…

I think that i have misundestood the ns wiki regarding the bridge interface…

It seems you didn’t any error…maybe we have a bug?
Can you please post the output of these commands after the bridge is created?

  • db networks show
  • ifconfig -a
  • brctl show

You’re in the right place to ask any question! :wink:
After the bridge is created, the bridge should already be present inside the webvirtmgr interface.
If not, please try to restart libvirt daemon: service libvirtd restart

If you don’t need to access the VMs from the virtualizer itself, you can also bridge the virtual interfaces to physical itnerfaces using macvtap without the need to create a bridge from NethServer web interface.
See: 18.11. Attaching a Virtual NIC Directly to a Physical Interface Red Hat Enterprise Linux 6 | Red Hat Customer Portal

can’t reproduce the problem…the past two attempt failed…

now it work… :frowning: :flushed:

Another question:
there is the possibility trought webvirtmgr to add more than 1 nic to one vm? :slight_smile:

KVM and libvirt supports it, I have no idea about webvirtmgr which is only a frontend :smile:
If you have a Linux desktop you can also use virt-manager.

1 Like

i think the easyest way to do this is add the other bridge interface in NS, add it on webvirtmgr, and edit the XML (in the VM menu go to settings -> XML) adding under the auto-created network interface:

<interface type='bridge'>
  <mac address='52:54:00:12:34:56'/>
  <source bridge='br1'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>

modify slot interface and mac adress :smile:

If you want to add an external disk (usb disk ecc):

<disk type='block' device='disk'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sdb'/>
  <target dev='sdb' bus='scsi'/>
  <address type='drive' controller='0' bus='0' target='0' unit='5'/>

If you have multiple network configured in webvirtmgr when creating a new VM you can add more than one NIC during the VM creation (using a custom template)

Would you mind adding this to our wiki? We should add a new Tip and Tricks section /cc @Jim

Yes! :wink:
but i don’t know how and where to start :slight_smile:

Just create a new page called: Add bridge interface and external disk to webvirtmgr

and link it here, so docs team @sitz, @Ctek, @stephdl, @WillZen, @Jim can help you to improve it

Hi @jackyes

How are you going with the wiki?
Do you need any help?

Work in progress :slight_smile:

Great @jackyes
Feedback from my side. For me it isn’t clear where has the work to be done. It would be nice if you can add if it in Nethserver GUI or other GUI.
You could separate the Nethserver, WebVirtMgr and VM part with paragraph and different headline level.

To figure out how to format the text I look what other did. In Hoto make Nethserver… are example with remarks and warnings. And in this Howto are different headlines.

1 Like

i have separate throught headline the two part NS gui and Webvirtmgr gui :smile:
Hope that now it is more clear :neutral_face:

Looks very cool and straightforward, thank you. You rock! :muscle:

Edit: link it here at the end:

Hey @jackyes , looks great and thank you :clap: :+1:


If I see it right your Howto is in your directory. Could you please make a new Howto and copy everything from your Howto in this new page.
Go to “User Guide”. At the bottom of the page is “Create a new User Guide” and copy your writing.
Please add a TAG at the end of your text as described above on the “User Guide” page.

i hope to have done it correctly

Yes. It is on the right place.

Thank you for the new Howto. Great job. :+1: