USB Drive As VHD?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Microsuck
Posts: 3
Joined: 14. Apr 2013, 13:10

USB Drive As VHD?

Post by Microsuck »

I have a bootable flashdrive, with an operating system on it. It boots on my pc. I want to be able to use it in virtualbox as well, and sort of do now, but this invovles ripping an image of the flasdrive, making that into a vhd, then reversely, reflashing the drive with the image. This is if I want to make any changes to the flashdrive in virtualbox. I'd like to be able to boot the usb drive directly in virtualbox, as the vhd. Is this possible?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: USB Drive As VHD?

Post by mpack »

Only by mounting the drive as a raw disk (a very dangerous feature), as VirtualBox VMs can't boot from a USB drive.
Microsuck
Posts: 3
Joined: 14. Apr 2013, 13:10

Re: USB Drive As VHD?

Post by Microsuck »

Is it even possible to mount a physical hard drive as a VHD?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: USB Drive As VHD?

Post by noteirak »

AFAIK only VMDK allow you that.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: USB Drive As VHD?

Post by Perryg »

If you already have a "VHD" file you don't have a physical disk. You have a large file on the disk and it is called *.VHD.
All you need to do is create a guest in VirtualBox and tell it to use the VHD file. Other than that you use the raw image like mpack said and setup a raw disk in VirtualBox.
This requires expert level knowledge though and you will find very few that will want to help because it is so dangerous.
Post Reply