[CentOS-virt] New Guess OS Creation Problem

Mon Dec 12 14:47:28 UTC 2011
takizo <paulooi at takizo.com>

On Dec 12, 2011, at 6:56 PM, Stefan Hajnoczi wrote:

> On Sun, Dec 11, 2011 at 4:40 PM, takizo <paulooi at takizo.com> wrote:
>> LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.1.0 -enable-kvm -m 4096 -smp 1,sockets=1,cores=1,threads=1 -name database -uuid f3e9f320-7826-7e50-94bb-1833f7fd9dfb -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/database.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-reboot -drive file=/opt/cibai/database,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=threads -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/opt/ISO-Download/FreeBSD-8.2-RELEASE-amd64-disc1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,aio=threads -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:77:a5:a6,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:2,password -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>> char device redirected to /dev/pts/6
>> Using CPU model "cpu64-rhel6"
>> 
>> block I/O error in device 'drive-ide0-0-0': Invalid argument (22)
> 

Hi Stefan, Thanks for responding. 

> Is /opt/cibai/database on a special filesystem or exotic storage setup?

It's an direct attached disk. 

/dev/sdb1             134G   30G   98G  23% /opt

> 
> Please check dmesg on the host for any kernel messages regarding I/O errors.

I have checked dmesg, /var/log/messages and the one I pasted was from KVM storage. Not much error I can see 

> 
> Please try reading the file on the host to check whether the I/O error
> is happening on the host and not related to KVM:
> 
> $ dd if=/opt/cibai/database of=/dev/null iflag=direct

I have read the files. The file seems ok. 

dd if=/opt/vm/database.img of=/dev/null iflag=direct
52428800+0 records in52428800+0 records out
26843545600 bytes (27 GB) copied, 70.3967 s, 381 MB/s

I tried the installation again, same problem giving me IO error. Is there any other to show more verbose logging? 

2011-12-12 22:40:33.625: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.1.0 -enable-kvm -m 4096 -smp 1,sockets=1,cores=1,threads=1 -name database -uuid 8490fea3-cb30-4ac5-2779-3681a77e7b03 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/database.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-reboot -drive file=/opt/vm/database.img,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=threads -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/opt/ISO-Download/FreeBSD-8.2-RELEASE-amd64-disc1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,aio=threads -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:c8:1c:b9,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:3,password -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
char device redirected to /dev/pts/7
Using CPU model "cpu64-rhel6"
block I/O error in device 'drive-ide0-0-0': Invalid argument (22)
block I/O error in device 'drive-ide0-0-0': Invalid argument (22)
block I/O error in device 'drive-ide0-0-0': Invalid argument (22)


> 
> Stefan