I am having a issue setting up a ubuntu host from scratch. I have been following:
Basically I can get it to boot from the CD and I start to do the install… but during the unbuntu install it gets to a point and says that I dont have a hard disk to install to.
So I tried to simply add another disk that was a datablock, and my config looks like this:
CONTEXT=[NETWORK=“YES”,SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]
CPU="1"
DISK=[IMAGE=“cd-ubuntu-12_04”,IMAGE_UNAME=“oneadmin”]
DISK=[IMAGE=“Blank Disk for Ubuntu”,IMAGE_UNAME=“oneadmin”]
GRAPHICS=[LISTEN=“0.0.0.0”,TYPE=“VNC”]
MEMORY=“1024”
However now it says no bootable device.
Sorry guys, I know this must be simple, but I have been beating my head for a day!
This sounds like you took it straight from the example, but the image was never created.
Could you login to you master server as “oneadmin” and paste the output of the command “oneimage list” ?
If the image was created before, as a datablock, make sure you change the image type from “datablock” to “OS”.
edit) if the ubuntu installer fails (cant find disk), use ctrl+alt+f2 to get a console and see if you can find a device like /dev/hda, /dev/sda, or /dev/vda. Check also “cat /proc/partitions” to find the available filesystems. If you find none, look at the image or template settings.
Here is the output. I will also look at some of your other suggestions.
ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
0 oneadmin oneadmin CentOS-6.5_x86_ default 267M OS No used 1
4 oneadmin oneadmin cd-ubuntu-12_04 default 670M CD No used 1
5 oneadmin oneadmin Ubuntu_12_04 default 10G OS Yes rdy 0
6 oneadmin oneadmin Blank Disk for default 10G DB No used 1
ok, the image seems to exist, but the flag is: DB (as in datablock) which means the image cannot be booted of. Edit the image so it says OS instead of DB and you should be able to see it in the installer and boot from it after installation.
Thanks Roland,
I think I need to do some more reading because its not working as I would expect. It seems that as soon as I add the second disk I cant book to he CDROM? (With just the CD OS I can boot and start installing, but of course I get to a point in the install where it has no disk to install the OS to.
Am I correct to assume that I need 2 images to build a ubuntu template?
One for the CD
Once for the disk to install the OS to?
I did as you requested and changed the image from DB to OS but still cant boot.
oneadmin@opennebula01:~$ oneimage list
ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
0 oneadmin oneadmin CentOS-6.5_x86_ default 267M OS No used 1
4 oneadmin oneadmin cd-ubuntu-12_04 default 670M CD No used 1
5 oneadmin oneadmin Ubuntu_12_04 default 10G OS Yes rdy 0
6 oneadmin oneadmin Blank Disk for default 10G OS Yes used 1
oneadmin@opennebula01:~$
yes, for the installation part you will need the iso and a virtual disk. After the installation, the iso can be removed from the template. When you add the disk you also need to set the bootsequence in the template.
My templates have this set:
OS=[ARCH=“x86_64”,BOOT=“cdrom,hd”]
So it boots from the iso.
You can also set this via the web interface when you edit the template, under “OS booting”.