sorry if this has been asked and answered


  1. Posts : 16
    XP Pro, 7 Pro
       #1

    sorry if this has been asked and answered


    ..but searching has not revealed any of the answers I am looking for so please bear with me. I am asking for some specific help here since most every guide I have found about creating vhds kind of just leaves off when it comes to how to run, load or use them once they are created.

    I created a .vhd of my XP system using disk2vhd on an external usb drive. I then plugged the external drive into my Windows 7 laptop and created the .vmcx with virtual machine, but I got an error message about not being able to write to the hard disk after double clicking on the .vmcx, and searches about that error yielded various fixes to permissions that I tried which did not work, but again I am not sure I have all the information I need.

    I did not try to mount the vhd thru disk management as I don't want to reboot the laptop into XP, I just want to load my XP vhd the same way I can load XP Mode on the laptop. The whole reason I created the vhd of my existing system was to be able to use that instead of Windows 7's Virtual XP, since naturally the vhd has all my programs already installed.

    I am not even sure if that's how virtual machines work, or if one needs to actually mount the vhd thru disk management and then reboot the machine to use it, since if that is the case I won't even bother with it.

    Again I apologize if this issue has been addressed, but I have searched for concise instructions from start to finish for using Virtual Machines on Windows 7 but all I have found are bits and pieces that I have had to put together and it's a bit like doing a jigsaw puzzle without knowing what the finished picture is supposed to look like.
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    You need to install Microsoft Virtual PC (or third party alternatives) to be able to use your XP-vhd you have created with Disk2vhd.

    Here's how to do that with Virtual PC.


    1. Download Virtual PC. If you do not need the free XP Mode, or if you are running 7 Home and therefore not entitled to use XP Mode, click the link on the download page (shown in the image below) to download standalone VPC:
      .
      sorry if this has been asked and answered-download_vpc_only.png
      .
    2. Install VPC. After installation you'll find a folder called Virtual Machines in your user folder (Username\Virtual Machines). Open it and click Create virtual machine link:
      .
      sorry if this has been asked and answered-new_vm_1.png
      .
    3. Choose a name for your new vm and a location where you want it stored:
      .
      sorry if this has been asked and answered-new_vm_2.png
      .
    4. Choose how much RAM you want to assign to your new vm. Check that host computer network connections are chosen:
      .
      sorry if this has been asked and answered-new_vm_4.png
      .
    5. Choose Use an existing virtual hard disk and browse to your vhd-image:
      .
      sorry if this has been asked and answered-new_vm_5.png
      .
    6. The new vm appears now on the list of virtual machines. Double click it to run it first time:
      .
      sorry if this has been asked and answered-new_vm_6.png
      .
    7. To allow full integration with the host system, enable Virtual PC Integration Features from Tools menu of your vm:
      .
      sorry if this has been asked and answered-new_vm_7.png

    That's it. Should work now.

    Kari

    Some important links:
    - Windows Virtual PC - Create Virtual Machine
    - Windows Virtual PC Integration Features - Install, Enable, and Disable
      My Computer


  3. Posts : 16
    XP Pro, 7 Pro
    Thread Starter
       #3

    Thanks, but as I said in my original post after I double clicked on the .vmcx I got an error saying "could not write to hard disk" and various searches for that error yielded different vague answers about fixing permissions, but I still could not get it to run.
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    I'm sorry to hear that. I've never had any problems with Disk2vhd-images.

    You mentioned you have your vhd on an external disk. Have you checked the permissions of that disk / folder? That it's not "Read Only"?

    Kari
      My Computer


  5. Posts : 1,800
    Windows 7 Pro x64 SP1
       #5

    FWIW, I have copied .vhd files from one machine to the other but never have tried to run one from an external device.
    I would copy the .vhd file to a directory on your hard disk, most likely in the virtual machines directory under your username. Then run virtual pc and create a new virtual machine but tell it to use an existing virtual hard disk. Virtual pc will setup the necessary files to open and install the virtual hard disk integration utilities via the tools option.

    You will have to mount the integration utilities which will reside in the virtual pc directory integration components, where the .iso for integration utilities as well as the precompact program to defrag your vhds..

    Rich
      My Computer


  6. Posts : 1,426
    7 Pro
       #6

    Would move vmcx to local c:
      My Computer


  7. Posts : 1,800
    Windows 7 Pro x64 SP1
       #7

    brady said:
    Would move vmcx to local c:
    Care must be taken when moving the vmcx files as they have hard coded locations and such inside of them. Just a caution..

    Rich
      My Computer


  8. Posts : 16
    XP Pro, 7 Pro
    Thread Starter
       #8

    Thanks for the responses. Nothing I read suggested that virtual machines could not be run from external hard drives.
    I don't have enough free space on my local hard drive to copy over the vhd.
      My Computer


  9. Posts : 1,426
    7 Pro
       #9

    Maybe check the parent directory permissions to add the "everyone" group with modify or full control. You can check the advanced settings to ensure the child folders are inheriting it's permissions?
      My Computer


  10. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #10

    I have had a similar problem with a VHD of Win 7 in Virtualbox. I think it must be something to do with how the VHD is created that makes it internally read only. Mine was created from a Macrium Image. The way I got around it for VirtualBox was to use a third party utility to convert it to a VDI file.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:06.
Find Us