All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu-kvm and initrd
@ 2010-09-14  6:35 Nirmal Guhan
  2010-09-14 15:38 ` David S. Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Nirmal Guhan @ 2010-09-14  6:35 UTC (permalink / raw)
  To: kvm

Hi,

Getting an error while booting my guest with -initrd option as in :

qemu-kvm -net nic,macaddr=$macaddress -net tap,script=/etc/qemu-ifup
-m 512 -hda /root/kvm/x86/vdisk.img -kernel /root/mvroot/bzImage
-initrd /root/kvm/mv/ramdisk.img -append "root=/dev/ram0"

No filesystem could mount root, tried : ext3 ext2 ext4 vfat msds iso9660
Kernel panic

#file ramdisk.img
#ramdisk.img: Linux rev 1.0 ext2 filesystem data (mounted or unclean)

I tried with both above initrd and gzipped initrd but same error.

If I try to mount the same file and do a -append  "ip=dhcp
root=/dev/nfs rw nfsroot=xxxx:/root/kvm/mv/mnt" instead of -initrd
option, it works  fine. So am guessing this is initrd related.

Any help would be much appreciated.

Thanks,
Nirmal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: qemu-kvm and initrd
  2010-09-14  6:35 qemu-kvm and initrd Nirmal Guhan
@ 2010-09-14 15:38 ` David S. Ahern
  2010-09-14 19:38   ` Nirmal Guhan
  0 siblings, 1 reply; 4+ messages in thread
From: David S. Ahern @ 2010-09-14 15:38 UTC (permalink / raw)
  To: Nirmal Guhan; +Cc: kvm



On 09/14/10 00:35, Nirmal Guhan wrote:
> Hi,
> 
> Getting an error while booting my guest with -initrd option as in :
> 
> qemu-kvm -net nic,macaddr=$macaddress -net tap,script=/etc/qemu-ifup
> -m 512 -hda /root/kvm/x86/vdisk.img -kernel /root/mvroot/bzImage
> -initrd /root/kvm/mv/ramdisk.img -append "root=/dev/ram0"
> 
> No filesystem could mount root, tried : ext3 ext2 ext4 vfat msds iso9660
> Kernel panic
> 
> #file ramdisk.img
> #ramdisk.img: Linux rev 1.0 ext2 filesystem data (mounted or unclean)

What's the size of ramdisk.img?

David


>
> I tried with both above initrd and gzipped initrd but same error.
> 
> If I try to mount the same file and do a -append  "ip=dhcp
> root=/dev/nfs rw nfsroot=xxxx:/root/kvm/mv/mnt" instead of -initrd
> option, it works  fine. So am guessing this is initrd related.
> 
> Any help would be much appreciated.
> 
> Thanks,
> Nirmal
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: qemu-kvm and initrd
  2010-09-14 15:38 ` David S. Ahern
@ 2010-09-14 19:38   ` Nirmal Guhan
  2010-09-14 19:43     ` David S. Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Nirmal Guhan @ 2010-09-14 19:38 UTC (permalink / raw)
  To: David S. Ahern; +Cc: kvm

On Tue, Sep 14, 2010 at 8:38 AM, David S. Ahern <daahern@cisco.com> wrote:
>
>
> On 09/14/10 00:35, Nirmal Guhan wrote:
>> Hi,
>>
>> Getting an error while booting my guest with -initrd option as in :
>>
>> qemu-kvm -net nic,macaddr=$macaddress -net tap,script=/etc/qemu-ifup
>> -m 512 -hda /root/kvm/x86/vdisk.img -kernel /root/mvroot/bzImage
>> -initrd /root/kvm/mv/ramdisk.img -append "root=/dev/ram0"
>>
>> No filesystem could mount root, tried : ext3 ext2 ext4 vfat msds iso9660
>> Kernel panic
>>
>> #file ramdisk.img
>> #ramdisk.img: Linux rev 1.0 ext2 filesystem data (mounted or unclean)

I tried with both initrd and initramfs. Sizes are 42314699 and
71271136 respectively. Sizes do seem larger but I created them from
the nfsroot created as part of the build (the nfsroot works
apparently).

>
> What's the size of ramdisk.img?
>
> David
>
>
>>
>> I tried with both above initrd and gzipped initrd but same error.
>>
>> If I try to mount the same file and do a -append  "ip=dhcp
>> root=/dev/nfs rw nfsroot=xxxx:/root/kvm/mv/mnt" instead of -initrd
>> option, it works  fine. So am guessing this is initrd related.
>>
>> Any help would be much appreciated.
>>
>> Thanks,
>> Nirmal
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: qemu-kvm and initrd
  2010-09-14 19:38   ` Nirmal Guhan
@ 2010-09-14 19:43     ` David S. Ahern
  0 siblings, 0 replies; 4+ messages in thread
From: David S. Ahern @ 2010-09-14 19:43 UTC (permalink / raw)
  To: Nirmal Guhan; +Cc: kvm



On 09/14/10 13:38, Nirmal Guhan wrote:
> On Tue, Sep 14, 2010 at 8:38 AM, David S. Ahern <daahern@cisco.com> wrote:
>>
>>
>> On 09/14/10 00:35, Nirmal Guhan wrote:
>>> Hi,
>>>
>>> Getting an error while booting my guest with -initrd option as in :
>>>
>>> qemu-kvm -net nic,macaddr=$macaddress -net tap,script=/etc/qemu-ifup
>>> -m 512 -hda /root/kvm/x86/vdisk.img -kernel /root/mvroot/bzImage
>>> -initrd /root/kvm/mv/ramdisk.img -append "root=/dev/ram0"
>>>
>>> No filesystem could mount root, tried : ext3 ext2 ext4 vfat msds iso9660
>>> Kernel panic
>>>
>>> #file ramdisk.img
>>> #ramdisk.img: Linux rev 1.0 ext2 filesystem data (mounted or unclean)
> 
> I tried with both initrd and initramfs. Sizes are 42314699 and
> 71271136 respectively. Sizes do seem larger but I created them from
> the nfsroot created as part of the build (the nfsroot works
> apparently).

See if you can drop the image size as a test. I had to do that recently
to get the kernel/initrd/append option to work. As I recall I was
getting the same error message until I dropped the initrd size.

David

> 
>>
>> What's the size of ramdisk.img?
>>
>> David
>>
>>
>>>
>>> I tried with both above initrd and gzipped initrd but same error.
>>>
>>> If I try to mount the same file and do a -append  "ip=dhcp
>>> root=/dev/nfs rw nfsroot=xxxx:/root/kvm/mv/mnt" instead of -initrd
>>> option, it works  fine. So am guessing this is initrd related.
>>>
>>> Any help would be much appreciated.
>>>
>>> Thanks,
>>> Nirmal
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-14 19:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-14  6:35 qemu-kvm and initrd Nirmal Guhan
2010-09-14 15:38 ` David S. Ahern
2010-09-14 19:38   ` Nirmal Guhan
2010-09-14 19:43     ` David S. Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.