vanilla-installer icon indicating copy to clipboard operation
vanilla-installer copied to clipboard

Installer fails when socket information is missing

Open NN708 opened this issue 8 months ago • 1 comments

When running the installer in an Apple virtualization environment, the installation fails during system checks because the CPU detection can't handle missing socket information.

Error log:

Traceback (most recent call last):
  File "/usr/share/org.vanillaos.Installer/vanilla_installer/main.py", line 68, in do_activate
    elif not Systeminfo.is_cpu_enough() and "IGNORE_CPU" not in os.environ:
             ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/org.vanillaos.Installer/vanilla_installer/core/system.py", line 43, in is_cpu_enough
    Systeminfo.cpu = (int(proc1) * int(proc2)) >= 2
                                   ~~~^^^^^^^
ValueError: invalid literal for int() with base 10: '-\n'

CPU details:

vanilla@vanillaos:~$ lscpu
Architecture:             aarch64
  CPU op-mode(s):         64-bit
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Vendor ID:                Apple
  Model name:             -
    Model:                0
    Thread(s) per core:   1
    Core(s) per cluster:  4
    Socket(s):            -
    Cluster(s):           1
    Stepping:             0x0
    BogoMIPS:             48.00
…

NN708 avatar Apr 16 '25 15:04 NN708

I just merged a fix into main that will allow you to use the IGNORE_RAM and IGNORE_CPU env vars to get past the issue as a workaround

jardon avatar Apr 19 '25 15:04 jardon