Re: [libvirt] Domain not stable while created...
Thanks Mr.Stefan I was getting some errors when i ran like xm create libvirt-ttylinux.conf Mounting root filesystem. mount: could not find filesystem '/dev/root' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory So this time as sure that there is some problem with my configuration file. I googled , then I found some solution to change the ramdisk option by some command mentioned in the following link. http://www.virtuatopia.com/index.php/A_Xen_Guest_OS_fails_to_boot_with_a_%22switchroot:_mount_failed:_No_such_file_or_directory_error_message%22_error_message. But after doing this when I restart my process by xm create... and virsh console... , I get -- Creating root device. Mounting root filesystem. ext3: No journal on filesystem on sda1 mount: error mounting /dev/root on /sysroot as ext3: Invalid argument Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys -- Similary when I try other way by changing the ramdisk option in ttylinux.xml file and use virsh -c xen:/// create libvirt-ttylinux.xml , then virsh console domainname, I get some kernel error -- .. Initalizing network drop monitor service Freeing unused kernel memory: 176k freed Write protecting the kernel read-only data: 390k Registering block device major 8 USB Universal Host Controller Interface driver v3.0 SCSI subsystem initialized device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-de...@redhat.com device-mapper: dm-raid45: initialized v0.2594l netfront: Initialising virtual ethernet driver. netfront: device eth0 has flipping receive path. ext3: No journal on filesystem on sda1 Kernel panic - not syncing: Attempted to kill init! -- So , There is something terribly wrong with my kernel options in the configuration file in both cases, that doesn't allow the image to boot. Can you identify the nature of the error? Can You help me out in someway? Thanks Sankamesh sankamesh...@yahoo.co.in 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' namettyimage/name os typelinux/type kernel/boot/vmlinuz-2.6.18-164.2.1.el5xen/kernel
Re: [libvirt] Domain not stable while created...
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 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' namettyimage/name os typelinux/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 memory65536/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/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) . I doubt that am making some mistake with the xml file Is that true? Kindly give some suggestions Thanks libvir-list-boun...@redhat.com 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
Re: [libvirt] Domain not stable while created...
Sankamesh sankamesh...@yahoo.co.in 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' namettyimage/name os typelinux/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 memory65536/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/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-boun...@redhat.com 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':
Re: [libvirt] Domain not stable while created...
Hello, Thanks Alex I created a domain using virsh -c xen:/// define libvirt-ttylinux.xml andvirsh 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', 'frontend': '/local/domain/6/device/vkbd/0', 'state': '1', 'online': '1'} to /local/domain/0/backend/vkbd/6/0. [2010-04-11 07:08:02 xend.XendDomainInfo 3155] DEBUG (XendDomainInfo:633) Checking for duplicate for uname: /usr/local/ttylinux-xen-libvirt/ttylinux-xen.img [file:/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img], dev: sda, mode: w [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:114) DevController: writing {'virtual-device': '2048', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/6/2048'} to /local/domain/6/device/vbd/2048. [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116) DevController: writing {'domain': 'ttyimage', 'frontend': '/local/domain/6/device/vbd/2048', 'format': 'raw', 'dev': 'sda', 'state': '1', 'params': '/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img', 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'file'} to /local/domain/0/backend/vbd/6/2048. [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:114) DevController: writing {'mac': '00:1d:60:ec:ae:1c', 'handle': '0', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/6/0'} to /local/domain/6/device/vif/0. [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116) DevController: writing {'bridge': 'peth0', 'domain': 'ttyimage', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/6/device/vif/0', 'mac': '00:1d:60:ec:ae:1c', 'vifname': 'testnimb-0', 'online': '1', 'frontend-id': '6'} to /local/domain/0/backend/vif/6/0. [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:114) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/6/0'} to /local/domain/6/device/vfb/0. [2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116) DevController: writing {'vncunused': '0', 'domain': 'ttyimage', 'frontend': '/local/domain/6/device/vfb/0', 'vncdisplay': '0', 'state': '1', 'online': '1', 'frontend-id': '6', 'type': 'vnc'} to /local/domain/0/backend/vfb/6/0. [2010-04-11 07:08:02 xend 3155] DEBUG (vfbif:70) No VNC passwd configured for vfb access [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. [2010-04-11 07:08:54 xend.XendDomainInfo 3155] DEBUG (XendDomainInfo:2128) XendDomainInfo.destroy: domid=6 [2010-04-11 07:08:54 xend.XendDomainInfo 3155] INFO (XendDomainInfo:2289) Dev 2048 still active, looping... [2010-04-11 07:08:55 xend.XendDomainInfo 3155] INFO (XendDomainInfo:2289) Dev 2048 still active, looping... [2010-04-11 07:08:55 xend.XendDomainInfo 3155] INFO (XendDomainInfo:2289) Dev 2048 still active, looping... [2010-04-11 07:08:55 xend.XendDomainInfo 3155] INFO (XendDomainInfo:2289) Dev 2048 still active, looping... [2010-04-11 07:08:55 xend.XendDomainInfo 3155] DEBUG (XendDomainInfo:2053) UUID Created: True [2010-04-11 07:08:55 xend.XendDomainInfo 3155] DEBUG
Re: [libvirt] Domain not stable while created...
libvir-list-boun...@redhat.com 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 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
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' namettyimage/name os typelinux/type kernel/boot/vmlinuz-2.6.18-164.2.1.el5xen/kernel /os memory65536/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/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 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Domain not stable while created...
Hello Thanks for the reply. Now I use virsh -c xen:/// define libvirt-ttylinux.xml (domain is created) and virsh start ttyimage the image starts and shuts down immediately. This time I can view the domain even after the shut down. So is there any reason for the image being shutdown immediately? What else should I check?? Thanks in advance. 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' namettyimage/name os typelinux/type kernel/boot/vmlinuz-2.6.18-164.2.1.el5xen/kernel /os memory65536/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/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 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 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@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
[libvirt] Domain not stable while created...
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' namettyimage/name os typelinux/type kernel/boot/vmlinuz-2.6.18-164.2.1.el5xen/kernel /os memory65536/memory vcpu1/vcpu on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/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 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list