Giter Club home page Giter Club logo

Comments (6)

sharder996 avatar sharder996 commented on August 25, 2024

Hi @CharlieYu12345

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.

CharlieYu12345 avatar CharlieYu12345 commented on August 25, 2024

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.

sharder996 avatar sharder996 commented on August 25, 2024

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.

CharlieYu12345 avatar CharlieYu12345 commented on August 25, 2024

I tried the following actions, still not working:

  1. Disable VPN
  2. Use OnyX to clean all cache.
  3. Reinstall multipass.
  4. Restart OS
  5. add ant line into /etc/pf.conf succucefully

Thanks.

from multipass.

CharlieYu12345 avatar CharlieYu12345 commented on August 25, 2024

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.

sharder996 avatar sharder996 commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.