For learning bootstrapping of operating systems I do some simple tests this way:
I install oracle viratualbox and create hdd disk
I install hex-editor HxD and write code to this hdd disk, opening the file which presents this hdd
In the end of first 512-byte sector I write 55 AA in 1FE and 1FF bytes consiquently,
and other code I write from first byte of the first sector.
In this way I must unblock hdd file from HxD, because virtualbox can't start it until this is done.
I want to use a virtual machine or another real machine (the second way is less convenient), because it creates an independent development environment.
How can I more efficiently do this tests for learning bootstrapping (and after simple developing) operating system ?