Windows 8 and 8.1 Forums


How to import a VHD file into Hyper-V

  1. #1


    Posts : 31
    Windows 8.1

    How to import a VHD file into Hyper-V


    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 System SpecsSystem Spec

  2. #2


    UK
    Posts : 333
    Windows Server 2012 R2 / 8.1


    From Hyper-V manager in the "Actions" pane, click "Import Virtual Machine"
    Click image for larger version

    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:

    Click image for larger version
    Click image for larger version
    Click "Next"

    Select your VM and click "Next"

    Click image for larger version

    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 System SpecsSystem Spec

  3. #3


    Posts : 31
    Windows 8.1


    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

    Click image for larger version
      My System SpecsSystem Spec

  4. #4


    UK
    Posts : 333
    Windows Server 2012 R2 / 8.1


    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.

    Click image for larger version

    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:

    Click image for larger version


    A few methods to convert to VHD:

    Disk2vhd

    VDI to VHD - Convert VirtualBox Virtual Machines to Virtual PC


    Hope that helps

    Harry
      My System SpecsSystem Spec

  5. #5


    Posts : 31
    Windows 8.1


    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 System SpecsSystem Spec

  6. #6


    UK
    Posts : 333
    Windows Server 2012 R2 / 8.1


    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"

    Click image for larger version

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

    Click image for larger version

    The Locate "Enhanced session mode" , make sure Use enhanced Session mode" is enabled.
    Click image for larger version

    Click "Ok"

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

    Click image for larger version

    This should now load in and show this windows "Click Show Options"
    Click image for larger version

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

    Click image for larger version

    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!!

    Click image for larger version\

    Click "OK", then Click Connect:

    Click image for larger version

    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

    Click image for larger version

    ^^ 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

    Click image for larger version
    After the VM should restart.

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

    Cheers,
    Harry
      My System SpecsSystem Spec

  7. #7


    Posts : 31
    Windows 8.1


    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.

    Click image for larger version

    Click image for larger version

    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 System SpecsSystem Spec

  8. #8


    UK
    Posts : 333
    Windows Server 2012 R2 / 8.1


    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 System SpecsSystem Spec

  9. #9


    Posts : 31
    Windows 8.1


    Not sure of the area you have in mind?!?

    Click image for larger version

    Todd@aristesoftware.com
      My System SpecsSystem Spec

  10. #10


    UK
    Posts : 333
    Windows Server 2012 R2 / 8.1


    Todd,

    This screenshot will hopefully clarify how you are connecting to the virtual machine.

    Click image for larger version

    Cheers,
    Harry
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
How to import a VHD file into Hyper-V
Related Threads
I tried merging this .reg file by double clicking it on my desktop and this error occured. Picture Link Below ... http://gyazo.com/1ddc4be8f7a0e84fa3841d2445f5179c This is what the .reg file looked liked in notepad. Picture Link Below ... http://gyazo.com/37a75490c6015f3a5d11cec053ba6598 ...
How to Export and Import a Hyper-V Virtual Machine in Windows 8 and 8.1 The Hyper-V technology provides an environment that you can use to create and manage virtual machines and their resources. Each virtual machine is an isolated, virtualized computer system that is capable of running its own...
Upgraded my win 7 pro that had virtual XP mode to win 8.1 pro. Everything from Win 7 came with it including my install programs. Noticed the virtual xp file .vmcx is there but can't access it. So I installed Hyper-V and got to the point of connecting to Virtual Hard Disk. Noticed it creats a .vhdx...
Solved Import Icons in Customization
How can I import icons from the internet into W8.1 so when I browse for "change Icon" I can find and use it. Jim M.
How to Create a Hyper-V "Remote File Browser" Shortcut in Windows 8 and 8.1 Hyper-V Remote File Browsing is a shell namespace extension implemented by Hyper-V that provides a way to browse the folders/files on a remote Hyper-V server without requiring the server to open an extra shell over...
I've searched the forums & via Google & can't seem to find a solution to this problem. I've been trying to import an ICS calendar file into my online Live or Hotmail Calendar, to also use in Outlook Office, but each time I import the ics file from my computer or SkyDrive, the import fails with the...
Import photos and videos in General Support
I am importing photos and videos from CANON VIXIA HF 200 HD camcorder. When I choose "Date Taken" as the sort order for the folder, date is not detected at all. All the files are tagged with date under Dec 26, 1899. I have used the same SD card to import in a windows 7 PC, all the dates are...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook