Question

In: Computer Science

Describe scenarios when you would use a Fixed-size virutal disk, a Dynamic virtual disk, and a...

Describe scenarios when you would use a Fixed-size virutal disk, a Dynamic virtual disk, and a Differencing virtual disk.

Solutions

Expert Solution

Fixed size, dynamically expanding, and differencing virtual disks:-Just like a physical machine, a virtual machine also requires a hard disk to function. In today’s blog post, we’ll discuss what virtual file formats are supported by Hyper-V and their types. We’ll also cover in detail about the different types of VHD/VHDX, and how to choose the right one for your requirements.

**A VHD is a type of file format for the virtual infrastructure, just like a physical hard disk. It has the functionalities of a typical hard drive but is installed and managed in a virtual setup. It often contains the same partitions and sectors as found on a physical drive, like partitioning and the file system. It can be stored in such a place where the physical host can access it.

**VHDX is another virtual file format in Hyper-V, and it came in with the release of Windows Server 2012. Before VHDX, Hyper-V virtual hard disks had a capacity of 2TB. VHDX offers a 64TB capacity. They have a 4KB logical sector size which contributes to better performance, and they are designed to be compatible with today’s modern hardware.

Fixed size virtual Disk:-

A fixed disk is created while creating a virtual machine in any virtualization platform (VMWare, Microsoft HyperV, Citrix Xenserver or even Virtualbox) or adding an extra disk to an existing virtual machine. In a fixed disk, the disk is given a maximum capacity size, this is the total capacity that is seen from inside the operating system. On the Host (the hypervisor that hosts the guest virtual machine that has the virtual disk) a virtual disk file is created, this may have a .vmdk file extension in VMWare or .vdk in Microsoft HyperV, the actual size of this file at the time of creation is the same as what you allocated the disk capacity to be, it remains constant and it does not expand or shrink.

**When you create a fixed-size virtual hard disk, space is reserved beforehand. Suppose you created a VHDX of 200 GB, then 200GB space will be reserved for you on the hard disk of the host. You may be using 5 or 50 GB out of it, so rest of the space is wasted and this is the real drawback of this virtual hard disk type.

PROs:

  • Fastest among the VHD types
  • Better performance for workloads that are sensitive to disk performance
  • Not prone to disk fragmentation

CONs:

  • Creating a fixed disk is a time-consuming process
  • They do not have dynamic growth
  • If the VHD created is too large, there’s no way to re-allocate it any other resource
  • Potential for wasted disk space

Dynamically Expanding virtual Disk:-

Dynamic disks are also created at the time of virtual machine creation or adding a disk to the vm. The big difference is that the vmdk or vdk files that are created are not the same size as the capacity you allocate to the virtual disk. The files expand in size as they are utilized and consumed, so if there is only 20 GB filesystem used out of a total 40 GB, the virtual disk file may not be a complete 40 GB in size.

**When you create a fixed-size virtual hard disk, space is reserved beforehand. Suppose you created a VHDX of 200 GB, then 200GB space will be reserved for you on the hard disk of the host. You may be using 5 or 50 GB out of it, so rest of the space is wasted and this is the real drawback of this virtual hard disk type.

PROs:

  • Better usage of physical storage space
  • Occupies lesser than 1GB of space initially
  • Offers better growth performance
  • Easy to copy virtual disk files between machines

CONs:

  • Possibility of disk space filling up the datastore
  • Slower read rates
  • Prone to disk fragmentation

Differencing virtual Disk:-

Differencing disks are used in parent-child relationship. Data is written to the child virtual disk keeping the parent disk in read-only mode.

An example could be a sys preped operating system in the parent disk and multiple virtual machines using the child disk. Each VM uses its own differencing disk and writes data in it while the operating system binaries are placed on shared parent disk.

Although differencing disks take less space but if there are more child VHDs, many I/O reads will be involved on the parent VHD which could have negative effects on VM performance.

