Window Technical Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 14 August 2013

Virtual Hard Disks

Posted on 03:06 by Unknown
Windows 7 has a new feature called VHD Boot. This feature allows you to boot your entire Windows from a Virtual Hard Disk (VHD) file. There are various advantages of this feature, like:
  • The configurations and settings of your entire system are included in one file – .VHD file.
  • One VHD file can be based on another one. So if you have different systems, you can create a base copy of Windows 7 on a VHD and make all others incremental. This saves a lot of disk space.
But this feature can only be used on Windows 7, Windows Server 2008 R2, or later operating systems. The operating systems which came before Windows 7 do not support VHD. With VHD your system suffers a performance decrease of about 3%. Windows' hibernate function and BitLocker configurations are not supported by VHD. BitLocker can be used within the guest VHD, but not on the volume where the VHD resides. Also, with VHD, features like Aero don’t work because the Windows Experience index is not supported.

Types of Virtual Hard Disks:

Three types of VHD files can be created using the disk management tools:
  • Fixed hard-disk image - A fixed hard-disk image is a file that is allocated to the size of the virtual disk. For example, if you create a virtual hard disk that is 2 gigabytes (GB) in size, the system will create a host file approximately 2 GB in size. Fixed hard-disk images are used for production servers and working with customer data.
  • Dynamic hard-disk image - A dynamic hard-disk image is a file that is as large as the actual data written to it. As more data is written, the file dynamically increases in size. For example, the size of a file backing a virtual 2 GB hard disk is initially around 2 megabytes (MB) on the host file system. As data is written to this image, it grows with a maximum size of 2 GB. Dynamic hard-disk images are beneficial for development and testing environments. Dynamic VHD files are smaller, easier to copy, and expand after mounting.
  • Differencing hard-disk image - A differencing hard-disk image describes a modification of a parent image. This type of hard-disk image is not independent, and it depends on another hard-disk image to be fully functional. The parent hard-disk image can be any of the above mentioned hard-disk image types, including another differencing hard-disk image.
Creating a VHD:

Perform these steps to create a VHD file on your Windows 7-based computer:
  1. Click Start and then right-click Computer.
  2. Click Manage, then in the left pane, right-click Disk Management, and then click Create VHD.

  3. Select a location to save your VHD file. Select the maximum size for your VHD file. You can also choose from either of the two options – Dynamically Expanding, where the size of the VHD expands dynamically to a fixed maximum size, or Fixed Size, where the virtual hard disk uses a fixed amount of space regardless of the size of data stored on it.

  4. The new disk will show in the right pane as unallocated space. Right-click the new unallocated VHD Disk number and click Initialize Disk.
  5. You need to choose if you want the new VHD to have Master Boot Record (MBR) or GUID Partition Table (GPT) partition, and click OK.
  6. Right-click again on the new unallocated VHD and click New Simple Volume.
  7. Type how much of the maximum disk space you want to use for this VHD partition, and click Next.
  8. Select the file system for your VHD from either FAT or NTFS, and enter a name for your VHD. Select the Perform a quick format check box, and click Next.
  9. Click Finish. The system creates a new simple volume on your VHD, which is already attached.
Installing a VHD-Boot Machine:

