-
Notifications
You must be signed in to change notification settings - Fork 4
Updating from the QNAP QPKG to Container
Welcome to the Guide for those wishing to move from the now end of life QPKGs I used to create for the HDHomeRun DVR engine to the docker container on a QNAP System. The guide was developed on my TS-651 running firmware 5.0.0.2055 (2022/05/31) Note - please use the Container 0.2.1 or newer to ensure you can use the default GID for QNAP of 100.
- if the QPKG is currently installed remove it.. don't worry your recordings are safe
- install the qnap container station app from the app center
- Open the Container Station and let it create the
Container
Share - Create a share for storing the configuration information for this DVR container. Create a new share, e.g.
DVRData
orContainerData
- If you wish to have a unique user for the DVR - Create it now through the
Control Panel -> Privilege -> Users
- Add the user to share where your recordings are stored or to be stored via
Control Panel -> Privilege -> Shared Folders
and clickingEdit Shared Folder Permissions
button over on the left
- If the user isn't listed click
Add
- Make sure the user you want to use has the
RW
entry checked. - Once done hit Apply then Close
- Now is a good time to also make sure your user has
Read/Write
orRW
access to the Container data folder you created in Step 4 ofPreparing the QNAP NAS
- Now SSH to the NAS and login as an admin user and execute
id <user>
where<user>
is the user you wish to use for the DVR. The command should return a response similar touid=1000(dvr) gid=100(everyone) groups=100(everyone)
keep the uid and the gid number close - we will need them later.
- Once ready with the info open
Container Station
and selectCreate
- Search for
demonrik
to find thedemonrik/hdhrdvr-docker
container and selectinstall
- Select
latest
forImage version
- the default - Click on Next - You'll have to click ok for a disclaimer
- On next dialog change the
Name
to something more meaningful for you, e.g.HDHomeRunDVR
- DO NOT selectNext
just yet - Select the
Advanced Settings >>
menu
- Under
Environments
need to create 3 new variables by selecting Add (Dialog won't let you create 3 blanks, you have to do one by one)
- DVRUI_PORT: the port that the UI will be available on. If not sure - good tip is to pick something between 32000 and 65535
- PUID : the UID of the user you found above in Step 7 of
Getting the necessary Information
- PGID : the GID of the user you found above in Step 7 of
Getting the necessary Information
- For
Network -> Network Mode
we need to selectHost
- And finally for
Storage
we need to mount the folders we created
- first delete the 'Volume | Optional` mappings for /dvrdata and /dvrrec by selecting the trashcan to the right. This is for creating disk images, which you don't need since we have created Shared Folders
- next we add 2
Volume from host
toMount Point
mappings (again has to be done one by one). When you select the entry under volume from host a dialog will prompt you to select the folder.. Select your Record Path shared Folder and map that to the Mount Point/dvrrec' and for the second select your container data shared folder from Step 4 of
Preparing the QNAP NASand map to
/dvrdata` SHould look similar to
- select Apply
- select Next
Wait a few minutes for everything to complete - the little blue icon on the task list should dissapear
Now select the Container
menu from the sidebar
It should have your new dvr container and it should be running
if it's not running hit the play
icon
Select the name
URL provided to open the monitor for the container.
If you scroll up the log in the 'Console' you will see the version. Check with DockerHub/Github to make sure it's correct
Scrolling through the log make sure you don't see any ERROR or WARN messages.