TrueNAS Core on win10 Hyper-v vm install / ssl / Plex / qbit / Sonarr

novasis

Cadet
Joined
Jun 26, 2022
Messages
4
Hi Everybody.

I installed truenas on a VM in Hyper-v Manager using an attached 16gb boot hdd plus 2x250gb used as raid1 disc.

I need to plan my install better and need better direction from what I assumed was correct.
Or maybe i am not far off and need a bit of tweaking.
Please let me know if this is the Correct or Incorrect discussion group.

My goal:
Using an older 5th gen intel PC.
Install a hyper-v VM on win10 pro.
Install TrueNAS core in VM and configure.
Install Plex
Install Qbittorrent
Install Sonarr.
Use a domain rater than localhost for truenas.
my local workgroup is MNM.
Encrypting every connection with self signed cert.
Separate pools for users and apps and user data and media data.
Using vlans for each container instead of 1 subnet 192.168.0.0/24
Upload my current music and videos into plex and
also download my favorite movies and series to Plex for my local devices to access using qbit and sonarr.
Install Lidarr later on
Install Radarr later on.

Things I found:
I battled to access Plex on network pc's.
I battled to follow advice on pool permissions and user and groups.
I dont understand explanations on vlans using a single network card.
Truenas has a builtin ssl cert , where else can i use it?.
I think i would need to create self signed certificate for each plugin but not sure.
I have 1 network card and used it for all jails.
I cannot install Jails in dhcp / vnet which was weird so,
i had to un-tic dhcp, nat, vnet and berkeley packet filtering for all installed jails/plugins.
I struggled to grasp the user and group permissions but somehow managed to get users to access user data and a media folder on plex for uploading media data.
qbit port 8080 a big issue as jail is up but no web access, and i don't know how to fault find it.

My first attempt:
I created the hyper-v vm on win10 pro computer.
I installed TrueNAS using dhcp.
I created raid1 pool
I created local users and app users
I created a user group and app groups
I created a datasets for user data
I created datasets for app config data
I created datasets for media data
I created jails for plex, qbit and sonarr:
I spent 16 hours youtube and research and all added more confusion.
My impression on TrueNAS Containers are a 2outof10 on installation as it is not easy to fault find the whole time with every install.
I realized i needed a better way to fix or to start over.

I used this guide below to create jails and mounting points.


# Create jail for PLEX
iocage create --name homeplex --release 13.1-RELEASE dhcp=1 boot=1
# Mount jail config dataset
iocage exec homeplex mkdir /mnt/config
iocage fstab --add homeplex /mnt/raid1/vault0/apps/plex /mnt/config nullfs rw 0 0
# Mount media datasets
iocage exec homeplex mkdir /mnt/music
iocage fstab --add homeplex /mnt/raid1/vault0/media/music /mnt/music nullfs ro 0 0
iocage exec homeplex mkdir /mnt/series
iocage fstab --add homeplex /mnt/raid1/vault0/media/series /mnt/series nullfs ro 0 0
iocage exec homeplex mkdir /mnt/movies
iocage fstab --add homeplex /mnt/raid1/vault0/media/movies /mnt/movies nullfs ro 0 0
# Update packages
iocage exec homeplex "pkg update && pkg upgrade"
# Install
iocage exec homeplex pkg install plexmediaserver
# Enable service
iocage exec homeplex sysrc plexmediaserver_enable=YES
# Configure config directory
iocage exec homeplex sysrc plexmediaserver_support_path=/mnt/config
# Start the service
iocage exec homeplex service plexmediaserver start

# Create jail for QBITTORRENT
iocage create --name qbittorrent --release 13.1-RELEASE dhcp=1 boot=1
# Mount jail config dataset
iocage exec qbittorrent mkdir /mnt/config
iocage fstab --add qbittorrent /mnt/raid1/vault0/apps/qbittorrent /mnt/config nullfs rw 0 0
# Mount media dataset
iocage exec qbittorrent mkdir /mnt/torrents
iocage fstab --add qbittorrent /mnt/raid1/vault0/media/torrents /mnt/torrents nullfs rw 0 0
# Update packages
iocage exec qbittorrent "pkg update && pkg upgrade"
# Install qBittorrent without GUI
iocage exec qbittorrent pkg install qbittorrent-nox
# Enable qBittorrent service
iocage exec qbittorrent sysrc qbittorrent_enable=YES
# Configure config directory
iocage exec qbittorrent sysrc qbittorrent_conf_dir=/mnt/config
# Start the service
iocage exec qbittorrent service qbittorrent start


