[one-users] Installation From ISO images

Viji V Nair viji at fedoraproject.org
Mon Jan 25 01:17:27 PST 2010


Hi,

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.

Here are my observations.

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"

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"

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.

/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 0.0.0.0:38 -vga cirrus

4. Here is my new template

NAME   = solaris10
CPU    = 2
MEMORY = 1024

# Disks & NICS

OS = [ boot="cdrom" ]

#adds a empty disk or installed disk
DISK = [ clone=no, type="disk", source="/srv/cloud/images/imgs/sol.qcow2",
target="hda"]
DISK = [ clone=no, type="cdrom",
source="/srv/cloud/images/isos/osol-0906-x86.iso", target="hdb"]

NIC = [ NETWORK="Pcloud Network01"]

#listen = "0.0.0.0" will listen on any ip
GRAPHICS = [ type = "vnc", listen  = "0.0.0.0", port  = "5938"]
INPUT    = [ type = "tablet" ]


Viji

On Mon, Jan 25, 2010 at 10:04 AM, Rangababu Chakravarthula <
rbabu at hexagrid.com> wrote:

> Viji
>
> We use the following template and it works fine. Hope it helps.
>
> NAME   = XYZ
> MEMORY= 1024
> VCPU   = 2
>
> # Disks & NICS
> OS = [ boot = "cdrom" ]
>
> #adds a empty disk or installed disk
> DISK = [ clone=no, type="disk", source="path_to_qcow_diskfile",
> target="hda"]
> DISK = [ clone=no, type="cdrom", source="path_to_iso", target="hdb"]
>
> NIC = [ MAC="00:b2:42:99:70:b8", BRIDGE = "br101" ]
> NIC = [ MAC="00:b2:42:99:70:b5", BRIDGE = "virbr0" ]
>
> #listen = "0.0.0.0" will listen on any ip
> GRAPHICS = [ type    = "vnc", listen  = "0.0.0.0", port    = "5938"]
> INPUT    = [ type = "tablet" ]
>
> Ranga
>
> Viji V Nair wrote:
>
>> Hi,
>>
>> I have done the changes, still it is not working.
>>
>> Pls have a look at the attached screen shot.
>>
>> This is the new template  file
>>
>> # cat solaris10.one
>> NAME   = solaris10
>> CPU    = 0.2
>> MEMORY = 1280
>>
>> OS = [ boot = "cdrom" ]
>>
>> DISK = [
>>  source   = "/srv/cloud/images/imgs/sol.img",
>>  target   = "hda",
>>  save     = "yes",
>>  clone    = "no" ]
>>
>> DISK = [
>>  source   = "/srv/cloud/images/isos/osol-0906-x86.iso",
>>  type     = "cdrom",
>>  target   = "hdb",
>>  clone    = "no" ]
>>
>> NIC = [ NETWORK="Pcloud Network01"]
>>
>> GRAPHICS = [ type = "vnc", listen  = "node02.pcloud.com <
>> http://node02.pcloud.com>", port = "5902"]
>>
>> REQUIREMENTS = "HOSTNAME = \"node02*\""
>>
>> Viji
>>
>>
>>
>> On Fri, Jan 22, 2010 at 10:13 PM, Ruben S. Montero <rubensm at dacya.ucm.es<mailto:
>> rubensm at dacya.ucm.es>> wrote:
>>
>>    Hi,
>>
>>    Try this in your template
>>
>>    OS = [ boot = "cdrom" ]
>>
>>
>>    Cheers!
>>
>>    Ruben
>>
>>    On Fri, Jan 22, 2010 at 5:26 PM, Viji V Nair
>>    <viji at fedoraproject.org <mailto:viji at fedoraproject.org>> wrote:
>>    > Hi Ruben,
>>    >
>>    > Thank you so much for your response
>>    >
>>    > I have followed the steps and there are some issues. When I try
>>    to do a
>>    > "onevm create solaris10.one", both the images (sol.img and
>>    > osol-0906-x86.iso) are being copied to the shared storage as
>>    > /srv/cloud/images/<vmid>/disk.0 and
>>    /srv/cloud/images/<vmid>/disk.1. Then
>>    > the it tries to boot from the hard drive, I mean disk.0
>>    (sol.img, hda). From
>>    > the VNC console I could see
>>    >
>>    >     1. disk.0 is detected as ata0 - 2G in size (this is the
>>    image, sol.img,
>>    > created using dd)
>>    >     2. disk.1 is detected as ata1 - 677M (this is the iso image)
>>    >     3. a cdrom device
>>    >
>>    > VNC is showing the boot error, tried to select F12 and selected
>>    cdrom, but
>>    > no luck.
>>    >
>>    >
>>    > # cat solaris10.one
>>    > NAME   = solaris10
>>    > CPU    = 0.2
>>    > MEMORY = 1280
>>    >
>>    > DISK = [
>>    >  source   = "/srv/cloud/images/imgs/sol.img",
>>    >  target   = "hda",
>>    >  save     = "yes",
>>    >  clone    = "no" ]
>>    >
>>    > DISK = [
>>    >  source   = "/srv/cloud/images/isos/osol-0906-x86.iso",
>>    >  type     = "cdrom",
>>    >  target   = "hdb",
>>    >  clone    = "no" ]
>>    >
>>    > NIC = [ NETWORK="Pcloud Network01"]
>>    >
>>    > GRAPHICS = [ type = "vnc", listen  = "node01.pcloud.com
>>    <http://node01.pcloud.com>", port = "5902"]
>>
>>    >
>>    > REQUIREMENTS = "HOSTNAME = \"node01*\""
>>    >
>>    >
>>    > Thanks & Regards
>>    >
>>    > Viji
>>    >
>>    > On Fri, Jan 22, 2010 at 4:44 AM, Ruben S. Montero
>>    <rubensm at dacya.ucm.es <mailto:rubensm at dacya.ucm.es>>
>>
>>    > wrote:
>>    >>
>>    >> Hi,
>>    >>
>>    >> The procedure should be as follows, create a template that
>>    contains :
>>    >>
>>    >> 1- Define your main disk as usual, and tell OpenNebula to keep
>>    the changes
>>    >> DISK = [
>>    >>  source   = "/srv/cloud/images/master/fedora_disk.img",
>>    >>  target   = "hda",
>>    >>  save     = "yes"
>>    >>  clone    = "no" ]
>>    >> (this assumes that you have a plain file for fedora_disk.img (e.g.
>>    >> with a dd). You can also use separate partitions for swap and
>>    the OS
>>    >> installation...
>>    >>
>>    >> 2- Define an additional DISK for the ISO image with the
>>    installation CD
>>    >> DISK = [
>>    >>  source   = "/srv/cloud/images/isos/fedora_12.iso",
>>    >>  type     = "cdrom",
>>    >>  target   = "hdb",
>>    >>  clone    = "no" ]
>>    >>
>>    >> 3.- Add a VNC console so you can interact with the installer.
>>    And tell
>>    >> to listen in a cluster node hostname, by adding to the template:
>>    >> GRAPHICS = [ type = "vnc", listen  = "a_cluster_node_hostname",
>>    port =
>>    >> "5902"]
>>    >>
>>    >> 4.- Tell OpenNebula to place the VM in that clusternode, by
>>    adding to
>>    >> the template:
>>    >> REQUIREMENTS="HOSTNAME=a_cluster_node_hostname"
>>    >>
>>    >> Once you have the template ready....
>>    >>
>>    >> 1.- Create the VM with onevm create
>>    >> 2.- use you favorite VNC client to install the OS (you should
>>    be able
>>    >> to see the console at c<cluster_node_name>:5902) NOTE: You can
>>    always
>>    >> use 127.0.0.1 for the VNC server but then you have to start the VNC
>>    >> client from the cluster node, but we usually do not have an X
>>    server
>>    >> there...
>>    >> 3.- When you are done shutdown the VM. onevm shutdown
>>    >> 4.- The new installed image would be in
>>    >> $ONE_LOCATION/var/<VM_ID>/disk.0 Copy it to a safe location so
>>    you can
>>    >> use it later as a master image.
>>    >>
>>    >> Hope it helps
>>    >>
>>    >> Ruben
>>    >> On Thu, Jan 21, 2010 at 5:35 PM, Viji V Nair
>>    <viji at fedoraproject.org <mailto:viji at fedoraproject.org>>
>>
>>    >> wrote:
>>    >> > Hi,
>>    >> >
>>    >> > I have a two node cluser with OCFS2 running on OpenNebula 1.4
>>    and Fedora
>>    >> > 12
>>    >> > x86_64. Is it possible to start installation of vms directly
>>    from an iso
>>    >> > image other than running virt-install to create the image and
>>    then
>>    >> > deploy
>>    >> > the same.
>>    >> >
>>    >> > Any help of the same greatly appreciated.
>>    >> >
>>    >> > Viji
>>    >> >
>>    >> > _______________________________________________
>>    >> > Users mailing list
>>    >> > Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>>
>>    >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>    >> >
>>    >> >
>>    >>
>>    >>
>>    >>
>>    >> --
>>    >> Dr. Ruben Santiago Montero
>>    >> Associate Professor, Complutense University of Madrid
>>    >>
>>    >> URL:    http://dsa-research.org/doku.php?id=people:ruben
>>    >> Weblog: http://blog.dsa-research.org/?author=7
>>    >
>>    >
>>
>>
>>
>>    --
>>    Dr. Ruben Santiago Montero
>>    Associate Professor, Complutense University of Madrid
>>
>>    URL:    http://dsa-research.org/doku.php?id=people:ruben
>>    Weblog: http://blog.dsa-research.org/?author=7
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100125/b12c7101/attachment-0003.htm>


More information about the Users mailing list