kvm 0.84 doesn't create three drives in the guest

Bug #360825 reported by Mathias Gug
10
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Fix Released
Medium
Dustin Kirkland 
Jaunty
Fix Released
Medium
Dustin Kirkland 

Bug Description

Binary package hint: kvm

Running kvm 1:84+dfsg-0ubuntu8~ppa5 on a hardy host.

With the following command, only two drives show up in the guest (vda, vdb) while three are expected (+vdc):

/usr/bin/kvm -M pc -m 128 -smp 1 -monitor pty -no-reboot -boot d -kernel /home/mathiaz/vm/tests_isos/jaunty-server-amd64/vmlinuz -initrd /home/mathiaz/vm/tests_isos/jaunty-server-amd64/initrd.gz -append file=/raid5.preseed quiet -- debconf/priority=critical locale=en_US console-setup/ask_detect=false console-setup/layoutcode=us -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root1.qcow2,if=virtio,index=0 -drive file=/home/mathiaz/vm/isos/9.04-20090413/jaunty-server-amd64.iso,if=ide,media=cdrom,index=2,boot=on -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root2.qcow2,if=virtio,index=1 -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root3.qcow2,if=virtio,index=3 -net nic,macaddr=52:54:00:d4:51:95,vlan=0,model=virtio -net tap,fd=21,script=,vlan=0 -usb -vnc 0.0.0.0:3

Tags: iso-testing

Related branches

Revision history for this message
Soren Hansen (soren) wrote :

The virtio block device driver doesn't approve of gaps in the indexing of your disks, so you shouldn't skip index=2 when using virtio. I consider that a workaround, though, and think the bug should be fixed.

Changed in kvm (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Mathias Gug (mathiaz) wrote :

kvm 1:62+dfsg-0ubuntu8+libvirt 0.4.0-2ubuntu8.1 is able to boot a guest which sees three block devices.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Here is the kvm command line that is working (kvm 1:62+dfsg-0ubuntu8+libvirt 0.4.0-2ubuntu8.1):

/usr/bin/kvm -M pc -m 128 -smp 1 -monitor pty -no-reboot -kernel /home/mathiaz/vm/tests_isos/jaunty-server-amd64/vmlinuz -initrd /home/mathiaz/vm/tests_isos/jaunty-server-amd64/initrd.gz -append file=/raid5.preseed quiet -- debconf/priority=critical locale=en_US console-setup/ask_detect=false console-setup/layoutcode=us -drive file=/home/mathiaz/vm/isos/9.04-20090414/jaunty-server-amd64.iso,if=ide,media=cdrom,boot=on -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root1.qcow2,if=virtio -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root3.qcow2,if=virtio -drive file=/home/mathiaz/vm/tests_isos/jaunty-server-amd64-raid5/vm//root2.qcow2,if=virtio -net nic,macaddr=52:54:00:3b:95:25,vlan=0,model=virtio -net tap,fd=10,script=,vlan=0 -usb -vnc 0.0.0.0:0

Changed in kvm (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
status: Triaged → In Progress
Changed in kvm (Ubuntu Jaunty):
milestone: none → ubuntu-9.04
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kvm - 1:84+dfsg-0ubuntu11

---------------
kvm (1:84+dfsg-0ubuntu11) jaunty; urgency=low

  * debian/patches/add-all-virtio-drives.patch: Fix bugs where the caller
    does not specify a perfectly defined list of virtio drives starting at
    index=0 and having no gaps in indices; LP: #360832, #360825
  * debian/patches/fix-qcow-corruption: Cherry-pick from kvm stable git
    branch, fixes at least one cause of qcow2 image corruption; no reports
    yet of this in Ubuntu, but I'm being proactive about this one;
    LP: #361938
  * debian/source_kvm.py: dpkg -l was a little too heavy, compress this
    output considerably

 -- Dustin Kirkland <email address hidden> Fri, 17 Apr 2009 09:59:58 -0500

Changed in kvm (Ubuntu Jaunty):
status: In Progress → Fix Released
tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.