question

ice77 avatar image
ice77 asked

VenusOS on Proxmox virtual machine (VM)

Hallo liebe Victron Spezialisten,


ich befinde mich gerade in der Beschaffungsphase fĆ¼r mehrere MP2 (5k) fĆ¼r mich und meine Eltern und wĆ¼rde gerne das CerboGX durch eine VenusOS Installation abbilden.

Da ich aktuell keinen RPI habe und diese auch kaum zu bekommen sind, habe ich mir gedacht, das VenusOS auf einer Virtuellen Maschiene auf meinem Proxmox Server abzubilden. Das sollte kein Problem sein. Da die bereitgestellten Images fĆ¼r den RPI (ARM) kompiliert wurden, sind diese natĆ¼rlich auf dem Intel NUC nicht lauffƤhig.


Ich habe ein Debian und ein Ubuntu frisch aufgesetzt (64 bit) und versucht die Sourcen von Github zu installieren und zu Ć¼bersetzen. Leider treten hier Fehler auf, die ich nicht gelƶst bekomme. Ggf. hat hier ja jemand das Wissen und die Lust mir hierbei zu helfen.


Gerne kann ich das fertige Image ƶffentlich zur VerfĆ¼gung stellen (falls das lizenztechnisch ok ist), damit viele Andere, die an der gleichen Stelle stehen einfach nur noch die VM kopieren mĆ¼ssen und kƶnnen los legen.


Folgende Fehler sind aufgetreten:

...
git clone https://github.com/victronenergy/venus.git
...
lgw@venus:~$ cd venus
lgw@venus:~/venus$ sudo make prereq
Paketlisten werden gelesenā€¦ Fertig
AbhƤngigkeitsbaum wird aufgebautā€¦ Fertig
Statusinformationen werden eingelesenā€¦ Fertig
Hinweis: Ā»gitĀ« wird an Stelle von Ā»git-coreĀ« gewƤhlt.
Hinweis: Ā»python-dev-is-python2Ā« wird an Stelle von Ā»python-devĀ« gewƤhlt.
E: Paket python-pysqlite2 kann nicht gefunden werden.
E: Paket python-gobject kann nicht gefunden werden.
E: Paket python-gtk2 kann nicht gefunden werden.
make: *** [Makefile:130: prereq] Fehler 100
lgw@venus:~/venus$


Ich wĆ¼rde mich sehr freuen, wenn mir jemand unter die Arme greifen kann. Ich hab die 3 Objekte nicht installiert bekommen, da ich nicht weis von was diese abhƤngen.

Venus OS
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Matthias Lange - DE avatar image Matthias Lange - DE ā™¦ commented Ā·
@ice77 habe die Frage mal in den Modification Bereich verschoben.

Evtl. wƤre es besser die Frage da noch mal auf Englisch zu schreiben.

0 Likes 0 Ā·
7 Answers
ice77 avatar image
ice77 answered Ā·

so ich bin nun schon einen Schritt weiter gekommen. Der obige Fehler lag daran, dass ich die das aktuelle Release von Ubuntu und Debian genommen habe. Das wird wohl "noch" nicht unterstĆ¼tzt. Ich hatte noch ein Debian 9 im Repo und hab das mal installiert. Hier lƤuft "make prereq" mit einer Vielzahl an Installationen sauber durch. Es fehlten viele Pakete.


Jetzt stockt es bei make fetch. Ggf. sieht jemand direkt an was es hƤngt. Ich breche fĆ¼r heute aber ab und macht morgen dran weiter.

@venusDebian9:~/venus$ make fetch

--------------- sources/bitbake - https://github.com/victronenergy/bitbake.git -------------
Klone nach 'sources/bitbake' ...
remote: Enumerating objects: 56665, done.
remote: Total 56665 (delta 0), reused 0 (delta 0), pack-reused 56665
Empfange Objekte: 100% (56665/56665), 20.39 MiB | 1.55 MiB/s, Fertig.
Lƶse Unterschiede auf: 100% (39917/39917), Fertig.
Bereits auf 'dunfell_venus'
Ihr Branch ist auf dem selben Stand wie 'origin/dunfell_venus'.
Branch dunfell_venus konfiguriert zum Folgen von Remote-Branch dunfell_venus von origin.
Set git config log.follow=true, to handle all the recipe renames

--------------- sources/meta-noto - git@github.com:victronenergy/meta-noto.git -------------
Klone nach 'sources/meta-noto' ...
The authenticity of host 'github.com (140.82.121.4)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,140.82.121.4' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Not a git repository: 'sources/meta-noto/.git'
fatal: Not a git repository: 'sources/meta-noto/.git'
fatal: Not a git repository: 'sources/meta-noto/.git'
fatal: Not a git repository: 'sources/meta-noto/.git'
Set git config log.follow=true, to handle all the recipe renames
fatal: not in a git directory
Makefile:119: die Regel fĆ¼r Ziel ā€žfetchā€œ scheiterte
make: *** [fetch] Fehler 1


