Hi,<br><br>I have tried the template, but no luck. I think there are some issues on emulating iso image on cdrom device. Have any one tried Open Nebula on Fedora 12 x86_64? I have installed OpenNebula from source as the site doesn't have an rpm for 64 bit Fedora.<br>
<br>Here are my observations.<br><br>1. If I put "sda" and "sdb" in the template file, the qemu boot screen is showing ONLY the CROM device and Says "Boot failed, could not read the boot disk" <br>
<br>2. If I move back to "hda" and "hdb" then I could see three devices, ata0 master (2G qcow2 image), ata0 slave (676M, the iso image) and ata1 master as QEMU CDROM with the same error message - "Boot failed, could not read the boot disk" <br>
<br>3. In my system /usr/bin/kvm is a symlink of /usr/bin/qemu-kvm (fedora system has only qemu-kvm). I could see OpenNebula is trying to execute the following command in the node.<br><br>/usr/bin/kvm -S -M pc-0.11 -m 1024 -smp 1 -name one-23 -uuid 52f1f43c-5f4f-0a60-9037-e2f9e6ad668f -monitor unix:/var/lib/libvirt/qemu/one-23.monitor,server,nowait -boot d -drive file=/srv/cloud/images/23/images/disk.0,if=ide,index=0 -drive file=/srv/cloud/images/23/images/disk.1,if=ide,index=1 -net nic,macaddr=00:03:ac:10:21:5b,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial none -parallel none -usb -usbdevice tablet -vnc <a href="http://0.0.0.0:38">0.0.0.0:38</a> -vga cirrus<br>
<br>4. Here is my new template<br><br>NAME = solaris10<br>CPU = 2<br>MEMORY = 1024<br><br># Disks & NICS<br><br>OS = [ boot="cdrom" ]<br><br>#adds a empty disk or installed disk<br>DISK = [ clone=no, type="disk", source="/srv/cloud/images/imgs/sol.qcow2", target="hda"]<br>
DISK = [ clone=no, type="cdrom", source="/srv/cloud/images/isos/osol-0906-x86.iso", target="hdb"]<br><br>NIC = [ NETWORK="Pcloud Network01"]<br><br>#listen = "0.0.0.0" will listen on any ip<br>
GRAPHICS = [ type = "vnc", listen = "0.0.0.0", port = "5938"]<br>INPUT = [ type = "tablet" ]<br><br><br>Viji<br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 10:04 AM, Rangababu Chakravarthula <span dir="ltr"><<a href="mailto:rbabu@hexagrid.com">rbabu@hexagrid.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Viji<br>
<br>
We use the following template and it works fine. Hope it helps.<br>
<br>
NAME = XYZ<br>
MEMORY= 1024<br>
VCPU = 2<br>
<br>
# Disks & NICS<br>
OS = [ boot = "cdrom" ]<br>
<br>
#adds a empty disk or installed disk<br>
DISK = [ clone=no, type="disk", source="path_to_qcow_diskfile", target="hda"]<br>
DISK = [ clone=no, type="cdrom", source="path_to_iso", target="hdb"]<br>
<br>
NIC = [ MAC="00:b2:42:99:70:b8", BRIDGE = "br101" ]<br>
NIC = [ MAC="00:b2:42:99:70:b5", BRIDGE = "virbr0" ]<br>
<br>
#listen = "0.0.0.0" will listen on any ip<br>
GRAPHICS = [ type = "vnc", listen = "0.0.0.0", port = "5938"]<br>
INPUT = [ type = "tablet" ]<br>
<br>
Ranga<br>
<br>
Viji V Nair wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi,<br>
<br>
I have done the changes, still it is not working.<br>
<br>
Pls have a look at the attached screen shot.<br>
<br>
This is the new template file<br>
<br>
# cat solaris10.one<br>
NAME = solaris10<br>
CPU = 0.2<br>
MEMORY = 1280<br>
<br>
OS = [ boot = "cdrom" ]<br>
<br>
DISK = [<br>
source = "/srv/cloud/images/imgs/sol.img",<br>
target = "hda",<br>
save = "yes",<br>
clone = "no" ]<br>
<br>
DISK = [<br>
source = "/srv/cloud/images/isos/osol-0906-x86.iso",<br>
type = "cdrom",<br>
target = "hdb",<br>
clone = "no" ]<br>
<br>
NIC = [ NETWORK="Pcloud Network01"]<br>
<br></div>
GRAPHICS = [ type = "vnc", listen = "<a href="http://node02.pcloud.com" target="_blank">node02.pcloud.com</a> <<a href="http://node02.pcloud.com" target="_blank">http://node02.pcloud.com</a>>", port = "5902"]<br>
<br>
REQUIREMENTS = "HOSTNAME = \"node02*\""<br>
<br>
Viji<div class="im"><br>
<br>
<br>
On Fri, Jan 22, 2010 at 10:13 PM, Ruben S. Montero <<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a> <mailto:<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a>>> wrote:<br>
<br>
Hi,<br>
<br>
Try this in your template<br>
<br>
OS = [ boot = "cdrom" ]<br>
<br>
<br>
Cheers!<br>
<br>
Ruben<br>
<br>
On Fri, Jan 22, 2010 at 5:26 PM, Viji V Nair<br></div><div><div></div><div class="h5">
<<a href="mailto:viji@fedoraproject.org" target="_blank">viji@fedoraproject.org</a> <mailto:<a href="mailto:viji@fedoraproject.org" target="_blank">viji@fedoraproject.org</a>>> wrote:<br>
> Hi Ruben,<br>
><br>
> Thank you so much for your response<br>
><br>
> I have followed the steps and there are some issues. When I try<br>
to do a<br>
> "onevm create solaris10.one", both the images (sol.img and<br>
> osol-0906-x86.iso) are being copied to the shared storage as<br>
> /srv/cloud/images/<vmid>/disk.0 and<br>
/srv/cloud/images/<vmid>/disk.1. Then<br>
> the it tries to boot from the hard drive, I mean disk.0<br>
(sol.img, hda). From<br>
> the VNC console I could see<br>
><br>
> 1. disk.0 is detected as ata0 - 2G in size (this is the<br>
image, sol.img,<br>
> created using dd)<br>
> 2. disk.1 is detected as ata1 - 677M (this is the iso image)<br>
> 3. a cdrom device<br>
><br>
> VNC is showing the boot error, tried to select F12 and selected<br>
cdrom, but<br>
> no luck.<br>
><br>
><br>
> # cat solaris10.one<br>
> NAME = solaris10<br>
> CPU = 0.2<br>
> MEMORY = 1280<br>
><br>
> DISK = [<br>
> source = "/srv/cloud/images/imgs/sol.img",<br>
> target = "hda",<br>
> save = "yes",<br>
> clone = "no" ]<br>
><br>
> DISK = [<br>
> source = "/srv/cloud/images/isos/osol-0906-x86.iso",<br>
> type = "cdrom",<br>
> target = "hdb",<br>
> clone = "no" ]<br>
><br>
> NIC = [ NETWORK="Pcloud Network01"]<br>
><br>
> GRAPHICS = [ type = "vnc", listen = "<a href="http://node01.pcloud.com" target="_blank">node01.pcloud.com</a><br></div></div>
<<a href="http://node01.pcloud.com" target="_blank">http://node01.pcloud.com</a>>", port = "5902"]<div class="im"><br>
><br>
> REQUIREMENTS = "HOSTNAME = \"node01*\""<br>
><br>
><br>
> Thanks & Regards<br>
><br>
> Viji<br>
><br>
> On Fri, Jan 22, 2010 at 4:44 AM, Ruben S. Montero<br></div>
<<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a> <mailto:<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a>>><div><div></div><div class="h5"><br>
> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> The procedure should be as follows, create a template that<br>
contains :<br>
>><br>
>> 1- Define your main disk as usual, and tell OpenNebula to keep<br>
the changes<br>
>> DISK = [<br>
>> source = "/srv/cloud/images/master/fedora_disk.img",<br>
>> target = "hda",<br>
>> save = "yes"<br>
>> clone = "no" ]<br>
>> (this assumes that you have a plain file for fedora_disk.img (e.g.<br>
>> with a dd). You can also use separate partitions for swap and<br>
the OS<br>
>> installation...<br>
>><br>
>> 2- Define an additional DISK for the ISO image with the<br>
installation CD<br>
>> DISK = [<br>
>> source = "/srv/cloud/images/isos/fedora_12.iso",<br>
>> type = "cdrom",<br>
>> target = "hdb",<br>
>> clone = "no" ]<br>
>><br>
>> 3.- Add a VNC console so you can interact with the installer.<br>
And tell<br>
>> to listen in a cluster node hostname, by adding to the template:<br>
>> GRAPHICS = [ type = "vnc", listen = "a_cluster_node_hostname",<br>
port =<br>
>> "5902"]<br>
>><br>
>> 4.- Tell OpenNebula to place the VM in that clusternode, by<br>
adding to<br>
>> the template:<br>
>> REQUIREMENTS="HOSTNAME=a_cluster_node_hostname"<br>
>><br>
>> Once you have the template ready....<br>
>><br>
>> 1.- Create the VM with onevm create<br>
>> 2.- use you favorite VNC client to install the OS (you should<br>
be able<br>
>> to see the console at c<cluster_node_name>:5902) NOTE: You can<br>
always<br>
>> use 127.0.0.1 for the VNC server but then you have to start the VNC<br>
>> client from the cluster node, but we usually do not have an X<br>
server<br>
>> there...<br>
>> 3.- When you are done shutdown the VM. onevm shutdown<br>
>> 4.- The new installed image would be in<br>
>> $ONE_LOCATION/var/<VM_ID>/disk.0 Copy it to a safe location so<br>
you can<br>
>> use it later as a master image.<br>
>><br>
>> Hope it helps<br>
>><br>
>> Ruben<br>
>> On Thu, Jan 21, 2010 at 5:35 PM, Viji V Nair<br></div></div>
<<a href="mailto:viji@fedoraproject.org" target="_blank">viji@fedoraproject.org</a> <mailto:<a href="mailto:viji@fedoraproject.org" target="_blank">viji@fedoraproject.org</a>>><div class="im"><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I have a two node cluser with OCFS2 running on OpenNebula 1.4<br>
and Fedora<br>
>> > 12<br>
>> > x86_64. Is it possible to start installation of vms directly<br>
from an iso<br>
>> > image other than running virt-install to create the image and<br>
then<br>
>> > deploy<br>
>> > the same.<br>
>> ><br>
>> > Any help of the same greatly appreciated.<br>
>> ><br>
>> > Viji<br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br></div>
>> > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a> <mailto:<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>><div class="im">
<br>
>> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Dr. Ruben Santiago Montero<br>
>> Associate Professor, Complutense University of Madrid<br>
>><br>
>> URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
>> Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Dr. Ruben Santiago Montero<br>
Associate Professor, Complutense University of Madrid<br>
<br>
URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
<br>
<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>