panda icon indicating copy to clipboard operation
panda copied to clipboard

Generic Images Everywhere

Open AndrewFasano opened this issue 3 years ago • 3 comments

Right now, only PyPANDA supports loading "generic images" which are a mapping of a simple name (e.g., x86) to some files hosted at panda.re combined with OSI profiles and standard command line options. When a generic image is requested, the required files are downloaded if they're not already present in ~/.panda and then PANDA's arguments are automatically configured for that image.

It would be great to move this logic out of PyPANDA's qcows.py and into a standardized format. Then we could add support for generic images on the command line and run commands like panda-system-[arch] -generic x86 -loadvm root which would load the image and properly set the OSI profile up. This could then also be used from rust.

This idea comes from @jamcleod and I believe he's working on implementing a standardized config file for generic images and then adding this into rust - not sure if he's going to tackle the CLI use case as well.

AndrewFasano avatar Nov 02 '21 20:11 AndrewFasano

Relevant panda-rs issue: https://github.com/panda-re/panda-rs/issues/20

The current plan is just to use the same structure as pypanda's existing code but have it be in a JSON instead of a python literal, but I'm open to other ideas.

jamcleod avatar Nov 02 '21 20:11 jamcleod

Do you think it would be possible/better to extend an existing VM metadata format instead of making a new one? In particular, libvirt and vagrant both have such formats defined so maybe we could pick one and add set some custom fields with panda-specific data.

(Credit for this idea belongs to Andre who suggested it in slack)

AndrewFasano avatar Nov 09 '21 03:11 AndrewFasano

This issue has gone stale! If you believe it is still a problem, please comment on this issue or it will be closed in 30 days

github-actions[bot] avatar Jan 08 '22 15:01 github-actions[bot]