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.

In video

Tutorial #1 : Cpcdos Download & Setup on VirtualBox
Tutorial #2 : Cpcdos installation on bootable USB support
Tutoriel #3 : Modify Cpcdos VM files