# Create jail for SONARR
iocage create --name sonarr --release 13.1-RELEASE dhcp=1 boot=1
# Mount jail config dataset
iocage exec sonarr mkdir /mnt/config
iocage fstab --add sonarr /mnt/raid1/vault0/apps/sonarr /mnt/config nullfs rw 0 0
# Mount media datasets
iocage exec sonarr mkdir /mnt/series
iocage fstab --add sonarr /mnt/raid1/vault0/media/series /mnt/series nullfs rw 0 0
iocage exec sonarr mkdir /mnt/torrents
iocage fstab --add sonarr /mnt/raid1/vault0/media/torrents /mnt/torrents nullfs ro 0 0
# Change pkg repository set from `quarterly` to `latest`
iocage exec sonarr sed -i '' 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
# Update packages
iocage exec sonarr "pkg update && pkg upgrade"
# Install
iocage exec sonarr pkg install sonarr
# Enable service
iocage exec sonarr sysrc sonarr_enable=YES
# Configure config directory
iocage exec sonarr sysrc sonarr_data_dir=/mnt/config
# Start the service
iocage exec sonarr service sonarr start

plex :
qbittorrent :
sonarr :

PLEX works
SONARR works
QBIT does not work.

I feel like starting over or i need a someone to fault find with me.
Any advice is welcome.



Screenshots of installation to follow:



Basic details of VM setup in hyper-v manager,

HyperV-TrueNasVM.jpg



Console view of TrueNAS after basic install with DHCP network.
HyperV-TrueNasConsole.jpg


Win10.Network.jpg



TrueNAS web portal Dashboard:
Dashboard.jpg



Certificate things:
System.Cert.jpg

System.CertAuth.jpg



-Apparently this is useful set system data set to boot-pool. I'm not sure about this.

System.DataSet.jpg



System.Email.jpg



System.General.jpg



System.SSHconnection.Edit.jpg


System.SSH keypair.jpg


System.CA.jpg




User setups:

Users.jpg



Users.Michael.jpg


Users.Plex.jpg


Users.Qbit.jpg



Users.Sonarr.jpg



Group setups:

Accounts.Groups.jpg



Accounts.Groups.PlexMembers.jpg


Accounts.Groups.QbitMembers.jpg


Accounts.Groups.SonarMembers.jpg



Network details:

Network.NetSummary.jpg



Network.Interfaces.jpg



Network.GlobalConfig.jpg



Disks in TrueNAS:

Storage.Discs.jpg



Services:

Services.SMB.jpg

Services.SSH.jpg



Sharing:

Sharing.SMB.jpg


Sharing.SMB.PlexmediaAdvance.jpg


Sharing.SMB.UsersAdvance.jpg



System Advance settings:
System.Advance.jpg



Pool and Datasets:

Storage.Pools.jpg




Dataset Users/ for user data:

Storage.Pools.EditACL-Users.jpg




Dataset Vault0/ for all Data related to apps and media:

Storage.Pools.EditACL-Vault0.jpg




Dataset Vault0/Apps for all app and configs only.

Storage.Pools.EditACL-Apps.jpg




Datasets for individual App files like Plex / Sonarr / Qbit:
Example of plex:

Storage.Pools.EditACL-Apps.Plex.jpg



Dataset Vault0/Media for all data relating to media used by plugins

Storage.Pools.EditACL-Media.jpg




Dataset Vault0/Media for all media categories used by plugins Radarr(movies)/ Solarr(Series)/ Lidarr(Music) :
I have not yet install Radarr and Lidarr but need the dataset for future use.
Example of Sonarr here:

Storage.Pools.EditACL-Vault0.Media.Series.jpg




Dataset Vault0/Media for user share and uploaded media, read-only by Plex.

Storage.Pools.EditACL-Vault0.Media.Plexmedia.jpg




Dataset Vault0/Media for all media categories used by plugins Qbittorrent(Torrents) :

Storage.Pools.EditACL-Vault0.Media.Torrents.jpg




Plugins:
I ended up installing plugins first in PLEX GUI and then did the jails and mounts. I like seeing what is installed vs silent install in console.

Plugins.jpg



