Attach vhd copy to virtualbox

Discussions about using Windows guests in VirtualBox.
Post Reply
PepperX
Posts: 3
Joined: 9. Jan 2011, 23:38
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows server 2008 R2

Attach vhd copy to virtualbox

Post by PepperX »

Hi, like the title reads I'm trying to use an existing .vhd in my virtualbox.

I click New ->Next -> Choose a name and the target OS -> Next -> I choose a memory size -> ...

Here is where the troubles begin, creating a virtual harddrive. Accoarding to guides I've read I'm supposed to use an existing harddrive and then pick the vhd-file I want to use. Here is where I get an error message like "Failed to open harddrive C:\path\image.vhd. The medium C:\path\image.vhd can't be used as the requested device type"

What could I be doing wrong?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Attach vhd copy to virtualbox

Post by BillG »

Wnere did this .vhd file come from? Are you sure that it is a bootable system image?

I have created lots of vms using an existing .vhd or .vdi file and have never seen that message.
Bill
PepperX
Posts: 3
Joined: 9. Jan 2011, 23:38
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows server 2008 R2

Re: Attach vhd copy to virtualbox

Post by PepperX »

Hi, thanks for your reply.

I have started this image before on virtualbox, but I can't remember if I followed the exact same procedure. So yes, it's supposed to work.
PepperX
Posts: 3
Joined: 9. Jan 2011, 23:38
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows server 2008 R2

Re: Attach vhd copy to virtualbox

Post by PepperX »

Ok, now the issue is "solved". I again copied the source image from another computer to my own. I managed to start that image, but recieved new errors as virtualbox unexpectedly stopped working each time I started an image. So I reinstalled virtualbox and again transfered the source image to my computer, and now it works again. One problem though: I cannot create snapshots, I only get new error messages. But that will have to be for a new thread if I can't solve it. Right now I can at least get back to work.
leecallen
Posts: 5
Joined: 25. Aug 2009, 19:03
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: Attach vhd copy to virtualbox

Post by leecallen »

I experienced this problem today, moving a .VHD file into VirtualBox. In my case the problem was ownership/permissions of the VHD file. Once I changed the ownership so that my regular user ID has access to it, VirtualBox accepted it.
Post Reply