In virtualbox it is a little bit more difficult to install an OS in a physical disk, but it is possible.

First you need to create a New image normally, but instead of creating a disk image in the computer select Do not add a virtual hard drive.

Then use the VBoxManage to create disk image that point to your external disk (i.e. /dev/sdb) :

# VBoxManage internalcommands createrawvmdk -filename NewHDOS.vmdk -rawdisk /dev/sda

Now just start the virtualbox and click in the Settings -> Storage and this vmdk file as your hard disk.

Source: https://www.serverwatch.com/guides/using-a-physical-hard-drive-with-a-virtualbox-vm/
https://pureinfotech.com/mount-iso-virtual-machine-virtualbox/