VM won't start, 11.2 BETA 2

Status
Not open for further replies.

kc9hta

Cadet
Joined
Aug 4, 2018
Messages
4
I created a VM, but it won't start. Here's the error I received:

Environment:

Software Version: FreeNAS-11.2-BETA2 (f14b2ed0e)
Request Method: POST
Request URL: http://192.168.1.5/legacy/vm/start/3/


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
163. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/vm/views.py" in start
86. c.call('vm.start', id)
File "./freenasUI/vm/views.py" in start
86. c.call('vm.start', id)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
437. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /legacy/vm/start/3/
Exception Value: [EFAULT] VM test failed to start: vm_create: Device not configured
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Is this a new install or upgrade, what are your hardware specs? What is the guest OS? Try changing to virtio for the VM NIC device.
 

kc9hta

Cadet
Joined
Aug 4, 2018
Messages
4
This was a upgrade from 11.2 beta 1. Guest OS is Lubuntu 18.04 64 bit and hardware specs are:

AMD Ryzen 7 1700 Eight-Core Processor

16291MB
Raid 1

I tried changing the network type to VirtIO but received the same error.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Have you had VMs running under FreeNAS before on your hardware using any previous version. e.g FreeNAS 11.1-U5? Are you sure your system fully supports bhyve?

Can you try to start the VM again to see what is logged by the middlewared daemon. Just use the tail command at the CLI - tail -f /var/log/midddlewared.log
 

kc9hta

Cadet
Joined
Aug 4, 2018
Messages
4
[2018/08/04 14:26:03] (INFO) VMService.__set_guest_vmemory():829 - ===> Setting ARC FROM: 15568801792 TO: 13421318144
[2018/08/04 14:26:03] (DEBUG) VMService.run():161 - ====> NIC_ATTACH: re0
[2018/08/04 14:26:03] (DEBUG) VMService.run():237 - Starting bhyve: bhyve -A -H -w -c 2 -m 2048 -s 0:0,hostbridge -s 31,lpc -l com1,/dev/nmdm4A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3,virtio-net,tap0,mac=00:a0:98:25:cb:f0 -s 29,fbuf,vncserver,tcp=0.0.0.0:5904,w=1024,h=768,password=test, -s 30,xhci,tablet -s 4,ahci-cd,/mnt/RAID/ftp-root/nathan/lubuntu-18.04-desktop-amd64.iso -s 5,ahci-hd,/dev/zvol/RAID/VM/Lubuntu-qexsv4 4_nwr
[2018/08/04 14:26:03] (DEBUG) VMService.run():250 - ==> Start WEBVNC at port 5804 with pid number 33367
[2018/08/04 14:26:03] (DEBUG) VMService.run():259 - nwr: vm_create: Device not configured
[2018/08/04 14:26:03] (INFO) VMService.run():284 - ===> Error VM: nwr ID: 4 BHYVE_CODE: 4
[2018/08/04 14:26:03] (DEBUG) VMService.__teardown_guest_vmemory():308 - ===> Give back guest memory to ARC.: 2147483648
[2018/08/04 14:26:03] (WARNING) VMService.destroy_vm():291 - ===> Destroying VM: nwr ID: 4 BHYVE_CODE: 4
[2018/08/04 14:26:03] (DEBUG) VMService.kill_bhyve_web():377 - ==> Killing WEBVNC: 33367
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
OK, try changing the "disk device" from ahci to virtio mode. But you didn't answer my questions about VM's running on your system in the past.
 

kc9hta

Cadet
Joined
Aug 4, 2018
Messages
4
My apologies, this is a new system and a first for me attempting to run VMs. I tried toggling to disk device to virtio mode and it failed again.
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
My apologies, this is a new system and a first for me attempting to run VMs. I tried toggling to disk device to virtio mode and it failed again.

So the suspicion is your system may either not be configure correctly for virtualisation ( set in BIOS etc) or it doesn't support virtualisation, or the ryzen hardware is not well supported in FreeNAS/bhyve. There is a check in the FreeNAS guide -
https://www.ixsystems.com/documentation/freenas/11.2/virtualmachines.html - and look for posts from folk with lastest ryzen kit on the forum to see what is being said about FreeNAs/bhyve suport and stability.
 
Status
Not open for further replies.
Top