[SOLVED] Failure on VM installed from ISO


(Brian Johnston) #1

Hello,
I am new to OpenNebula and trying to install Operating Systems (Ubuntu 18.04 and Windows 7/10) from ISO onto a raw disk image and getting the same error regardless of which ISO I use. For this example of the error I am using an Ubuntu 18.04 Network boot ISO (mini.iso from Ubuntu).

Log of the install:

Sun Feb 3 05:35:41 2019 [Z0][VM][I]: New state is ACTIVE
Sun Feb 3 05:35:41 2019 [Z0][VM][I]: New LCM state is PROLOG
Sun Feb 3 05:38:24 2019 [Z0][VM][I]: New LCM state is BOOT
Sun Feb 3 05:38:24 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/3/deployment.0
Sun Feb 3 05:38:25 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Sun Feb 3 05:38:26 2019 [Z0][VMM][I]: ExitCode: 0
Sun Feb 3 05:38:26 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sun Feb 3 05:38:27 2019 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/3/deployment.0’ ‘localhost’ 3 localhost
Sun Feb 3 05:38:27 2019 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/3/deployment.0
Sun Feb 3 05:38:27 2019 [Z0][VMM][I]: error: unsupported configuration: target must be 0 for controller model ‘lsilogic’
Sun Feb 3 05:38:27 2019 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/3/deployment.0
Sun Feb 3 05:38:27 2019 [Z0][VMM][I]: ExitCode: 255
Sun Feb 3 05:38:27 2019 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Sun Feb 3 05:38:27 2019 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/3/deployment.0
Sun Feb 3 05:38:27 2019 [Z0][VM][I]: New LCM state is BOOT_FAILURE

Template used:

AUTOMATIC_DS_REQUIREMENTS = “(“CLUSTERS/ID” @> 0)”
AUTOMATIC_REQUIREMENTS = “(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES)”
CONTEXT = [
DISK_ID = “2”,
ETH0_CONTEXT_FORCE_IPV4 = “”,
ETH0_DNS = “172.17.10.25”,
ETH0_GATEWAY = “172.17.11.1”,
ETH0_GATEWAY6 = “”,
ETH0_IP = “172.17.11.13”,
ETH0_IP6 = “”,
ETH0_IP6_PREFIX_LENGTH = “”,
ETH0_IP6_ULA = “”,
ETH0_MAC = “02:00:ac:11:0b:0d”,
ETH0_MASK = “255.255.255.0”,
ETH0_MTU = “”,
ETH0_NETWORK = “172.17.11.0”,
ETH0_SEARCH_DOMAIN = “”,
ETH0_VLAN_ID = “”,
ETH0_VROUTER_IP = “”,
ETH0_VROUTER_IP6 = “”,
ETH0_VROUTER_MANAGEMENT = “”,
NETWORK = “YES”,
SSH_PUBLIC_KEY = “*”,
TARGET = “hda” ]
CPU = “1”
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “NO”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “default”,
DATASTORE_ID = “1”,
DEV_PREFIX = “sd”,
DISK_ID = “0”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “raw”,
IMAGE = “Ubuntu 18.04 ISO - SCSI - raw”,
IMAGE_ID = “1”,
IMAGE_STATE = “2”,
IMAGE_UNAME = “oneadmin”,
LN_TARGET = “SYSTEM”,
ORDER = “1”,
ORIGINAL_SIZE = “65”,
READONLY = “YES”,
SAVE = “NO”,
SIZE = “65”,
SOURCE = “/var/lib/one//datastores/1/b0e2fc65f226a023f1c2f4f056d226df”,
TARGET = “sda”,
TM_MAD = “ssh”,
TYPE = “CDROM” ]
DISK = [
ALLOW_ORPHANS = “NO”,
CLONE = “YES”,
CLONE_TARGET = “SYSTEM”,
CLUSTER_ID = “0”,
DATASTORE = “default”,
DATASTORE_ID = “1”,
DEV_PREFIX = “sd”,
DISK_ID = “1”,
DISK_SNAPSHOT_TOTAL_SIZE = “0”,
DISK_TYPE = “FILE”,
DRIVER = “raw”,
IMAGE = “HD Test 01 - SCSI - raw - 16gb”,
IMAGE_ID = “2”,
IMAGE_STATE = “2”,
IMAGE_UNAME = “oneadmin”,
LN_TARGET = “SYSTEM”,
ORDER = “2”,
ORIGINAL_SIZE = “16384”,
READONLY = “NO”,
SAVE = “NO”,
SIZE = “16384”,
SOURCE = “/var/lib/one//datastores/1/fd26139f65b3f1af9baa809c901c6045”,
TARGET = “sdb”,
TM_MAD = “ssh”,
TYPE = “FILE” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
PORT = “5903”,
TYPE = “VNC” ]
MEMORY = “8192”
NIC = [
AR_ID = “0”,
BRIDGE = “bridge01”,
CLUSTER_ID = “0”,
IP = “172.17.11.13”,
MAC = “02:00:ac:11:0b:0d”,
NETWORK = “default”,
NETWORK_ID = “0”,
NIC_ID = “0”,
ORDER = “3”,
PHYDEV = “eth1”,
SECURITY_GROUPS = “0”,
TARGET = “one-3-0”,
VN_MAD = “bridge” ]
OS = [
ARCH = “x86_64”,
BOOT = “disk0,disk1,nic0” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “OUTBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
SECURITY_GROUP_RULE = [
PROTOCOL = “ALL”,
RULE_TYPE = “INBOUND”,
SECURITY_GROUP_ID = “0”,
SECURITY_GROUP_NAME = “default” ]
TEMPLATE_ID = “1”
VCPU = “1”
VMID = “3”

If any other information is helpful please let me know and I will attempt to provide it.


(Brian Johnston) #2

Hello,
This turns out to be an issue with using SCSI vs IDE for the bus type. As soon as I started using IDE for the CDROM bus type the error went away. If you want or need more information let me know I’ll provide what I can.

Thanks,
Brian