Hi As you outline in your email, there are some parameters which are mandatory for an specific hypervisor (and may not be mandatory for another one). So, in general OpenNebula will not know if the host use for the VM is going to be Xen, KVM or even EC2.
We came out with a defaults file, where you could put defaults for those hypervisor-mandatory attributes. This way we could keep the templates abstract enough, and there is no need to specify, let say BOOT for every single template. Then, why not use that file also to provide defaults for specific hypervisor attributes (e.g. caching algorithm for I/O operation on DISK). Unfortunately the documentation lagged behind the new uses for the file.... Thanks for the heads up! We've already updated the documentaion, to (hopefully) better reflect this ;) Cheers Ruben On Sat, May 19, 2012 at 3:20 PM, Olivier Berger <olivier.ber...@it-sudparis.eu> wrote: > Hi. > > I've had a look at the docs and am a bit puzzled by the "mandatory > attributes" which at the same time are documented with default values... > > In > http://opennebula.org/documentation:archives:rel3.2:kvmg#mandatory_attributes, > OS:ARCH is mandatory, but in > http://opennebula.org/documentation:archives:rel3.2:template it is > marked : > M (default i686) for kvm > > What's the purpose of a default for a mandatory parameter ? > > Indeed, if the ARCH is not defined, I experience problems booting an > amd64 image on my amd64 host, since kvm is provided with some 32 bit > emulation param (-cpu qemu32, see http://bugs.debian.org/673173) > > Shouldn't the mandatory args be checked and an error reported ? > > Thank in advance. > > Best regards, > -- > Olivier BERGER > http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 > Ingenieur Recherche - Dept INF > Institut Mines-Telecom, Telecom SudParis, Evry (France) > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org