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

networks failed: The networks feature is not implemented on this backend. OSX M1 #2364

Closed
gamelife1314 opened this issue Dec 4, 2021 · 20 comments
Assignees
Milestone

Comments

@gamelife1314
Copy link

gamelife1314 commented Dec 4, 2021

Describe the bug
networks failed: The networks feature is not implemented on this backend.

To Reproduce
How, and what happened?

  1. multipass networks

Expected behavior
What did you expect to happen?

list available network interface

Logs
networks failed: The networks feature is not implemented on this backend.

Additional info
image

Additional context
Add any other context about the problem here.

@Saviq Saviq added enhancement and removed bug labels Dec 4, 2021
@Saviq
Copy link
Collaborator

Saviq commented Dec 4, 2021

Hi @gamelife1314 indeed, we don't yet support extra networks on the M1. We'll work on that soon after the new year, though.

@gamelife1314
Copy link
Author

oh, thank you

Hi @gamelife1314 indeed, we don't yet support extra networks on the M1. We'll work on that soon after the new year, though.

@Saviq
Copy link
Collaborator

Saviq commented Mar 31, 2022

Hey all, we have an in-progress package for you to try:

https://multipass-ci.s3.amazonaws.com/pr444/multipass-1.10.0-dev.577.pr444%2Bg5c874a52.mac-Darwin.pkg

$ uname -vp
Darwin Kernel Version 20.6.0: Tue Feb 22 21:10:42 PST 2022; root:xnu-7195.141.26~1/RELEASE_ARM64_T8101 arm

$ multipass networks
Name     Type         Description
bridge0  bridge       Network bridge with en1, en2
en0      wifi         Wi-Fi
en1      thunderbolt  Thunderbolt 1
en2      thunderbolt  Thunderbolt 2
en3      ethernet     Ethernet Adaptor (en3)
en4      ethernet     Ethernet Adaptor (en4)

$ multipass launch --network en0
Launched: exalting-gnatcatcher

$ ping exalting-gnatcatcher
PING exalting-gnatcatcher.local (10.2.0.39): 56 data bytes
64 bytes from 10.2.0.39: icmp_seq=0 ttl=63 time=7.727 ms
64 bytes from 10.2.0.39: icmp_seq=1 ttl=63 time=15.083 ms
64 bytes from 10.2.0.39: icmp_seq=2 ttl=63 time=15.719 ms
^C
--- exalting-gnatcatcher.local ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.727/12.843/15.719/3.627 ms

$ multipass list
Name                    State             IPv4             Image
exalting-gnatcatcher    Running           192.168.66.41    Ubuntu 20.04 LTS
                                          10.2.0.39

Have fun :)

@techmore
Copy link

techmore commented Apr 1, 2022

Wow! M1 networks is working for me on the lan with the command below. Tested a rails app, accessible from multiple machines on my lan. This is huge!!!

multipass launch --network en0 test-01

@DamianFlynn
Copy link

DamianFlynn commented Apr 1, 2022

Wow! x86 based Swapped to libvirt and its working

❯ uname -vp
Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64 i386
❯ multipass networks
Name     Type         Description
bridge0  bridge       Network bridge with en1, en2, en3, en4
en0      wifi         Wi-Fi
en1      thunderbolt  Thunderbolt 1
en2      thunderbolt  Thunderbolt 2
en3      thunderbolt  Thunderbolt 3
en4      thunderbolt  Thunderbolt 4
❯ multipass list
Name                    State             IPv4             Image
actual-ouzel            Running           192.168.64.3     Ubuntu 20.04 LTS
                                          172.16.1.148
awesome-ichthyosaur     Running           192.168.64.2     Ubuntu 20.04 LTS
                                          172.16.1.198

@townsend2010 townsend2010 added this to the v1.9.0 milestone Apr 1, 2022
@townsend2010 townsend2010 self-assigned this Apr 1, 2022
@plaidpowered
Copy link

I apologize for what I'm certain is a newb question - but is there a way to change the network interface on existing instances, not just new ones? I can't find any documentation, but if there is some, please point me there! Thank you

@Saviq
Copy link
Collaborator

Saviq commented Apr 11, 2022

@plaidpowered not at the moment, no. It's planned, but not on any immediate roadmap. Depending on driver, you could use the hypervisor tools to modify the VM.

@plaidpowered
Copy link

plaidpowered commented Apr 11, 2022

Thanks for the reply @Saviq ... I ended up having to rebuild the VM anyway because of other issues, so in the end launching a new instance was inevitable. Good to know the feature is planned.

@pauljsymonds
Copy link

I get the same message on Ubuntu 22.04 LTS (GNU/Linux 5.15.0-27-generic x86_64)

multipass networks
networks failed: The networks feature is not implemented on this backend.

is this implemented in the next release?

@jarrodu
Copy link

jarrodu commented May 27, 2022

It looks like I am getting the same issue was @pauljsymonds.

Operating System: Ubuntu 22.04 LTS
Kernel: Linux 5.15.0-30-generic
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad X1 Carbon Gen 8
multipass   1.9.2
multipassd  1.9.2
> multipass networks
networks failed: The networks feature is not implemented on this backend.

@jarrodu
Copy link

jarrodu commented May 27, 2022

I think I might make a new issue. This one is for OSX M1

@magnetikonline
Copy link

Hey all, we have an in-progress package for you to try:

https://multipass-ci.s3.amazonaws.com/pr444/multipass-1.10.0-dev.577.pr444%2Bg5c874a52.mac-Darwin.pkg

Hey @Saviq - this works awesome in the final 1.10.0 release. Using this for a Unifi controller running under Docker, within a Multipass guest/VM.

Without this - the controller is unable to see my local network/access points/etc.

What is a shame - this new --network switch didn't seem to make the release notes here?

https://github.com/canonical/multipass/releases/tag/v1.10.0

Feels worthwhile to tack this on - as for me, this is a killer feature addition for macOS/M1/ARM machines that can't use the existing VirtualBox network drivers - and to be honest, I love being totally free of VirtualBox now! 😄

@townsend2010
Copy link
Contributor

Hi @magnetikonline!

Glad it works well for you!

What is a shame - this new --network switch didn't seem to make the release notes here?

That's because this feature was released in 1.9.0. See number 2 under "There are some significant additions to this release:" 🙂

@magnetikonline
Copy link

That's because this feature was released in 1.9.0.

Haha @townsend2010 so it was. 🤦 Thanks for that. 👍

@ricab
Copy link
Collaborator

ricab commented Jul 27, 2022

@pauljsymonds, @jarrodu: have a look at https://multipass.run/docs/networks-command, the networks feature is only supported on certain OS/driver combinations.

@weberc2
Copy link

weberc2 commented Mar 1, 2023

I still get this error on 1.11.1+mac (intel, not m1); is this expected? I installed from homebrew.

@townsend2010
Copy link
Contributor

Hi @weberc2,

You need to switch to the qemu driver to get this functionality:
$ multipass set local.driver=qemu

@weberc2
Copy link

weberc2 commented Mar 1, 2023

I thought I was using the qemu driver (not sure what the default is on macos, but I was searching around the codebase for the exception and it seems like qemu throws it--see code snippet below), but I just figured out that virtualbox driver supports it in any case.

throw NotImplementedOnThisBackendException("networks");

    // qemu_platform.h
    virtual std::vector<NetworkInterfaceInfo> networks() const
    {
        throw NotImplementedOnThisBackendException("networks");
    };

@townsend2010
Copy link
Contributor

If you didn't actually switch the driver from when you installed it from Homebrew, then you were using the hyperkit driver which does not support additional networks.

That code you pointed out is from the QemuPlatform base class, but the macOS qemu implementation does add support for networks- I added it roughly a year ago.

@weberc2
Copy link

weberc2 commented Mar 1, 2023

Ah, that makes sense. Thanks for explaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests