What's new

Solved How to import a VHD file into Hyper-V

rtcary

Member
Member
I have activated Hyper-V on my Windows 8 Pro computer. I have a vhd file created by VirtualBox and another from Microsofts WindowsXPMode_en-us.vhd. Being 100% new to Hyper-V, I am not sure if I am doing this correctly.

I have gone to the Hyper-V Manager, selected Import Virtual Machine. I select the proper directory and then I get the message, "Hyper-V did not find virtual machines...". I am running as administrator.

Suggestions?

Todd
 

My Computer

System One

  • OS
    Windows 8.1

Harrylowt

New Member
Pro User
From Hyper-V manager in the "Actions" pane, click "Import Virtual Machine"
Screen Shot 2014-02-17 at 21.26.07.png

On the before you begin page, Click "Next"

On the Locate Folder navigate to where you have the VM's stored, Then choose the root of the VM for example if your Virtual machine was called "RDS1" you will have a folder named "RDS1" and below that three more files in the tree "snapshots", "Virtual Hard Disk" and "Virtual machine". Do not click in to the individual folders at this point just point it at the root as shown below:

Screen Shot 2014-02-17 at 21.29.33.png
Screen Shot 2014-02-17 at 21.33.35.png
Click "Next"

Select your VM and click "Next"

Screen Shot 2014-02-17 at 21.39.41.png

on the "Import port page" I normally leave as default then click "next"

Then Finish.

That is how I do it through the Hyper-V manager.

Cheers,
Harry
 

My Computer

System One

  • OS
    Windows Server 2012 R2 / 8.1

rtcary

Member
Member
This is the file structure of the VirtualBox storage of the Virtual Machine, and I am getting the same error: cannot find a Virtual Machine.

The name of my machine is "XP Install"...installed via a XP CD.

Am I missing something obvious?

Many thanks...

Todd

VBox.jpg
 

My Computer

System One

  • OS
    Windows 8.1

Harrylowt

New Member
Pro User
Todd,

Looking at your screenshot you do not have any "VHD files" just virtualboxs Native file "VDI" if you do have a .VHD file that is saved somewhere else you can go for another method of importing that virtual machine.

For this You will need to go in to hyper V-manager and then create a new virtual machine without creating a hard drive for it and then attaching it after the creating of the virtual machine or attaching it while creating.

For this bring up hyper-v manager:

1. Go to the actions pane, Click "New" then "Virtual Machine"
2. Run through the creation steps and when you get to "Connect Virtual hard Disk" Choose the option "Use an existing Virtual Hard Disk" then browse to where you have the VHD stored.

Screen Shot 2014-02-19 at 09.35.57.png

3. then finish the creation process.

*another option at the "Connect Virtual Hard Disk" page you could choose to Attach the virtual hard disk later. After you created the virtual machine you can go in to its settings and then add a new IDE controller(hard drive) settings page shown below:

Screen Shot 2014-02-19 at 09.40.31.png


A few methods to convert to VHD:

Disk2vhd

VDI to VHD - Convert VirtualBox Virtual Machines to Virtual PC


Hope that helps :)

Harry
 

My Computer

System One

  • OS
    Windows Server 2012 R2 / 8.1

rtcary

Member
Member
Getting MUCH closer! If you come to Bend, Oregon, I owe you a pitcher of our finest beer (Boneyard RPM). I got the XP VHD from Microsoft to load into Hyper-V. However as expected, no Wireless or USB. Can that be overcome in Windows 8.1?

Todd
 

My Computer

System One

  • OS
    Windows 8.1

Harrylowt

New Member
Pro User
Hi Todd,

:) i will take you up on that offer one day hopefully. Be nice to try some different beers than what the UK have to offer me :)

Great job getting XP loaded in to Hyper-V :)

Right firstly how to get USB access in Hyper-V

You are going to need to load your Hyper-V manager, Then right click your host name and click "Hyper-V settings"

