Skip to content

Mounting cd/dvd drive in targetcli #224

Description

@devedse

I'm currently working on setting up an iSCSI disk system to install and boot windows from. Ideally I'd simply want to mount the Windows iso disk, boot into WinPE using iPXE, and run the setup.

The only step I currently can't get working is mounting the Windows image as a CD/DVD disk.

In another iSCSI tool (TGT) I did the following:

<target iqn.2024-11.local.vm-iscsibeast:windows-installer>
        backing-store /root/iso/en-us_windows_11_business_editions_version_24h2_updated_june_2025_x64_dvd_4cf132a4.iso
</target>

This allowed the windows pe environment to detect the iSCSI disk as a CD/DVD drive.

However with targetcli I've not been able to get this to work besides manually extracting the .iso, creating an iSCSI drive, copying over the files, mounting that into WinPE. However that still leaves the disadvantage that Windows see's this as a hard disk rather then a DVD drive. (Thus allowing to select it as a potential installation target and all that stuff you don't want).

Is there some kind of way to either solve or work around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions