If having lvm with name "kvm", /dev/kvm can't be used by kvm

Bug #248096 reported by Niklas Hagman
2
Affects Status Importance Assigned to Milestone
partman-lvm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: kvm

If you name your physical machine "kvm" and use the guided partitioner for lvm, the path /dev/kvm will be used by lvm.
This leads to problem when you later install package "kvm" that also wants to use /dev/kvm.
The result is that kvm is not working and saying that hardware virtualization support can't be found.

This problem is because users can accidental choose a computer name that ubuntu installer is using as lvm name.
Maybe a solution can be to restrict what lvm names that can be created by the user under the installation. And with the guided partitioner under installation, add a random prefix all the time.

Please move this bug to the right project here on launchpad. Like "ubuntu installer project" (can't find it myself).

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

Don't do that, then?

Revision history for this message
Niklas Hagman (blinkiz) wrote :

Well, I wouldn't do it. But am thinking of all the people that do not understand how the layout of a linux system works.

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

Reassigning to udev. I doubt udev can do much about it, but I'll leave that to the udev maintainers to find out. If it can't, this bug should be reassigned to partman-lvm as this is the only installer component I can think of that effectively lets the user name a directory in /dev and thus cause this breakage.

Revision history for this message
Colin Watson (cjwatson) wrote :

I wouldn't necessarily be opposed to partman-lvm doing this. I don't think it should add a random prefix as users expect to have /dev/VG_NAME/LV_NAME without extra bits of junk in there, but it could have some kind of necessarily-incomplete blacklist.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Nothing to do with udev, it just names 'em like it's told to ;)

You could name your VG "null" and you'd have even more fun.

DDTT.

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

Reassigning to partman-lvm. I think it'd make sense for partman-lvm to have a list of names to avoid as vg names.

Niklas Hagman (blinkiz)
Changed in partman-lvm:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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