I once did similar black magic to have a dual-OS set up (Linux & Windows) where the _same_ Linux OS can be either booted into or ran in a VirtualBox VM from within Windows. I probably spent more time reading about it & getting it to work than I ever actually used the OS, but it was a fun learning experience.