erazor1112 Posted May 19, 2022 #1 Posted May 19, 2022 Here is a walkthrough how to install XPenology (DVA-3221) on Unraid. My Setup: Unraid Version 6.10.0 Mainboard: ASRock H570M-ITX/ac CPU: 11th Gen Intel i7-11700K Memory: 32GB Memory 1.) Add a new Virtual Machine Use CentOS Template and type in a Name 2.) CPU Mode: Host Passthrough 3.) Logical CPUs: 4 cores (should also work with more or less) I remove CPU0 / 8 because this is also used by unraid itself. 4.) Initial Memory: 4096 MB (should also work with more or less) 5.) Machine: Q35-5.1 (Successfully tested with Q35-6.1) 6.) Bios OVMF 7.) USB Controller 3.0 (qemu XHCI) 8.) Download tinycore redpill 0.4.6 uefi image from @pocopico https://github.com/pocopico/tinycore-redpill 9.) 1st Disk = Choose Manual and enter the path to "tinycore-redpill-uefi.v0.4.6.img" 10.) vDisk Bus must be USB 11.) 2nd Disk = Choose Auto and enter a vDisk size 12.) Leave vDisk Type raw 13.) Set vDisk Bus to SATA 14.) Graphics Card : VNC (other settings can remain on default) 15.) Choose Network Model "virtio-net" Works also with e1000 which needs to be manual entered in Form View. 16.) Save and start the Virtual Machine 17.) You should see the Grub Loader with "Tiny Core Image Build" (System will automatically boot) 18.) Open the Terminal and check the IP Address by using "ifconfig" 19.) Connect with ssh to Tiny Core ssh -l tc @<IP ADDR> Username: tc Password: P@ssw0rd 20.) Run the following commands and answer all with Yes ./rploader.sh update now ./rploader.sh fullupgrade now ./rploader.sh serialgen DVA3221 ./rploader.sh satamap now ./rploader.sh identifyusb now For e1000 Network Card run: ./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000/rpext-index.json For virtio-net Network Card run: ./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/rp-ext/master/v9fs/rpext-index.json ./rploader.sh build denverton-7.1.0-42661 manual ./rploader.sh backup now sudo reboot 21.) Grub Loader should now have 3 options, You need to Boot the USB Entry! 22.) Boot Screen should show: 23.) Open a browser and try to find the Appliance using http://find.synology.com 24.) Download DVA3221 42261 PAT File from Synology https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DVA3221_42661.pat 25.) Manually upload the .pat file using the browse button. 26.) Confirm to delete All data on the drives 27.) DSM will be installed and is reachable on the same IP Address after the reboot. That's it. Have Fun. Btw. DVA3221 has 8 Camera Licenses included for Surveillance Station and it Works also with Version Surveillance Station 9.0.0-7660 3 Quote
martymoose Posted May 27, 2022 #2 Posted May 27, 2022 Hi great work did you have any issues with the no drives detected? thanks again for the tutorial Quote
martymoose Posted May 28, 2022 #3 Posted May 28, 2022 @erazor1112 Do you reckon you can post your template? Quote
BoyPlay Posted May 29, 2022 #4 Posted May 29, 2022 Hello. I did everything according to your instructions. Everything was fine until the moment of entering the installed system. Like martymoose - no drives detected. 😕 Quote
erazor1112 Posted May 30, 2022 Author #5 Posted May 30, 2022 On 5/28/2022 at 12:16 AM, martymoose said: Hi great work did you have any issues with the no drives detected? thanks again for the tutorial No, drives have been detected all the time. Quote
erazor1112 Posted May 30, 2022 Author #6 Posted May 30, 2022 On 5/28/2022 at 3:56 AM, martymoose said: @erazor1112 Do you reckon you can post your template? <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm' id='4'> <name>Xpenology7_DVA3221_Q35</name> <uuid>xxxx-xxxx-xxxx-xxxx-xxxx</uuid> <metadata> <vmtemplate xmlns="unraid" name="CentOS" icon="centos.png" os="centos"/> </metadata> <memory unit='KiB'>4194304</memory> <currentMemory unit='KiB'>4194304</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>4</vcpu> <cputune> <vcpupin vcpu='0' cpuset='6'/> <vcpupin vcpu='1' cpuset='14'/> <vcpupin vcpu='2' cpuset='7'/> <vcpupin vcpu='3' cpuset='15'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-q35-5.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/f387ad8f-b0b4-699d-cbf8-77285f38ba78_VARS-pure-efi.fd</nvram> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='2' threads='2'/> <cache mode='passthrough'/> </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/appdata/isos/tinycore-redpill-uefi.v0.4.6_Q35.img' index='2'/> <backingStore/> <target dev='hdc' bus='usb'/> <boot order='1'/> <alias name='usb-disk2'/> <address type='usb' bus='0' port='1'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/user/appdata/domains/Xpenology7_DVA3221/vdisk1.img' index='1'/> <backingStore/> <target dev='hdd' bus='sata'/> <alias name='sata0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <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='pci' index='6' model='pcie-root-port'> <model name='pcie-root-port'/> <target chassis='6' port='0x15'/> <alias name='pci.6'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/> </controller> <controller type='pci' index='7' model='pcie-to-pci-bridge'> <model name='pcie-pci-bridge'/> <alias name='pci.7'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </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='sata' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <controller type='sata' index='1'> <alias name='sata1'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x01' 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='xx:xx:xx:xx:xx:xx'/> <source bridge='br0'/> <target dev='vnet7'/> <model type='e1000'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x02' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/1'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/1'> <source path='/dev/pts/1'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-4-Xpenology7_DVA3221_Q/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='5901' autoport='yes' websocket='5701' listen='0.0.0.0' keymap='de'> <listen type='address' address='0.0.0.0'/> </graphics> <audio id='1' type='none'/> <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='0x04' slot='0x00' function='0x0'/> </memballoon> </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> Quote
erazor1112 Posted May 30, 2022 Author #7 Posted May 30, 2022 10 hours ago, BoyPlay said: Hello. I did everything according to your instructions. Everything was fine until the moment of entering the installed system. Like martymoose - no drives detected. 😕 Try to connect to the console and check with fdisk http://<ip>:7681 Username: root Password: Empty Quote
halfords45 Posted May 30, 2022 #8 Posted May 30, 2022 (edited) Hi, very good tutorial but same issue here no drives detected! anyone know how to get this to work? maps my drives at 1 and 1000 have tried to change in the user config but every time i check at console with cat /proc/cmdline its back to 1 and 1000 Edited May 30, 2022 by halfords45 Quote
lanz Posted May 30, 2022 #9 Posted May 30, 2022 thanks for the walkthrough @erazor1112 For all with no drive detected, here is what worked for me : Stop VM Edit VM and choose XML view top right corner Look for your HDD SATA drive and change controller='0' to controller='1' Save and restart the VM. Installation process will find the drive. On my side, it starts great and seems to run as intended, but crashed after a few hours. The VM is then stopped. Quote
borzoy Posted June 11, 2022 #10 Posted June 11, 2022 whoever could help me to establish this miracle Quote
borzoy Posted June 21, 2022 #12 Posted June 21, 2022 В 20.06.2022 в 15:09, erazor1112 сказал: какой у Вас вопрос? greetings, I want to switch to uraid, and when installing the dsm, the assistant does not allow you to install the system because the disks are not detected. Quote
borzoy Posted June 21, 2022 #13 Posted June 21, 2022 2 минуты назад, borzoy сказал: greetings, I want to switch to uraid, and when installing the dsm, the assistant does not allow you to install the system because the disks are not detected. at the moment, the dsm is installed immediately on the hardware and during installation indicated "SataPortMap": "62", "DiskIdxMap": "0006" Quote
viktortrass Posted June 22, 2022 #14 Posted June 22, 2022 On 6/21/2022 at 6:32 PM, borzoy said: at the moment, the dsm is installed immediately on the hardware and during installation indicated "SataPortMap": "62", "DiskIdxMap": "0006" Edit VM and choose XML view Look for your vdisk2 or sata hdd drive and change controller='0' to controller='1' Save and restart the VM. Installation should continue. If you edit something on normal view edit, changes on xml view will be gone and you will have to do it again. Quote
borzoy Posted June 23, 2022 #15 Posted June 23, 2022 I changed it, it allows the installation to continue, but when I insert the pat file, it offers to format the disks and at that moment it writes that it could not be formatted. The first disk where the image is sata and not usb, and the second one is automatic without choosing the disk size, unraid itself does not allow you to do this. Quote
erazor1112 Posted June 23, 2022 Author #16 Posted June 23, 2022 i remember some similar issue in the past, try to create the vdisk manually with: qemu-img create -f vmdk disk1.vmdk 100G can you send a screenshot with the error message? Quote
borzoy Posted June 24, 2022 #17 Posted June 24, 2022 I'm Russian-speaking, I'm only testing so far, I haven't bought a license yet, and English is given to me only with translation. How can I add a disk? Screenshot send How is the disk added ? Quote
borzoy Posted June 24, 2022 #18 Posted June 24, 2022 Another question is how best to allocate space for the dsm? the disk is not fully marked up ? will I use dsm the most ?unraid only for docker and virtual machines.I don't want any further adventures in data recovery if some disk dies. Quote
noosphere Posted June 25, 2022 #19 Posted June 25, 2022 Thanks @erazor1112 I am having one problem... Give this error when it´s flashing the DSM FILE The the print please. https://ibb.co/VjmSmW4 I already tried the 2 tinycore files. Thanks 4 your work Quote
hannibal1969 Posted July 27, 2022 #20 Posted July 27, 2022 @erazor1112wonderful work. I just read this possible solution for me. I'm in the middle of a decision to replace my xpenology i3-8100/16/5x4TB for a DS920+ or go to unRaid. The only Synology dependency I have is the unbeatable surveillance capability and Hyperbackup. With this tutorial I can replace my XPEnology system and setup unRaid with my VMs and Dockers first. After that setup a VM with DSM7.1 for Hyperbackup and surveillance station. Is there a way to combine mount points from unRaid in DSM 7.1? e.g. I like to store my family photo's natively on the unRaid filesystem to benefit of it's protection but I also like to use the Photo Moments app. Is there a way to do this? Quote
erazor1112 Posted July 28, 2022 Author #21 Posted July 28, 2022 (edited) Hi Hannibal, you can use "Mount Remote Folder" in the File Station to mount any unRaid share with NFS or CIFS. You need to mount the unRaid share in a subfolder of the automatically created "photo" folder on the Synology Than Start "Indexing" in the Settings section and the pictures should appear Edited July 28, 2022 by erazor1112 1 Quote
erazor1112 Posted July 28, 2022 Author #22 Posted July 28, 2022 On 6/25/2022 at 2:22 AM, noosphere said: Thanks @erazor1112 I am having one problem... Give this error when it´s flashing the DSM FILE The the print please. https://ibb.co/VjmSmW4 I already tried the 2 tinycore files. Thanks 4 your work Did you download the original file from Synology? https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DVA3221_42661.pat Quote
hannibal1969 Posted July 28, 2022 #23 Posted July 28, 2022 27 minutes ago, erazor1112 said: Hi Hannibal, ... "Indexing" in the Settings section and the pictures should appear Good tip. I also thought about this solution. Buy for cheap a used DS216+. I can this DS216+ equip with latest DSM. The idea is that I will put a disk in there for Surveillance and Photo's and will do a rSync once every 12 hours to unRaid. What would you prefer? Both options have advantages over disadvantages. Quote
erazor1112 Posted July 28, 2022 Author #24 Posted July 28, 2022 21 minutes ago, hannibal1969 said: Good tip. I also thought about this solution. Buy for cheap a used DS216+. I can this DS216+ equip with latest DSM. The idea is that I will put a disk in there for Surveillance and Photo's and will do a rSync once every 12 hours to unRaid. What would you prefer? Both options have advantages over disadvantages. My hole data is sitting on unraid and will be backed up to Backblaze B2 Cloud Storage using "Duplicate" Container. I use the DVA3221 only for suveillance station and have no requirements to backup the video data. (Just rotating the videos some days) Quote
Rafik89 Posted July 28, 2022 #25 Posted July 28, 2022 Very well described, with me it works without any problems apart from face recognition and AI Is facial recognition working for you? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.