**A differencing disk contains block data that represents changes to a parent virtual hard disk. The salient properties of differencing disks are:

  • A differencing disk must have exactly one parent. No more, no less.
  • The parent of a differencing disk must be another virtual hard disk. You cannot attach them to pass-through disks, a file system, a LUN, a remote share, or anything else.
  • The parent of a differencing disk can be any of the three types (fixed, dynamically expanding, or differencing)
  • Any modification to the data of the parent of a differencing disk effectively orphans the differencing disk, rendering it useless
  • Hyper-V can merge the change data back into the parent, destroying the differencing disk in the process. For Hyper-V versions past 2008 R2, this operation can take place while the disk is in use

PROs:

  • Helps in keeping the consistency of base image
  • Good performance for short-lived machines
  • Ability to isolate changes on parent disk, useful for troubleshooting and analysis

CONs:

  • Not suitable for VMs with a long life span
  • Unpredictable storage utilization patterns
  • Possibility of over-provisioning host storage
  • Added complexity when relocating parent disk

Related Solutions

What option in Virtual Box allows you to add additional virtual hard disk to a virtual...
What option in Virtual Box allows you to add additional virtual hard disk to a virtual machine? (Take screenshots of the steps)
A process contains eight virtual pages on disk and is assigned a fixed allocation of four-page...
A process contains eight virtual pages on disk and is assigned a fixed allocation of four-page frames in the main memory. The following page trace occurs: 1, 0, 2, 2, 1, 7, 6, 7, 0, 1, 2, 0, 3, 0, 4, 5, 1, 5, 2, 4, 5, 6, 7, 6, 7, 2, 4, 2, 7, 3, 3, 2, 3, 4 (a) Show the successive pages residing in the four frames using the LRU replacement policy. Compute the hit ratio in...
describe how elastic disk provisioning architecture works and why would you use it?
describe how elastic disk provisioning architecture works and why would you use it?
Select one of the three scenarios and describe how you would use a systematic sample to...
Select one of the three scenarios and describe how you would use a systematic sample to select the sample. Write your answers in complete sentences. 2-4 sentences should suffice. 1) A group of scientists would like to determine if a new drug shrinks spleen tumors in mice. In order to do this, they select 150 mice and measure the size of their spleen tumors. Then they administer the drug. Then, they measure the size of the spleen tumors afterward. 2....
IN C++ (THIS IS A REPOST) Design a class, Array, that encapsulates a fixed-size dynamic array...
IN C++ (THIS IS A REPOST) Design a class, Array, that encapsulates a fixed-size dynamic array of signed integers. Write a program that creates an Array container of size 100 and fills it with random numbers in the range [1..999]. (Use std::rand() with std::srand(1).) When building the array, if the random number is evenly divisible by 3 or 5, store it as a negative number. Within your main.cpp source code file, write a function for each of the following processes....
When would you choose to use containers in Windows and when would you choose to use...
When would you choose to use containers in Windows and when would you choose to use containers in Linux? How are they different? How are they similar?
1-Discuss the differences between size exclution chromatography and hydrodynamic chromatography ? 2- When would you use...
1-Discuss the differences between size exclution chromatography and hydrodynamic chromatography ? 2- When would you use each of these?
Prepare a checklist of questions and issues you would use when shopping for a stockbroker. Describe...
Prepare a checklist of questions and issues you would use when shopping for a stockbroker. Describe both the ideal broker and the ideal brokerage firm, given your investment goals and disposition. Discuss the pros and cons of using a full-service rather than a premium discount of basic discount broker. If you plan to trade online, what additional questions would you ask?
Describe at least four decision scenarios within the Coca- Cola Company that would relect/ use managerial...
Describe at least four decision scenarios within the Coca- Cola Company that would relect/ use managerial accounting concepts (example: Breakeven analysis)
Review current ideas on global teams that are virtual. How would you conduct a virtual meeting...
Review current ideas on global teams that are virtual. How would you conduct a virtual meeting with people from five different countries and three different time zones? How do you account for culture and customs that might affect conversation and business etiquette?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT