Skip to content

USB permission error but USB supposed to be ignored #1485

@alfrisch

Description

@alfrisch

Release: v3.0.2-rc07

A VM has several USB devices directly attached (i.e. not via resource mappings), which are configured to be ignored by setting ignore_changes = [usbs].

Running terraform plan shows no changes for USB devices as expected, but when running terraform apply it fails with

 Error: error updating VM: 500 only root can set 'usb0' config for real devices, error status: {"data":null,"message":"only root can set 'usb0' config for real devices\n"} (params: ...

When USB configuration should be ignored, then I would expect that terraform does not need to change the configuration by setting an usb0 device and thus would not fail with missing permissions.

Note, this happens only when other parts of the VM configuration need to be changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions