<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div>On Mon, Mar 16, 2015 at 10:32 PM, Nico Kadel-Garcia <span dir="ltr"><<a href="mailto:nkadel@gmail.com" target="_blank">nkadel@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Mon, Mar 16, 2015 at 4:02 AM, Manuel Wolfshant<br>
<<a href="mailto:wolfy@nobugconsulting.ro" target="_blank">wolfy@nobugconsulting.ro</a>> wrote:<br>
<br>
> Quote from an actual installation:<br>
><br>
> [root@xenh4 ~]# history| grep virt<br>
> virt-install -n dhcpdns -p -r 1024 --os-type=linux --vnc -f<br>
> /var/lib/xen/images/dhcpdns -s 2 -l<br>
> <a href="http://192.168.50.40/mrepo/centos6-i386/disc1" target="_blank">http://192.168.50.40/mrepo/centos6-i386/disc1</a> -x<br>
> "ks=<a href="ftp://192.168.50.40/linux/ks-minimalC6-xen.cfg" target="_blank">ftp://192.168.50.40/linux/ks-minimalC6-xen.cfg</a>"<br>
><br>
> [root@xenh4 ~]# uname -a<br>
> Linux xenh4 2.6.18-400.1.1.el5xen #1 SMP Thu Dec 18 02:18:37 EST 2014 i686<br>
> i686 i386 GNU/Linux<br>
><br>
> <a href="https://github.com/CentOS/Community-Kickstarts/blob/master/ks-minimalC6.cfg" target="_blank">https://github.com/CentOS/Community-Kickstarts/blob/master/ks-minimalC6.cfg</a><br>
> is quite close to the above mentioned ks-minimalC6-xen.cfg ( actually both<br>
> are descendants of the same template of mine )<br>
<br>
</span>Thanks!!!! The key, hinted at by various notes in this thread, was the<br>
use of the "--location" to point to a network accessibleinstallation<br>
repository. I'm afraid that the Xen wiki directions about "--location"<br>
are a bit unclear about the need for this to be the base of a<br>
deployment directory, one that *must* have a working subdirectory<br>
called 'imagex/xen' with the relevant files in it. I admint, I have to<br>
just love hardcoded, hidden requirements!!!<br>
<br>
I'll point out for others who may need to image systems quickly that<br>
it's often more effective, especially in terms of speed and external<br>
bandwidth, to use an internal mirror as you did. I'll also point out<br>
that it can be awfully handy to keep such a mirror up-to-date and use<br>
it your local configurations. I publish such scripts at<br>
<a href="https://github.com/nkadel/nkadel-rsync-scripts" target="_blank">https://github.com/nkadel/nkadel-rsync-scripts</a>, in case anyone else<br>
wants them.<br>
<br>
I'll also mention my old habit in ks.cfg files of doing this, to hang<br>
onto the actual ks.cfg instead of the confused and '%pre' and '%post'<br>
stripped, anaconda reverse engineered oddness in<br>
/root/anaconda-ks.cfg.<br>
<br>
%pre<br>
cp -f /tmp/ks.cfg /mnt/sysimage/root/ks.cfg<br>
%end<br>
<div><div>_______________________________________________<br><br></div></div></blockquote><div><br></div><div>Nico,</div><div> I wrote tutorials on how to do this when I was using xen. I haven't used these tutorials in a couple of years but they worked then so they should still work now. This is for an automated CentOS 6 (x86_64).</div><div><br></div><div><a href="http://grantmcwilliams.com/item/538-centos-6-virtual-machine-64-bit-installation-on-xen">http://grantmcwilliams.com/item/538-centos-6-virtual-machine-64-bit-installation-on-xen</a><br></div><div><br></div>Grant McWilliams<br><a href="http://grantmcwilliams.com/" target="_blank">http://grantmcwilliams.com/</a><br><br>Some people, when confronted with a problem, think "I know, I'll use Windows." <br><div>Now they have two problems. </div></div><br></div></div>