Jump to content
XPEnology Community

Recommended Posts

Posted

 

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

image.png.3cff4040378bf791f5b674b1aba61f06.png

 

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)

image.png.d6b25351e467f4b4c1b96a70febd546f.png

 

5.) Machine: Q35-5.1 (Successfully tested with Q35-6.1)

6.) Bios OVMF

7.) USB Controller 3.0 (qemu XHCI)

image.png.522ef3c76b6e04bec30093c56c4b13ff.png

 

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

image.png.2dbc62565856bd88a6f7f528196b4852.png

 

11.) 2nd Disk = Choose Auto and enter a vDisk size

12.) Leave vDisk Type raw

13.) Set vDisk Bus to SATA

image.png.86ce0433d7cfb12eb336b172a3cdb585.png

 

14.) Graphics Card : VNC (other settings can remain on default)

image.png.fd3b050bd39e726fdd79d1fba8aa1702.png

 

15.) Choose Network Model "virtio-net"

Works also with e1000 which needs to be manual entered in Form View.

 

image.png.9551c63909d2dba5be6d1e48702675b2.png

 

16.) Save and start the Virtual Machine

17.) You should see the Grub Loader with
"Tiny Core Image Build" (System will automatically boot)

image.png.2b862ef731d3ae1215b12f8d1e0fea09.png

 

18.) Open the Terminal and check the IP Address by using "ifconfig"

image.png.48188a5ad5f0efbc574c942e9ac23bce.png

 

19.) Connect with ssh to Tiny Core

ssh -l tc @<IP ADDR>

Username: tc
Password:  P@ssw0rd

 

image.thumb.png.4c8d7d22e4a392eb79743a36e456c973.png

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!

image.png.3acd4e7befaa949a172cd77e76124226.png

 

22.) Boot Screen should show:

image.thumb.png.98b20405687e66b84ab36d512d81953d.png

 

23.) Open a browser and try to find the Appliance using http://find.synology.com

image.png.c9d4d814e45e933035b8825ba54a7904.png

 

image.png.6fdd0ecbe964cfbef59e84e91aa66cbf.png

 

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.

image.png.70884907d7a25a8d8e5938aa214f6217.png

26.) Confirm to delete All data on the drives

image.png.2c119a61deb5a257202fe23f7bbcb68a.png

 

27.) DSM will be installed and is reachable on the same IP Address after the reboot.

image.png.a72c83ddef9bf9a1d9ab75faad3f8251.png

 

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

 

  • Like 3
  • 2 weeks later...
Posted

Hello. I did everything according to your instructions. Everything was fine until the moment of entering the installed system. Like martymoose - no drives detected. 😕

Posted
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.

Posted
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>

 

Posted
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

Posted (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 by halfords45
Posted

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.

 

  • 2 weeks later...
  • 2 weeks later...
Posted
В 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.

Posted
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"

Posted
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.

Posted

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.

Posted

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 ?

Posted

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.

  • 1 month later...
Posted

@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?  

Posted (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 :)

 

image.thumb.png.cac05895d69d93ddca98ba28d8a34955.png

Edited by erazor1112
  • Haha 1
Posted
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.

Posted
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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...