Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
H2SO4
Sep 11, 2001

put your money in a log cabin


Buglord

SEKCobra posted:

everyone else can't do the NAS part.

Everything you're trying to do has been possible for years, so I'm betting you're not explaining the use case completely.

Adbot
ADBOT LOVES YOU

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

H2SO4 posted:

Everything you're trying to do has been possible for years, so I'm betting you're not explaining the use case completely.

There are 5 HDDs in this PC and I want to use them in a NAS configuration while at the same time having VMs running on the CPU. Nothing I tried is able to do that while also providing proper VMs. Hyper-V can't do USB passthrough, VMware can't do anything with the HDDs, the FreeNAS VM stuff is horrible and probably can't do USB passthrough anyway etc.

BallerBallerDillz
Jun 11, 2009

Cock, Rules, Everything, Around, Me
Scratchmo

SEKCobra posted:

There are 5 HDDs in this PC and I want to use them in a NAS configuration while at the same time having VMs running on the CPU. Nothing I tried is able to do that while also providing proper VMs. Hyper-V can't do USB passthrough, VMware can't do anything with the HDDs, the FreeNAS VM stuff is horrible and probably can't do USB passthrough anyway etc.

How is the NAS set up now? Why does VMWare have to be able to do anything to the hard drives?

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

The Nards Pan posted:

How is the NAS set up now? Why does VMWare have to be able to do anything to the hard drives?

Because VMWare has to run on the same hardware as the NAS OS, so one option would have been to just expose the HDDs to a VM

Erwin
Feb 17, 2006

SEKCobra posted:

Run a NAS on the same machine as a Hypervisor.
Why? Just present the drives to a VM running FreeNAS or whatever.

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

Erwin posted:

Why? Just present the drives to a VM running FreeNAS or whatever.

VMWare won't let me pas them through, probably because of drivers or w/e.

BallerBallerDillz
Jun 11, 2009

Cock, Rules, Everything, Around, Me
Scratchmo
Have you considered converting the hard drives to vmdk and attaching them through VMware instead of a straight pass through? Are they all separate disks right now or an array?

H2SO4
Sep 11, 2001

put your money in a log cabin


Buglord
So to be clear, you're wanting to use a Windows workstation as a client PC as well as a VM host? That shrinks your options dramatically.

vanity slug
Jul 20, 2010

Are those actual internal HDDs or HDDs connected through USB?

You could just directly attach the disks to the VM running your FreeNAS instance with Hyper-V.

H2SO4
Sep 11, 2001

put your money in a log cabin


Buglord
You really don't want to do FreeNAS in a VM unless you're passing the actual controller through to the VM. Passing disks through is risky, especially if you're passing through VMDKs/VHDs/etc and not the raw disk.

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:
I've got SATA HDDs connected to the mobo and I need the VMs to be able to use some (other) USB devices.

Perplx
Jun 26, 2004


Best viewed on Orgasma Plasma
Lipstick Apathy
I have an esxi box under my desk right now that's set up the way you want I think. The key is having 2 sata controllers, my motherboard has an asmedia esata port on the back that I pass back into the case which is what I boot off and I pass the intel controller with 6 drives to a linux vm. Also I have a pcie usb 3 card and a 2nd video card I can pass to any vm.

I complicate things even further and do raid and iscsi in the linux vm and pass that back to esxi.

Perplx fucked around with this message at 18:47 on Jul 13, 2017

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

Perplx posted:

I have an esxi box under my desk right now that's set up the way you want I think. The key is having 2 sata controllers, my motherboard has an asmedia esata port on the back that I pass back into the case which is what I boot off and I pass the intel controller with 6 drives to a linux vm. Also I have a pcie usb 3 card and a 2nd video card I can pass to any vm.

I complicate things even further and do raid and iscsi in the linux vm and pass that back to esxi.

Well while trying to set it up with VMWare I was also considering putting the other VMs onto the NAS inside the VMWare :v:

SamDabbers
May 26, 2003



It seems like bare-metal Linux with KVM can meet your NAS and hypervisor requirements. Pass through your GPU and a USB controller for your desktop VM and you'll be set. Right tool for the job and whatnot.

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

SEKCobra posted:

I've got SATA HDDs connected to the mobo and I need the VMs to be able to use some (other) USB devices.

You can pass through the SATA HDD's using RDMs. ESXI by default doesn't support this for SATA devices afaik but it can be done using the commandline which I had to do when I virtualized my nas.
http://www.homecomputerlab.com/vmware-sata-disk-raw-device-mapping-rdm

