DEPLOY: error: Failed to create domain

Hello, I am new to OpenNebula and an unexperienced Linux user.

I have a problem deploying a VM starting from a VM template created in Sunstone. I keep having this error: DEPLOY: error: Failed to create domain from /var/lib/one//datastores/0/20/deployment.0

The log also shows:

unsupported configuration: disk type of ‘vda’ does not support ejectable media. Could not create domain from /var/lib/one//datastores/0/20/deployment.0

This is my current VM template (shown in Sunstone):

{
  "CONTEXT": {
    "NETWORK": "YES",
    "SSH_PUBLIC_KEY": "$USER[SSH_PUBLIC_KEY]"
  },
  "CPU": "1",
  "DISK": [
    {
      "IMAGE": "Ubuntu-24.04.3-server",
      "IMAGE_ID": "0",
      "IMAGE_UNAME": "oneadmin"
    },
    {
      "FORMAT": "qcow2",
      "SIZE": "1024",
      "TYPE": "fs"
    }
  ],
  "GRAPHICS": {
    "LISTEN": "0.0.0.0",
    "TYPE": "VNC"
  },
  "HYPERVISOR": "kvm",
  "MEMORY": "4096",
  "NIC": {
    "NETWORK_MODE": "auto"
  },
  "SCHED_DS_REQUIREMENTS": "ID=\"0\"",
  "SCHED_REQUIREMENTS": "HYPERVISOR=kvm"
}

What can be wrong? Please help.

It looks like you are trying to set up an ISO as a virtio disk. When importing the ubuntu server image to the datastore, make sure you mark it as a CDROM image instead of an OS or datablock image. See more at Images |

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.