Comments (6)
VPN's are known to play havoc with Multipass' networking. Because we can't account for every kind of VPN configuration and we don't believe we should be changing your configuration for you, we don't directly support the use of Multipass with VPNs.
However, we do have some documentation on the topic here and here, and I would recommend taking a look at that first.
If that still doesn't work for you, let us know!
from multipass.
Thanks @sharder996,
I have tried the
Not sure if this is a workaround or solution, but I was able to make this work by nat-ing the multipass bridge with my vpn interface.
I added nat on utun1 from bridge100:network to any -> (utun1) to file /etc/pf.conf. Then I reloaded the file: $ sudo pfctl -f /etc/pf.conf.
(Just built my first snap on mac 😃)
It does not work, because my mac has no nat command.
from multipass.
nat
is not a command that you execute in your terminal. You need to edit the file /etc/pf.conf
by adding the line
nat on utun1 from bridge100:network to any -> (utun1)
and then reload the file with the command sudo pfctl -f /etc/pf.conf
It is explained in full here:
https://multipass.run/docs/troubleshoot-networking#heading--potential-workaround-for-vpn-conflicts
from multipass.
I tried the following actions, still not working:
- Disable VPN
- Use OnyX to clean all cache.
- Reinstall multipass.
- Restart OS
- add ant line into /etc/pf.conf succucefully
Thanks.
from multipass.
I Enabled the trace of multipass log and got more info:
[2024-05-12T09:14:53.359] [debug] [qemu-system-aarch64] [4826] started: qemu-system-aarch64 --version
[2024-05-12T09:14:53.393] [debug] [qemu-img] [4827] started: qemu-img info /var/root/Library/Caches/multipassd/qemu/vault/images/noble-20240423/ubuntu-24.04-server-cloudimg-arm64.img
[2024-05-12T09:14:53.411] [debug] [qemu-img] [4828] started: qemu-img resize /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-24.04-server-cloudimg-arm64.img 5368709120
[2024-05-12T09:14:53.423] [debug] [qemu-img] [4829] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-24.04-server-cloudimg-arm64.img
[2024-05-12T09:14:53.430] [debug] [qemu-img] [4830] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-24.04-server-cloudimg-arm64.img
[2024-05-12T09:14:53.437] [debug] [primary] process working dir ''
[2024-05-12T09:14:53.437] [info] [primary] process program 'qemu-system-aarch64'
[2024-05-12T09:14:53.437] [info] [primary] process arguments '-machine, virt,gic-version=3, -accel, hvf, -drive, file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on, -cpu, host, -nic, vmnet-shared,model=virtio-net-pci,mac=52:54:00:40:5e:98, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-24.04-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 1, -m, 1024M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/cloud-init-config.iso'
[2024-05-12T09:14:53.439] [debug] [qemu-system-aarch64] [4831] started: qemu-system-aarch64 -machine virt,gic-version=3 -nographic -dump-vmstate /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/multipassd.WaaaUy
[2024-05-12T09:14:53.469] [info] [primary] process state changed to Starting
[2024-05-12T09:14:53.471] [info] [primary] process state changed to Running
[2024-05-12T09:14:53.471] [debug] [qemu-system-aarch64] [4832] started: qemu-system-aarch64 -machine virt,gic-version=3 -accel hvf -drive file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on -cpu host -nic vmnet-shared,model=virtio-net-pci,mac=52:54:00:40:5e:98 -device virtio-scsi-pci,id=scsi0 -drive file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-24.04-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 1 -m 1024M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/cloud-init-config.iso
[2024-05-12T09:14:53.471] [info] [primary] process started
[2024-05-12T09:14:53.472] [debug] [primary] Waiting for SSH to be up
[2024-05-12T09:14:53.594] [debug] [primary] QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 8}, "package": ""}, "capabilities": ["oob"]}}
[2024-05-12T09:14:53.617] [debug] [primary] QMP: {"return": {}}
[2024-05-12T09:14:54.546] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:14:56.674] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:14:58.728] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:00.855] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:02.974] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:03.676] [debug] [primary] QMP: {"timestamp": {"seconds": 1715476503, "microseconds": 676875}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[6]/virtio-backend"}}
[2024-05-12T09:15:05.116] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:07.168] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:09.267] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:11.345] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:13.454] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:15.517] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:17.623] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:19.713] [trace] [primary] Could not determine IP address within 1000ms
[2024-05-12T09:15:21.782] [trace] [primary] Could not determine IP address within 1000ms
from multipass.
Hi @CharlieYu12345, can you confirm whether or not you can launch and connect to instances when your VPN is disabled?
from multipass.
Related Issues (20)
- Non TTY compatible output for `launch` and other long running commands HOT 1
- Instances are not reported as Starting when using the LXD backend
- Networking Issue HOT 15
- launch failed: Unable to find an image matching "" in remote "". HOT 4
- Installing a GIU not working (default drives too small (Mac) HOT 5
- multipass instance suddenly stopped working on mac m1 HOT 2
- Better updating UX - help prevent machine deletion HOT 1
- brew install multipass Installation failed HOT 5
- 'noble' is not a supported alias HOT 1
- Choose simplestreams releases to display automatically
- In the built-in shell, allow paste from clipboard to work HOT 2
- Allow mounting volumes in GUI while VM is running HOT 2
- Cannot checkout running instance with error: Could not determine IP address within 120000ms HOT 13
- WSL2 Ubuntu 22.04 (Network mode: Mirroring mode) "dnsmasq failed to bind DHCP server socket: Address already in use" HOT 3
- multipass 1.13.1 doesnt run VMs and state shows "unknown" HOT 10
- Launching instances returns the error 'timed out waiting for response' and leaves the instances in an Unknown state. HOT 1
- Strange multipass behaviour with ssh client HOT 3
- Error Launching instances: timed out waiting for initialization to complete. HOT 7
- No permissions to view mounted home folder on multipass instance HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multipass.