[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] How to create Templates for Network Installs that need additional Kernel-parameters ?? eliloader.py - patch suggestion
On 11/07/2012 05:21 PM, Andreas Balg wrote: The GUI makes the difference - If you doubleclick on the template you CAN supply all the parameters you need for kickstarting but you cannot have them prefilled - and even worse: this won't be used for the first boot - you'll always find "graphic utf8" preloaded (this is what is in PV-args later on) - This is of course useless for kickstarting If you are using XC, then the "New VM Wizard" (doubleclick) seems to remove the boot options, yes. But you can use the "quick create", and then the ks boot options still remains. These commands will quickly generate a template with "quick create" enabled: (only the last two commands differs from Grants tutorials) NETUUID=$(xe network-list bridge=xenbr0 --minimal)TMPLUUID=$(xe template-list | grep -B1 'name-label.*Red Hat.* 6.*64-bit' | awk -F: '/uuid/{print $2}'| tr -d " ") VMUUID=$(xe vm-install new-name-label="CentOS6-64bit" template=${TMPLUUID}) xe vif-create vm-uuid=$VMUUID network-uuid=$NETUUID mac=random device=0xe vm-param-set uuid=$VMUUID other-config:install-repository=http://mirror.centos.org/centos/6/os/x86_64 xe vm-param-set uuid=$VMUUID PV-args="ks=http://grantmcwilliams.com/files/kickstart-minimal6-x86_64.cfg ksdevice=eth0" xe vm-param-set uuid=${VMUUID} other-config:disable_pv_vnc=1 other-config:instant=true xe vm-param-set uuid=${VMUUID} is-a-template=true Or you could do the same from within XC: - create a vm from the standard template, add install from url and add boot params "ks=... ksdevice=..." - uncheck "Start the new VM automatically" on the last wizard page - convert the vm to template Then create a new VM from the template by right-clicking the new template and select "Quick Create" (Tested in XC 6.1, don't know if this works in older versions) -- Bernt 'Burnie' Pettersen /// DoD#2345 <E-mail:burnie@xxxxxx> /// <URL:http://burnie.sh/> - Creative brains need creative workhours! - _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |