Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ad #1314
I managed to flash USB from lima, but I don't feel this is ready to ship. I don't have time to handle this anymore, but I hope it will help. It only works if instance is started with
sudo limactl start
(otherwise qemu is not working with admin privileges which it needs for device forwarding), and lima is started withsudo lima
(otherwise you getBad port '0'
error). USB attaching / unattaching when physical device is plugged / unplugged seems to be working and I feel it will continue when buses and ports are uses instead of productid / vendorid (see below).Main issues to solve:
sudo -E
can be prepended to qemu process (maybe with -u and -g flags set to current user).Mind issue is with second point and it would require either managing everithing without agent process or making agent process running as root, or having 2 agent processes, one running as root handling root vms and one in user mode handling user mode qms
Hope it helps!