Does anyone know how to run qbittorrent and protonvpn in a VM? When I try to run the qbittorrent setup app I get this message (image below) and I don’t see anything mentioning a VM in the qbittorrent [dot] org forum.

I am new to torrenting, so I don’t really know what to do. I figured/assumed that torrenting/seeding in a VM might be safer as it is another layer deep, and that it may help keep traffic separate (inside the VM: I’d be using a vpn and torrenting, and outside the VM: I’d not be using a vpn and just regular internet surfing). Is this possible?

Thank you.

  • _cryptagion [he/him]@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 hours ago

    Don’t run your torrent client in a VM, that doesn’t actually provide you with any additional security.

    Use a Docker container instead. Binhex has torrent+vpn containers that will fetch the random open port number from Proton and pipe it into qBittorrent for you, as well as make sure the port is updated if the VPN drops. The container also acts as a killswitch.

    • smiletolerantly@awful.systems
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      Using a docker container provides you with the exact amount of extra protection as using a VM: zilch.

      Only advantage is you can use other people’s config easily.

      • signed, someone happily using their own VM-based setup
  • BlueRingedOctopus@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    2
    ·
    edit-2
    23 hours ago

    It’d be even better and safer, if you pick Docker containers over VMs. Give them a shot, they’ll require less resources and would be overall much more efficient for a this purpose.

    • Zoma@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 hours ago

      Dumb question: can you run docker containers on your base computer, every guide ive seen about them only talks about using them on servers.

      • dropped_packet@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 hours ago

        Yes you can! I think about a server as more of a role than a specific piece of hardware. Any computer can act as a server even a phone.

      • _cryptagion [he/him]@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        A server is just a PC whose primary purpose is serving apps or files. You can run Docker off of your desktop easily, people just usually segregate stuff like that to an unused PC that they then call a server. Your Docker server could be a laptop, a Raspberry Pi, or in my case a Dell desktop I stole out of a trash can at my last corporate job.

  • originalucifer@moist.catsweat.com
    link
    fedilink
    arrow-up
    32
    ·
    2 days ago

    I prefer containers…

    theres one available called gluetun that can run proton vpn…

    then I have a deluge (torrent client) running in another container that specifies gluetun as it’s network source.

    this way if the VPN drops I don’t bleed my actual ip

    these containers are pre-built and public so config is fairly minimal

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 days ago

    Yeah it would be no different from running without a VM. The issue you’re having isn’t related to it being a VM.

    Your popup there looks like it is because the user account you’re using doesn’t have admin privileges on windows. If this is a fresh install, I have no idea how you’ve ended up in that situation, as the user account you create on install is admin by default.

    • Yourname942@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      should I just not use a VM while torrenting and using a VPN then?

      If I don’t use a VM, is it possible to torrent with a VPN but surf the net without the vpn concurrently?

      • CmdrShepard49@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        19 hours ago

        If I don’t use a VM, is it possible to torrent with a VPN but surf the net without the vpn concurrently?

        This is called split tunneling and not all VPNs offer it as a feature but you can use your own VPN client with a wireguard or openvpn config from your VPN to get the best of both worlds. On Windows, I was running WireSock to accomplish this

      • MangoPenguin@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        A VM is a good way to do it, the only real downside is just the space used by a whole extra OS install.

        Most VPN clients will have an option to route only specific applications over the VPN. Just remember to also lock the Bittorrent client to the VPN network interface to prevent leaks if the VPN stops working.

  • neo [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    Spare yourself a lot of wasted disk space, Windows stupidity, and RAM by just using any mainline Linux distro (e.g. Ubuntu) instead of Windows for the guest. I don’t even mean a headless Linux. You can keep the GUI if you prefer and want. That will still be a small fraction of the ram, compute, and disk space for the VM than a Windows guest.

    And a tip for the technique: don’t download torrents into the virtual hard drive for the VM. Download into a shared/mounted directory.

    • J-Bone@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Honestly, if you are going the Linux route, you might as well get a headless Linux setup (no GUI, just command line), install qbittorrent-nox and access qbitborrent via the webUI.

      You will save a massive amount of RAM, desk space and probably even CPU time.

  • hisao@ani.social
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    2 days ago

    Regardless of where you decide to run your VPN (normal system, VM, or container), just don’t forget to turn killswitch on in the VPN settings. ProtonVPN is very good at this. They have killswitch built-in in all their client apps. And it’s quite a tricky thing to configure manually.

  • Onomatopoeia@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 days ago

    No reason it shouldn’t work.

    Whats your VM software, what’s the host and (especially) the guest OS?

    I’ve seen this error with an app in Windows, while running it in an admin account, haha. No idea what these app devs are doing to cause these messages.

    Keep in mind under Linux, distros today often don’t setup the first user as root, but as a limited account (there’s a separate root account with it’s own password).

    • Yourname942@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      Windows and Win Sandbox

      I’ve seen this error with an app in Windows, while running it in an admin account, haha. No idea what these app devs are doing to cause these messages.

      Oh really? Was the admin account you are referring to outside or inside the VM?

      • Onomatopoeia@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        I don’t recall if it was in a VM or not, it doesn’t really matter. A VM is just a logical system, the OS runs the same as it would on bare hardware (for things like this).

        I suspect what I see in Windows is a result of devs designing for an prior version of Windows, and some system call returns differently enough in a newer version. The times I’ve seen it, the apps work fine, which makes me thing it’s a validation that fails.

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    2 days ago

    Yes that would work fine, you can pretty much run anything inside a VM. So yeah a properly set up VM with internet access + VPN client + anything else you want to install will work.

    Not too sure what the issue is that you are encountering, you’d need to update your post with a lot more info. My suggestion is to start over and make sure the VM is set up correctly e.g. install the OS in the VM, verify it has normal internet access. Then install the VPN client in the VM, verify VPN is working properly. After that qBittorrent or anything else can be installed inside the VM. (probably best to save snapshots of your VM after each step in case you screw up and need to roll back)

    • Yourname942@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      I haven’t purchased the VPN yet, and I’ve only downloaded and ran the qbittorrent setup file. (then that window appeared (image above). The VM should be set up correctly (all I had to do is just enable the feature - Windows Sandbox).

  • communism@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    It’s entirely possible and you do it the same way you do on bare metal. However if you are just trying to stop your ISP from seeing that you are pirating then using a VM won’t achieve anything. If you’re worried about downloading malware or something then yes that’s a good idea.

    • Yourname942@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      I’m not sure what you mean by bare metal. Yeah mostly the avoiding malware, but I think I can just download it via torrent and VPN > upload to my email > open the VM > download from email > check with virustotal > try running the exe if it seems normal

      • communism@lemmy.ml
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 days ago

        Bare metal = not in a VM

        Why are you uploading to email? Can’t you just download the torrent in the VM and check it in virustotal there?

        • Yourname942@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          I meant that if I was unable to figure out a solution, at least I would be able to transfer it to a VM (which apparently Windows Sandbox isnt really)

  • salacious_coaster@infosec.pub
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 days ago

    Yep. The qbittorrent GitHub page has instructions. Use the headless qbittorrent package and you can use the webui to manage it.