Jails list :

Jails.jpg



Jail covering Plex / Sonarr / Qbit :
Example for Plex here:

Jails.Edit-Plex.Basic.jpg



Jails.Edit-Plex.JailProp.jpg



Jails.Edit-Plex.NetProp.jpg



Jails.Edit-Plex.CustProp.jpg



Jail Plex Mounting points:
Jails.MountPoints.Plex.jpg


Jail Sonarr Mounting points:

Jails.MountPoints.Sonarr.jpg


Jail Qbittorrent Mounting points:

Jails.MountPoints.Qbit.jpg
 

Attachments

  • truenas version1.pdf
    9.9 MB · Views: 172

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Wow.

1) Please review the virtualization guide, "Absolutely must virtualize TrueNAS" - a guide to not completely losing your data

1a) Please note that it explicitly says not to use Hyper-V for this

1b) Also note that it says you must use PCIe passthru of the controller for your disks, you have set up individual disks to be proxied, which is very dangerous

1c) Fortunately you appear to have scripted lots of your activities, which is good, I like that, except that the flip side of that coin is that this is mostly useful for when this charlie foxtrot implodes upon itself, which I (at least) consider an undesirable outcome.

As for the choice of forum, we can fix that, no worries there.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Sidenote: You probably don't want your SSH keys floating around on the internet. Regardless of what you do, I recommend you create new keys to replace the ones in your screenshots.
 

novasis

Cadet
Joined
Jun 26, 2022
Messages
4
Wow.

1) Please review the virtualization guide, "Absolutely must virtualize TrueNAS" - a guide to not completely losing your data

1a) Please note that it explicitly says not to use Hyper-V for this

1b) Also note that it says you must use PCIe passthru of the controller for your disks, you have set up individual disks to be proxied, which is very dangerous

1c) Fortunately you appear to have scripted lots of your activities, which is good, I like that, except that the flip side of that coin is that this is mostly useful for when this charlie foxtrot implodes upon itself, which I (at least) consider an undesirable outcome.

As for the choice of forum, we can fix that, no worries there.
Hi.

Just my luck that i used Hyper-v.

I just finished installing win 10 and office and things.
I was hoping to keep this and then run TrueNas as a silent service.

True about the Data risk.

Perhaps i should flip the pancake and convert win10 to VM then reinstall TrueNAS as it is intended as a bare-metal install.
I can hopefully import the vm to Truenas running as a vm.
 

novasis

Cadet
Joined
Jun 26, 2022
Messages
4
Sidenote: You probably don't want your SSH keys floating around on the internet. Regardless of what you do, I recommend you create new keys to replace the ones in your screenshots.
Hi .

Thanks for this.

So i found a great video from Techworks showing a very detailed take on ssl.
I'll do some testing on it using a Dynamic DNS.
My main testing need to be within my workgroup.

How to Configure OpenVPN on TrueNas 12 - Setup your own Home VPN - Part 1

I would need to rethink my install as hyper-v is not production approved.
Someone metioned using a second Lan card for security.
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
My first thought is, is this just for fun to play around with TrueNAS or you plan to use this in some business form as you note VLANs and uses and apps and lions and tigers and bears, oh my :)
 

lesserthere

Dabbler
Joined
Aug 10, 2023
Messages
39
Hi all.

Just joined this forum as I've had truenas core running on hyperV for about 2 years now with no issues luckily!
On a raidz2 with 4 x 4tb disks. Daily back up to an external hard drive also.

As I have critical programs running on win10 24/7 (Blueiris/plex etc) so I went for the hyperv option not knowing too much about it, to start testing really. Then it just grew.

Now I've come across this thread and am concerned.

So I see it's recommended to run Truenas core on VMware ESXi?
Will windows run happily on this along side Truenas as a VM on VMware ESXi?
I would need to pass through my gpu card also.

Core or Scale on VMware ESXi?


Thanks
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
So I see it's recommended to run Truenas core on VMware ESXi?