Screen Shot 2014-02-19 at 20.38.02.png

Then Locate "Enhanced session mode policy", make sure "Allow enhanced session Mode" is Enabled

Screen Shot 2014-02-19 at 20.39.50.png

The Locate "Enhanced session mode" , make sure Use enhanced Session mode" is enabled.
Screen Shot 2014-02-19 at 20.42.53.png

Click "Ok"

Then connect to your machine; right click and click "Connect"

Screen Shot 2014-02-19 at 20.44.03.png

This should now load in and show this windows "Click Show Options"
Screen Shot 2014-02-19 at 20.25.07.png

Now you will see two tabs at the top of the windows click "Local Recourses"

Screen Shot 2014-02-19 at 20.27.11.png

Now Click "More", expand the tree from "Drives" and if you have plugged your USB in to your Host machine you should see it. Unfortunately in my screenshot below i will not able able to give you a full representation of what would happen, sitting as many miles as i am away from the host I am demoted in to extremely hard to plug a USB drive in :)

You will just need to choose the USB drive you have plugged in to your host!!

Screen Shot 2014-02-19 at 20.32.26.png\

Click "OK", then Click Connect:

Screen Shot 2014-02-19 at 20.35.52.png

Then fingers crossed when you connect and check for drives you will find the usb drive!!!

Now for the internet, you are able to bind you wireless card to your virtual machines if you desire.

On the Start screen, type PowerShell, right-click the Windows PowerShell app tile, and then, in the app bar, click Run as administrator.

Once PowerShell is loaded you can run a command to get your Network adapters. Enter the cmdlet:

Get-NetAdapter

This will show in a table a list of your network adapters and under the column “InterfaceDescription”

From here you will be able to see if you have any VEthernet networks created in your network.

I suggest you try and create a new virtual switch from PowerShell. The command will be shown below (Note you may want to delete previous Vethernet switches bound to the Network adapter before hand). The one thing you will need to change is the “-NetAdapterName”; input the name from the “Name” field from the “Get-NetAdapter” table.

The command below will create an external network with OS management enabled.

New-VMSwitch "VM Network" -NetAdapterName "Ethernet 2" -AllowManagementOS $True

Screen Shot 2014-02-05 at 22.43.43.png

^^ of course making sure you bind to the network adapter you desire.

I also Recommend installing the integration packs in the Windows XP machine to do this:

ok please can you try update the integration service with the following:

1 - Upgrade Hyper-V Host with latest code - RTM, Hotfix etc...
2 - Launch the Hyper-V Manager MMC
3 - Connect to the Hyper-V Guest System (1 at a time)
4 - Click Action - Insert Integration Services Setup
5 - Run through the prompts

Screen Shot 2014-02-19 at 20.50.22.png
After the VM should restart.

Hope this helps :) should really make this in to a tutorial.

Cheers,
Harry
 

My Computer

System One

  • OS
    Windows Server 2012 R2 / 8.1

rtcary

Member
Member
I am not able to get the same screens as in your very detailed example. I have the Enhanced session checked, however when I connect, XP comes alive, but I do not see the tabbed Connect to VMM. There is a Setting option, but that is all I have.

Hyper-V_Manager.png

Settings.png

Hopefully, I have not missed anything...

Todd

P.S. My daughter lives in London. Works in the high fashion industry..a little different from her blue jean dad.
 

My Computer

System One

  • OS
    Windows 8.1

Harrylowt

New Member
Pro User
Hey Todd,

you see on your first screenshot on the Right hand side you have at the top actions pane and below the name of your virtual machine and below that the button "Connect.." press that and see what happens :)

Awesome, it is a great place to live.. could do with her fashion advice got told last week in a bar a Microsoft/ technet tshirt is not socially acceptable!! in my defence i had no time to go home and change from from work.

I live in London as work as a geek(consultant) for a Software reseller.

Cheers,
Harry
 

My Computer

System One

  • OS
    Windows Server 2012 R2 / 8.1

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top