You can also add a USB controller to the VM and pass through USB devices to the guest.

evol262
Nov 30, 2010
#!/usr/bin/perl

SamDabbers posted:

It seems like bare-metal Linux with KVM can meet your NAS and hypervisor requirements. Pass through your GPU and a USB controller for your desktop VM and you'll be set. Right tool for the job and whatnot.

Not as much fun as a ESXi box booting headless, starting a VM with a controller passed through which exports iscsi back to ESXi from ZFS, then running a desktop on top of that with a passthrough GPU and USB kb/mouse, because VMware is the only hypervisor in the world

Alfajor
Jun 10, 2005

The delicious snack cake.
:pwn: my head

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

evol262 posted:

Not as much fun as a ESXi box booting headless, starting a VM with a controller passed through which exports iscsi back to ESXi from ZFS, then running a desktop on top of that with a passthrough GPU and USB kb/mouse, because VMware is the only hypervisor in the world

Well it has no systemd cancer which is a plus.

evol262
Nov 30, 2010
#!/usr/bin/perl

theperminator posted:

Well it has no systemd cancer which is a plus.

I think my facetiousness was missed, but kvm works fine on Solaris if you really hate systemd for whatever reason.

BallerBallerDillz
Jun 11, 2009

Cock, Rules, Everything, Around, Me
Scratchmo

theperminator posted:

Well it has no systemd cancer which is a plus.

The only Linux user group meet up I went to was ruined by an octogenarian neck beard who refused to shut the gently caress up about systemd and his precious bespoke init scripts, to the point that we got kicked out of the coffee shop we were in for being too rowdy.

BallerBallerDillz fucked around with this message at 04:19 on Jul 14, 2017

SamDabbers
May 26, 2003



evol262 posted:

I think my facetiousness was missed, but kvm works fine on Solaris if you really hate systemd for whatever reason.

KVM works great on Illumos, but it doesn't support PCI passthrough yet. The Joyent folks don't need it, so they didn't implement it.

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

theperminator posted:

You can pass through the SATA HDD's using RDMs. ESXI by default doesn't support this for SATA devices afaik but it can be done using the commandline which I had to do when I virtualized my nas.
http://www.homecomputerlab.com/vmware-sata-disk-raw-device-mapping-rdm

You can also add a USB controller to the VM and pass through USB devices to the guest.

I tried to put an Areca controller in but apparently my hardware doesn't support any PCI passthrough.

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

SEKCobra posted:

I tried to put an Areca controller in but apparently my hardware doesn't support any PCI passthrough.

What do you mean by Areca controller? If you mean SATA controller you don't need to do that (though it is better) you can just pass the disks through following the guide in that link.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

theperminator posted:

What do you mean by Areca controller? If you mean SATA controller you don't need to do that (though it is better) you can just pass the disks through following the guide in that link.
Areca makes RAID cards.

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

Vulture Culture posted:

Areca makes RAID cards.

Ahh right that makes sense, you'd be able to pass the RDM of the whole volume but that just feels wrong to me.

I wonder if he just needs to turn on VT-d in the bios to allow the pass through?

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

theperminator posted:

Ahh right that makes sense, you'd be able to pass the RDM of the whole volume but that just feels wrong to me.

I wonder if he just needs to turn on VT-d in the bios to allow the pass through?

That's the thing, apparently my Z77 motzherboard doesn't have VT-d and I also read that Intel K processors don't support it at all.

wolrah
May 8, 2006
what?

SEKCobra posted:

That's the thing, apparently my Z77 motzherboard doesn't have VT-d and I also read that Intel K processors don't support it at all.

Look up your CPU on Intel's ARK system. It'll tell you what it supports.

You may be right for Sandy/Ivy Bridge, I checked the top K-series processors of those generations and they all seem to lack VT-D while their non-K siblings have it.

My 4790K has VT-D so it's not all K-series though.

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

SEKCobra posted:

That's the thing, apparently my Z77 motzherboard doesn't have VT-d and I also read that Intel K processors don't support it at all.

Ahh right I had the same problem with my Z77 system. You can still pass through the raid volume using the guide I posted though.

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum

SEKCobra posted:

That's the thing, apparently my Z77 motzherboard doesn't have VT-d and I also read that Intel K processors don't support it at all.
So maybe use a different motherboard/processor combo for your virtualization project?

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

anthonypants posted:

