<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>Thanks Mr.Stefan<br><br>I was getting some errors when i ran like <tt><font size="2">xm create
libvirt-ttylinux.conf </font></tt><br><font size="1">----------------------------------------------------------------------------------------------------------------------------------------<br>
</font><font size="1">Mounting root filesystem.<br>
mount: could not find filesystem '/dev/root'<br>
Setting up other filesystems.<br>
Setting up new root fs<br>
setuproot: moving /dev failed: No such file or directory<br>
no fstab.sys, mounting internal defaults<br>
setuproot: error mounting /proc: No such file or directory<br>
setuproot: error mounting /sys: No such file or directory<br>
Switching to new root and running init.<br>
unmounting old /dev<br>
unmounting old /proc<br>
unmounting old /sys<br>
switchroot: mount failed: No such file or directory<br>
</font>------------------------------------------------------------------------<br>
<br>
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.<br>
<br>
<a rel="nofollow" target="_blank" href="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.">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.</a><br>
<br>
But after doing this when I restart my process by "xm create..." and "virsh console..." , I get <br>
--------------------------------------------------------------<br>
<font size="1">Creating root device.<br>
Mounting root filesystem.<br>
ext3: No journal on filesystem on sda1<br>
mount: error mounting /dev/root on /sysroot as ext3: Invalid argument<br>
Setting up other filesystems.<br>
Setting up new root fs<br>
setuproot: moving /dev failed: No such file or directory<br>
no fstab.sys, mounting internal defaults<br>
setuproot: error mounting /proc: No such file or directory<br>
setuproot: error mounting /sys: No such file or directory<br>
Switching to new root and running init.<br>
unmounting old /dev<br>
unmounting old /proc<br>
unmounting old /sys<br>
--------------------------------------------------------------------------------------------------------------------------</font><br>
<br>
<br>
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,<br>
I get some kernel error<br>
--------------------------------------------------------------------------------------------------<br>
<font size="1">..............................................................<br>
Initalizing network drop monitor service<br>
Freeing unused kernel memory: 176k freed<br>
Write protecting the kernel read-only data: 390k<br>
Registering block device major 8<br>
USB Universal Host Controller Interface driver v3.0<br>
SCSI subsystem initialized<br>
device-mapper: uevent: version 1.0.3<br>
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com<br>
device-mapper: dm-raid45: initialized v0.2594l<br>
netfront: Initialising virtual ethernet driver.<br>
netfront: device eth0 has flipping receive path.<br>
ext3: No journal on filesystem on sda1<br>
Kernel panic - not syncing: Attempted to kill init!<br>
</font>--------------------------------------------------------------------------------------------------<br>
<br>
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.<br>
<br>
Can you identify the nature of the error?<br>
<br>Can You help me out in someway?<br><br>Thanks<br><br><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><br><hr size="1"><b><span style="font-weight: bold;"></span></b></font><br><tt><font size="2">Sankamesh <sankamesh_rb@yahoo.co.in> wrote on
04/12/2010 04:29:36 AM:<br>
<br>
</font></tt>
<br><tt><font size="2">> <br>
> Thanks Mr. Stefan<br>
</font></tt>
<br><tt><font size="2">> Will that crash mainly be due to the kernel ?
Since am not sure <br>
> about that,else I should try with different image. </font></tt>
<br><tt><font size="2">> When I use via a config file using "xm create
libvirt-ttylinux.conf <br>
> ", then the domain runs stable....<br>
> <br>
> But when I use the virsh -c xen:/// define libvirt-ttylinux.xml"
and<br>
> "virsh start ttyimage, it crashes after sometime.<br>
> <br>
> The ibvirt-ttylinux.conf file ::<br>
> <br>
> --------------------------------------------------------------------------------------------------------------------------------<br>
> 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</font></tt>
<br>
<br><tt><font size="2">Maybe try to give it some more memory...</font></tt>
<br>
<br><tt><font size="2">Otherwise I can just guess as to why there is such
a difference in this vm running stable. Are there any significant difference</font></tt>
<br><tt><font size="2">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</font></tt>
<br><tt><font size="2">by an 'xm start <domainname>'?</font></tt>
<br>
<br>
<br><tt><font size="2"><br>
> name = "ttylinux"<br>
> disk = ['file:/usr/local/ttylinux-xen-libvirt/ttylinux-xen.img,sda1,w']<br>
> root = "/dev/sda1 ro"<br>
> vif = ['']<br>
> --------------------------------------------------------------------------------------------------------------------------------</font></tt>
<br><tt><font size="2">> </font></tt>
<br><tt><font size="2">> I give the same Xen kernel parameter here in
xml file, and use virsh<br>
> to create domain</font></tt>
<br><tt><font size="2">> <br>
> ---------------------------------------------------------------------------------------------------------------------------------------<br>
> <?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></tt>
<br><tt><font size="2">> My Boot grub file data::</font></tt>
<br><tt><font size="2">> <br>
> --------------------------------------------------------------------------------------------------------------------------------------</font></tt>
<br><tt><font size="2">> 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</font></tt>
<br><tt><font size="2">> --------------------------------------------------------------------------------------------------------------------------------------</font></tt>
<br><tt><font size="2">> <br>
> <br>
> Why is this difference between the xm (when i destroy the <br>
> image,domain is also destroyed) and virsh (domain is not destroyed
<br>
> while destroying the image) . </font></tt>
<br>
<br><tt><font size="2">xm new <vm definition filename> -> xm start
<domainname> -> xm destroy <domainname> -> xm delete
<domainname></font></tt>
<br>
<br><tt><font size="2">is similar to</font></tt>
<br>
<br><tt><font size="2">virsh ... define ->  virsh start <domainname>
-> virsh destroy <domainname> -> virsh undefine <domainname></font></tt>
<br>
<br>
<br><tt><font size="2">   Stefan</font></tt>
<br><tt><font size="2"><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>
</font></tt>
<br><tt><font size="2">> libvir-list-bounces@redhat.com wrote on 04/10/2010
09:47:17 AM:<br>
> <br>
> <br>
> > libvir-list <br>
> > <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>
> ----------------------------------------------------------------------------------------------------------<br>
> > ---[2010-04-11 07:08:02 xend 3155] DEBUG (DevController:116)
<br>
> > DevController: writing {'frontend-id': '6', 'domain': 'ttyimage',
<br>
> [...] <br>
> > [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.
<br>
> <br>
> You domain crashed here...  Is the VM image and kernel in that
image<br>
> known to work? <br>
> <br>
>   Regards, <br>
>       Stefan <br>
</font></tt>
<br><tt><font size="2">> <br>
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
<br>
> Download Now! </font></tt><a rel="nofollow" target="_blank" href="http://messenger.yahoo.com/download.php"><tt><font size="2">http://messenger.yahoo.com/download.php</font></tt></a></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>