You can install Cpcdos on a virtual machine with VirtualBox or VMWare. In the downloadable binaries, there is a .OVA file that is recognized by these programs. The second method is to install Cpcdos on your bootable USB (USB key, USB hard drive...), but can only support Legacy BIOS mode.