Pool Creation crashes Truenas+VirtualBox

65fastback

Cadet
Joined
Jan 8, 2021
Messages
4
Hello all! So I have been setting up my home nas server and I've run into an error that doesnt google well, so I was wanting to see if anyone had any advice.

I have Truenas setup inside a virtualbox. I have 4x3tb drives mounted as raw drives to virtualbox, and Truenas sees them.

The issue comes when I go to create the pool with the 4 drives as a raidz1. As soon as I click to format, truenas times out, then if I go check out the command line for TN inside my VB, I have the following error:
136688051_440566337124576_1134163581699629215_n.png


The only thing I can make out of this is access denied somehow means that the drives werent going to give truenas permission to format them.

So my question is...if that is the case, how do I make sure they have appropriate permissions? They are mounted as raw drives with writethrough permissions in VB.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Short answer: RAW disk access requires you to run VirtualBox as an admin.

Long answer: You probably shouldn't run TrueNAS as a VM on a Type 2 hypervisor like VirtualBox, for a variety of reasons from "the NAS will be inaccessible when your main machine is off" to "you will be competing for resources between your Windows OS and TrueNAS" and a dash of "the data integrity of ZFS doesn't like a lot of man-in-the-middle at the storage layer" - what's the desire/use-case for TN as a VM?
 
Top