How do I eliminate a virtual disk in a virtual machine?


  1. Posts : 16
    Windows 7 Home Premium 64bit spanish
       #1

    How do I eliminate a virtual disk in a virtual machine?


    Instead of using XP mode which is not available in Windows 7 Home Premium, I installed a virtual machine and installed Windows XP prof from an installation DVD.
    My HD has three partions, two of about 80 GB and one of 340 GB. The CPU is Intel core i5 with 3 GB Ram.

    It works fine, I have XP in a window inside of my Windows 7 desktop and can change easily among the two.
    But unfortunately I set up one fixed size virtual disk of 70GB for the VM on the second partition although I don't need so much space.
    Now I want to redistribute the disk space, reducing the second partition and increasing the 3rd.
    When I tried to eliminate the 70GB virtual disk, I found out that there is no way to eliminate a virtual disk once it has been set up. So I tried to change it into a dynamic virtual disk and thus reduce its size, but I get the error that my host system does not have sufficient resources to change the VD type.

    The only way to eliminate a VD appears to be the elimination of the entire virtual machine, but I would like to avoid this as installing XP with the applications took nearly a day of work.

    So what can I do to eliminate the VD or at least change it to dynamic or otherwise reduce its size?
      My Computer


  2. Posts : 16
    Windows 7 Home Premium 64bit spanish
    Thread Starter
       #2

    Given that I did not receive a fast answer, I simply tried to eliminate the file representing the virtual disk. After this the VM did not open any more and I received the error message that the virtual disk was missing. So I created a new VD with the same name but this time as a dynamic disk with a smaller volume. This worked.

    The question how to eliminate a VD completely remains unanswered for now, though.

    Perhaps someone can also answer what sense it has to create up to three different virtul disks for a VM if within the VM all the virtual disk space is shown as one single disk C: with the maximum allowed diskspace.
    Last edited by tuscanguy; 14 Jul 2011 at 16:58.
      My Computer


  3. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #3

    I'm fooling around with Virtual PC. All you need do is delete the .vhd, that clears that virtual drive. I haven't yet tried another one inside the first, but I think it can be done. I saw a member here have 98 inside XP inside Win7.:)
    In VPC, it has settings which can be changed it the virtual machine is shut off. Maybe yours does too? I can change allocated RAM, DVD drive, HDD recognition, and VHD size...I think.
      My Computer


  4. Posts : 16
    Windows 7 Home Premium 64bit spanish
    Thread Starter
       #4

    Britton30 said:
    All you need do is delete the .vhd, that clears that virtual drive.
    I did this, but when I tried to open VM after that I got an error message saying that VM cannot open because a VD is missing. In order to avoid this I had to create another file of the same name, with the difference that this time I could define the max. size of this VD.

    I have not found a way to eliminate the setting in the VM. that causes this. Practically when I delete the .vhd file I don't delete the setting in the VM. I am looking for a way to delete this setting, so the VD can be eliminated completely. As I said in my previous post, all the 3 VD that i set up with the VM closed appear as one single disk C from within the VM, so there does not appear to be a true reason why one should set up more than one VD. They cannot be distinguished from inside the VM.

    In VPC, it has settings which can be changed it the virtual machine is shut off. Maybe yours does too? I can change allocated RAM, DVD drive, HDD recognition, and VHD size...I think.
    Yes, certainly mine works the same way. I downloaded it from Microsoft. This is how I set up the virtual disks. But there does not seem to be a way to undo their creation. And you cannot change the size of a VD after its creation. Still looking for a way to accomplish this.
      My Computer


  5. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #5

    This is how I eliminated my first attempt at VMing. I opened Computer, then the partition the VM is installed on. I deleted the file with the .vhd extension. At that time the other files were gone, this is a new install, also not XP mode.
    To create a new VHD you click the Create Virtual Machine at the top of the window.
    How do I eliminate a virtual disk in a virtual machine?-vhd.png How do I eliminate a virtual disk in a virtual machine?-new-vhd.png

    Since the VM is on one partition I don't think it will show more VHD's until you create them, I've not tried that yet. I haven't been able to see my Win7 drive from the VM either yet.
    Also I think....think each OS will need its own VHD, not positive, but seems logical.

    OH, right click you VM partition and see if there is a Dismount xxxx image. I had one of those from somewhere.
      My Computer


  6. Posts : 16
    Windows 7 Home Premium 64bit spanish
    Thread Starter
       #6

    I went a bit with trial and error as I did not want to waste much time reading all the manual.
    So I installed first the VM in the default folder which is in the same partition C: as the Windows 7 OS. Then I installed Windows XP in the VM from an installation DVD. Then I created the additional vhd files in another partition. Initially the mouse was captured by the VM, so I could not move it freely between the two systems. Also I did not see the other partitions or other disks in the Win 7 system when I was in XP. Then I installed and enabled the integration characteristics from inside the VM via the Tools menu. I also enabled all risources. After this I was able to see the entire system including the Win 7 partition and external HD and could also move the mouse freely between both parts of the screen. When it is on the VM window, it affects the VM. Otherwise you can click also on stuff in the Win7 system.

    I was astonished that installing XP in a VM is so relatively easy in Windows Home Premium. Microsoft does not tell you this, they do everything to make you believe you can run XP only on Win 7 prof or ultimate.
    I was convinced I had to upgrade, but where I live this seems to be impossible (Central America). Windows Anytime Upgrade is not available here and my computershop has no idea how to get the upgrade key. They sell the laptop with preinstalled Win7 home premium and don't know anything about software.
    So I started playing around downloading Virtual PC and discovered that the upgrade was not at all necessary.
    Works fine, but I still don't understand how to eliminate the additional virtual disks that I created. Yes I can delete the files, but then the VM gives me the error message and cannot start. I tried to find the "Dismount xxxx image" menu that you mentioned but cannot find it. How do you get there?
    You say "right click your VM partition" but this is the same partition where Win7 is installed. There is no such menu item. It should be in the VM configuration menu, but there you can only "create" or "modify" a vhd, not release or eliminate it.

    I think the problem is not to eliminate the vhd files (done that) but to tell the virtual machine that it does not look for them anymore. This would require a menu item somewhere that unmounts these vhd so the VM knows they are gone, not just a file delete.
    Did you try to create and then delete a 2nd or 3rd vhd file without eliminating the entire virtual machine?
      My Computer


  7. Posts : 16
    Windows 7 Home Premium 64bit spanish
    Thread Starter
       #7

    Finally I got it.

    All the time I had overlooked the possibility to select "None" in the configuration menu of the virtual disks. If you select "none" for disk 2 and 3, the VM won't look for them anymore and their vhd files can be deleted.

    Of course the first disk must stay defined. In my case it is a dynamic virtual disk with a limit of 130 GB, actually it hold only 4 GB. But it can be placed anywhere on my HD, so I can free the partition that I want to modify.
      My Computer


  8. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #8

    Good to hear buddy! I don't quite follow when you say select none, but I'm still experimenting too.
    As for the Dismount item I had, I have no ide where it came from. I do have Macrium imaging installed, but I've not used it to mount an image. Crazy, huh?

    You're right about MS and XP mode. I may try it if this XP VM goes south again. XP mode has all this stuff pre-comfigured, if I read the specs right. The one limitation of VPC is it won't take a 64bit OS.
      My Computer


  9. Posts : 16
    Windows 7 Home Premium 64bit spanish
    Thread Starter
       #9

    I have attached a screen shot. My OS is in spanish, so the top radio button says "ninguno" instead of "none".
    Right click on the virtual machine, select configuration, then select one of the 3 hard disks shown and either select "none" or enter a folder address.
    I hope this makes it clear. Let me know if you have other questions, will try to figure it out.
    Attached Thumbnails Attached Thumbnails How do I eliminate a virtual disk in a virtual machine?-ms-vm-disk-config.png  
      My Computer


  10. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #10

    :)Ahhh, OK. Mine was preselected as none for those since I'd not tried more than one disk.
      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 06:48.
Find Us