So maybe use a different motherboard/processor combo for your virtualization project?

Ah yes, let me just buy new hardware for my hardware repurpose project!

thebigcow
Jan 3, 2001

Bully!
You could just run VMware workstation instead of some cobbled together thing that will implode with the next os update.

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum

SEKCobra posted:

Ah yes, let me just buy new hardware for my hardware repurpose project!
Good, I'm glad you've agreed that it's your hardware's fault and not your virtualization platform.

wolrah
May 8, 2006
what?

SEKCobra posted:

Ah yes, let me just buy new hardware for my hardware repurpose project!

Sometimes the hardware you want to repurpose isn't a good choice for what you want to do with it. VT-D is a requirement for high performance hardware passthrough.

Moey
Oct 22, 2010

I LIKE TO MOVE IT

theperminator posted:

You can pass through the SATA HDD's using RDMs. ESXI by default doesn't support this for SATA devices afaik but it can be done using the commandline which I had to do when I virtualized my nas.
http://www.homecomputerlab.com/vmware-sata-disk-raw-device-mapping-rdm

You can also add a USB controller to the VM and pass through USB devices to the guest.

I have a few disks passed through via RDM to a Windows VM on my whitebox ESXi host at home. Windows sees the disks as regular hard drives and can pull SMART info without any issues.

If I didn't have the ability to pass through an entire controller (in IT mode) to a NAS VM, I would go the RDM route.

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:

anthonypants posted:

Good, I'm glad you've agreed that it's your hardware's fault and not your virtualization platform.

Man you really got me good, me claiming that VMWare is at fault for this not working. OH WAIT.

Internet Explorer
Jun 1, 2005





Man, I'm not going to lie, this multi-day discussion has been really frustrating to read. You lack one or more of the following 3 to achieve what you're trying to do. 1) Software 2) Hardware 3) Knowledge.

I'm not making an argument for any specifics and I'm not trying to insult you. It's just painful to watch you bang your head against the wall.

SEKCobra
Feb 28, 2011

Hi
:saddowns: Don't look at my site :saddowns:
Not sure which software I could be missing since I've tried most of the big hvs, and how was I supposed to know beforehand that this mobo and cpu didnt support a specific feature to do this fairly odd task?
Both Virtualization and/or NASing work fine on their own. I'm sorry if my questions are annoying but I usually only deal with VMs on purpose built machines where you dont have to deal with this silly stuff. I will try the commandline hdd passthrough stuff when I get a chance.

Eletriarnation
Apr 6, 2005

People don't appreciate the substance of things...
objects in space.


Oven Wrangler

SEKCobra posted:

Both Virtualization and/or NASing work fine on their own.

I am very much a novice as far as professional virtualization goes so I might be reaching too far with this statement, but I think the key is that you don't usually have the same device doing both of these in serious enterprise setups - you have your SAN for storage and your compute nodes may have a bit of local storage, but they're not intended to themselves be serving as network storage for other nodes. You can definitely do it with Linux/KVM because you're using a full featured OS with its own optional NAS features available as a hypervisor, but something like Hyper-V or ESXi is fundamentally not meant as an OS for a shared storage device.

theperminator
Sep 16, 2009

by Smythe
Fun Shoe

Moey posted:

I have a few disks passed through via RDM to a Windows VM on my whitebox ESXi host at home. Windows sees the disks as regular hard drives and can pull SMART info without any issues.

If I didn't have the ability to pass through an entire controller (in IT mode) to a NAS VM, I would go the RDM route.

That's cool! I didn't know it passed through SMART info.

SEKCobra posted:

Not sure which software I could be missing since I've tried most of the big hvs, and how was I supposed to know beforehand that this mobo and cpu didnt support a specific feature to do this fairly odd task?
Both Virtualization and/or NASing work fine on their own. I'm sorry if my questions are annoying but I usually only deal with VMs on purpose built machines where you dont have to deal with this silly stuff. I will try the commandline hdd passthrough stuff when I get a chance.

I gave you the answer for ESXI with the exact commands. PCI pass through is not required.

Adbot
ADBOT LOVES YOU

Wibla
Feb 16, 2011

RDM supports SMART huh? I need to look into that. I'm moving shortly and would like to reduce the number of machines I have running, if possible.

My storage server is way overpowered, so I could probably virtualize all the things on it with 12 cores and 144 GB ram, if RDM works reliably or I can pass through the LSI9211 to a VM reliably. Could connect some SSDs to the on board sata controller too.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply