<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Thanks Mr. Stefan<br><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Will that crash mainly be due to the kernel ? Since am not sure about that,else I should try with different image. <br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">When I use via a config file using "xm create libvirt-ttylinux.conf ", then the domain runs stable....<br><br><font style="font-family: arial,helvetica,sans-serif;" size="2">But when I use the virsh -c xen:/// define
 libvirt-ttylinux.xml"
and "virsh start ttyimage, it crashes after sometime.<br><br>The </font>ibvirt-ttylinux.conf file ::<br><br>--------------------------------------------------------------------------------------------------------------------------------<br><font size="2">kernel = "/boot/vmlinuz-2.6.18-164.2.1.el5xen"<br>ramdisk= "/boot/initrd-2.6.18-164.2.1.el5xen.img"<br>memory = 64<br>name = "ttylinux"<br>disk = ['file:/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img,sda1,w']<br>root = "/dev/sda1 ro"<br>vif = ['']</font><br>--------------------------------------------------------------------------------------------------------------------------------<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">I give the same Xen kernel parameter here in xml file, and use virsh to create domain<br></div><div style="font-family: arial,helvetica,sans-serif; font-size:
 10pt;"><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">---------------------------------------------------------------------------------------------------------------------------------------<br><font size="1"><?xml version="1.0" encoding="utf-8"?><br><domain type='xen'><br>    <name>ttyimage</name><br>    <os><br>        <type>linux</type><br>        <kernel>/boot/vmlinuz-2.6.18-164.2.1.el5xen</kernel><br>        <initrd>/boot/initrd-2.6.18-164.2.1.el5xen.img</initrd><br>     </os><br>    <memory>65536</memory><br>   
 <vcpu>1</vcpu><br>    <on_poweroff>destroy</on_poweroff><br>    <on_reboot>restart</on_reboot><br>    <on_crash>destroy</on_crash><br>    <devices><br>        <graphics type='vnc' port='5900'/><br>        <disk type='file'><br>            <source file='/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img' /><br>            <target dev='sda1' /><br>        </disk><br>        <interface type='bridge'><br>            <source bridge='virbr0'
 /><br>            <mac address='00:1d:60:ec:ae:1c' /><br>            <target dev='testnimb-0' /><br>        </interface><br>    </devices><br></domain><br></font>---------------------------------------------------------------------------------------------------------------------------------------</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">My Boot grub file data::<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">--------------------------------------------------------------------------------------------------------------------------------------</div>title Scientific Linux (2.6.18-164.2.1.el5xen)<br>    root
 (hd0,0)<br>    kernel /xen.gz-2.6.18-164.2.1.el5 <br>    module /vmlinuz-2.6.18-164.2.1.el5xen ro root=LABEL=/1 rhgb quiet<br>    module /initrd-2.6.18-164.2.1.el5xen.img<br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">--------------------------------------------------------------------------------------------------------------------------------------</div></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><br>Why is this difference between the xm (when i destroy the image,domain is also destroyed) and virsh (domain is not destroyed while destroying the image) . <br><br>I doubt that am making some mistake with the xml file .... Is that true?<br><br>Kindly give some suggestions<br><br>Thanks<br><br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"></font><tt><font
 size="2">libvir-list-bounces@redhat.com wrote on 04/10/2010
09:47:17 AM:<br>
<br>
<br>
> libvir-list</font></tt>
<br><tt><font size="2">> <br>
> Hello,<br>
> <br>
> Thanks Alex<br>
> <br>
> I created a domain using  "virsh -c xen:/// define libvirt-ttylinux.xml"
and<br>
> "virsh start ttyimage" for a simple ttyimage.<br>
> <br>
> Problem I face is that the image shutsdown immedialtely once virsh
<br>
> start guest  is typed. <br>
> I checked the Xend Logs<br>
> ----------------------------------------------------------------------------------------------------------<br>
> ---[2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116) <br>
> DevController: writing {'frontend-id': '6', 'domain': 'ttyimage',
<br>
[...]</font></tt>
<br><tt><font size="2">> [2010-04-11 07:08:02 xend 3155] DEBUG (vfbif:11)
Spawn: ['/usr/lib/<br>
> xen/bin/qemu-dm', '-M', 'xenpv', '-d', '6', '-domain-name', <br>
> 'ttyimage', '-vnc', '127.0.0.1:0', '-vncunused', '-k', 'en-us']<br>
> [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG <br>
> (XendDomainInfo:992) Storing VM details: {'shadow_memory': '0', <br>
> 'uuid': 'd5e916b0-bc2d-01f9-8156-4808c754f67a', 'on_reboot': <br>
> 'restart', 'start_time': '1270937282.29', 'on_poweroff': 'destroy',
<br>
> 'name': 'ttyimage', 'xend/restart_count': '0', 'vcpus': '1', <br>
> 'vcpu_avail': '1', 'memory': '64', 'on_crash': 'destroy', 'image':
<br>
> '(linux (kernel /boot/vmlinuz-2.6.18-164.2.1.el5xen))', 'maxmem':
'64'}<br>
> [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG <br>
> (XendDomainInfo:1027) Storing domain details: {'console/ring-ref':
<br>
> '65674', 'console/port': '2', 'name': 'ttyimage', 'console/limit':
<br>
> '1048576', 'vm': '/vm/d5e916b0-bc2d-01f9-8156-4808c754f67a', <br>
> 'domid': '6', 'cpu/0/availability': 'online', 'memory/target': <br>
> '65536', 'store/ring-ref': '65675', 'store/port': '1'}<br>
> [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG <br>
> (XendDomainInfo:1249) XendDomainInfo.handleShutdownWatch<br>
> [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:158) Waiting
<br>
> for devices vif.<br>
> [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:164) Waiting
for 0.<br>
> [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:509) <br>
> hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.<br>
> [2010-04-11 07:08:51 xend 3155] INFO (XendDomain:387) Domain <br>
> ttyimage (6) unpaused.<br>
> [2010-04-11 07:08:54 xend.XendDomainInfo 3155] WARNING <br>
> (XendDomainInfo:1177) Domain has crashed: name=ttyimage id=6.</font></tt>
<br>
<br><tt><font size="2">You domain crashed here...  Is the VM image and
kernel in that image known to work?</font></tt>
<br>
<br><tt><font size="2">  Regards,</font></tt>
<br><tt><font size="2">      Stefan</font></tt>
<br>
<br></div></div><div style=""></div>


</div></div></div><br>Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php</body></html>