I run Home Assistant in a virtual machine on my home server. Sometimes I need to restart it and I’m not always in a position to SSH or VNC in and I can never remember the command so I have to look it up every time. Is there anything out there that would allow me to do this quickly?

EDIT: The VM is in virtualbox.

  • surewhynotlem@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    60 minutes ago

    If you can never remember the command, and that’s the real issue, just put the command in a script and run the script. Name the script. Something easy like, home assistant restart.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    What platform has a browser but not an ssh client? I use juicessh on android. I’d bet even the Nintendo DS has a homebrew ssh client.

  • kylian0087@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 hours ago

    We need some more info. What is the server? A dedicated hypervisor? Just a Linux box that Also runs a VM?. If so what software you use to run the VM and containers?

    Like I use XCP-NG on one of my servers. It is a level 1 hypervisor which you can manage with a webui.

  • irmadlad@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 hours ago

    Are you asking if you can restart containers remotely, say from your phone? If so there are several apps that can do that. I use Yomo for docker and Portainer.

      • irmadlad@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 hours ago

        Hmmmm…I’m fresh out of ideas except maybe Ansible or Terraform automation but that’s outside my wheelhouse.

  • phanto@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 hours ago

    I Tailscale in to my home network, and then from one of the machines I’m the network, I can ssh in (or whatever.)

    • Jediwan@lemy.lolOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      That’s what I do now, just looking for something where I don’t have to lookup the command and type it in with my phone

      • SnachBarr@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 hours ago

        Set an alias in shell for the complicated command, then just ssh and type the alias that is easier to remember.

      • phanto@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Ahh, I see. Someone else mentioned portainer, that has a lot of “click to do bleh” functions. Might be what the doctor ordered. You could also put the command in a bash script, like restart.sh and then it’ll show up with an ls.