Bug#583071: initramfs-tools: initrd.img fails to boot with xen

2010-05-25 Thread Asias He
Package: initramfs-tools
Version: 0.94.4
Severity: normal

Hi,

I am trying to boot xen with 2.6.32-5-xen-686 dom0 kernel using this grub2 
entry.

menuentry xen Debian GNU/Linux, with Linux 2.6.32-5-xen-686 --class debian 
--class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,3)'
multiboot   /boot/xen-3.4-i386.gz dom0_mem=512M
module  /boot/vmlinuz-2.6.32-5-xen-686 
root=UUID=b3af1d44-5293-4d2f-a211-fcc23b88b7fc ro vga=0x317
module  /boot/initrd.img-2.6.32-5-xen-686
}

The boot boot process ends here:
---
Loading, please wait ..
mount: cannot read /etc/fstab: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or direcotry
mount: mounting /sys on /root/sys failed: No such file or direcotry
mount: mont /proc on /root/proc failed:No such file or direcotry
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.

BusyBox v1.15.3
(initramfs)
---

But, If I use the following  grub entry to boot the dom0 kernel without 
xen.gz(same vmlinuz  initrd) the system boot sucessfully.
menuentry Debian GNU/Linux, with Linux 2.6.32-5-xen-686 --class debian 
--class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd1,3)'
search --no-floppy --fs-uuid --set b3af1d44-5293-4d2f-a211-fcc23b88b7fc
echoLoading Linux 2.6.32-5-xen-686 ... 
linux   /boot/vmlinuz-2.6.32-5-xen-686 
root=UUID=b3af1d44-5293-4d2f-a211-fcc23b88b7fc ro noresume quiet
echoLoading initial ramdisk ... 
initrd  /boot/initrd.img-2.6.32-5-xen-686
}

I noticed that there is a similar bug without xen involved.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576677

I followed the suggestion to update the findutils(4.5.9-1) and (initramfs-tools 
0.94.4).
But, the problem persists.

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-xen-686 
root=UUID=b3af1d44-5293-4d2f-a211-fcc23b88b7fc ro noresume quiet

-- /proc/filesystems
ext3
fuseblk

-- lsmod
Module  Size  Used by
ip6table_filter 1908  0 
ip6_tables  8560  1 ip6table_filter
iptable_filter  1790  0 
ip_tables   7690  1 iptable_filter
x_tables8327  2 ip6_tables,ip_tables
acpi_cpufreq4943  0 
cpufreq_powersave602  0 
cpufreq_userspace   1476  0 
cpufreq_conservative 4018  0 
cpufreq_stats   1940  0 
ppdev   4058  0 
lp  5570  0 
sco 5857  2 
bridge 32983  0 
stp  996  1 bridge
bnep7444  2 
rfcomm 25167  0 
l2cap  21705  6 bnep,rfcomm
crc16   1027  1 l2cap
bluetooth  36327  6 sco,bnep,rfcomm,l2cap
rfkill 10260  2 bluetooth
binfmt_misc 4907  1 
ib_iser21896  0 
rdma_cm17846  1 ib_iser
ib_cm  22569  1 rdma_cm
iw_cm   5119  1 rdma_cm
ib_sa  13079  2 rdma_cm,ib_cm
ib_mad 26365  2 ib_cm,ib_sa
ib_core33215  6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 4257  1 rdma_cm
iscsi_tcp   6685  0 
libiscsi_tcp9358  1 iscsi_tcp
libiscsi   24462  3 ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi19896  4 ib_iser,iscsi_tcp,libiscsi
nfsd  193247  13 
exportfs2618  1 nfsd
nfs   206770  0 
lockd  49433  2 nfsd,nfs
fscache24654  1 nfs
nfs_acl 1695  2 nfsd,nfs
auth_rpcgss25240  2 nfsd,nfs
sunrpc134588  12 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
fuse   43758  9 
loop9753  0 
dm_crypt9127  0 
snd_hda_codec_realtek   163214  1 
snd_hda_intel  16759  0 
snd_hda_codec  46002  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep   4054  1 snd_hda_codec
snd_pcm_oss28671  0 
snd_mixer_oss  10461  1 snd_pcm_oss
snd_pcm47402  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi3576  0 
snd_rawmidi12505  1 snd_seq_midi
snd_seq_midi_event  3684  1 snd_seq_midi
i915  219504  2 
i2c_i8016466  0 
snd_seq35459  2 snd_seq_midi,snd_seq_midi_event
drm_kms_helper 18301  1 i915
snd_timer  12258  2 snd_pcm,snd_seq
snd_seq_device  3673  3 snd_seq_midi,snd_rawmidi,snd_seq
drm   113374  3 i915,drm_kms_helper
i2c_algo_bit3497  1 i915
psmouse44649  0 
video  14605  1 i915
tpm_tis 5572  0 
snd

Bug#583071: initramfs-tools: initrd.img fails to boot with xen

2010-05-25 Thread Ian Campbell
On Tue, 2010-05-25 at 23:38 +0800, Asias He wrote:
 Package: initramfs-tools
 Version: 0.94.4
 Severity: normal
 
 Hi,
 
 I am trying to boot xen with 2.6.32-5-xen-686 dom0 kernel using this grub2 
 entry.
 
 menuentry xen Debian GNU/Linux, with Linux 2.6.32-5-xen-686 --class debian 
 --class gnu-linux --class gnu --class os {
 insmod ext2
 set root='(hd0,3)'
 multiboot   /boot/xen-3.4-i386.gz dom0_mem=512M
 module  /boot/vmlinuz-2.6.32-5-xen-686 
 root=UUID=b3af1d44-5293-4d2f-a211-fcc23b88b7fc ro vga=0x317
 module  /boot/initrd.img-2.6.32-5-xen-686
 }

This is a known issue due to the grub2 maintainers arbitrarily changing
the semantics of the modules lines compared with grub1.

Please see the section of http://wiki.xen.org/xenwiki/XenCommonProblems
titled Booting Xen with GRUB2 fails? for a workaround.

Ian.

-- 
Ian Campbell
Current Noise: My Dying Bride - The Isis Script

You will gain money by an immoral action.




-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1274776192.24218.7074.ca...@zakaz.uk.xensource.com