hyper-V freebsd ZFS vm's talk at 1gig?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
So I am tinkering with hyper-v and the thought occurred to me that given how much I enjoy ZFS and things like LZ4 and compression and the like why not setup a datastore using FBSD and serve disks back to hyper-v using ISCSI.

I know it sounds like spaghetti but ...

Has anyone gotten to the BIS (BSD integration services) running on FBSD 10? I see the modules in /boot/kernel but hyper-v shows under networking that it is degraded.

Also, in a perfect world with everything working right, do VMs talk to one another cap'd at a 1G speed as if talking over the internal vm-network? This seems dumb. I guess it makes sense though. Is there a way to create an artificial 100g network?

What are some suggestions around that? Fiber?
 

rubylaser

Active Member
Jan 4, 2013
846
236
43
Michigan, USA
The problem I have seen in Linux (haven't tried BSD) on hyper-v as a fileserver is the lack of truly being able to passthrough a disk to the host OS. Sure, you can pass it through, but things like smartmontools don't work correctly, hdparm always shows the disks being spun down, when they never do, etc. For me to even consider virtualizing a fileserver on hyper-v, it would need to be able to spin down disks and allow smartd to properly warn me, and email, when things go awry.
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
that's an option, and it's what we use at work. Hyper-V is just so cool though. I'll take a look at that.

the Vswitch on hyper-v is a 10gig one, so I am guessing a properly setup vm could connect at something like > 1G but < 10Gig and get better than > 1G speeds, hopefully.
 
Last edited:

lundrog

Member
Jan 23, 2015
75
8
8
44
Minnesota
vroger.com
that's an option, and it's what we use at work. Hyper-V is just so cool though. I'll take a look at that.

the Vswitch on hyper-v is a 10gig one, so I am guessing a properly setup vm could connect at something like > 1G but < 10Gig and get better than > 1G speeds, hopefully.

I could use a little more time with hyperv. Time for some join.me time? If we cant get it working I'll help you setup esxi, and trust me it's way cooler than you think.
 
  • Like
Reactions: b3nz0n8

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
Sweet. Appreciate the help.

The tinkerer in me wants to get the hyper v side going at least. It's the curiosity that's going to kill me if I dont. Since esxi has been around longer I'm sure getting that setup would be easier.
 

lundrog

Member
Jan 23, 2015
75
8
8
44
Minnesota
vroger.com
You want to compare thoughput?

I have esxi hosts but not hyperv. But Ill jump in and help troubleshoot your vm.

I could ask some contacts about throughput on hyperv vm's. What numbers your seeing?
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
Doesn't have to be an apples to apples test. Just curious what kind of speeds I'd get from two vms with vmnext3 nics one being fbsd the other would actually be esxi as I'd be serving disks back to esxi from the bsd zfs setup
 

rubylaser

Active Member
Jan 4, 2013
846
236
43
Michigan, USA
Here is a simple iperf from one linux host to another on my hyper-v box at home. Let me know if you'd like me to run this with more advanced options. As you can see, it can easily exceed gigabit speeds, but doesn't saturate 10GBe.
Code:
root@unifi:~# iperf -c 192.168.172.1
------------------------------------------------------------
Client connecting to 192.168.172.1, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.172.3 port 43427 connected with 192.168.172.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   778 MBytes   653 Mbits/sec
As I said above, I think you are wise to look at ESXi if you want to virtualize a ZFS NAS at this point.