[one-users] VM Templates

Daniel.MOLDOVAN at cs.utcluj.ro Daniel.MOLDOVAN at cs.utcluj.ro
Thu Nov 18 00:50:59 PST 2010


Hy,

I have encountered the same problem. Do not specify Kernel because this is
mainly used in conjunction with the XEN hypervisor and it indicates the
physical path to the HOST kernel used to boot the virtual machine, not of
the kernel inside the VM. So if the Host is using Ubuntu, only the Ubuntu
distributions can be loaded by using the Kernel attribute.

And about the no bootable device found, i have avoided it only by:
- defining also Image disk
 example: DISK = [type=cdrom ,
source=/home/utcn/Downloads/jeos-8.04.3-jeos-i386.iso, target=hdb]
- stating that ROOT=hdb and booting from the cdrom. From it i could
install the linux distribution on the "disk" device and then use it as a
normal boot device.


I think that because the virtual disk was not created by opennebula( i
used AQUEMU GUI), it did not recognized it properly in order to boot from
it.

P.S. If anywone has a more elegant solution to this "no bootable device
problem" problem fell free to share.

Thanks,
Daniel


> I've some problems to create the exact vm template for any distribution
> different from Ubuntu. I want to try OpenSuse for my vm's images but or i
> get status failed [1] o if I delete the  KERNEL variable in the template
> I
> get "No bootable device". the image isnt corrupted, infact i can use it
> using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024). Some
> suggestions?
>
> PS: It's possible to add in the website some tested and working
> templates?
>
>
> [1] ~~~~~~~~~~~ vm.log ~~~~~~~~~~~~~~~~~~~~~
>
>
> Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file:
> /var/lib/one/26/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail:
> /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.
> Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from
> /var/lib/one//26/images/deployment.0
> Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show up.:
>  Connection refused
> Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255
> Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine
> Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED
>
>
> ~~~~~~~~~~~ vm template ~~~~~~~~~~~~~~~~~~~~~
>
>
> NAME   = osuse test
> MEMORY =1024
> CPU=1
>
>
> OS = [
> BOOT    ="hd",
> KERNEL    ="/vmlinuz", # i made a link on / pointing at
> /boot/"kernel-file"
> INITRD    ="/initrd", #i made a link on / pointing at
> /boot/"initrd-image-file"
> ROOT    ="sda2" #mount execution on the vm states  "/dev/sda2 on / type
> ext4" ]
>
>
> DISK = [
> SOURCE     = "/public/images/osuse.qcow2",
> TARGET     = "sda",
> CLONE     = "no",
> SAVE     = "no",
> DRIVER     = "qcow2"
> ]
>
>
>
> INPUT = [ type = "tablet", bus = "usb" ]
> GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]
>
>
> FEATURES=[ acpi="no" ]
>
>
>
> ~~~~~~~~~~~ generated deployment ~~~~~~~~~~~~~~~~~~~~~
>
>
>
> <domain type='kvm'>
> <name>one-26</name>
> <memory>524288</memory>
> <os>
> <type>hvm</type>
> <kernel>/vmlinuz</kernel>
> <initrd>/initrd</initrd>
> <cmdline>root=/dev/sda2 </cmdline>
> <boot dev='hd'/>
> </os>
> <devices>
> <emulator>/usr/bin/kvm</emulator>
> <disk type='file' device='disk'>
> <source file='/var/lib/one//26/images/disk.0'/>
> <target dev='sda'/>
> </disk>
> <graphics type='vnc' listen='localhost' port='5926' />
> <input type='tablet' bus='usb'/>
> </devices>
> </domain>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>





More information about the Users mailing list