Additional steps for: https://superuser.com/questions/1571431/how-do-you-use-an-existing-ext4-hard-drive-with-virtualbox/1571801
- File > Virtual Media Manager > Add
- Select "C:\Users<UserFolder>\VirtualBox VMs\Ubuntu (local NVMe)\local-nvme.vmdk"
- Open
- Select your Ubuntu VM > Settings > Storage > Controller: IDE
- Select Type: AHCI
- Click in the right icon with tooltip "Adds hard disk."
- Select local-nvme.vmdk
- Choose
- Check Solid-state Drive
- OK
Note: I have installed the VirtualBox Extension Pack. This might be optional.