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
Can you describe what you exactly want to do and where you read, that the creation of the bridge is required?
I want to give internet access to the VMs
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!
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.
can’t reproduce the problem…the past two attempt failed…
now it work…
there is the possibility trought webvirtmgr to add more than 1 nic to one vm?
KVM and libvirt supports it, I have no idea about webvirtmgr which is only a frontend
If you have a Linux desktop you can also use virt-manager.
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'/> </interface>
modify slot interface and mac adress
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'/> </disk>
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
but i don’t know how and where to start
Just create a new page called: Add bridge interface and external disk to webvirtmgr
How are you going with the wiki?
Do you need any help?
Work in progress
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.
i have separate throught headline the two part NS gui and Webvirtmgr gui
Hope that now it is more clear
Looks very cool and straightforward, thank you. You rock!
Edit: link it here at the end: http://wiki.nethserver.org/doku.php?id=howto_s
Hey @jackyes , looks great and thank you
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.