Michael DeHaan wrote:
Dave Hatton wrote:
> Michael DeHaan wrote:
>
>
>> As Dave Hatton's patch alluded to, there are going to be some new fields
>> coming in for 1.2, that are strictly optional.
>>
>> The reason for this is we need them to properly install some older
>> virtual machines for both distributions and images.
>>
>> Before we had "--breed" which controls PXE behavior:
>>
>> cobbler distro add --name=rhel4 --breed=redhat ...
>>
>> Now we also have an "--os-version" that (for now) is basically a
>> comment, unless you are using it for virtualization. For instance if
>> you want RHEL2.1 to work in KVM, it won't work without
>> "--os-version=rhel2.1".
>>
>>
>>
>>
> Michael,
>
> Just pulled the latest version from git and it failed to run "cobbler
> list".
>
> The traceback showed it was trying to "import codes" in utils.py and
> item_distro.py
>
> Where should it be picking "codes" up from?
>
> Dave Hatton
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
>
It seems I didn't "git add" codes.py.
Will take care of that shortly.
--Michael
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
Added earlier this AM, in addition, there is now code in koan that will
pass these values down into the "virtinst" library that creates Xen/qemu
VMs. They are not used for VMware support.
Different versions of libvirt support different answer values for
--os-version, and rather than letting that cause problems, I've coded
koan so that if it fails to set a version, it will just use the generic
details, as it does now.
Also I should point out this info is still completely optional and
doesn't need to be filled in. It's only needed for doing things like
supporting qemu rhel2.1 which needs a different network driver (and even
this seems to require an updated libvirt). So ultimately this is about
extra safety and future proofing, and should never make VMs harder to
install and configure -- it only makes some of the more complex cases
possible.
It's also going to be relevant when doing things like installing Windows
ISO's, where thinks like --breed=windows --os-version=winxp may have
some implications to hardware setup. This is already supported in koan,
if you remember:
copy prepared fully automated ISO to nfs...
cobbler image add --name=winxp-special
--file=nfs://nfsserver.example.org:/path/to/foo.iso --virt-type=qemu
--virt-ram=512 ...
koan --virt --image=winxp-special --server=cobbler.example.org
So of course if anyone wants to try out the non-Linux ISO support
features (by creating a library of ISO images on NFS and then using koan
to create them), please do!
Thanks!
--Michael