Skip to content

coal-mac-vmware-setup expects "networking" to already exist #246

@chudley

Description

@chudley

I followed the instructions in the README to get CoaL running on VMware. I installed VMware Fusion 8 (8.5.3) on a new machine (macOS 10.13.3) that has never hosted any VMs in the past.

When running the coal-mac-vmware-setup tool, I saw the following:

richard ~/Downloads
$ sudo bash coal-mac-vmware-setup
Password:
Admin network:    network="10.99.99.0", mac ip="10.99.99.254", netmask="255.255.255.0"
External network: network="10.88.88.0", mac ip="10.88.88.1", netmask="255.255.255.0"
Setup VMWare networking: admin network 10.99.99.0, external network 10.88.88.0
cat: networking: No such file or directory

Checking out the script, it seems that we use cd to "/Library/Preferences/VMware Fusion/" and look for "./networking" in that directory, but it didn't exist for me:

richard ~/Downloads
$ ls -alh /Library/Preferences/VMware\ Fusion/
total 16
drwxr-xr-x   5 root  wheel   160B 21 Sep 08:36 .
drwxr-xr-x  47 root  wheel   1.5K 21 Sep 09:17 ..
-r--r--r--   1 root  wheel    31B 21 Sep 08:35 lastLocationUsed
...
drwxr-xr-x  10 root  wheel   320B 21 Sep 08:35 thnuclnt

I headed over to the VMware GUI and created an empty Solaris 10 VM, and after clicking through the wizard (ending up at the console for that VM), I could see that I now had a "networking" file:

richard ~/Downloads
$ ls -alh /Library/Preferences/VMware\ Fusion/
total 24
drwxr-xr-x   7 root  wheel   224B 21 Sep 09:29 .
drwxr-xr-x  47 root  wheel   1.5K 21 Sep 09:17 ..
-r--r--r--   1 root  wheel    31B 21 Sep 09:29 lastLocationUsed
...
-rw-r--r--   1 root  wheel    12B 21 Sep 09:29 networking
drwxrwxrwx   3 root  wheel    96B 21 Sep 09:29 networking.lck
drwxr-xr-x  10 root  wheel   320B 21 Sep 09:29 thnuclnt

I deleted the test VM and ran coal-mac-vmware-setup, which then worked.

When installing VMware Fustion for the first time I opted not to create a VM, so perhaps this "networking" file is only created if we've created a VM in the past?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions