0

I installed ubuntu server downloaded from here Then I found network is disabled: enter image description here

Besides, I found the network-manager was missing after I tried to restart the network-manager according this post. when I enter

$ sudo service network-manager stop

it prompted: Unit network-manager.service not loaded.
So how to work around it without any wifi connections?
My desktop is apple macbook pro with m1 chip, and I use VMWare Fusion.

Edit:
output of ip a: enter image description here

Finley
  • 121
  • Is the network disabled in the VM or on the host? – matigo Aug 11 '22 at 10:57
  • Please edit your question to show us the complete output of ip a – user535733 Aug 11 '22 at 11:26
  • @user535733 hey, I update it, please check it – Finley Aug 11 '22 at 11:30
  • Try sudo ip link set dev ens160 up. That's it on the Ubuntu side -- everything looks set up properly. As @Matigo said, check VMWare on your MacOS side to ensure that networking is turned on. That side is where all the magic happens. – user535733 Aug 11 '22 at 11:39
  • @user535733 it works for me! network enabled. I am really a noob to networking. Maybe I need ping something to test whether it connected – Finley Aug 11 '22 at 11:44
  • Keep in mind that your MacOS is doing all the real networking. The VMWare application on the Mac is providing a virtual ethernet port for your virtual server to use. That ethernet port is all your server can see, regardless of whatever networking adventures are happening on the MacOS side. Your VM server does not know that it's on a laptop, and will never see any of your real-life networking interfaces. That's why you don't need NetworkManager. – user535733 Aug 11 '22 at 11:49
  • That virtual ethernet port is ens160, and that came from entry #2 in your ip a output. Note that same line also said state DOWN, which is why you used a command to bring it up. It's pretty much that simple on the Ubuntu Server side. – user535733 Aug 11 '22 at 11:51

0 Answers0