support ramdiskless boot for relevant kvm drive interfaces in -virtual
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
John Johansen | ||
Lucid |
Fix Released
|
High
|
John Johansen |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In working on the ec2/uec ramdisk-less boot [1] I recently verified that
the -virtual kernel has sufficient disk drivers to boot on hardware
presented by UEC.
I'd like to request that we have driver support built in to -virtual for
the other reasonable kvm interfaces. kvm man page shows the following as
options for '-drive if=':
ide, scsi, sd, mtd, floppy, pflash, virtio.
I quickly tested vmlinuz-
- - [X] kvm if=ide (this is the same as '-hda <file>')
- - [ ] kvm if=scsi (used by eucalyptus)
- - [ ] kvm if=sd
- - [ ] kvm if=mtd
- - [ ] kvm if=floppy
- - [ ] kvm if=pflash
- - [ ] kvm if=virtio
The 'X' marks success. I previously believed 'scsi' to have worked, but
couldn't get it to function today. Of the list above, the ones that I
think are 'reasonable' or relavant are:
ide
scsi
virtio
To test, I had disk.img.dist as a root filesystem that would boot. Then:
$ qemu-img create -f qcow2 -b disk.img.dist disk.img
$ kvm -drive file=disk.
-kernel lucid-uec-
-append "nosplash single root=/dev/sda1"
Note: I'm not certain on the correctness of 'bus=0,index=0' or
effectiveness for all drivers.
- --
[1] https:/
affects ubuntu/linux
assignee jjohansen
importance low
subscribe smoser
subscribe kirkland
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAks
9uAAoI0ehIkghJS
=O7db
-----END PGP SIGNATURE-----
Related branches
tags: | added: kernel-series-unknown |
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
status: | New → Triaged |
Changed in linux (Ubuntu Lucid): | |
importance: | Wishlist → High |
summary: |
- support ramdiskless boot for relavant kvm drive interfaces in -virtual + support ramdiskless boot for relevant kvm drive interfaces in -virtual |
tags: |
added: lucid removed: kernel-series-unknown |
Changed in linux (Ubuntu Lucid): | |
status: | Triaged → Fix Committed |
I booted recent kernels with a ramdisk in kvm, and then looked at what modules were loaded. In order to support kvm:
if=virtio: VIRTIO_ BLK=y
module=virtio_blk
CONFIG_
if=scsi: SCSI_SYM53C8XX_ 2=y
module=sym53c8xx (I think that that is):
CONFIG_
If we could flip those to 'y' and their dependencies, I think our kernel would for relevant '-drive if=' without a ramdisk.