Sankamesh <sankamesh_rb@xxxxxxxxxxx> wrote on 04/12/2010 04:29:36 AM:
>
> Thanks Mr. Stefan
> Will that crash mainly be due to the kernel ? Since am not sure
> about that,else I should try with different image.
> When I use via a config file using "xm create libvirt-ttylinux.conf
> ", then the domain runs stable....
>
> But when I use the virsh -c xen:/// define libvirt-ttylinux.xml" and
> "virsh start ttyimage, it crashes after sometime.
>
> The ibvirt-ttylinux.conf file ::
>
> --------------------------------------------------------------------------------------------------------------------------------
> kernel = "/boot/vmlinuz-2.6.18-164.2.1.el5xen"
> ramdisk= "/boot/initrd-2.6.18-164.2.1.el5xen.img"
> memory = 64
Maybe try to give it some more memory...
Otherwise I can just guess as to why there is such a difference in this vm running stable. Are there any significant difference
between an 'xm list' after the 'xm create' and an 'xm list' after the 'virsh -c ... define'? Did you ever try 'xm new <vm config file name>' followed
by an 'xm start <domainname>'?
> name = "ttylinux"
> disk = ['file:/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img,sda1,w']
> root = "/dev/sda1 ro"
> vif = ['']
> --------------------------------------------------------------------------------------------------------------------------------
>
> I give the same Xen kernel parameter here in xml file, and use virsh
> to create domain
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <domain type='xen'>
> <name>ttyimage</name>
> <os>
> <type>linux</type>
> <kernel>/boot/vmlinuz-2.6.18-164.2.1.el5xen</kernel>
> <initrd>/boot/initrd-2.6.18-164.2.1.el5xen.img</initrd>
> </os>
> <memory>65536</memory>
> <vcpu>1</vcpu>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>destroy</on_crash>
> <devices>
> <graphics type='vnc' port='5900'/>
> <disk type='file'>
> <source file='/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img' />
> <target dev='sda1' />
> </disk>
> <interface type='bridge'>
> <source bridge='virbr0' />
> <mac address='00:1d:60:ec:ae:1c' />
> <target dev='testnimb-0' />
> </interface>
> </devices>
> </domain>
> ---------------------------------------------------------------------------------------------------------------------------------------
> My Boot grub file data::
>
> --------------------------------------------------------------------------------------------------------------------------------------
> title Scientific Linux (2.6.18-164.2.1.el5xen)
> root (hd0,0)
> kernel /xen.gz-2.6.18-164.2.1.el5
> module /vmlinuz-2.6.18-164.2.1.el5xen ro root=LABEL=/1 rhgb quiet
> module /initrd-2.6.18-164.2.1.el5xen.img
> --------------------------------------------------------------------------------------------------------------------------------------
>
>
> 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) .
xm new <vm definition filename> -> xm start <domainname> -> xm destroy <domainname> -> xm delete <domainname>
is similar to
virsh ... define -> virsh start <domainname> -> virsh destroy <domainname> -> virsh undefine <domainname>
Stefan
>
> I doubt that am making some mistake with the xml file .... Is that true?
>
> Kindly give some suggestions
>
> Thanks
>
>
> libvir-list-bounces@xxxxxxxxxx wrote on 04/10/2010 09:47:17 AM:
>
>
> > libvir-list
> >
> > Hello,
> >
> > Thanks Alex
> >
> > I created a domain using "virsh -c xen:/// define libvirt-ttylinux.xml" and
> > "virsh start ttyimage" for a simple ttyimage.
> >
> > Problem I face is that the image shutsdown immedialtely once virsh
> > start guest is typed.
> > I checked the Xend Logs
> >
> ----------------------------------------------------------------------------------------------------------
> > ---[2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116)
> > DevController: writing {'frontend-id': '6', 'domain': 'ttyimage',
> [...]
> > [2010-04-11 07:08:02 xend 3155] DEBUG (vfbif:11) Spawn: ['/usr/lib/
> > xen/bin/qemu-dm', '-M', 'xenpv', '-d', '6', '-domain-name',
> > 'ttyimage', '-vnc', '127.0.0.1:0', '-vncunused', '-k', 'en-us']
> > [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG
> > (XendDomainInfo:992) Storing VM details: {'shadow_memory': '0',
> > 'uuid': 'd5e916b0-bc2d-01f9-8156-4808c754f67a', 'on_reboot':
> > 'restart', 'start_time': '1270937282.29', 'on_poweroff': 'destroy',
> > 'name': 'ttyimage', 'xend/restart_count': '0', 'vcpus': '1',
> > 'vcpu_avail': '1', 'memory': '64', 'on_crash': 'destroy', 'image':
> > '(linux (kernel /boot/vmlinuz-2.6.18-164.2.1.el5xen))', 'maxmem': '64'}
> > [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG
> > (XendDomainInfo:1027) Storing domain details: {'console/ring-ref':
> > '65674', 'console/port': '2', 'name': 'ttyimage', 'console/limit':
> > '1048576', 'vm': '/vm/d5e916b0-bc2d-01f9-8156-4808c754f67a',
> > 'domid': '6', 'cpu/0/availability': 'online', 'memory/target':
> > '65536', 'store/ring-ref': '65675', 'store/port': '1'}
> > [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG
> > (XendDomainInfo:1249) XendDomainInfo.handleShutdownWatch
> > [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:158) Waiting
> > for devices vif.
> > [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:164) Waiting for 0.
> > [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:509)
> > hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
> > [2010-04-11 07:08:51 xend 3155] INFO (XendDomain:387) Domain
> > ttyimage (6) unpaused.
> > [2010-04-11 07:08:54 xend.XendDomainInfo 3155] WARNING
> > (XendDomainInfo:1177) Domain has crashed: name=ttyimage id=6.
>
> You domain crashed here... Is the VM image and kernel in that image
> known to work?
>
> Regards,
> Stefan
>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
> Download Now! http://messenger.yahoo.com/download.php
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list