Hello all,
I am just testing how to create a Ubuntu image from scratch through ON. For that, I just have created a template that has 2 disks, one as cd-rom which is the ubuntu iso and disk2 as datablock and where the Ubuntu Os is installed. Also this disk2 is marked as persistent. The installation was ok apparently and after finishing the installation, I just have changed the type of the image where the ubuntu OS was installed from datablock to OS and I use another template to launch the image created, until here, everything is normal (I did not do any snapshot since disk2 is marked as persistent). The issue comes once I instantiate the image created because I get the issue from below. Also, I tried to install setting up disk 2 as OS but I get the same error:
booting from hard disk
boot failed: not a bootable disk
no bootable device
I remember I already had this issue on the past but unfortunately, I don’t remember the solution. I was playing with a lot of the modifications on the VM/image template and trying several installations but I don’ t get a image working so I start to be a bit mad/desperate with this because I don’ t know what I am doing wrong, so please, any advice/help is welcome
These are the templates that I am using:
[oneadmin@opennebula4 ~]$ oneimage show 51
[ ...]
DEV_PREFIX="vd"
DRIVER="qcow2"
TARGET="vda"
TYPE="OS"
[ oneadmin@opennebula4 ~]$ oneimage show 52
[...]
TYPE : CDROM
[oneadmin@opennebula4 ~]$ onetemplate show 28
[ ... ]
CONTEXT=[NETWORK="YES"]
CPU="1"
DISK=[IMAGE="Installation_test_esteban_UbuntuISO", IMAGE_UNAME="oneadmin", READONLY="yes" ]
DISK=[IMAGE="Installation_test_esteban_UbuntuOS", IMAGE_UNAME="oneadmin" ]
FEATURES=[ACPI="yes" ]
GRAPHICS=[LISTEN="0.0.0.0", TYPE="VNC" ]
HYPERVISOR="kvm"
LOGO="images/logos/ubuntu.png"
MEMORY="2048"
NIC=[NETWORK="oort_int_network", NETWORK_UNAME="oneadmin" ]
OS=[ARCH="x86_64",BOOT="cdrom,hd" ]
SUNSTONE_CAPACITY_SELECT="YES"
SUNSTONE_NETWORK_SELECT="YES"
oneadmin@opennebula4 ~]$ onetemplate show 29
[ ... ]
CONTEXT=[NETWORK="YES"]
CPU="1"
DISK=[BUS="virtio",CACHE="none",DRIVER="qcow2",IMAGE="Installation_test_esteban_UbuntuOS",IMAGE_UNAME="oneadmin",TYPE="OS" ]
DISK=[BUS="virtio",CACHE="none",SIZE="2148",TARGET="hdb",TYPE="swap" ]
FEATURES=[ACPI="yes" ]
GRAPHICS=[LISTEN="0.0.0.0",TYPE="VNC" ]
LOGO="images/logos/ubuntu.png"
MEMORY="2048"
NIC=[NETWORK="oort_int_network",NETWORK_UNAME="oneadmin" ]
OS=[ARCH="x86_64",ROOT="hda1" ]
RAW=[DATA="<cpu mode='host-passthrough'/>",TYPE="kvm" ]