Ich habe auch nochmal auf Github geschaut unter den verfĆ¼gbaren Maschienentypen (https://github.com/victronenergy/venus/wiki/machines) Ist es Ć¼berhaupt mƶglich, VenusOS fĆ¼r einen Intelprozessor zu Ć¼bersetzen?


Freue mich auf Input.


LG ice77

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ice77 avatar image
ice77 answered Ā·

es geht wieder einen nƤchsten Schritt weiter, der hiermit gelƶst wurde:



I faced the same problem with GitHub. Here's how to solve it!

Generate a SSH key on your computer as described here : [Generating SSH keys](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
Login your GitHub account: [GitHub Login](https://github.com/login).
In your account, add the newly generated SSH Key: [My account SSH keys](https://github.com/settings/ssh).
Try again to git clone the project.

Ich dokumentiere hier mal meine Fortschritte, damit Andere, die in die gleichen Fallen laufen, wenigstens einen Leitfaden haben wie man weiter vorgehen kann.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

johanndo avatar image
johanndo answered Ā·

Du solltest python3 verwenden, das aktuelle VenusOS ist bereits vollstƤndig auf python3 migriert, Python2 spielt keine Rolle mehr und fĆ¼hrt zur Laufzeit zu Fehler.


Es gibt VM, die ARM Prozessoren emulieren auf einem Intel Host, man muss nicht mit Cross-Compiler hantieren..

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ice77 avatar image
ice77 answered Ā·

ich hab jetzt mal geschaut, ob ich etwas vorkompiliertes bekomme fĆ¼r Intel Prozessoren aber alles was von Victron auf Github verƶffentlich wird hat als Prozessorarchitektur armhf definiert.


Somit gehe ich davon aus, dass ich nichts bekomme, was Ć¼ber apt-get install auf einem debian installierbar wƤre.

Da ich es auf einem Proxmox Server laufen lassen mƶchte, hab ich leider keine Mƶglichkeit die ARM Prozessorarchitektur zu emulieren. Im Proxmox Forum gab es schon eine Anfrage und hier wurde es verneint.


Welcher Weg wƤre jetzt der "richtige"?

Weiter zu versuchen auf einem frischen Debian das Image kompiliert zu bekommen? Gibts hier Proxmox User, die den gleichen Gedanken hegen wie ich, VenusOS auf dem Proxmox laufen zu lassen?


1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

johanndo avatar image johanndo commented Ā·

Ich weiƟ nur, das es jemand geschafft hat die VenusOS ARM Images auf einer VMWare eSXi zu virtualisieren.

https://williamlam.com/2021/09/victron-venus-os-on-esxi-arm.html


0 Likes 0 Ā·
daniel-osterkamp avatar image
daniel-osterkamp answered Ā·

Another Idea:

You can host a virtual machine in a virtual ARM machine and run it from there.


https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

or

https://quantum5.ca/2022/03/19/how-to-make-better-arm-virtual-machine-armhf-aarch64-uefi/

Maybe this helps - beside that you are quite limited to run an arm machine on proxmox as it only supports intel. But twice virtualising could work and system performance should not matter that much because Venus os requires only low resources...

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

johanndo avatar image
johanndo answered Ā·

AFAIK, there is a headless venus debian packet you can install on debian / raspbean via apt, it supports the Venus backend and VRM without the QML gui.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

hummingbear avatar image
hummingbear answered Ā·

Have you made any progress here? I recently moved all my services onto one machine running Proxmox (very happy with this). I would love to move VenusOS over to it as well but not sure I have the knowledge on how to lead that myself. Curious where you're at with this


German (Google Translate)
-----------------------
Haben Sie hier Fortschritte gemacht? Ich habe kĆ¼rzlich alle meine separaten Dienste auf eine Maschine verschoben, auf der Proxmox lƤuft (sehr zufrieden damit). Ich wĆ¼rde VenusOS auch gerne darauf umstellen, bin mir aber nicht sicher, ob ich das Wissen habe, wie ich das selbst leiten soll. Neugierig, wo du damit bist

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

peter-3 avatar image peter-3 commented Ā·
So it look like the only way to do it is install Debian VM in proxmox and install a ARM version running inside that VM , so double virtualised .

I guess one advantage you have a image which can be easy copied etc , but don't like the idea of passing a USB device to VM which passes that to a VM running inside itself .

0 Likes 0 Ā·

Related Resources