Jump to content

Cliff

Members
  • Posts

    147
  • Joined

  • Last visited

Posts posted by Cliff

  1. Ok, I have a Asus 1060 GB Dual OC. I tried the instructions in the video but no progress. This was a lot harder than I originally thought, I have been trying for two days non stop now without progress.

     

    Settings xml

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm'>
      <name>Windows 10</name>
      <uuid>1ef6a7ad-c8fc-12c4-4b1f-e7921e0e2b98</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>16777216</memory>
      <currentMemory unit='KiB'>16777216</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='5'/>
        <vcpupin vcpu='1' cpuset='17'/>
        <vcpupin vcpu='2' cpuset='7'/>
        <vcpupin vcpu='3' cpuset='19'/>
        <vcpupin vcpu='4' cpuset='9'/>
        <vcpupin vcpu='5' cpuset='21'/>
        <vcpupin vcpu='6' cpuset='11'/>
        <vcpupin vcpu='7' cpuset='23'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/1ef6a7ad-c8fc-12c4-4b1f-e7921e0e2b98_VARS-pure-efi.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
      </features>
      <cpu mode='host-passthrough' check='none'>
        <topology sockets='1' cores='8' threads='1'/>
      </cpu>
      <clock offset='localtime'>
        <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>
        <controller type='usb' index='0' model='qemu-xhci' ports='15'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </controller>
        <controller type='pci' index='0' model='pcie-root'/>
        <controller type='pci' index='1' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='1' port='0x8'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
        </controller>
        <controller type='pci' index='2' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='2' port='0x9'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='pci' index='3' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='3' port='0xa'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
        </controller>
        <controller type='pci' index='4' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='4' port='0xb'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
        </controller>
        <controller type='pci' index='5' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='5' port='0xc'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
        </controller>
        <controller type='pci' index='6' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='6' port='0xd'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
        </controller>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:1a:7a:25'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
          </source>
          <rom file='/mnt/user/isos/asus1060.dump'/>
          <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
          </source>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x058f'/>
            <product id='0x6366'/>
          </source>
          <address type='usb' bus='0' port='1'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x0603'/>
            <product id='0x00f2'/>
          </source>
          <address type='usb' bus='0' port='2'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x093a'/>
            <product id='0x2510'/>
          </source>
          <address type='usb' bus='0' port='3'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x0b05'/>
            <product id='0x18f3'/>
          </source>
          <address type='usb' bus='0' port='4'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
    </domain>

    Log:

    
    -uuid 1ef6a7ad-c8fc-12c4-4b1f-e7921e0e2b98 \
    -display none \
    -no-user-config \
    -nodefaults \
    -chardev socket,id=charmonitor,fd=33,server,nowait \
    -mon chardev=charmonitor,id=monitor,mode=control \
    -rtc base=localtime,driftfix=slew \
    -global kvm-pit.lost_tick_policy=delay \
    -no-hpet \
    -no-shutdown \
    -boot strict=on \
    -device pcie-root-port,port=0x8,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x1 \
    -device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \
    -device pcie-root-port,port=0xa,chassis=3,id=pci.3,bus=pcie.0,addr=0x1.0x2 \
    -device pcie-root-port,port=0xb,chassis=4,id=pci.4,bus=pcie.0,addr=0x1.0x3 \
    -device pcie-root-port,port=0xc,chassis=5,id=pci.5,bus=pcie.0,addr=0x1.0x4 \
    -device pcie-root-port,port=0xd,chassis=6,id=pci.6,bus=pcie.0,addr=0x1.0x5 \
    -device qemu-xhci,p2=15,p3=15,id=usb,bus=pcie.0,addr=0x7 \
    -device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
    -netdev tap,fd=35,id=hostnet0,vhost=on,vhostfd=36 \
    -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:1a:7a:25,bus=pci.1,addr=0x0 \
    -chardev pty,id=charserial0 \
    -device isa-serial,chardev=charserial0,id=serial0 \
    -chardev socket,id=charchannel0,fd=38,server,nowait \
    -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
    -device vfio-pci,host=0000:08:00.0,id=hostdev0,bus=pci.3,addr=0x0,romfile=/mnt/user/isos/asus1060.dump \
    -device vfio-pci,host=0000:08:00.1,id=hostdev1,bus=pci.4,addr=0x0 \
    -device vfio-pci,host=0000:03:00.0,id=hostdev2,bus=pci.5,addr=0x0 \
    -device usb-host,hostbus=1,hostaddr=4,id=hostdev3,bus=usb.0,port=1 \
    -device usb-host,hostbus=1,hostaddr=3,id=hostdev4,bus=usb.0,port=2 \
    -device usb-host,hostbus=1,hostaddr=5,id=hostdev5,bus=usb.0,port=3 \
    -device usb-host,hostbus=3,hostaddr=2,id=hostdev6,bus=usb.0,port=4 \
    -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
    -msg timestamp=on
    2020-02-26 20:03:56.562+0000: Domain id=4 is tainted: high-privileges
    2020-02-26 20:03:56.562+0000: Domain id=4 is tainted: host-cpu
    char device redirected to /dev/pts/1 (label charserial0)
    libusb: error [udev_hotplug_event] ignoring udev action bind
    2020-02-26T20:06:37.284934Z qemu-system-x86_64: terminating on signal 15 from pid 3872 (/usr/sbin/libvirtd)
    2020-02-26 20:06:39.890+0000: shutting down, reason=destroyed
    2020-02-26 20:12:08.908+0000: starting up libvirt version: 5.10.0, qemu version: 4.2.0, kernel: 4.19.98-Unraid, hostname: Unraid
    LC_ALL=C \
    PATH=/bin:/sbin:/usr/bin:/usr/sbin \
    HOME='/var/lib/libvirt/qemu/domain-5-Windows 10' \
    XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-5-Windows 10/.local/share' \
    XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-5-Windows 10/.cache' \
    XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-5-Windows 10/.config' \
    QEMU_AUDIO_DRV=none \
    /usr/local/sbin/qemu \
    -name 'guest=Windows 10,debug-threads=on' \
    -S \
    -object 'secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-5-Windows 10/master-key.aes' \
    -blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
    -blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
    -blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/1ef6a7ad-c8fc-12c4-4b1f-e7921e0e2b98_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
    -blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
    -machine pc-q35-4.2,accel=kvm,usb=off,dump-guest-core=off,mem-merge=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
    -cpu host \
    -m 16384 \
    -overcommit mem-lock=off \
    -smp 8,sockets=1,cores=8,threads=1 \
    -uuid 1ef6a7ad-c8fc-12c4-4b1f-e7921e0e2b98 \
    -display none \
    -no-user-config \
    -nodefaults \
    -chardev socket,id=charmonitor,fd=33,server,nowait \
    -mon chardev=charmonitor,id=monitor,mode=control \
    -rtc base=localtime,driftfix=slew \
    -global kvm-pit.lost_tick_policy=delay \
    -no-hpet \
    -no-shutdown \
    -boot strict=on \
    -device pcie-root-port,port=0x8,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x1 \
    -device pcie-root-port,port=0x9,chassis=2,id=pci.2,bus=pcie.0,addr=0x1.0x1 \
    -device pcie-root-port,port=0xa,chassis=3,id=pci.3,bus=pcie.0,addr=0x1.0x2 \
    -device pcie-root-port,port=0xb,chassis=4,id=pci.4,bus=pcie.0,addr=0x1.0x3 \
    -device pcie-root-port,port=0xc,chassis=5,id=pci.5,bus=pcie.0,addr=0x1.0x4 \
    -device pcie-root-port,port=0xd,chassis=6,id=pci.6,bus=pcie.0,addr=0x1.0x5 \
    -device qemu-xhci,p2=15,p3=15,id=usb,bus=pcie.0,addr=0x7 \
    -device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
    -netdev tap,fd=35,id=hostnet0,vhost=on,vhostfd=36 \
    -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:1a:7a:25,bus=pci.1,addr=0x0 \
    -chardev pty,id=charserial0 \
    -device isa-serial,chardev=charserial0,id=serial0 \
    -chardev socket,id=charchannel0,fd=38,server,nowait \
    -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
    -device vfio-pci,host=0000:08:00.0,id=hostdev0,bus=pci.3,addr=0x0,romfile=/mnt/user/isos/asus1060.dump \
    -device vfio-pci,host=0000:08:00.1,id=hostdev1,bus=pci.4,addr=0x0 \
    -device vfio-pci,host=0000:03:00.0,id=hostdev2,bootindex=1,bus=pci.5,addr=0x0 \
    -device usb-host,hostbus=1,hostaddr=4,id=hostdev3,bus=usb.0,port=1 \
    -device usb-host,hostbus=1,hostaddr=3,id=hostdev4,bus=usb.0,port=2 \
    -device usb-host,hostbus=1,hostaddr=6,id=hostdev5,bus=usb.0,port=3 \
    -device usb-host,hostbus=3,hostaddr=2,id=hostdev6,bus=usb.0,port=4 \
    -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
    -msg timestamp=on
    2020-02-26 20:12:08.908+0000: Domain id=5 is tainted: high-privileges
    2020-02-26 20:12:08.908+0000: Domain id=5 is tainted: host-cpu
    char device redirected to /dev/pts/1 (label charserial0)
    libusb: error [udev_hotplug_event] ignoring udev action bind

     

  2. I tried removing the VM and creating a new VM with only installation media, and NVMe added in the settings. The VM then boots correctly but when adding the GPU nothing happens. When I re-insert the hdmi-cable the monitor lights up but I get no image and it then gets back to sleep.

  3. I am, I have even tried removing both audio and gpu just to get the system to boot. I think all the pci-devices is from when I installed win10 and the installer created a lot of partitions on the drive

     

    logfile:

    -blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/071ebadd-1633-9d12-ca34-a9fab4b8fc78_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
    -blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
    -machine pc-q35-4.2,accel=kvm,usb=off,dump-guest-core=off,mem-merge=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
    -cpu host,hv-time,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-vendor-id=none \
    -m 16384 \
    -overcommit mem-lock=off \
    -smp 9,sockets=1,cores=9,threads=1 \
    -uuid 071ebadd-1633-9d12-ca34-a9fab4b8fc78 \
    -no-user-config \
    -nodefaults \
    -chardev socket,id=charmonitor,fd=33,server,nowait \
    -mon chardev=charmonitor,id=monitor,mode=control \
    -rtc base=localtime \
    -no-hpet \
    -no-shutdown \
    -boot strict=on \
    -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
    -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
    -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \
    -device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \
    -device qemu-xhci,p2=15,p3=15,id=usb,bus=pcie.0,addr=0x7 \
    -device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
    -netdev tap,fd=35,id=hostnet0,vhost=on,vhostfd=36 \
    -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:86:a7:05,bus=pci.1,addr=0x0 \
    -chardev pty,id=charserial0 \
    -device isa-serial,chardev=charserial0,id=serial0 \
    -chardev socket,id=charchannel0,fd=38,server,nowait \
    -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
    -device usb-tablet,id=input0,bus=usb.0,port=3 \
    -vnc 0.0.0.0:0,websocket=5700 \
    -k en-us \
    -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 \
    -device vfio-pci,host=0000:03:00.0,id=hostdev0,bus=pci.3,addr=0x0 \
    -device usb-host,hostbus=1,hostaddr=3,id=hostdev1,bus=usb.0,port=1 \
    -device usb-host,hostbus=1,hostaddr=6,id=hostdev2,bus=usb.0,port=2 \
    -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
    -msg timestamp=on
    2020-02-26 17:55:07.185+0000: Domain id=4 is tainted: high-privileges
    2020-02-26 17:55:07.185+0000: Domain id=4 is tainted: host-cpu
    char device redirected to /dev/pts/0 (label charserial0)
    libusb: error [udev_hotplug_event] ignoring udev action bind

     

  4. Ok I tried again but every time I try to start the VM unraid crashes/stops responding and I have to reboot the entire server.

     

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm'>
      <name>Windows 10</name>
      <uuid>3e8d5e3f-3d1d-b9a9-237e-4572615cabdc</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>16777216</memory>
      <currentMemory unit='KiB'>16777216</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='5'/>
        <vcpupin vcpu='1' cpuset='17'/>
        <vcpupin vcpu='2' cpuset='7'/>
        <vcpupin vcpu='3' cpuset='19'/>
        <vcpupin vcpu='4' cpuset='9'/>
        <vcpupin vcpu='5' cpuset='21'/>
        <vcpupin vcpu='6' cpuset='11'/>
        <vcpupin vcpu='7' cpuset='23'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/3e8d5e3f-3d1d-b9a9-237e-4572615cabdc_VARS-pure-efi.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
          <vendor_id state='on' value='none'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough' check='none'>
        <topology sockets='1' cores='8' threads='1'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='hypervclock' present='yes'/>
        <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>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
        </controller>
        <controller type='pci' index='0' model='pcie-root'/>
        <controller type='pci' index='1' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='1' port='0x8'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
        </controller>
        <controller type='pci' index='2' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='2' port='0x9'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='pci' index='3' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='3' port='0xa'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
        </controller>
        <controller type='pci' index='4' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='4' port='0xb'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
        </controller>
        <controller type='pci' index='5' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='5' port='0xc'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
        </controller>
        <controller type='pci' index='6' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='6' port='0xd'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
        </controller>
        <controller type='pci' index='7' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='7' port='0xe'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
        </controller>
        <controller type='usb' index='0' model='qemu-xhci' ports='15'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:57:20:f5'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x0a' slot='0x00' function='0x4'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
          </source>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x0603'/>
            <product id='0x00f2'/>
          </source>
          <address type='usb' bus='0' port='1'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x093a'/>
            <product id='0x2510'/>
          </source>
          <address type='usb' bus='0' port='2'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
    </domain>

     

  5. Thanks for all the help. I will try your suggestions later today.

    I noticed that I can boot windows directly from the NVMe if I change the boot-order in the bios so thats good I guess.

    But some strange behaviour with my current configuration is after I change the graphics to the 1060 and add the virtuio-network iso and try to start the VM it crashes the unraid webui and I have to reboot to be able to display the webui again.

  6. Thanks for the help, but I don't understand how to get the VM to show up on any monitor. I have connected my unraid gpu (GTX 1060) to a monitor and during boot I see the unraid info.

    But when I select the GTX 1060 in the "create VM" page I never get any output from the VM. I was thinking It would show the windows 10 install menu from the win10 iso so that I could install it to the NVMe. 

     

    Edit:

    I tried the same settings but selected the disk=none and selected the NVMe that shoved up after using the plugin. I selected VNC instead of my GPU. Now I could install windows 10 to the NVMe but after the installer reboots I only get some kind of shell with some info like BLK1, BLK2...

     

    XML:

     

    <?xml version='1.0' encoding='UTF-8'?>
    <domain type='kvm' id='7'>
      <name>Windows 10</name>
      <uuid>dc13e351-67f1-ac18-481b-7e7287651c92</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>16777216</memory>
      <currentMemory unit='KiB'>16777216</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='5'/>
        <vcpupin vcpu='1' cpuset='17'/>
        <vcpupin vcpu='2' cpuset='7'/>
        <vcpupin vcpu='3' cpuset='19'/>
        <vcpupin vcpu='4' cpuset='9'/>
        <vcpupin vcpu='5' cpuset='21'/>
        <vcpupin vcpu='6' cpuset='11'/>
        <vcpupin vcpu='7' cpuset='23'/>
      </cputune>
      <resource>
        <partition>/machine</partition>
      </resource>
      <os>
        <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/dc13e351-67f1-ac18-481b-7e7287651c92_VARS-pure-efi.fd</nvram>
        <boot dev='hd'/>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
          <vendor_id state='on' value='none'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough' check='none'>
        <topology sockets='1' cores='8' threads='1'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='hypervclock' present='yes'/>
        <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>
        <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='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='1' port='0x10'/>
          <alias name='pci.1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
        </controller>
        <controller type='pci' index='2' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='2' port='0x11'/>
          <alias name='pci.2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
        </controller>
        <controller type='pci' index='3' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='3' port='0x12'/>
          <alias name='pci.3'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
        </controller>
        <controller type='pci' index='4' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='4' port='0x13'/>
          <alias name='pci.4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
        </controller>
        <controller type='pci' index='5' model='pcie-root-port'>
          <model name='pcie-root-port'/>
          <target chassis='5' port='0x14'/>
          <alias name='pci.5'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <alias name='virtio-serial0'/>
          <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
        </controller>
        <controller type='usb' index='0' model='qemu-xhci' ports='15'>
          <alias name='usb'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:9d:e6:5c'/>
          <source bridge='br0'/>
          <target dev='vnet0'/>
          <model type='virtio'/>
          <alias name='net0'/>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
        </interface>
        <serial type='pty'>
          <source path='/dev/pts/0'/>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
          <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-7-Windows 10/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='2'/>
        </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='sv'>
          <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>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
          </source>
          <alias name='hostdev0'/>
          <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
          </source>
          <alias name='hostdev1'/>
          <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
        </hostdev>
        <hostdev mode='subsystem' type='usb' managed='no'>
          <source>
            <vendor id='0x0603'/>
            <product id='0x00f2'/>
            <address bus='1' device='2'/>
          </source>
          <alias name='hostdev2'/>
          <address type='usb' bus='0' port='1'/>
        </hostdev>
        <memballoon model='none'/>
      </devices>
      <seclabel type='dynamic' model='dac' relabel='yes'>
        <label>+0:+100</label>
        <imagelabel>+0:+100</imagelabel>
      </seclabel>
    </domain>

     

    boot.JPG

  7. Thanks, but when looking at the post where the spaceinvader video was posted it says that it is now outdated. 

     

    When looking at "system devices" the NVMe drive is listed under SCSI Devices: /dev/nvme0n1

    But I can't get anything other than the unraid bootup to show on the monitors. What am I doing wrong?

     

    I also tried changing the boot-order so that the install ISO was started before the NVMe, but that made no differance.

     

    virt1.JPG

    virt2.JPG

    nvme1.JPG

    nvme2.JPG

  8. I just got all my parts and am going to try to set up my replacement virutal win10 machine today. But I have some more questions. I want my windows 10 machine to  use my nvme as a boot drive and use my gtx 1060 graphics card. But where do I begin ? I have a windows 10 iso and a valid licence. Do I have to edit any configuration files or is it "plug and play" when I create the VM? And do I also have to passthrough 3.5mm audio and usb ?

  9. I have some questions. How much does memory speed matter if gaming is not a big priority? I was thinking about getting 2x16GB 3200MHz RAM. Is that a good choice?

     

    Also If I get get a 1TB nvme M.2 HDD can I share the space with other VM's or docker containers? Do I have to specify a disk size value for the win10 VM or can everything share the same disk ?

     

    Can't I use GPU transcoding if running a plex docker?

     

  10. I am planning on building a 3900X system as cheap as possible. I have an old game-pc with an i7 2600K cpu and 1060GTX GPU that I want to replace with a virtual Windows 10 machine.

     

    I will be using the Win10 VM for general work and casual gaming.

    I also would like to run some more VM's for testing.

    10-15 containers like plex, pi-hole, rutorrent, vscode...

     

    Do I have reason not to go with a B450 motherboard? I will not do any high end gaming or similar. Do you have any other suggestions regarding my choice of components?

     

    Components

    CPU: AMD Ryzen 3900X with stock cooler

    Motherboard: Some cheap B450 motherboard like: Asus ROG Strix B450-F Gaming or similar.

    RAM: Some cheap 32GB (2x16GB) 3200MHz DDR4 (And am planning to upgrade to 64GB in the future)

    M.2 SSD: Intel 660p Series M.2 2280 SSD 1TB

    PSU: Fractal Design Edison M 750W (Gold)

    Storage HDD:  1 x 8TB (Seagate Exos 7E8 ST8000NM0055 256MB 8TB) and planning to buy a few more in the future.

    Enclosure: Unknown 

    GPU: GTX 1060 (Already owned)

     

     

     

  11. Ok, so I can write files directly to that folder and they get transferred to Google drive? Sorry for being slow but in that case why are the rclone_upload folder needed?

     

    And hopefully one last question, when installing the dockers for sonarr/radarr I should provide folder-mappings for "tv" and "downloads". From the first page I understand that the tv-folder sould be mapped to in my case: "/mnt/user/mount_unionfs/google_vfs/Media/Tv"

     

    But do I need any "downloads" -mapping? 

  12. I tried following the spaceinvader one seedbox-guide on youtube and use it with this script. But I have some problems that I hope someone has a solution to.

    After a torrent is finished and unpacked on the seedbox I use syncthing to transfer the file back to the unraid-server. I mapped the folder "rclone_upload/google_vfs" in the syncthing container and added the path "/Media/Movies" inside the syncthing container as it matches my google drive paths. The first time everything works great and all files are uploaded to the correct google drive folder. But then the script removes the folders and syncthing breakes down as the "folder-markers" are deleted.

    If I remove the "--delete-empty-src-dirs" from the rclone_upload script nothing gets deleted and the folders will fill upp. Does anyone have any solution to how to fix this problem?

  13. 43 minutes ago, DZMM said:

    VFS v cache are the different mount types - you choose the remote to use. If you don't want encrypted then just substitute gdrive: for gdrive_media_vfs: in the script and add an unencrypted version of mountcheck to your /mount_unionfs folder

     

    Ok thanks for all the help. I am trying it out now. Just one more question that is slightly of topic. Before when I was experimenting with a cache I was running into some problems where I ran out of RAM or hdd space when I was using plex to scan and add all my media through the remote. After that unraid stopped responding and I had to reboot to be able to get unraid to work again. Is there any settings I need to change in the plex docker when scanning my remotes to prevent it from filling up the docker container? 

     

    I have only 12GB of RAM in my current server, do I need to lower any settings in the mountscript? or should it work anyway? 

  14. 28 minutes ago, DZMM said:

    You've just confirmed my suspicions and why i asked for the mount script.  Google_media_vfs: decrypts files that are encrypted on Google - files on Google that aren't encrypted won't be displayed in the mount.  That's why the mountcheck file was all goobledegook on Google as it's encrypted.

     

    If you want to see your non-encrypted files mount gdrive:

    Ok, thanks for the answer. But if I mount gdrive directly I guess that I will not be able to take advantage of the crypt-cache stuff that improved plex-streaming?

    As it says on the first page?

     

    "I use a rclone vfs mount as opposed to a rclone cache mount as this is optimised for streaming, has faster media start times, and limits API calls to google to avoid bans."

  15. 24 minutes ago, DZMM said:

    And your mount script 

    #!/bin/bash

    #######  Check if script is already running  ##########

    if [[ -f "/mnt/user/appdata/other/rclone/rclone_mount_running" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: Exiting script already running."

    exit

    else

    touch /mnt/user/appdata/other/rclone/rclone_mount_running

    fi

    #######  End Check if script already running  ##########

    #######  Start rclone gdrive mount  ##########

    # check if gdrive mount already created

    if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: Check rclone vfs already mounted."

    else

    echo "$(date "+%d.%m.%Y %T") INFO: mounting rclone vfs."

    # create directories for rclone mount and unionfs mount

    mkdir -p /mnt/user/appdata/other/rclone
    mkdir -p /mnt/user/mount_rclone/google_vfs
    mkdir -p /mnt/user/mount_unionfs/google_vfs
    mkdir -p /mnt/user/rclone_upload/google_vfs

    rclone mount --allow-other --buffer-size 256M --dir-cache-time 72h --drive-chunk-size 512M --fast-list --log-level INFO --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off gdrive_media_vfs: /mnt/user/mount_rclone/google_vfs &

    # check if mount successful

    # slight pause to give mount time to finalise

    sleep 5

    if [[ -f "/mnt/user/mount_rclone/google_vfs/mountcheck" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: Check rclone gdrive vfs mount success."

    else

    echo "$(date "+%d.%m.%Y %T") CRITICAL: rclone gdrive vfs mount failed - please check for problems."

    rm /mnt/user/appdata/other/rclone/rclone_mount_running

    exit

    fi

    fi

    #######  End rclone gdrive mount  ##########

    #######  Start unionfs mount   ##########

    if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs already mounted."

    else

    unionfs -o cow,allow_other,direct_io,auto_cache,sync_read /mnt/user/rclone_upload/google_vfs=RW:/mnt/user/mount_rclone/google_vfs=RO /mnt/user/mount_unionfs/google_vfs

    if [[ -f "/mnt/user/mount_unionfs/google_vfs/mountcheck" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: Check successful, unionfs mounted."

    else

    echo "$(date "+%d.%m.%Y %T") CRITICAL: unionfs Remount failed."

    rm /mnt/user/appdata/other/rclone/rclone_mount_running

    exit

    fi

    fi

    #######  End Mount unionfs   ##########

    ############### starting dockers that need unionfs mount ######################

    # only start dockers once

    if [[ -f "/mnt/user/appdata/other/rclone/dockers_started" ]]; then

    echo "$(date "+%d.%m.%Y %T") INFO: dockers already started"

    else

    touch /mnt/user/appdata/other/rclone/dockers_started

    echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers."

    # docker start plex
    # docker start ombi
    # docker start tautulli
    # docker start radarr
    # docker start sonarr

    fi

    ############### end dockers that need unionfs mount ######################

    exit

  16. On 8/23/2019 at 10:18 PM, DZMM said:

    Post your rclone config and your mount script - remember to remove passwords. 

    I am using all scripts from github unmodified. If I try the same thing using a cache instead and remove the -vfs options in the mountscript it seams to work but when using the crypt nothing gets mounted in any of the created folders. I tried placing a small -nfo file in the upload-folder and after running the upload-script I have a small encrypted file in my media-folder, and also a mountcheck file.

    unraid.PNG

  17. I have tried like 5 times now following the guide exactly. I even moved to a new server with new hardware with same result. The closest I have got is that I now got a "crypt file" with random letters in my media folder on google drive which is the mountcheck I believe. If I add another random file to /user/mount_rclone/google_vfs/ I get another encrypted file in my media folder. But nothing from google drive shows up on my server in any of the folders.

     

    And if I try with a standard rclone mount command I can mount my google drive to a folder without problems.

×
×
  • Create New...