marvel-nccr / quantum-mobile

A Virtual Machine for computational materials science
https://quantum-mobile.readthedocs.io
Other
91 stars 32 forks source link

Missing network interface #167

Closed giovannipizzi closed 3 years ago

giovannipizzi commented 3 years ago

When I start Quantum Mobile 20.11.2a (on VirtualBox 6.1.16 on a Mac) I get this error:

Screenshot 2021-03-07 at 20 19 43

This wasn't there with earlier versions. Apparently the problem is that also the second network adapter is enabled; if I disable it, it starts normally. Can the second network adapter be left disabled?

chrisjsewell commented 3 years ago

Out of interest what version of OSX are you running? I have VB 6.1.16 on Catalina and have not observed this issue

chrisjsewell commented 3 years ago

This is likely enabled as the network required for ansible to provision the VM, so I'm not sure how to automate disabling it: https://github.com/marvel-nccr/quantum-mobile/blob/4ee0cb3ac1d6755b3fa0905974ddde181c95456c/Vagrantfile#L85

(see also https://superuser.com/questions/846964/how-to-add-a-host-only-adapter-to-a-virtualbox-machine-via-vagrant-file-config)

giovannipizzi commented 3 years ago

what version of OSX are you running?

11.2 Big Sur

I'm not sure how to automate disabling it

Note that in older VMs (like 20.06) it wasn't there (I'm quite sure I didn't change things, but it's true that I installed with an older version of the OS so maybe something magic happened? You can try anyway to re-install both and check the network settings; if you confirm that the 2nd network is there only for recent VMs, it means something has changed in the meantime in the way the OVA is created).

If this is the case, it means something has changed during provisioning. In the worst case, when/just before/just after you create the OVA, you have to see if you can call the VirtualBox cmdline to disable that additional network.

chrisjsewell commented 3 years ago

it means something has changed in the meantime in the way the OVA is created

oh it definitely has: the line I link to above is part of the new build setup.

Obviously this is the first I've heard of anyone having any issues with it, but yeh hopefully then there is something that can be added to playbook-package.yml

giovannipizzi commented 3 years ago

Thanks! Quick question just to double check: did you create the VM for the tutorial of this week with or without this fix? (I still got the issue with that image)

chrisjsewell commented 3 years ago

Yet it was after this fix. It would be good to see if someone else can replicate this, because when @mbercx tested the VM (also on Mac) he didn't encounter this issue

giovannipizzi commented 3 years ago

Reopening, as at least another person during the tutorial (VBox 6.1.18 version, on Windows 10) had the same issue.

giovannipizzi commented 3 years ago

I checked, and the fix you mention should have fixed it however! Maybe it didn't run before you created the VM? You can also check - if you import the OVA, do you get an enabled or disabled Adapter 2? (I get an enabled one, while it should be disabled)

chrisjsewell commented 3 years ago

if you import the OVA, do you get an enabled or disabled Adapter 2?

From https://quantum-mobile.readthedocs.io/en/latest/releases/both/20.11.2a.html, you can see there are the two network adapters selected

image

Whereas from https://quantum-mobile.readthedocs.io/en/latest/releases/both/21.03.18-qe.html, only one

image

So its definitely disabled. Perhaps it still doesn't like having the vboxnet0 there even when disabled 🤷

image

Can you confirm that you only see the one network adapter when importing

giovannipizzi commented 3 years ago

Aaaahh now I see the issue: I think I downloaded an earlier version of the VM - probably the link in the docs was updated only later, I have installed the version called 21.03.17-lite. Is this the case?

I double checked with the 21.03.18-qe version, and indeed I get the same behaviour as your screenshots. I also started it and found no problem. So I'm going to close this issue!

chrisjsewell commented 3 years ago

21.03.17-lite. Is this the case?

Ah yeh that was just one I made for Marnik to test against , before creating 21.03.18-qe 👍