FreeNAS 11 VMs?

Status
Not open for further replies.

Chris230291

Patron
Joined
Mar 21, 2012
Messages
300
So I created a VM yesterday. I added a CDrom and an ISO. I clicked start and it says running. However whenever I try to connect to the VNC my clients always say the host refused connection. Is there anything special I need to do? I see a lot of Coral guides, but I don't see most options in 11.

Now does "running" actually mean it's working? I remember when VirtualBox got removed I ran the check to see if my PC was capable of running the new system and it said it was not. Which is strange because Intels own sight seems to think my CPU should be(i7 860s) (virtualization is enabled in BIOS).

Any ideas?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
So I created a VM yesterday. I added a CDrom and an ISO. I clicked start and it says running. However whenever I try to connect to the VNC my clients always say the host refused connection. Is there anything special I need to do? I see a lot of Coral guides, but I don't see most options in 11.

Now does "running" actually mean it's working? I remember when VirtualBox got removed I ran the check to see if my PC was capable of running the new system and it said it was not. Which is strange because Intels own sight seems to think my CPU should be(i7 860s) (virtualization is enabled in BIOS).

Any ideas?
That is basically all you have to do. Maybe add a zvol so you can actually install the os?

Sent from my Nexus 5X using Tapatalk
 

Chris230291

Patron
Joined
Mar 21, 2012
Messages
300
Ye something seems wrong. I cant connect and after several attempts the VM turns to "stopped". If I keep trying the server GUI is no longer accessible, but the server is still running. I have to ssh and restart to get the GUI back.

Any way to check my system is even capable of running it? I would assume that the "running" status suggests it is, but who knows?

Chris
 

Brer

Explorer
Joined
Mar 2, 2017
Messages
63
How much mem did you assign? First time I created one in 11 I mistakenly set 2 instead of 2000 thinking it was in Gb and observed similar issues, Running but connection refused and eventually Stopped.
 

asc72

Dabbler
Joined
Mar 19, 2017
Messages
13
As Brer mentioned, make sure you are putting in MB instead GB. I got burned on that one as well. Also, try using tightvnc. Real VNC only connects when I first start my VM, but won't allow me to connect after.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Hardware specs

Sent from my Nexus 5X using Tapatalk
 

Axemann

Dabbler
Joined
Jun 6, 2015
Messages
21
Hate to be a "me too"-er, but I'm have the same issue. I'm running 11-RC in a VMware VM, though, so all bets are off on what my root issue is.

I've assigned 4 vCPUs to the FreeNAS VM, enabled hardware virtualization pass through to it, and given it 12GB of RAM. Physical CPUs are E5620s.

I tried assigning 2 CPUs and 2048MB of RAM to the VM in FreeNAS, but always get the same result as OP. Looking at /var/log/messages, it appears that bhyve is core dumping as soon as I try to connect to the VM with any flavor of VNC.


Sent from my iPad using Tapatalk
 

Brer

Explorer
Joined
Mar 2, 2017
Messages
63
Try running from the command line as follows, replace any variables with your own.

Code:
bhyve -A -P -H -c 1 -m 2 \
	-s 0:0,hostbridge \
	-s 31,lpc \
	-l com1,/dev/nmdm1A \
	-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
	-s 3,virtio-net,tap0 \
	-s 29,fbuf,tcp=0.0.0.0:5902,w=1024,h=768,wait \
	-s 30,xhci,tablet \
	-s 4,ahci-hd,/dev/zvol/drive/vm/ubuntu/os Ubuntu


Obviously change tap0 to whatever yours is, usually tap0 but if you already have one then tap1. Replace drive/vm/ubuntu/os with the full path to your Dataset containing you Disk. Make sure your VNC Port is not in use, I have 5902, since I had Arch already running on 5902 I had to choose 5903 otherwise it failed.
 

Chris230291

Patron
Joined
Mar 21, 2012
Messages
300
My PC specs are an i7 860s with 16GB of RAM

What I assign to the VM is 1 CPU and 4000 MB of RAM
 

Osiris

Contributor
Joined
Aug 15, 2013
Messages
148
I have exactly the same issue but found out that after a few tries, the vnc server seems to die.
A reboot of the FreeNAS host 'resolves' the issue.
 

Brer

Explorer
Joined
Mar 2, 2017
Messages
63
I have exactly the same issue but found out that after a few tries, the vnc server seems to die.
A reboot of the FreeNAS host 'resolves' the issue.

I have had no issue of this kind, though I'm running an non-graphical arch Linux install.

I've been running Deluge, Deluge-web, OpenVPN (PIA flavour) and Plex Media Server in that 1 VM with 4 CPU's (Not really needed, I found 2 works for me just as well) and 2Gb RAM, this is the same setup with either Grub Boot loader from using Corral or UEFI using RC11. I don't think the host is the problem, maybe you are using too many resources in your VM.
 
Status
Not open for further replies.
Top