I have Ubuntu 18.04 LTS installed on 128GM SSD drive. The home is on HDD. I am going to install Windows 7 from virtual box (VB). Is there any straightforward way to make a virtual hard disk file on SSD drive and tell the VB to install Windows on that virtual hard disk file? Or it is easier to make new partition on SSD drive and reinstall the Ubuntu, and also install Windows alongside or through VB.
It may be helpful for others that read it later to add some details of what I did
I used part of this post to create a virtual hard disk using a file.
sudo dd if=/dev/zero of=VHD.img bs=1M count=1200 sudo mkfs -t ext4 VHD.img
I put this file in SSD drive and convert IMG file to VDI file using Oracle VirtualBox:
VBoxManage convertdd input.img output.vdi
If you wand to give this VDI file to VirtualBox, it give to a permission error, so you can change the permission of the file using
sudo chmod a+rwx VHD.vdi