-
Notifications
You must be signed in to change notification settings - Fork 656
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
QEMU driver doesn't support IPv6 network #3832
Comments
@Shmillerov |
Hello, thanks for the quick answer. No, the basic functionality works fine, the issue is that I don't have IPv6 network on a virtual machine with QEMU, but before (with LXD) I had it. It's good that you have a plan to add this support. But at the moment, do we have any WA? Maybe I can add IPv6 support manually? I don't want to have multipass <-> VM communication over IPv6. I just want to have an IPv6 network inside the VM. Thanks |
@Shmillerov |
If you need IPv6 connectivity between VMs, you can set up an IPv6-only bridge as follows:
After doing this you should achieve ipv6 connvectivity
For multiple VMs, you can repeat the process for each VM by assigning unique IPv6 addresses within the same subnet (e.g., 2001:db8::3, 2001:db8::4, etc.). Please note, this configuration is not persistent and will disappear after system reboot. |
Persistent configuration is a whole other story. One option is to use netplan for network settings and dnsmasq for dhcp. ip6table also should be replaced with nftables. Create bridge using netplan by adding a file
and applying it
New bridge should be now shown in an ip device list with a proper address
bridge will be down as long as no VM is connected to it yet
start a dnsmasq service to provide dhcp over br0. If you realy don't want to install separate dnsmasq you can try to set up another instance of multipass dnsmasq as a service as follows:
Note: a folder for lease file
This service should provide all the VMs connected to the br0 with an ip from 2001:db8/64 subnet and a default route via ens4. The final step is to persist ipv6 forwarding and masquerading:
Check your ipv6 connectivity from VM-1
This configuration should happily survive host system reboot. |
Describe the bug
I want to migrate from LXD to QEMU driver as multipass got support of bridged networks for QEMU with 1.15. But I got a different behavior between LXD and QEMU drivers.
VM launched with LXD driver by default have a global inet6 address on default interface:
VM launched with QEMU not:
As far as I understand the problem is in multipass bridge created by default.
With LXD driver, mpbr looks like:
With QEMU it doesn't have global inet6 addr:
To Reproduce
How, and what happened?
snap install multipass --beta
multipass launch --name test
multipass exec -- ip -c a
- ens3 interface doesn't have default inet6 addressExpected behavior
Additional info
multipass version
: multipass 1.15.0multipass info
:multipass get local.driver
: qemuThe text was updated successfully, but these errors were encountered: