Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network "virbr0" doesn't exist by default #3

Closed
seriousm4x opened this issue Apr 1, 2023 · 4 comments
Closed

Network "virbr0" doesn't exist by default #3

seriousm4x opened this issue Apr 1, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@seriousm4x
Copy link
Contributor

seriousm4x commented Apr 1, 2023

virbr0 interface didn't exist for me causing virsh errors. It's fairly simple to active this interface:

sudo virsh net-define /etc/libvirt/qemu/networks/default.xml
sudo virsh net-start default

Info: dnsmasq must be installed for this to successfully activate.

Libvirt docs say the xml is located at /usr/share/libvirt/networks/default.xml but mine was at /etc/libvirt/qemu/networks/default.xml (arch).

Maybe add it to the readme or ask the user if he wants to automatically active the bridge.

@wubbl0rz
Copy link
Owner

wubbl0rz commented Apr 1, 2023

good suggestion. i could add a check at the start of new VMs to see if the interface is up and if not ask and start.

@wubbl0rz wubbl0rz added the enhancement New feature or request label Apr 1, 2023
@wubbl0rz
Copy link
Owner

wubbl0rz commented Apr 2, 2023

virsh --connect qemu:///system net-start --network default

should be enough to start if your user is in the libvirt group. if not sudo is needed.

@wubbl0rz
Copy link
Owner

wubbl0rz commented Apr 7, 2023

next release will check if default bridge is present and offer to create one.

image

@seriousm4x
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants