Hi<br>My goal is to create a xen domain using lvm backed storage. It sounds simple and probably is but I am getting caught down in the details. I am using RH5 which I am hopefull will be similar enough to be able to ask on this list. Its the only list on 
<a href="https://www.redhat.com/mailman/listinfo">https://www.redhat.com/mailman/listinfo</a> with xen in the name.<br><br>Up to now I have been using virt-install to create new domains. It takes care of a lot of detail but this is a lot like spoon feeding and you learn nothing plus it is limited in capabilities at the moment.
<br><br>Confusion one:<br>When creating a new domain it creates a config file that xm can use:<br>name = &quot;test03&quot;<br>uuid = &quot;80bd6bda-c559-3a68-643c-df0f29d672b9&quot;<br>maxmem = 200<br>memory = 200<br>vcpus = 1
<br>bootloader = &quot;/usr/bin/pygrub&quot;<br>on_poweroff = &quot;destroy&quot;<br>on_reboot = &quot;restart&quot;<br>on_crash = &quot;restart&quot;<br>vfb = [&nbsp; ]<br>disk = [ &quot;tap:aio:/root/temppart/test03.img,xvda,w&quot; ]
<br>vif = [ &quot;mac=00:16:3e:24:15:79,bridge=virbr0&quot; ]<br><br>When I dump the config using virsh it adds some additinal paramters:<br><br>&nbsp; &lt;os&gt;<br>&nbsp;&nbsp;&nbsp; &lt;type&gt;linux&lt;/type&gt;<br>&nbsp;&nbsp;&nbsp; &lt;kernel&gt;/var/lib/xen/boot_kernel.nNlfNC&lt;/kernel&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;initrd&gt;/var/lib/xen/boot_ramdisk.jV4otH&lt;/initrd&gt;<br>&nbsp;&nbsp;&nbsp; &lt;cmdline&gt;ro root=/dev/VolGroup00/LogVol00 console=xvc0&lt;/cmdline&gt;<br><br>This names changes every time you restart the xen domain. What creates this &lt;random&gt; kernel and initrd and would using the following config be the same thing:
<br><br>&nbsp;&nbsp;&nbsp; &lt;kernel&gt;/boot/vmlinuz-2.6.18-53.el5xen&lt;/kernel&gt;<br>&nbsp;&nbsp;&nbsp; &lt;initrd&gt;/boot/initrd-2.6.18-53.el5xen.img&lt;/initrd&gt;<br><br>I am also a bit confused about the &lt;cmdline&gt; value and how it is used and what it should be. If anybody has a brief explanation of how this fits into the greater scheme of things it would be really appreciated.
<br><br>Lastly, I have managed to create a xml config file for virsh which does not immediatly complain about any errors. However I am still unsure how/where to specify the installation (http) source. I dont want to copy a existing installation I want to create a new one, would this just be a kernel parameter?
<br><br>The config file I am using:<br>&lt;domain type=&#39;xen&#39; id=&#39;3&#39;&gt;<br>&nbsp; &lt;name&gt;test-a-01&lt;/name&gt;<br>&nbsp; &lt;os&gt;<br>&nbsp;&nbsp;&nbsp; &lt;type&gt;linux&lt;/type&gt;<br>&nbsp;&nbsp;&nbsp; &lt;kernel&gt;/boot/vmlinuz-2.6.18-53.el5xen
&lt;/kernel&gt;<br>&nbsp;&nbsp;&nbsp; &lt;initrd&gt;/boot/initrd-2.6.18-53.el5xen.img&lt;/initrd&gt;<br>&nbsp;&nbsp;&nbsp; &lt;cmdline&gt;ro root=/dev/VolGroup00/LogVol00 console=xvc0&lt;/cmdline&gt;<br>&nbsp; &lt;/os&gt;<br>&nbsp; &lt;memory&gt;202144&lt;/memory&gt;
<br>&nbsp; &lt;vcpu&gt;1&lt;/vcpu&gt;<br>&nbsp; &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>&nbsp; &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>&nbsp; &lt;on_crash&gt;restart&lt;/on_crash&gt;<br>&nbsp; &lt;devices&gt;<br>&nbsp;&nbsp;&nbsp; &lt;interface type=&#39;bridge&#39;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source bridge=&#39;virbr0&#39;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script path=&#39;vif-bridge&#39;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/interface&gt;<br>&nbsp;&nbsp;&nbsp; &lt;disk type=&#39;phy&#39; device=&#39;disk&#39;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;driver name=&#39;tap&#39; type=&#39;aio&#39;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source file=&#39;/root/parts/test-a-01.img&#39;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;target dev=&#39;xvda&#39;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/disk&gt;<br>&nbsp;&nbsp;&nbsp; &lt;console tty=&#39;/dev/pts/2&#39;/&gt;<br>&nbsp; &lt;/devices&gt;<br>&lt;/domain&gt;
<br><br><br>Regards<br><br>-- <br>Gerhardus Geldenhuis<br>Registered Linux User #193352