Windows VM Create Issue

Please, describe the problem here and provide additional information below (if applicable) …
When Create VM image in Windows it shows like:
DEPLOY: error: Failed to create domain from /var/lib/one//datastores/0/67/deployment.0 error: unsupported configuration: target must be 0 for sata controller Could not create domain from /var/lib/one//datastores/0/67/deployment.0 ExitCode: 255

Versions of the related components and OS (frontend, hypervisors, VMs):
OS: Ubuntu 22.04
Hypervisors: Opennebula 6.6.3
VM: Windows Server 2022

Steps to reproduce:
Everything done correctly as per documentation:

Template:
CONTEXT = [
NETWORK = “YES”,
SSH_PUBLIC_KEY = “$USER[SSH_PUBLIC_KEY]” ]
CPU = “4”
DISK = [
IMAGE = “Windows 2022 ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “Virtio Windows Drivers ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “ONE Windows Context ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
DEV_PREFIX = “vd”,
IMAGE = “Windows 2022”,
IMAGE_UNAME = “oneadmin”,
TARGET = “0” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
TYPE = “VNC” ]
HOT_RESIZE = [
CPU_HOT_ADD_ENABLED = “NO”,
MEMORY_HOT_ADD_ENABLED = “NO” ]
INPUT = [
BUS = “usb”,
TYPE = “tablet” ]
MEMORY = “16384”
MEMORY_RESIZE_MODE = “BALLOONING”
MEMORY_UNIT_COST = “MB”
NIC = [
NETWORK = “Ajax-ExternalNEW”,
NETWORK_UNAME = “oneadmin”,
SECURITY_GROUPS = “0” ]
NIC_DEFAULT = [
MODEL = “virtio” ]
OS = [
BOOT = “disk0”,
FIRMWARE = “”,
FIRMWARE_SECURE = “YES”,
SD_DISK_BUS = “sata” ]
VCPU = “4”
Current results:
Error Mentioned Below
Expected results:

Remove the TARGET parameter from this section

Remove the SD_DISK_BUS parameter from this section

Try again.

Note that this is the reference template mentioned in that Knowledge Base article

MEMORY = "16384"
MEMORY_UNIT_COST = "MB"
CPU = "4"
VCPU = "4"

DISK = [
  IMAGE = "Windows 10 ISO",
  IMAGE_UNAME = "oneadmin" ]
DISK = [
  IMAGE = "Virtio Windows Drivers ISO",
  IMAGE_UNAME = "oneadmin" ]
DISK = [
  IMAGE = "ONE Windows Context ISO",
  IMAGE_UNAME = "oneadmin" ]
DISK = [
  DEV_PREFIX = "vd",
  IMAGE = "Windows 10",
  IMAGE_UNAME = "oneadmin" ]

NIC = [
  NETWORK = "vnet",
  NETWORK_UNAME = "oneadmin",
  SECURITY_GROUPS = "0" ]
NIC_DEFAULT = [
  MODEL = "virtio" ]

GRAPHICS = [
  LISTEN = "0.0.0.0",
  TYPE = "VNC" ]

INPUT = [
  BUS = "usb",
  TYPE = "tablet" ]

OS = [
  BOOT = "disk0" ]

Hi,
With this template:
CONTEXT = [
NETWORK = “YES”,
SSH_PUBLIC_KEY = “$USER[SSH_PUBLIC_KEY]” ]
CPU = “4”
DISK = [
IMAGE = “Windows 2022 ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “Virtio Windows Drivers ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
IMAGE = “ONE Windows Context ISO”,
IMAGE_UNAME = “oneadmin” ]
DISK = [
DEV_PREFIX = “vd”,
IMAGE = “Windows 2022”,
IMAGE_UNAME = “oneadmin” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
TYPE = “VNC” ]
HOT_RESIZE = [
CPU_HOT_ADD_ENABLED = “NO”,
MEMORY_HOT_ADD_ENABLED = “NO” ]
INPUT = [
BUS = “usb”,
TYPE = “tablet” ]
MEMORY = “8192”
MEMORY_RESIZE_MODE = “BALLOONING”
MEMORY_UNIT_COST = “MB”
NIC_DEFAULT = [
MODEL = “virtio” ]
OS = [
BOOT = “disk0” ]
VCPU = “4”

I got this error when installing OS:

Did you install the VirtIO drivers from the ISO prior to installing Windows on the Virtio BUS disk ?

Hi,
For that thing only i attach SATA for SDA bus driver and install also VirtIO.


But after that only i mentioned above error.

The problem is that your Operating System is not able to handle the virtual hardware that is being presented to it. You need to make sure the proper drivers are installed or use an emulated device which the OS can handle by default.