ESXi is the cadillac of hypervisors and is probably the best choice if you demand unparalleled stability. Most other hypervisors are about five to ten years behind ESXi in various areas, as VMware provides support for vSphere customers and typically they are pretty invested in making stuff work. Both FreeBSD and Linux work well on ESXi. However, please note that ESXi has rather strict compatibility requirements and you may be expected to do stuff like making sure particular firmware versions and driver versions are running to support stuff. Hobbyist class hypervisors like Proxmox or Xen might seem to be less stringent but are actually just less well documented as to what is "guaranteed" to work well. Fortunately we now live in an era where a lot of hypervisors have finally gotten to where ESXi was in 2010 and you can find combinations that work well. Unfortunately, if you go that route, there's not a ton of forum experience with those options, so if you have a problem, it may end up being your own private adventure.

Will windows run happily on this along side Truenas as a VM on VMware ESXi?

More or less the wrong question. ESXi workloads interfering with each other is really "not a thing" as long as the hypervisor follows ESXi design requirements (proper hardware, proper resourcing, etc). Whether Windows will run happily virtualized is complicated but VMware has put a LOT of effort into making all workloads work correctly; it is still possible to sabotage yourself though. None of your workloads should be aware of the other workloads in a virtualization environment, whether this is ESXi or Proxmox or HyperV. What we're looking for with ESXi is its superior support for PCIe passthru and high performance networking. The "need" for high performance networking is simply due to it being used as a NAS, but the PCIe passthru support is absolutely critical because TrueNAS is going to be extremely demanding on disk I/O and you really need 100% reliable PCIe passthru. VMware's had that trick down for many years. Other hypervisors have only recently (relatively) introduced it and it is often dodgy for the first few years.

I would need to pass through my gpu card also.

Yup. GPU passthru has actually been a strong motivator for hypervisors to get this "more" right in recent years, so, yay.

Core or Scale on VMware ESXi?

Personally? I think SCALE as a VM is stupid. SCALE has the Linux memory management idiocy that means you should allocate double the RAM to support a given amount of ARC, so if you want 32GB ARC you need to allocate 64GB RAM. So you are better off with CORE there. The Linux crowd cries about their Kubernetes and container support follow rapidly, but really you can put up a Linux VM on your ESXi and then host whatever container stack is your favorite. This is better than being forced into iXsystems-mandated designs since you get to make your own choices.
 

lesserthere

Dabbler
Joined
Aug 10, 2023
Messages
39
Thanks!
Installed Vmware hypervisor 7 on a spare dell I had.
Truenas core up and running in a vm in minutes!

But having issues trying to get 2nd vm up with window10 to test with. windows.iso uploaded.
Windows logo appears the just get a blank blue screen and then shuts down! Got to spend some time troubleshooting this one.
 

lesserthere

Dabbler
Joined
Aug 10, 2023
Messages
39
To move to VMware and install Truenas core on the vm and migrate from my old system?
Export config file from current truenas. Power down the old system. Remove the drives.
Import the new config file and reboot, then switch off to attach the old drives. Start up again?
I assume there is a quide somewhere so will have a look around later.
 

MrGuvernment

Patron
Joined
Jun 15, 2017
Messages
268
To move to VMware and install Truenas core on the vm and migrate from my old system?
Export config file from current truenas. Power down the old system. Remove the drives.
Import the new config file and reboot, then switch off to attach the old drives. Start up again?
I assume there is a quide somewhere so will have a look around later.
You may wish to start a new thread and post the details of your set up so it does not get lost in this post.

Going to ESXi you could pass through the drive controller and the drives, just make sure your ESXi boot drive is not also on that controller.
 

DJ8014

Cadet
Joined
Aug 14, 2023
Messages
1
Hi all.

Just joined this forum as I've had truenas core running on hyperV for about 2 years now with no issues luckily!
On a raidz2 with 4 x 4tb disks. Daily back up to an external hard drive also.

As I have critical programs running on win10 24/7 (Blueiris/plex etc) so I went for the hyperv option not knowing too much about it, to start testing really. Then it just grew.

Now I've come across this thread and am concerned.

So I see it's recommended to run Truenas core on VMware ESXi?
Will windows run happily on this along side Truenas as a VM on VMware ESXi?
I would need to pass through my gpu card also.

Core or Scale on VMware ESXi?


Thanks
Not sure if this will alleviate your concern, but unlike in 2018 (when the "Absolutely must virtualize TrueNAS" forum post began), Hyper-V now does support FreeBSD: https://learn.microsoft.com/en-us/w...supported-freebsd-virtual-machines-on-hyper-v

Between that, and the fact that you've run for years without issue, perhaps you may less of a need to switch things up, but the choice is certainly yours.
 
Top