/srv/irclogs.ubuntu.com/2023/06/28/#multipass.txt

ChrisTownsendfm2350: Yes, you can ask for help here.17:54
fm2350Thanks Chris.  I'm running multipass 1.11.0+mac  and upgraded my MacOS from 13.4.0 to 13.4.1.  After the upgrade, "multipass list" says "No instances found."   I had moved where multipass stores data as per https://multipass.run/docs/configure-multipass-storage#heading--macos , but I don't know if that made a difference;19:23
fm2350/Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist is still there.  Any debugging tips?   Cheers!19:23
ChrisTownsendfm2350: Do you see relevant Multipass files still in the new storage area?19:27
ChrisTownsend"New" being the place that you redirected Multipass to store its files.19:35
fm2350I see a "cache" and "data" directories19:37
ChrisTownsendAnd under data, do you see multipassd/multipassd-vm-instances.json and if so, are there any instances defined in that file?19:39
fm2350no.  under data I have19:41
fm2350the directories "authenticated-certscertificatesqemussh-keys"19:41
fm2350(sorry about the formatting)19:42
fm2350but "find . -name multipassd-vm-instances.json -print" says "./data/qemu/multipassd-vm-instances.json"19:43
fm2350which does have my instances19:43
ChrisTownsendAh, right, qemu.  Hmm, ok, so they are defined, but multipassd is not seeing them which tells me that the environment variable is not being set.19:44
ChrisTownsendAh, I think the documentation is missing something.  I think it needs to be this:19:47
ChrisTownsend`$ launchctl load -w /Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist`19:47
fm2350sudo ?19:47
ChrisTownsendThe -w will make it load automatically on boot.19:48
ChrisTownsendYes, sudo, sorry.19:48
fm2350`/Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist: service already loaded19:48
fm2350Load failed: 37: Operation already in progress`19:48
ChrisTownsendAh, well, I could be wrong about boot since it does have the RunAtLoad key defined.19:49
ChrisTownsendHrrmm, then that's not it 🙁19:49
fm2350Is there a way to see if multipass is picking up the environment variable?  I looked in the logs but didn't see anything.19:50
ChrisTownsendNo, not really.  Let's try this and see if helps.19:53
ChrisTownsend`$ launchctl unload /Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist`19:53
ChrisTownsend`$ launchctl load /Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist`19:53
ChrisTownsend * No, not really.  Let's try this and see if it helps.19:53
ChrisTownsend`$ launchctl unload /Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist`19:53
ChrisTownsend`$ launchctl load /Library/LaunchDaemons/setenv.MULTIPASS_STORAGE.plist`19:53
ChrisTownsendCould also try:19:55
ChrisTownsend`$ sudo /bin/launchctl getenv MULTIPASS_STORAGE`19:55
ChrisTownsendto see if it's set.19:55
fm2350unload and load didn't return errors, but multipass list still doesn't return any instances.19:56
fm2350getenv doesn't return anything !!!19:56
ChrisTownsendHmm, I'm not really sure what is going on at this point.  I wonder if the macOS update has affected how this works????  I'm going to have to do some research.19:58
fm2350Yup... I wonder if 13.4.1 is doing something.19:59
fm2350As a workaround, can I copy my "new" directory back to the default location?   What files would I need to duplicate.20:00
ChrisTownsendThe 13.4.1 security update [release notes](https://support.apple.com/en-us/HT213813) doesn't list anything that would *seem* to affect this, but Apple has a way of doing more than meets the eye.20:02
fm2350Sorry, I'm not a Mac guy at all.  Do you know if I can add logging to the plist to see if it's being picked up  (which the getenv would suggest not) ?20:04
ChrisTownsendNot that I'm aware of.  Apple really locks things down and makes it difficult to debug these types of things.20:05
ChrisTownsendI'm running 13.4.1 on my M1 and will try to reproduce tomorrow.  20:06
fm2350Thank you very much!20:07
ChrisTownsendYou're welcome!20:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!