Bug 672589 - Fails to install RHEL 6.0 from DVD on RHEL 6.0 host: "RAMDISK: incomplete write" error
Summary: Fails to install RHEL 6.0 from DVD on RHEL 6.0 host: "RAMDISK: incomplete wri...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: jason wang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 580954
TreeView+ depends on / blocked
 
Reported: 2011-01-25 17:02 UTC by Richard W.M. Jones
Modified: 2013-01-09 23:31 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-07 03:12:56 UTC
Target Upstream Version:


Attachments (Terms of Use)
Screenshot of guest at point of failure (18.02 KB, image/png)
2011-01-25 17:06 UTC, Richard W.M. Jones
no flags Details
Working RHEL 6.0 guest config generated by virt-manager (2.38 KB, text/xml)
2011-01-25 17:19 UTC, Justin Clift
no flags Details
virt-install.log (3.52 KB, application/octet-stream)
2011-01-25 18:03 UTC, Richard W.M. Jones
no flags Details
virt-install log (3.35 KB, text/x-log)
2011-02-18 08:10 UTC, Keqin Hong
no flags Details

Description Richard W.M. Jones 2011-01-25 17:02:31 UTC
Description of problem:

I'm trying to install a RHEL 6.0 guest from the DVD, on
a RHEL 6.0 host (installed from the same ISO burned to DVD).

However the guest kernel panics very early on: it cannot
mount the ISO root filesystem.

Version-Release number of selected component (if applicable):

On host:
  qemu-kvm-0.12.1.2-2.113.el6.x86_64
  seabios-0.5.1-3.el6.x86_64
  kernel-2.6.32-71.el6.x86_64
  libvirt-0.8.1-27.el6.x86_64
  python-virtinst-0.500.3-7.el6.noarch
  Linux kempei-rhel6.home.annexia.org 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Guest:
  RHEL6.0-20100922.1-Server-x86_64-DVD1.iso

How reproducible:

100%

Steps to Reproduce:
1. Download RHEL6.0-20100922.1-Server-x86_64-DVD1.iso
2. Create 10G LV for disk.
3. virt-install --accelerate -r 1300 -f /dev/vg_kempei/RHEL60x64 -n RHEL60x64 --cdrom /var/tmp/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso 
  
Actual results:

Guest kernel panics because it cannot mount root.  See screenshot
and transcription in comment 1.

Expected results:

Should not panic, should install.

Additional info:

Comment 1 Richard W.M. Jones 2011-01-25 17:06:40 UTC
Created attachment 475210 [details]
Screenshot of guest at point of failure

(Transcription done by hand -- may contain errors)

md: ... autorun DONE.
RAMDISK: gzip image found at block 0
usb 1-1: New USB device found, idVendor=0627, idProduct=0001
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb 1-1: Product: QEMU USB Tablet
usb 1-1: Manufacturer: QEMU 0.12.1
usb 1-1: SerialNumber: 1
RAMDISK: incomplete write (45 != 16379)
write error
usb 1-1: configuration #1 chosen from 1 choice
isofs_fill_super: bread failed, dev=md1, iso_blknum=16, block=32
List of all partitions:
No filesystem could mount root, tried:  iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,1)
Pid: 1, comm: swapper Not tainted 2.6.32-71.el6.x86_64 #1
Call Trace:
 [...] panic+0x78/0x137
 [...] mount_block_root+0x273/0x29e
 [...] mount_root+0x56/0x5a
 [...] prepare_namespace+0x170/0x1a9
 [...] kernel_init+0x298/0x2a8
 [...]

Comment 2 Richard W.M. Jones 2011-01-25 17:07:28 UTC
Additionally I have checked the MD5 of the ISO and
it all appears to be correct.

Comment 4 Richard W.M. Jones 2011-01-25 17:19:07 UTC
As an additional data point, a Fedora guest is being installed
from Fedora-14-x86_64-DVD.iso just fine on the same host.

Comment 5 Justin Clift 2011-01-25 17:19:45 UTC
Created attachment 475214 [details]
Working RHEL 6.0 guest config generated by virt-manager

As a point of comparison, this attachment is from a working RHEL 6.0 guest (on a RHEL 6.0 host), created and installed just now.

It was generated using virt-manager rather than virt-install, so there might be some XML differences that could be the cause. (unsure)

Comment 6 Richard W.M. Jones 2011-01-25 17:21:10 UTC
qemu command line from failed install:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name RHEL60x64 -uuid 195c0bb0-f415-c9e9-92a6-347211bfb78e -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/RHEL60x64.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -no-reboot -boot d -drive file=/var/tmp/test.qcow2,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/var/tmp/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=20,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:39:28:02,bus=pci.0,addr=0x3 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -k en-gb -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 
char device redirected to /dev/pts/4