Perform these steps to install Windows 7 with VHD file:
  1. Boot the system with a Windows 7 setup DVD or any other boot media.
  2. On the setup screen, don’t choose Install Now, but press Shift-F10 to get into command line mode.
  3. Type diskpart on the command line mode to start the partitioning utility.
  4. You need to create a new VHD file.  Type the following command to create this file:
    create vdisk file=”D:\pathToVhd.vhd” type=expandable maximum=maxsizeInMegabyte 
  5. Select the new VHD and attach it as a physical disk. Use the following command to perform this task:
    select vdisk file=”D:\pathToVhd.vhd”  attach vdisk 
  6. Proceed with the normal setup and make sure that you install Windows on the correct disk. You may receive a warning Windows cannot install to this disk. Ignore this warning.
  7. At next startup, you’ll see Windows 7 in the boot menu. If you want to add a VHD manually to the boot menu, use this command:
    bcdedit /copy {originalguid} /d "New Windows 7 Installation"
    bcdedit /set {newguid} device vhd=[D:]\Image.vhd
    bcdedit /set {newguid} osdevice vhd=[D:]\Image.vhd
    bcdedit /set {newguid} detecthal on
  8. Click Start, right-click Computer, and select Manage.
  9. To attach an existing VHD File, in the left pane, right-click Disk Management and then click Attach VHD.
  10. Click Browse, navigate to the VHD file location, select the file, and then click Open. If you want the VHD to be read-only, select the check box. Click OK.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Block IP address with Windows Firewall 2008
    If you ever feel that someone may be trying to break into your server or know an IP address that you want to block from accessing ...
  • Windows Server 2008 Command-line Tool
    On an installed and running system the Windows command-prompt window may be accessed from the main panel of the Start menu. The command-pro...
  • Creating a Capture Image in WDS
    How to Create a Capture Image by Using WDS Console " A capture image is created from an existing boot image. You will create a new ca...
  • Configuring Windows Server 2008 Remote Desktop Administration
    Windows Server 2008 is, as the name suggests, a server operating system. In the real world this means that systems running Windows Server ...
  • SMTP Server Configure on Windows Server 2008 R2
    Installing the SMTP feature 1 . Click Start > Run and then enter servermanager.msc in the Open dialogue box then click OK to load Se...
  • Windows Deployment Services Configure in Windows Server 2008 r2
    How to use Windows Deployment Service  1.1 Introduction: Windows Deployment Service (WDS) is an enhanced and redesigned version of Remote I...
  • How to configure ftp server in windows
      FTP Server using IIS 7.0 and Windows Server 2008 Open Server Manager, go to Roles and click “Add Roles” In the Add Role Wizard, select Web...
  • configure Active Directory in Windows Server 2008 R2 Part-2
    Configure Active Directory At the Server Management screen you should now see that you have 1 role installed.  The Active Directory D...
  • VPN connection Configuring on server 2008 R2 using RRAS and configuring clients
    A virtual private network (VPN) is a network that uses a public telecommunication infrastructure, such as the Internet, to provide remote of...
  • FTP Server and its Commands
    What is FTP? The FTP ( F ile T ransfer P rotocol) utility program is commonly used for copying files to and from other computers. These co...

Blog Archive

  • ▼  2013 (91)
    • ►  December (2)
    • ►  November (10)
    • ►  October (5)
    • ►  September (15)
    • ▼  August (26)
      • Creating a Capture Image in WDS
      • 2008 R2 - Enable Multiple RDP sessions
      • What is virtual private network (VPN)?
      • Important Tips for Before Going on ANY Interview
      • VMware Admin Interview Questions & Answers.
      • Change RDP Port on Windows XP
      • FTP Server and its Commands
      • Block IP address with Windows Firewall 2008
      • Disable Shutdown option in Windows
      • windows server 2008 password complexity
      • Microsoft Certification paper codes
      • Technical Interview Questions - Windows Server 200...
      • Technical Interview Questions - Windows Server 200...
      • Technical Interview Questions - Exchange Server 20...
      • Technical Interview Questions – MCSE & System Admi...
      • Technical Interview Questions – Active Directory P...
      • Technical Interview Questions – Networking Part2
      • Technical Interview Questions - Windows Server 200...
      • windows server 2008 r2 interview questions and ans...
      • windows server 2008 r2 interview questions and ans...
      • windows server 2008 r2 interview questions and ans...
      • Virtual Hard Disks
      • Upgrading Windows Vista to Windows 7
      • Upgrading Windows XP to Windows 7
      • Pv6 Addressing
      • List of Server Role services in Windows Server 200...
    • ►  July (1)
    • ►  June (5)
    • ►  May (14)
    • ►  April (5)
    • ►  March (1)
    • ►  February (1)
    • ►  January (6)
Powered by Blogger.

About Me

Unknown
View my complete profile