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 = "test03"<br>uuid = "80bd6bda-c559-3a68-643c-df0f29d672b9"<br>maxmem = 200<br>memory = 200<br>vcpus = 1
<br>bootloader = "/usr/bin/pygrub"<br>on_poweroff = "destroy"<br>on_reboot = "restart"<br>on_crash = "restart"<br>vfb = [ ]<br>disk = [ "tap:aio:/root/temppart/test03.img,xvda,w" ]
<br>vif = [ "mac=00:16:3e:24:15:79,bridge=virbr0" ]<br><br>When I dump the config using virsh it adds some additinal paramters:<br><br> <os><br> <type>linux</type><br> <kernel>/var/lib/xen/boot_kernel.nNlfNC</kernel>
<br> <initrd>/var/lib/xen/boot_ramdisk.jV4otH</initrd><br> <cmdline>ro root=/dev/VolGroup00/LogVol00 console=xvc0</cmdline><br><br>This names changes every time you restart the xen domain. What creates this <random> kernel and initrd and would using the following config be the same thing:
<br><br> <kernel>/boot/vmlinuz-2.6.18-53.el5xen</kernel><br> <initrd>/boot/initrd-2.6.18-53.el5xen.img</initrd><br><br>I am also a bit confused about the <cmdline> 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><domain type='xen' id='3'><br> <name>test-a-01</name><br> <os><br> <type>linux</type><br> <kernel>/boot/vmlinuz-2.6.18-53.el5xen
</kernel><br> <initrd>/boot/initrd-2.6.18-53.el5xen.img</initrd><br> <cmdline>ro root=/dev/VolGroup00/LogVol00 console=xvc0</cmdline><br> </os><br> <memory>202144</memory>
<br> <vcpu>1</vcpu><br> <on_poweroff>destroy</on_poweroff><br> <on_reboot>restart</on_reboot><br> <on_crash>restart</on_crash><br> <devices><br> <interface type='bridge'>
<br> <source bridge='virbr0'/><br> <script path='vif-bridge'/><br> </interface><br> <disk type='phy' device='disk'><br> <driver name='tap' type='aio'/>
<br> <source file='/root/parts/test-a-01.img'/><br> <target dev='xvda'/><br> </disk><br> <console tty='/dev/pts/2'/><br> </devices><br></domain>
<br><br><br>Regards<br><br>-- <br>Gerhardus Geldenhuis<br>Registered Linux User #193352