qemu command line from successful install:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name F14x64wdt -uuid 431b4dc5-9fd0-053a-737f-1f07ad95b946 -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/F14x64wdt.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -no-reboot -boot d -drive file=/dev/vg_kempei/F14x64wdt,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/var/tmp/Fedora-14-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=20,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:3d:3b:d0,bus=pci.0,addr=0x3 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -k en-gb -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 
char device redirected to /dev/pts/4

Comment 7 Justin Clift 2011-01-25 17:27:19 UTC
The working command line, generated using the above XML file is (from the log file):

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -name RHEL60-x64,process=qemu:RHEL60-x64 -uuid cde6d285-5f45-f984-5294-00dd5ab0972b -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/RHEL60-x64.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=utc -no-reboot -boot d -drive file=/vm/libvirt/RHEL60-x64.img,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/var/lib/libvirt/images/RHEL 6.0 Server x86_64 (GA).iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -device virtio-net-pci,vlan=0,id=net0,mac=52:54:00:b5:83:02,bus=pci.0,addr=0x3 -net tap,fd=19,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -device usb-tablet,id=input0 -vnc 0.0.0.0:0,password -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

Comment 8 Daniel Berrangé 2011-01-25 17:56:54 UTC
The command line from the failed install doesn't correspond with the virt-install command line args shown. Can you run virt-install with --debug set and attach the output, along with the full QEMU log file libvirt creates.

Comment 9 Richard W.M. Jones 2011-01-25 18:03:13 UTC
Created attachment 475231 [details]
virt-install.log

virt-install --accelerate -r 1300 -f /dev/vg_kempei/RHEL60x64wdt -n RHEL60x64wdt --cdrom /var/tmp/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso --debug > /tmp/virt-install.log 2>&1

Comment 10 Richard W.M. Jones 2011-01-25 18:04:04 UTC
libvirt log corresponding to comment 9.

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 1300 -smp 1,sockets=1,cores=1,threads=1 -name RHEL60x64wdt -uuid d5bf71e5-33d9-4492-df16-34abd8196bf0 -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/RHEL60x64wdt.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -no-reboot -boot d -drive file=/dev/vg_kempei/RHEL60x64wdt,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/var/tmp/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=20,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:89:24:ab,bus=pci.0,addr=0x3 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -k en-gb -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 
char device redirected to /dev/pts/4

Comment 12 Cole Robinson 2011-02-03 15:12:33 UTC
Reassigning to kvm, probably isn't virtinst related.

Rich, can you reproduce with just the qemu command line, or at least a pared down XML definition?

Comment 13 Dor Laor 2011-02-17 13:20:44 UTC
Can QE reproduce that? I wonder why it passes their tests.

Comment 14 Keqin Hong 2011-02-18 08:10:31 UTC
Created attachment 479465 [details]
virt-install log

Couldn't reproduce using the same CLI as in Comment 0. Installation succeeded.

# virt-install --accelerate -r 1300 -f /dev/vg_dhcp91149/lv_test -n RHEL60x64 --cdrom /var/tmp/RHEL6.0-20100922.1-Server-x86_64-DVD1.iso --debug

component version:
  qemu-kvm-0.12.1.2-2.113.el6.x86_64
  seabios-0.5.1-3.el6.x86_64
  kernel-2.6.32-71.el6.x86_64
  libvirt-0.8.1-27.el6.x86_64
  python-virtinst-0.500.3-7.el6.noarch

# lvscan 
  ACTIVE            '/dev/vg_dhcp91149/lv_root' [50.00 GiB] inherit
  ACTIVE            '/dev/vg_dhcp91149/lv_swap' [9.56 GiB] inherit
  ACTIVE            '/dev/vg_dhcp91149/lv_test' [10.00 GiB] inherit
  ACTIVE            '/dev/vg_dhcp91149/lv_home' [195.31 GiB] inherit


processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 2
model name	: AMD Phenom(tm) 9600B Quad-Core Processor
stepping	: 3
cpu MHz		: 1150.000
cache size	: 512 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs npt lbrv svm_lock
bogomips	: 4587.43
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Comment 17 Richard W.M. Jones 2011-03-02 10:50:32 UTC
As stated in comment 2, I checked the MD5 hash of the
downloaded ISO and it appeared fine.


Note You need to log in before you can comment on or make changes to this bug.