Skip to content

Allow specifying qvm-block device by UUID #2272

@andrewdavidwong

Description

@andrewdavidwong

On 2016-08-25 18:06, johnyjukya@[...].org wrote:

Most standard Linux utilities that refer to block devices, allow you to
specify by uuid as well (mount, cryptsetup are two examples).

The documentation for qvm-block is sparse, but probably because it's a
striaght-forward utility.

There's no support in qvm-block to assign a device to a VM by UUID, is there?

Could be handy for some of the automation I'd like to put in place on
firing up the system.

One can always lsblk|grep|sed|cut|whatever in a sh script, and then use
the resulting block device for qvm-block, but it'd be a lot cleaner and
less error-prone if one could say

"qvm-block -a Florp UUID=kasdjflaksjdfaklsdf"
or "qvm-block -a FLorp --uid asdfkasjdlfkajsd"

Just a suggestion. (And for any other qvm-* that refer to block devices,
perhaps.)

Cheers.

JJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: coreThis issue pertains to a Qubes core component.P: majorPriority: major. Between "default" and "critical" in severity.help wantedThis issue will probably not get done in a timely fashion without help from community contributors.securityThis issue pertains to the security of Qubes OS.

    Projects

    Status

    Backend

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions