VM - RAW file type broken/unable to run VM

Description

After upgrading to SCALE i cannot boot anymore from RAW files.

If I add a new device with type "RAW" i can select the file and i can save the settings:

After saving the changes the RAW-Device shows up:

But if I want to edit the created RAW-Device it shows the following:

It seems something is broken there.

If I try to start the VM the following error shows up:

Fehler: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 166, in start
if self.domain.create() < 0:
File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2022-01-01T14:17:55.813481Z qemu-system-x86_64: -blockdev {"driver":"host_device","filename":"/mnt/VM_DATA3/FFKA_NODES/FFKA_NODE08.img","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}: 'host_device' driver expects either a character or block device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 160, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1281, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1269, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1137, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_lifecycle.py", line 42, in start
await self.middleware.run_in_thread(self._start, vm['name'])
File "/usr/lib/python3/dist-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 62, in _start
self.vms[vm_name].start(vm_data=self._vm_from_name(vm_name))
File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 175, in start
raise CallError('\n'.join(errors))
middlewared.service_exception.CallError: [EFAULT] internal error: qemu unexpectedly closed the monitor: 2022-01-01T14:17:55.813481Z qemu-system-x86_64: -blockdev {"driver":"host_device","filename":"/mnt/VM_DATA3/FFKA_NODES/FFKA_NODE08.img","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"}: 'host_device' driver expects either a character or block device

The Logfile shows the following errors at boot:

/usr/sbin/bhyve -c cpus=1,sockets=1,cores=1,threads=1 -m 256 -A -w -H -s 0:0,hostbridge -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd -s 31,lpc -s 4:0,virtio-net,tap20,mac=00:a0:98:0d:97:ba -s 5:0,virtio-net,tap21,mac=00:a0:98:37:eb:49 -s 3:0,virtio-blk,/mnt/VM_DATA3/FFKA_NODES/FFKA_NODE08.img -l com1,/dev/nmdm57A 57_FKKA_NODE08
wrmsr to register 0xc0011029(0x3) on vcpu 0
rdmsr to register 0xc00000e9 on vcpu 0
Unhandled ps2 mouse command 0xe1
Unhandled ps2 keyboard command 0xf6

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk January 19, 2022 at 11:30 AM

Michael Kirgus January 4, 2022 at 11:32 PM

I am now able to boot from zvol, but the RAW-File still doesn't work and shows the "CallError".

iX-Tony January 4, 2022 at 2:26 PM

Thanks for your submission! This is in our queue to review now. An engineering representative will update with any further questions or details in the near future.

Michael Kirgus January 1, 2022 at 3:11 PM

Attached Debug

Michael Kirgus January 1, 2022 at 2:53 PM

I tried to write the RAW file with dd to a new created zvol, but it does not boot:

Any other suggestions?

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Low

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created January 1, 2022 at 2:27 PM
Updated July 1, 2022 at 5:55 PM
Resolved January 20, 2022 at 7:42 AM