Linux Mint VM + qBittorrent, no peers


Recommended Posts

Hi, I'm fairly new to unRAID so please bear with me. I tried searching on google and this forum for this issue but I couldn't find anything useful, mostly because I'm not sure what exactly I should be looking for.

 

I have a Linux Mint VM set up on my server, inside that VM I want to have qBittorrent (only because this client I'm most familiar with) running to be able to add torrents via the web GUI or dropping them into a watch folder. That part works fine so far, the issue is that the torrents aren't getting any peers, thus not downloading anything. I tried adding a torrent via Magnet link and it did resolve the torrent name and other data, but it's simply not downloading anything.

Here's the XML for the VM:

<domain type='kvm' id='1'>
  <name>LinuxMint</name>
  <uuid>04489d55-f783-cf70-3141-412c67c4312b</uuid>
  <description>General purpose Linux machine</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>1</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.7'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/04489d55-f783-cf70-3141-412c67c4312b_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='1' threads='1'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/vdisks/LinuxMint/vdisk1.img'/>
      <backingStore/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/linuxmint-18.2-cinnamon-64bit.iso'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <readonly/>
      <boot order='2'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:66:df:7f'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-LinuxMint/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='de'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

and here's a screenshot of my Network Settings (currently there's only one onboard NIC) SGjPg8N.png

 

Any help would be greatly appreciated :)

Link to comment
Hi, I'm fairly new to unRAID so please bear with me. I tried searching on google and this forum for this issue but I couldn't find anything useful, mostly because I'm not sure what exactly I should be looking for.
 
I have a Linux Mint VM set up on my server, inside that VM I want to have qBittorrent (only because this client I'm most familiar with) running to be able to add torrents via the web GUI or dropping them into a watch folder. That part works fine so far, the issue is that the torrents aren't getting any peers, thus not downloading anything. I tried adding a torrent via Magnet link and it did resolve the torrent name and other data, but it's simply not downloading anything.
Here's the XML for the VM:
<domain type='kvm' id='1'><name>LinuxMint</name><uuid>04489d55-f783-cf70-3141-412c67c4312b</uuid><description>General purpose Linux machine</description><metadata><vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/></metadata><memory unit='KiB'>2097152</memory><currentMemory unit='KiB'>2097152</currentMemory><memoryBacking><nosharepages/></memoryBacking><vcpu placement='static'>1</vcpu><cputune><vcpupin vcpu='0' cpuset='0'/></cputune><resource><partition>/machine</partition></resource><os><type arch='x86_64' machine='pc-q35-2.7'>hvm</type><loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader><nvram>/etc/libvirt/qemu/nvram/04489d55-f783-cf70-3141-412c67c4312b_VARS-pure-efi.fd</nvram></os><features><acpi/><apic/></features><cpu mode='host-passthrough'><topology sockets='1' cores='1' threads='1'/></cpu><clock offset='utc'><timer name='rtc' tickpolicy='catchup'/><timer name='pit' tickpolicy='delay'/><timer name='hpet' present='no'/></clock><on_poweroff>destroy</on_poweroff><on_reboot>restart</on_reboot><on_crash>restart</on_crash><devices><emulator>/usr/local/sbin/qemu</emulator><disk type='file' device='disk'><driver name='qemu' type='raw' cache='writeback'/><source file='/mnt/user/vdisks/LinuxMint/vdisk1.img'/><backingStore/><target dev='hdc' bus='virtio'/><boot order='1'/><alias name='virtio-disk2'/><address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/></disk><disk type='file' device='cdrom'><driver name='qemu' type='raw'/><source file='/mnt/user/isos/linuxmint-18.2-cinnamon-64bit.iso'/><backingStore/><target dev='hda' bus='sata'/><readonly/><boot order='2'/><alias name='sata0-0-0'/><address type='drive' controller='0' bus='0' target='0' unit='0'/></disk><controller type='usb' index='0' model='ich9-ehci1'><alias name='usb'/><address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/></controller><controller type='usb' index='0' model='ich9-uhci1'><alias name='usb'/><master startport='0'/><address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/></controller><controller type='usb' index='0' model='ich9-uhci2'><alias name='usb'/><master startport='2'/><address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/></controller><controller type='usb' index='0' model='ich9-uhci3'><alias name='usb'/><master startport='4'/><address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/></controller><controller type='sata' index='0'><alias name='ide'/><address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/></controller><controller type='pci' index='0' model='pcie-root'><alias name='pcie.0'/></controller><controller type='pci' index='1' model='dmi-to-pci-bridge'><model name='i82801b11-bridge'/><alias name='pci.1'/><address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/></controller><controller type='pci' index='2' model='pci-bridge'><model name='pci-bridge'/><target chassisNr='2'/><alias name='pci.2'/><address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/></controller><controller type='virtio-serial' index='0'><alias name='virtio-serial0'/><address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/></controller><interface type='bridge'><mac address='52:54:00:66:df:7f'/><source bridge='br0'/><target dev='vnet0'/><model type='virtio'/><alias name='net0'/><address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/></interface><serial type='pty'><source path='/dev/pts/0'/><target port='0'/><alias name='serial0'/></serial><console type='pty' tty='/dev/pts/0'><source path='/dev/pts/0'/><target type='serial' port='0'/><alias name='serial0'/></console><channel type='unix'><source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-LinuxMint/org.qemu.guest_agent.0'/><target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/><alias name='channel0'/><address type='virtio-serial' controller='0' bus='0' port='1'/></channel><input type='tablet' bus='usb'><alias name='input0'/><address type='usb' bus='0' port='1'/></input><input type='mouse' bus='ps2'><alias name='input1'/></input><input type='keyboard' bus='ps2'><alias name='input2'/></input><graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='de'><listen type='address' address='0.0.0.0'/></graphics><video><model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/><alias name='video0'/><address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/></video><memballoon model='virtio'><alias name='balloon0'/><address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/></memballoon></devices><seclabel type='none' model='none'/><seclabel type='dynamic' model='dac' relabel='yes'><label>+0:+100</label><imagelabel>+0:+100</imagelabel></seclabel></domain>

and here's a screenshot of my Network Settings (currently there's only one onboard NIC) SGjPg8N.png
 
