<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The problem is that we haven't put new fedora mirrolists to&nbsp;<a href="http://vzdownload.swsoft.com/download/mirrors/" id="LPlnk465474">http://vzdownload.swsoft.com/download/mirrors/</a>.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Will try to do this in the near future.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Actually that repo is only needed for vzdummy-systemd-fc package. You can try to go on without it, just disable the third line in the&nbsp;os_mirrorlist file<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> users-bounces@openvz.org &lt;users-bounces@openvz.org&gt; on behalf of Peter Schultze &lt;petersch@cs.ucla.edu&gt;<br>
<b>Sent:</b> Thursday, August 6, 2020 6:55 AM<br>
<b>To:</b> OpenVZ users &lt;users@openvz.org&gt;<br>
<b>Subject:</b> Re: [Users] Fedora-3x template packages</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Thu, 6 Aug 2020, Denis Silakov wrote:<br>
<br>
&gt; You clone the repo inside the rpmbuild/SOURCES folder, so you get all sources inside rpmbuild/SOURCES/fedora-32-x86_64-ez folder, not inside rpmbuild/SOURCES itself.<br>
&gt;<br>
&gt; Just copy the files to the SOURCES folder directly, e.g.:<br>
&gt; vrpmbuild/SOURCES<br>
&gt; # cd rpmbuild/SOURCES<br>
&gt; # git clone -b dist-vz7-u15 <a href="https://src.openvz.org/scm/ovzt/fedora-32-x86_64-ez.git">
https://src.openvz.org/scm/ovzt/fedora-32-x86_64-ez.git</a><br>
&gt; # cp fedora-32-x86_64-ez/os*&nbsp; fedora-32-x86_64-ez/*packages .<br>
&gt; ...<br>
&gt;<br>
&gt; Also make sure that there no other files in rpmbuild/SOURCES, otherwise the template can pick up them.<br>
<br>
Great, with this a clone of the default branch (dist-vz7-u12) of <br>
fedora-30-x86_64-ez results in an rpm that allows creating a bootable <br>
fedora-30 container. It is only lacking the network-scripts package, so <br>
networking does not start automatically at boot time before bringing up <br>
the new container's interface manually and installing the rpm. I expect <br>
this should be easily fixable by adding &quot;network-scripts&quot; to the <br>
&quot;os_packages&quot; source.<br>
<br>
The fedora-32-x86_64-ez dist-vz7-u15 source seems to contain a problem.<br>
Container creation fails, because the cache creation step fails for &quot;repo <br>
'base2'&quot;. Running vzpkg create cache we get:<br>
<br>
# vzpkg create cache fedora-32-x86_64<br>
Creating OS template cache for fedora-32-x86_64 template<br>
Cache was expired<br>
18 files removed<br>
base0 5.0 MB/s |&nbsp; 63 MB&nbsp;&nbsp;&nbsp;&nbsp; 00:12<br>
base1 4.6 MB/s |&nbsp; 25 MB&nbsp;&nbsp;&nbsp;&nbsp; 00:05<br>
base2 876&nbsp; B/s | 319&nbsp; B&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br>
Error: Failed to synchronize cache for repo 'base2'<br>
Error: /usr/share/vzyum/bin/yum failed, exitcode=1<br>
<br>
<br>
&gt;<br>
&gt; The root of the problem is that template authors are quite lazy to declare every source file separately in spec, so the spec looks for sources in a rather tricky way:<br>
&gt;<br>
&gt; %define sources_lst() \<br>
&gt; %((cd %_sourcedir;\<br>
&gt; s=1;\<br>
&gt; for tmpl in %1; do\<br>
&gt; sources=$tmpl&quot;_*&quot;;\<br>
&gt; for file in $sources; do\<br>
&gt; echo Source$s: $file;\<br>
&gt; s=$((s+1))\<br>
&gt; done;\<br>
&gt; done))\<br>
&gt; %nil<br>
&gt;<br>
&gt; %define templates_list() %((cd %_sourcedir; for f in *_packages; do echo -n &quot;${f%_*} &quot;; done))<br>
&gt;<br>
&gt; The latter command scans _sourcedir recursively so it finds *_packages files even in subfolders. But the former macro doesn't look into subfolders so at least os* files are missing.<br>
&gt; ________________________________<br>
&gt; From: users-bounces@openvz.org &lt;users-bounces@openvz.org&gt; on behalf of Peter Schultze &lt;petersch@cs.ucla.edu&gt;<br>
&gt; Sent: Thursday, August 6, 2020 3:17 AM<br>
&gt; To: OpenVZ users &lt;users@openvz.org&gt;<br>
&gt; Subject: Re: [Users] Fedora-3x template packages<br>
&gt;<br>
&gt; On Wed, 5 Aug 2020, Denis Silakov wrote:<br>
&gt;<br>
&gt;&gt; I guess there are no docs, but the process is rather simple - clone the repo, checkout a branch corresponding to the development version (dist-vz7-u15 atm), copy all files to your ~/rpmbuild/SOURCES folder and launch rpmbuild -bb *spec.<br>
&gt;<br>
&gt; I am evidently still missing something. Building and installing an rpm<br>
&gt; ran without errors:<br>
&gt;<br>
&gt; # cd rpmbuild/SOURCES<br>
&gt; # git clone -b dist-vz7-u15 <a href="https://src.openvz.org/scm/ovzt/fedora-32-x86_64-ez.git">
https://src.openvz.org/scm/ovzt/fedora-32-x86_64-ez.git</a><br>
&gt;<br>
&gt; # cd<br>
&gt; # rpmbuild -bb rpmbuild/SOURCES/fedora-32-x86_64-ez/fedora-32-x86_64-ez.spec<br>
&gt; # yum localinstall rpmbuild/RPMS/noarch/fedora-32-x86_64-ez-7.0.0-1.vl7.noarch.rpm<br>
&gt;<br>
&gt; However, the resulting rpm contains no os files:<br>
&gt;<br>
&gt; # rpm -ql fedora-32-x86_64-ez-7.0.0-1.vl7.noarch<br>
&gt; /vz/template/fedora/32/x86_64/config/app/*/default<br>
&gt; /vz/template/fedora/32/x86_64/config/app/*/default/description<br>
&gt; /vz/template/fedora/32/x86_64/config/app/*/default/release<br>
&gt; /vz/template/fedora/32/x86_64/config/app/*/default/summary<br>
&gt; /vz/template/fedora/32/x86_64/config/app/*/default/version<br>
&gt;<br>
&gt; and container generation of course fails:<br>
&gt; # prlctl create F32 --vmtype ct --ostemplate fedora-32-x86_64<br>
&gt; Creating the Container...<br>
&gt; Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Error:<br>
&gt; Unable to find ostemplate: fedora-32-x86_64<br>
&gt; Creation of Container private area failed)<br>
&gt; Failed to create the virtual machine.<br>
&gt;<br>
&gt;<br>
&gt; What am I missing?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; From: users-bounces@openvz.org &lt;users-bounces@openvz.org&gt; on behalf of Peter Schultze &lt;petersch@cs.ucla.edu&gt;<br>
&gt;&gt; Sent: Wednesday, August 5, 2020 11:01 PM<br>
&gt;&gt; To: users@openvz.org &lt;users@openvz.org&gt;<br>
&gt;&gt; Subject: [Users] Fedora-3x template packages<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://src.openvz.org/projects/OVZT">https://src.openvz.org/projects/OVZT</a> has entries for Fedora-30 and<br>
&gt;&gt; Fedora-32. However, the most recent rpm package available in the normal<br>
&gt;&gt; OpenVZ 7.0 repository is fedora-23-x86_64-ez<br>
&gt;&gt;<br>
&gt;&gt; Does documentation exist on how to build a template from the available<br>
&gt;&gt; sources?<br>
&gt;&gt;<br>
&gt;&gt; Peter S.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; Users@openvz.org<br>
&gt;&gt; <a href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Peter Schultze<br>
&gt; UCLA Computer Science Department&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 310-825-9929<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; Users@openvz.org<br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
--<br>
Peter Schultze<br>
UCLA Computer Science Department&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 310-825-9929<br>
_______________________________________________<br>
Users mailing list<br>
Users@openvz.org<br>
<a href="https://lists.openvz.org/mailman/listinfo/users">https://lists.openvz.org/mailman/listinfo/users</a><br>
</div>
</span></font></div>
</body>
</html>