Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Failed to create Virtual Machine

Description

I am trying to create a Windows VM, but I am unable to do it. The system returns [EFAULT] Unable to retrieve VM status. Failed to destroy VM

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1238, in do_create
await self.safe_devices_updates(devices)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1282, in safe_devices_updates
raise e
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1268, in safe_devices_updates
await self.middleware.call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 2012, in update_device
new_zvol = (await self.middleware.call('pool.dataset.create', ds_options))['id']
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 455, in create
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 2933, in do_create
raise verrors
middlewared.service_exception.ValidationErrors: [EINVAL] pool_dataset_create.volsize: It is not recommended to use more than 80% of your available space for VOLUME

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 455, in create
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1240, in do_create
await self.middleware.call('vm.delete', vm_id)
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 471, in delete
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1478, in do_delete
raise CallError('Unable to retrieve VM status. Failed to destroy VM')
middlewared.service_exception.CallError: [EFAULT] Unable to retrieve VM status. Failed to destroy VM

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

William Gryzbowski January 21, 2021 at 1:31 PM

What is there to fix?

Anson Lee January 14, 2021 at 2:24 PM

I figured out the reason. When I want to create a virtual disk image for the VM, but it exceeds 80% of the pool, it will fail. Hope this bug will be fixed ASAP!

Need additional information
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

High

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created January 14, 2021 at 1:45 PM
Updated July 1, 2022 at 4:58 PM
Resolved February 9, 2021 at 2:28 PM