Skip to contentSkip to conversation

Bug in reboot when using scsi or virtio

DISCUSSION Stuart Sheldon 4 participants 7 messages Aug 29, 2008 – Aug 31, 2008 KVM

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

CPU: Intel(R) Pentium(R) D CPU 3.00GHz
KVM: kvm-74
Host: Debian Lenny - Vanilla 2.6.26.2
Guest: Debian Lenny - Vanilla 2.6.26.2
Command: {
export QEMU_AUDIO_DRV=oss

qemu-system-x86_64 \
        -m 1024 \
        -std-vga \
        -soundhw es1370 \
        -name 'Debian Vitrual Host' \
        -net nic,macaddr=52:54:00:12:31:02 \
        -drive file=/projects/stu/kvm-drives/debian.img,if=scsi,boot=on \
        -net tap,ifname=tap2 -daemonize
}

Still exists with -no-kvm-* combinations.
Software not built to run without kvm

To reproduce, just bring the guest host up with either a if=scsi or if=virtio.

Stu

- --
If you took all the girls I knew When I was single And brought them all together for one night I know theyd never match My sweet imagination And everything looks worse in black and white
-- Paul Simon - "Kodachrome Lyrics"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki4Q24ACgkQK69Y+xPZrWbD3QCghTlNiadqbtdQpG3y/S5z/8Dz VoQAoIQbJDXVbnjeN3jZW1kcRT86q/UI
=wp2/
-----END PGP SIGNATURE-----

#1 lore raw

Can you try using the extboot.bin from the last version that worked for you?

Quoted 54 lines · Stuart Sheldon

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

CPU: Intel(R) Pentium(R) D CPU 3.00GHz
KVM: kvm-74
Host: Debian Lenny - Vanilla 2.6.26.2
Guest: Debian Lenny - Vanilla 2.6.26.2
Command: {
export QEMU_AUDIO_DRV=oss

qemu-system-x86_64 \
       -m 1024 \
       -std-vga \
       -soundhw es1370 \
       -name 'Debian Vitrual Host' \
       -net nic,macaddr=52:54:00:12:31:02 \
       -drive file=/projects/stu/kvm-drives/ 

debian.img,if=scsi,boot=on \
-net tap,ifname=tap2 -daemonize
}

Still exists with -no-kvm-* combinations.
Software not built to run without kvm

To reproduce, just bring the guest host up with either a if=scsi or if=virtio.

Stu

- --
If you took all the girls I knew When I was single And brought them all together for one night I know theyd never match My sweet imagination And everything looks worse in black and white
-- Paul Simon - "Kodachrome Lyrics"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki4Q24ACgkQK69Y+xPZrWbD3QCghTlNiadqbtdQpG3y/S5z/8Dz VoQAoIQbJDXVbnjeN3jZW1kcRT86q/UI
=wp2/
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Brian,

The last version I had been running is kvm-70. After copying the extboot.bin from that version over to the share/kvm directory, the system rebooted several times in scsi and virtio mode.

Please let me know if you would like me to build any additional versions
for testing.

Stu

Quoted 32 lines · Brian Jackson

Can you try using the extboot.bin from the last version that worked for you?

On Aug 29, 2008, at 1:43 PM, Stuart Sheldon wrote:

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

CPU: Intel(R) Pentium(R) D CPU 3.00GHz
KVM: kvm-74
Host: Debian Lenny - Vanilla 2.6.26.2
Guest: Debian Lenny - Vanilla 2.6.26.2
Command: {
export QEMU_AUDIO_DRV=oss

qemu-system-x86_64 \
       -m 1024 \
       -std-vga \
       -soundhw es1370 \
       -name 'Debian Vitrual Host' \
       -net nic,macaddr=52:54:00:12:31:02 \
       -drive file=/projects/stu/kvm-drives/debian.img,if=scsi,boot=on \
       -net tap,ifname=tap2 -daemonize
}
Quoted 9 lines

Still exists with -no-kvm-* combinations.
Software not built to run without kvm

To reproduce, just bring the guest host up with either a if=scsi or if=virtio.

Stu

- --
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

- --
Open up the window Let some air into this room I think I'm almost chokin' From the smell of stale perfume And that cigarette you're smoking 'Bout scared me half to death Open up the window, sucker Let me catch my breath
-- Three Dog Night - "Mama Told Me Not to Come - Lyrics"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki4aMIACgkQK69Y+xPZrWZTHACfbeN8qlgVAIj+gK7l0eJ/qKce RgkAn2tCIbkwpy2H2BZZ32H+PweAumB5
=1uc3
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Stuart Sheldon
Quoted 10 lines · Stuart Sheldon

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

This was caused by the extboot rom writing into itself, thus failing checksum on the next reboot. I fixed this for kvm-75 by reloading the rom on reset.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
#4 lore raw

Thanks Avi,

Should I test against the daily to verify?

Stu

Quoted 14 lines · Avi Kivity
Quoted 10 lines · Stuart Sheldon

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

This was caused by the extboot rom writing into itself, thus failing checksum on the next reboot. I fixed this for kvm-75 by reloading the rom on reset.

Signature · 2 lines
Randomly Generated Fortune Tag:
Many pages make a thick book.
#5 lore raw
Quoted 3 lines · Stuart Sheldon

Thanks Avi,

Should I test against the daily to verify?

I've reproduced it locally and verified the fix, but of course additional confirmation is welcome.

Signature · 1 line
error compiling committee.c: too many arguments to function
#6 lore raw
In reply to Avi Kivity

2008/8/30 Avi Kivity <[email protected]>:

Quoted 13 lines
Quoted 11 lines · Stuart Sheldon

Guest boots and runs fine, but does not see boot device on guest reboot if if=scsi or if=virtio is used.

Boot Screen after reboot:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read boot disk ... More failed boot devices that shouldn't boot anyway...
FATAL: No bootable device

Quoted 3 lines

This was caused by the extboot rom writing into itself, thus failing checksum on the next reboot. I fixed this for kvm-75 by reloading the rom on reset.

Many many thanks!

/Henrik Holst