multipass icon indicating copy to clipboard operation
multipass copied to clipboard

Add support for attaching local iso file as cdrom

Open raharper opened this issue 6 years ago • 7 comments

There doesn't seem to be a way to attach a local iso file to the instance. Adding --cdrom /path/to/iso to multipass launch would be a nice addition.

raharper avatar Sep 04 '19 17:09 raharper

Since this won't be a booting medium, I wonder if this should instead be a multipass mount function? Most hypervisors should allow changing the medium online and we can probably cater for 99% use cases by just using a single virtual optical drive (we use one already for cloud-init data).

WDYT?

Saviq avatar Sep 04 '19 18:09 Saviq

I see you're already using one. My use-case was to pass an additional cdrom iso file to the VM so I could verify some cloud-init behavior during boot. It's certainly possible to allow more than one cdrom device per VM. Mounting the iso after boot wouldn't help me verify boot behavior though.

raharper avatar Sep 04 '19 20:09 raharper

@raharper was the desire to have two cloud-init ISOs attached?

Saviq avatar Sep 05 '19 06:09 Saviq

The desire is to let me specify a local file and bind that to a second cdrom in the guest.

raharper avatar Sep 05 '19 12:09 raharper

Hi @Saviq , I’d love to contribute to this project, and this issue caught my attention. I noticed it’s been open since September 4, 2019—could someone share the current status? Is this feature still needed?

JovicicLazar avatar Jun 22 '25 18:06 JovicicLazar

Hi, If we did something like this, I would be more inclined to accept extra files/directories directly, rather than a separate ISO (users shouldn't need to know about ISOs). We could internally bundle them in the existing ISO, or use a second one if necessary.

But TBH it's not quite clear to me what value this would bring. Multipass supports one mechanism to customize the boot: cloud-init. Can't any necessary local data be included in it directly? I fear this would adopt and expose unnecessary complexity for very niche purposes.

ricab avatar Jun 26 '25 11:06 ricab

Related to https://github.com/canonical/multipass/issues/1040, there was some earlier exploration in there.

ricab avatar Jun 26 '25 11:06 ricab