Giter VIP home page Giter VIP logo

Comments (14)

djohnsson avatar djohnsson commented on June 4, 2024 1

I'm not sure if this is the same issue I just ran into, but when I have the built-in firewall turned on I am unable to get a working network connection inside the VM - which took me longer than I would like to admit to find out.

I'm on wi-fi + nat.

from vmcli.

jriddy avatar jriddy commented on June 4, 2024 1

I ran into this issue, and it does appear to be firewall settings interfering with the interface in the VM come up, likely the bootpd service being blocked. canonical/multipass#2387 has a remedy that worked for me

        sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/libexec/bootpd
        sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/libexec/bootpd

from vmcli.

ChangheeOh avatar ChangheeOh commented on June 4, 2024

I have successfully run a ubuntu vm by vmctl before upgrade MacOS 11.2.2.
After upgrading my MBA to Big Sur 11.2.2, the existing VM can not start with the same status you mentioned.

from vmcli.

gyf304 avatar gyf304 commented on June 4, 2024

I have successfully run a ubuntu vm by vmctl before upgrade MacOS 11.2.2.
After upgrading my MBA to Big Sur 11.2.2, the existing VM can not start with the same status you mentioned.

Is there any error? What does vmctl attach ubuntu show?

from vmcli.

ChangheeOh avatar ChangheeOh commented on June 4, 2024

from vmcli.

MartinPrescriba avatar MartinPrescriba commented on June 4, 2024

I'm not sure if this is the same issue I just ran into, but when I have the built-in firewall turned on I am unable to get a working network connection inside the VM - which took me longer than I would like to admit to find out.

I'm on wi-fi + nat.

Is there any way we can avoid having to turn off the macOS built-in firewall each time we start/reboot the vm?

I have tried adding vmcli to the allow list but it doesn't help.

Screenshot 2021-03-03 at 11 50 07

from vmcli.

ChangheeOh avatar ChangheeOh commented on June 4, 2024

@MartinPrescriba , Thanks for your comment.
I have successfully run and ssh into my VM with the firewall turned off.
After a VM successfully started, I even can ssh into the VM my firewall turned on.

@gyf304 , Please check this issue and follow up.

from vmcli.

gyf304 avatar gyf304 commented on June 4, 2024

Unfortunately, I can't yet reproduce this issue. I'll keep following this issue though.

from vmcli.

ChangheeOh avatar ChangheeOh commented on June 4, 2024

from vmcli.

paul-hammant avatar paul-hammant commented on June 4, 2024

My firewall is off, but I still get:

$ vmctl ssh ubuntu
cat: /Users/paul/VMs/ubuntu/0.ipaddr: No such file or directory

from vmcli.

gyf304 avatar gyf304 commented on June 4, 2024

My firewall is off, but I still get:

$ vmctl ssh ubuntu
cat: /Users/paul/VMs/ubuntu/0.ipaddr: No such file or directory

This usually means the network adapter is not working on the client.
Are there errors during bootup? (you can check using vmctl attach ubuntu)

Additionally, Virtual Machine cannot be started with networking when InternetSharing is already enabled, see #5 .

from vmcli.

paul-hammant avatar paul-hammant commented on June 4, 2024

InternetSharing is off. If I do vmctl attach ubuntu I'm not quick enough to see the network stuff in the log:

[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Started Authorization Manager.
[  OK  ] Started Accounts Service.
[  OK  ] Started Login Service.
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished Pollinate to seed…seudo random number generator.
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Started Snap Daemon.
         Starting Wait until snapd is fully seeded...
[  OK  ] Stopped OpenBSD Secure Shell server.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Finished Wait until snapd is fully seeded.
[  OK  ] Finished Service for snap application lxd.activate.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.

from vmcli.

gyf304 avatar gyf304 commented on June 4, 2024

You can scroll back the screen per instructions here:
https://unix.stackexchange.com/questions/40242/scroll-inside-screen-or-pause-output

It will be also useful to check logs in the MacOS console:
https://support.apple.com/guide/console/find-log-messages-and-activities-cnslbf30b61a/mac

from vmcli.

ruyrybeyro avatar ruyrybeyro commented on June 4, 2024

See my issue #24, I am in 12.0.1 ; I also did not have 0.ipaddr because my interface was not configured, not up. Had to login via vmctl attach and create a netplan configuration file. Your logs seems identical to my situation.

from vmcli.

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.