[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Domain not stable while created...



Sankamesh wrote:
Hello,

I am using Scientific Linux 5.4 and xen. I want to deploy a sample ttyimage by creating a domain using virsh create.

My configuration file is :
-----------------------------------------------------------------------------------------------------
<?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>
     </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='sda' />
        </disk>
        <interface type='bridge'>
            <source bridge='virbr0' />
            <mac address='00:1d:60:ec:ae:1c' />
            <target dev='testnimb-0' />
        </interface>
    </devices>
</domain>
-------------------------------------------------------------------------------------------------------

when I use "virsh -c "xen:///" create libvirt-ttylinux.xml " to create a domain, the domain is crated and i can view the image (in paused mode) using the virt-manager. and when I resume the image it ,disappears (domain gets destroyed) after nearly 10 seconds..... Further when I use vncviewer localhost::5900 when the image is running (during the 10 sec) ,i can view the console. But it closes once the domain is destroyed.

Can someone explain why the image is not stable??? how can I make the domain to be stable????

Thanks in advance


------------------------------------------------------------------------
Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! <http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/>.
------------------------------------------------------------------------

--
libvir-list mailing list
libvir-list redhat com
https://www.redhat.com/mailman/listinfo/libvir-list
Using 'virsh create guest.xml' cmds can simply activate the guest, which only exist active domain instead of define domain, and the guest will disappear if it isn't in define domain and you carry out some operations, e.g. 'destroy' or 'shutdown' or
'save' etc. so you should correctly use virsh cmds:
FYI,
virsh -c xen:/// define libvirt-ttylinux.xml
virsh start guestname

Alex


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]