Dear Josh, Thanks for the detailed description. I create a new OSinstalltype, because I would like to avoid mixing images. (For example VCL should never try starting a vmware image on XenServer, because the automatic image conversion is currently not working like vmware - kvm pair.) I think it can be a possible solution for the selection problem, if the frontend first handles the two special type of computers(bare metal/lab), and any other OSInstalltype is Virtual Machine. This does not require any modification in the database schema. Br, Aaron Toth
-----Josh Thompson <[email protected]> ezt írta: ----- Címzett: [email protected] Feladó: Josh Thompson <[email protected]> Dátum: 2015/01/27 04:10du. Tárgy: Re: Base image creation issue VCL2.4 On Wednesday, January 21, 2015 11:35:25 AM [email protected] wrote: > Frontend issue: > I add a new provisioning type(XenServer) to the VCL(database), but on the > frontend I cannot select it when I add new virtual machines to VCL. > > I would like to request your assitance. > > Br, > Aaron Toth Aaron, Thanks for reporting this. I apologize for the delayed response. I've been focusing on making the install script more robust and also creating an upgrade script. The frontend needs to know what computer types (blade, lab, or virtual) a provisioning type relates to. This information is only somewhat in the database. So, some of it is hard coded in the web code. Provisioning types must be mapped to OS install types using the provisioningOSinstalltype table. You can probably map your XenServer provisioning type to the vmware OS install type (I can't remember all the implications of what mapping to vmware would do, but the libvirt provisioning type is mapped to it. So, I think xenserver could be as well.). If so, it would then be picked up by the frontend as a selection on the Manage Computers page. If you need to create a new OS install type to map it to, you'd need to modify getProvisioningTypes in utils.php by adding another if conditional in the while loop - something like: if($row['type'] == 'xenserver') $types['virtualmachine'][$row['id']] = $row['prettyname']; Another option is to get all of the information in the database. However, I'd prefer not to do any database schema modifications this close to trying to get the 2.4 release out. Josh - -- - ------------------------------- Josh Thompson VCL Developer North Carolina State University
