Skip to content

[Enhancement] Support multiple CRC machines #4872

@mkeeler

Description

@mkeeler

Component

None

Is your enhancement related to a problem? Please describe

Sometimes I need to switch between different bundles corresponding to different OpenShift versions I want to develop against. Currently this process isn't great as I have to delete the existing crc machine and recreate it with the different bundle.

Describe the solution you'd like

I would like the CLI and internals to be updated to support configuration and management of multiple CRC machines.

  • crc start - starts the default/first machine
  • crc start --machine <machine name> - start a named machine
  • crc machine * - more or less I would want the CLI of podman machine replicated for crc machine management.

Some design related questions I don't have strong opinions about:

  • Should crc prevent running concurrently? Probably given the existing network setup which binds to 127.0.0.1 with constant ssh/api ports. Ideally the ports and IP address could be altered to allow using non-loopback addresses but that feels like it would make this particular request a lot bigger in scope.
  • Should crc machine configurations be entirely independent or inherit from a global config and require overrides?

Describe alternatives you've considered

Deleting and recreating machines does work but I lose all state

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions