| Summary: | Fails to install RHEL 6.0 from DVD on RHEL 6.0 host: "RAMDISK: incomplete write" error | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Richard W.M. Jones <rjones> | ||||||||||
| Component: | qemu-kvm | Assignee: | jason wang <jasowang> | ||||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||
| Priority: | unspecified | ||||||||||||
| Version: | 6.0 | CC: | berrange, crobinso, jclift, khong, mkenneth, tburke, virt-maint, xen-maint | ||||||||||
| Target Milestone: | rc | ||||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2011-06-07 03:12:56 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Bug Depends On: | |||||||||||||
| Bug Blocks: | 580954 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Richard W.M. Jones
2011-01-25 17:02:31 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
[...]
Additionally I have checked the MD5 of the ISO and it all appears to be correct. As an additional data point, a Fedora guest is being installed from Fedora-14-x86_64-DVD.iso just fine on the same host. 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)
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 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 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. 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
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 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? Can QE reproduce that? I wonder why it passes their tests. 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 As stated in comment 2, I checked the MD5 hash of the downloaded ISO and it appeared fine. |