Any help would be greatly appreciated


Are you port forwarding the correct ports to your VMs IP address?


Sent from my iPhone using Tapatalk
Link to comment
8 hours ago, Darqfallen said:


Are you port forwarding the correct ports to your VMs IP address?


Sent from my iPhone using Tapatalk

 

I have not because I figured since qBittorrent is set to use UPnP I don't need to manually forward the ports in the router... I'll try it now though.

 

Edit: I added a forwarding rule to the VM, but I'm apparently not using the right ports... I set Internal Port to 8999 (which is what qBittorrent is set to), but I also used the same for the external port range since I don't know what other ports there should go. I also set the rule to TCP/UDP. Now a torrent is shortly starting up but immediately going down to 0 again, still showing 0 seeds or peers.

Edited by szernex
Link to comment
7 hours ago, Darqfallen said:

Is it forwarded to the right ip?


Sent from my iPhone using Tapatalk

 

Yes, incoming and outgoing TCP/UDP 8999-8999 to the address of the VM, with UPnP in qBittorrent disabled

 

Edit: Okay, when I enabled UPnP it worked for a few seconds finding some peers and seeds, and now it's in Errored again...

Edited by szernex
Link to comment

Small update: I tried running qBittorrent in my Windows Server 2016 VM, no changes to the configuration, no port forwarding, and it's downloading just fine. So then I tried using Transmission in the Linux Mint VM, and that also works just fine, without port forwarding. So apparently it's qBittorrent that's somehow bugged under Linux Mint...

So I'm trying Deluge now and that seems to be working perfectly too, so I guess I'll just stick with that.

Edited by szernex
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.