-
|
Hey! I'm pretty new to Raspberry Pi and Linux in general. I've been working on a project and stumbled upon this project. I'm trying to setup BVM so that it starts as soon as the Raspberry Pi starts (this is for failover in case power goes down). I'm trying to run a network scanner in the Win11 that will continuously monitor the network. Tried to use Autostart, but can't figure out what command (or commands) I need to set for it to successfully start the VM. I've tried to also split both bvm boot-nodisplay ~/win11 and bvm connect-reminna ~/win11 as separate start-up options but neither works or at least I don't get visual response of terminal opening up or KVM starting. Any help appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
First for simplicity you may want to use the simple direct But in your case I don't think an autostarted shell script is necessary. I think you can just make an autostart entry with something like |
Beta Was this translation helpful? Give feedback.
-
|
I don't completely understand what you mean by "the BVM folder where BVM boot is located". There are 2 folders we are dealing with, one is the VM location which is named win11 and placed in your home folder by default, and the other is bvm, and either placed in your home folder or ~/.local/share, depending on if you installed BVM from pi-apps or if you installed it directly. |
Beta Was this translation helpful? Give feedback.
-
|
/.local/share is also not full path. Without the Pro tip: if you are ever unsure what the full paths to a file is, just find it in the normal Pi OS file manager, right-click it, and click "copy paths". |
Beta Was this translation helpful? Give feedback.
-
|
Is there a way to make autostart use Remmina or FreeRDP instead of QEMU? |
Beta Was this translation helpful? Give feedback.
First for simplicity you may want to use the simple direct
bootmode. I don't think boot-nodisplay and connect will provide any benefit to you in this case.If you ever do need to run multiple commands in sequence, that's where a bash script comes into play. Put the commands into a .sh file, test it by running it, then put that filename into autostart.
But in your case I don't think an autostarted shell script is necessary. I think you can just make an autostart entry with something like
/home/pi/bvm/bvm boot /home/pi/win11Notice I used full paths here. This is because autostart is not a shell, it directly executes a command. In a shell, things like
~/and./will be expanded to the full…