Multipass capability : plug usb key?

Hello there,

I know it might not be the best place to ask but I did not find the forum of multipass and no mention in the documentation of multipass.

Anyway is it possible to plug an usb key into multipass and build a snap ?

I need a license usb dongle plugged in to launch a binary in the process of building my snap

Thanks !

Hi @theoriz, is that license key some special device, or just a storage device?

If it’s the latter, you may be able to multipass mount /media/$USER/<label> <instance>:, it will get mounted in the same location.

If it’s a special device, you may be able to do what you need with libvirt, I just added a section in our documentation about it.

You’ll have to run something like snapcraft pull first to have Snapcraft create the instance and modify it afterwards. Note your changes will not survive snapcraft clean as that’s removing the instance completely.

Please also file a bug with Snapcraft so they’re aware of this requirement and can maybe design a solution.

Let us know how it went!

It’s a special device, I will explore this possibility and let you know, thank you so much !