Open Apacelus opened 2 years ago
libvirt.libvirtError: Unable to create bridge virbr0: Package not installed
is due to a lack of kernel support.
So there is not fix for it?
Would be great if there was a way to run an android vm/container with internet.
This is fixable by changing the kernel config. I'll do it now.
Just to check, these packages are installed ?
Yes, all these packages are installed on the chromebook
Please also check for all the packages listed here : https://wiki.archlinux.org/title/Libvirt#Server
Attach the output of ls /usr/lib/libvirt/
If all package are installed, try also to install this package qemu-block-gluster
then check if issue appear again.
Ehh, how do I install it?
E: Unable to locate package qemu-block-gluster
Try qemu-block-extra
Also send the output of getent group kvm
qemu-block-extra was already installed.
$ getent group kvm
kvm:x:109:
You should try this fix https://bbs.archlinux.org/viewtopic.php?pid=1728381#p1728381
If it doesn't work, wait for my pr to be pulled and then update the kernel after the release.
The pr just got merged, how do I update the kernel on a non usb install?
A GitHub action to rebuild a kernel is necessary after that you can run updatekernel-on-emmc (it will update your installation !)
Please wait the next Linux kernel release by @MilkyDeveloper
The github action rebuild has finished, you can update the kernel.
Updated kernel on internal install, rebooted, tried waydroid and a virtual machine, didnt work. Created a fresh live usb, plugged it in, installed waydroid first, same error. Tried a virtual machine, same thing as before.
Can you replace your /usr/local/bin/updatekernel-on-emmc with the following file (remove .txt) updatekernel-on-emmc.txt It will update your kernel from my repository (I've added others kernel module)
Updated, rebooted, same errors
Okay I have added others kernel module (again !) try to update with the previous file. If the problem is still not solved. We should look elsewhere than in the kernel modules
No, unfortunately still the same errors
I added all kernel modules needed by KVM so I think the problem is elsewhere.
I've updated the latest version of kernel. And I tried to start a 'VM with NAT network' by using command qemu. The guest also cannot access the external network. And I found it missing kernel module ipt_MASQUERADE. Would you include it by default? Thanks.
I've added these module (you can see in the commit : https://github.com/runcros/breath/commit/ada1a1c4b13b5d4b49886cd431dd7aaaef8336fc)
CI will take ~2 hours you can try if it works after the release on my repository. Here is my updatekernel-on-emmc to update from my repo https://github.com/cb-linux/breath/files/8984512/updatekernel-on-emmc.txt
You can update.
Can you give me the exact name of the module it should looks something like this :
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y
I don't know what is the time lol I am on GMT+4 the kernel was built 3 hours ago.
Sorry, it is my fault. The module has been changed to xt_MASQUERADE. It is included in the new build. My VM can access the external network via NAT. Thanks for help.
@Fornball is it working for you ?
No, but the error is different now. For some reason breath is using nftables-legacy instead of the normal ones.
libvirt.libvirtError: internal error: Failed to apply firewall rules /usr/sbin/iptables -w --table filter --list-rules: # Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument
Similar issue with waydroid:
From the log: iptables v1.8.7 (legacy): unknown option "--checksum-fill"
Full log: waydroid.log
I've changed the iptables to use the /usr/sbin/iptables-legacy instead of /usr/sbin/iptables-nft . Under ChromeOS, it require to change it too with new version of iptables.
For detailed, please refer to the following link.
@Fornball if the fix works for you too I will add it to docs
I've changed the iptables to use the /usr/sbin/iptables-legacy instead of /usr/sbin/iptables-nft . Under ChromeOS, it require to change it too.
How do I do that?
I've changed the iptables to use the /usr/sbin/iptables-legacy instead of /usr/sbin/iptables-nft . Under ChromeOS, it require to change it too.
How do I do that?
update-alternatives --config iptables
virt manager now gives me this error: libvirt.libvirtError: Unable to open /dev/net/tun, is tun module loaded?: No such device
which is supposed to resolve itself by rebooting, but I have rebooted twice now and its still there.
I changed the iptables to /usr/sbin/iptables-legacy with the sudo update-alternatives --config iptables
command but waydroid still shows the same errors with this iptables v1.8.7 (legacy): unknown option "--checksum-fill" Try `iptables -h' or 'iptables --help' for more information.
virt manager now gives me this error:
libvirt.libvirtError: Unable to open /dev/net/tun, is tun module loaded?: No such device
which is supposed to resolve itself by rebooting, but I have rebooted twice now and its still there. I changed the iptables to /usr/sbin/iptables-legacy with thesudo update-alternatives --config iptables
command but waydroid still shows the same errors with thisiptables v1.8.7 (legacy): unknown option "--checksum-fill" Try `iptables -h' or 'iptables --help' for more information.
Have you tried on clean install ?
virt manager now gives me this error:
libvirt.libvirtError: Unable to open /dev/net/tun, is tun module loaded?: No such device
which is supposed to resolve itself by rebooting, but I have rebooted twice now and its still there. I changed the iptables to /usr/sbin/iptables-legacy with thesudo update-alternatives --config iptables
command but waydroid still shows the same errors with thisiptables v1.8.7 (legacy): unknown option "--checksum-fill" Try `iptables -h' or 'iptables --help' for more information.
It seem you haven't loaded tun module. Please execute the command 'sudo modprobe tun'.
Should work with Breath on UEFI can you test it ? Please join the discord for information about https://discord.gg/WatsaYhXCa
Lxc containers still wont start(preventing me from running waydroid)
Apologies for being very vague, the problem is I couldnt really get to the root of the problem. I am not sure if its just my system, but could you/someone else try running any virtual machine with qemu and see if network works?
I am having issues with virtual machine/containers and network. Wifi/Ethernet works fine on the system itself, but when I try creating a vm or a container, they have issues with network.
libvirt.libvirtError: Unable to create bridge virbr0: Package not installed
One thing that both of these problems have in common, is that some solutions talk about some kernel module or a kernel parameter(I'm not sure which one tho).