<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif"}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt;
        font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
</head>
<body lang="EN-ZA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Okay, I have been getting somewhere with this …</span></p>
<p class="MsoNormal"><span style="color:#1F497D">The commandline I used to create a vm is as follows:</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">#> virt-install -n VM1 -r 1024 -f /var/lib/one/images/centos-6.2/disk.0 -s 20 --vcpus=2 --os-type linux --os-variant=rhel6 --network bridge=virbr0 --nographics --hvm --location=/var/lib/one/cd_images/CentOS-6.2-x86_64-bin-DVD1.iso
 --extra-args "console=ttyS0"</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">So this gets me into the installer – great
</span><span style="font-family:Wingdings; color:#1F497D">J</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">However, I have 2 problems.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="color:#1F497D"><span style="">1)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><span style="color:#1F497D">The text based install does not give you the option of modifying the disk layout – apparently this is a bug (or feature) in centos.</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="color:#1F497D"><span style="">2)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><span style="color:#1F497D">I get the following error now on install:<br>
<br>
</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Unable to read package metadata. This may be due to a             
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           missing repodata directory.  Please ensure that your              
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           install tree has been correctly generated.                        
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">                                                                             
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           Could not retrieve                                                
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           /mnt/sysimage/var/cache/yum/anaconda-CentOS-20111210233           
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           3.x86_64/eba624e5fe8db1b4ebe2e0b0ac66565be3c909c34c46d4           
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           685f50bbe921763d3b-primary.sqlite.bz2 matching remote             
</span></p>
<p class="MsoNormal"><span style="color:#1F497D">           checksum from anaconda-CentOS-201112102333.x86_64   
</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">So I am now trying to figure out *<b>why</b>* it does this. Unfortunately you cannot use the console without specifying the iso as a location instead of a cdrom ..
</span><span style="font-family:Wingdings; color:#1F497D">L</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Adrian Snyman</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Linux Systems Administrator</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Tel: 011-559-4929</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Cell: 082-600-1211</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> users-bounces@lists.opennebula.org [mailto:users-bounces@lists.opennebula.org]
<b>On Behalf Of </b>Snyman, Adrian<br>
<b>Sent:</b> 05 March 2012 02:00 PM<br>
<b>To:</b> users@lists.opennebula.org<br>
<b>Subject:</b> [one-users] Creating a basic vm image</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">I am not too sure how the initial image creation works.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">From what I understand, you need to install an OS image, and then register this with oned.</p>
<p class="MsoNormal">Then, there is an additional ISO/Image file that has all the Changes associated with that</p>
<p class="MsoNormal">Specific host ?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any pointers / dumbed down howto would be great on how to create an image, and then use</p>
<p class="MsoNormal">It to build other vm’s …</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">Adrian Snyman</span></p>
<p class="MsoNormal"><span lang="EN-US">Linux Systems Administrator</span></p>
<p class="MsoNormal"><span lang="EN-US">Tel: 011-559-4929</span></p>
<p class="MsoNormal"><span lang="EN-US">Cell: 082-600-1211</span></p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif""> </span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Arial","sans-serif"; color:gray"><br>
This email and all contents are subject to the following disclaimer:<br>
<br>
<a href="http://disclaimer.uj.ac.za">http://disclaimer.uj.ac.za</a></span><span style="font-size:12.0pt; font-family:"Times New Roman","serif""></span></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="3"><br>
This email and all contents are subject to the following disclaimer:<br>
<br>
http://disclaimer.uj.ac.za<br>
</font>
</body>
</html>