<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><title>[Patch] Proxmox 4.0 CentOS 5 and 6 Containers not starting</title><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Consolas","serif";}
span.E-MailFormatvorlage20
{mso-style-type:personal-compose;
font-family:"Arial","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DE link=blue vlink=purple><div class=WordSection1><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>According to Wolfgangs hint in forum I post my yesterdays message here:<o:p></o:p></span></p><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'><hr size=2 width="100%" align=center></span></div><pre><o:p> </o:p></pre><pre>--- Redhat.pm.bak 2015-10-06 09:38:29.000000000 +0200<o:p></o:p></pre><pre>+++ Redhat.pm 2015-10-14 20:10:11.151244903 +0200<o:p></o:p></pre><pre>@@ -18,8 +18,8 @@<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> my $version;<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>- if ($release =~ m/release\s+(\d\.\d)(\.\d+)?\s/) {<o:p></o:p></pre><pre>- if ($1 >= 6 && $1 < 8) {<o:p></o:p></pre><pre>+ if ($release =~ m/release\s+(\d\.\d)(\.\d+)?/) {<o:p></o:p></pre><pre>+ if ($1 >= 5 && $1 < 8) {<o:p></o:p></pre><pre> $version = $1;<o:p></o:p></pre><pre> }<o:p></o:p></pre><pre> }<o:p></o:p></pre><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'><hr size=2 width="100%" align=center></span></div><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>This small little patch for file /usr/share/perl5/PVE/LXC/Setup/Redhat.pm should enable CentOS 6 Containers to start and to allow CentOS 5 (provided that you've adapted the container for LXC means that you've updated the /dev devices, fstab, halt/reboot scripts and sysinit!) to start, too.<br><br>Best regards<o:p></o:p></span></p><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></p><p><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Andreas<o:p></o:p></span></p></div></body></html>