locked
Hyper- V Creating a new Virtual machine - Clarifications RRS feed

  • Question

  • I'm studying for my 70-410. I just want to make sure I have this straight. Please help me verify the following statements.

    Using the new-VM commandlet you are unable to create a VHD. You can create a VHDX.

    Using the new-VM commandlet you are unable to create a dynamic VHDX disk.  

    I was wrong about unable to create a dynamic VHDX, its Fixed I can't figure out how to create.

    Using the new-VM commandlet you are unable to configure Dynamic memory. 

    To create a VHD you would use the new-VHD commandlet

    To create a Fixed VHDX you would use the new-VHD commandlet

    To to configure Dynamic memory you would use set-VMMemory commandlet

    Corrected what I was wrong about, anyone else poke holes in the following statements?




    • Edited by Minerbob Tuesday, December 15, 2015 1:37 AM
    Monday, December 14, 2015 9:28 PM

Answers

  • I cannot respond on behalf of what the test might consider correct or incorrect.

    We could only make statements in regards to the cmdlets themselves.

    New-VM supports creating a blank virtual disk.  The extension you define decides if it is vhd or vhdx.

    If you define generation 2 you get VHDX.

    https://technet.microsoft.com/en-us/library/hh848537.aspx?f=255&MSPPError=-2147217396

    See Example 2

    And virtual disks are dynamic by default, not fixed.


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

    • Proposed as answer by Leo Han Monday, December 28, 2015 8:52 AM
    • Marked as answer by Leo Han Thursday, December 31, 2015 7:19 AM
    Monday, December 14, 2015 9:43 PM
  • I agree with Brian.  Forums are not places to go to get answers to test questions or to take the place of self-study for exams.  They are places to go to get clarification on points you do not understand after having tried something or to get assistance if you cannot get something to work as expected in your lab.

    . : | : . : | : . tim

    • Proposed as answer by Leo Han Monday, December 28, 2015 8:52 AM
    • Marked as answer by Leo Han Thursday, December 31, 2015 7:19 AM
    Tuesday, December 15, 2015 3:23 PM

All replies

  • I cannot respond on behalf of what the test might consider correct or incorrect.

    We could only make statements in regards to the cmdlets themselves.

    New-VM supports creating a blank virtual disk.  The extension you define decides if it is vhd or vhdx.

    If you define generation 2 you get VHDX.

    https://technet.microsoft.com/en-us/library/hh848537.aspx?f=255&MSPPError=-2147217396

    See Example 2

    And virtual disks are dynamic by default, not fixed.


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

    • Proposed as answer by Leo Han Monday, December 28, 2015 8:52 AM
    • Marked as answer by Leo Han Thursday, December 31, 2015 7:19 AM
    Monday, December 14, 2015 9:43 PM
  • Thank you for answering. 

    The VHDX by default is dynamic - thank you I would of got that wrong.

    I disagree on the file extention part though. In my lab I tried gen 1 and 2 and got the following

    PS C:\Users\Administrator> new-vm -name "CleanCopy" -Memorystartupbytes 512MB -Generation 1 -NewVHDPath D:\VMstorage.cleancopy1.vhd -NewVHDSizeBytes 60GB
    new-vm : A parameter is invalid. The path for a new virtual hard disk must use a .VHDX file extension.
    At line:1 char:1
    + new-vm -name "CleanCopy" -Memorystartupbytes 512MB -Generation 1 -NewVHDPath D:\ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [New-VM], VirtualizationInvalidArgumentException
        + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.NewVMCommand

    Tuesday, December 15, 2015 1:32 AM
  • I guess that you are figuring the answers out yourself then.  Excellent.

    FYI - you could have quickly discovered your own answer with the default virtual disk behavior (fixed VS dynamic).

    As I said, we cannot make statements as to the test questions. And as a person that worked on exams before, I won't comment on how technically correct answers might or might not be.


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

    Tuesday, December 15, 2015 3:07 AM
  • I agree with Brian.  Forums are not places to go to get answers to test questions or to take the place of self-study for exams.  They are places to go to get clarification on points you do not understand after having tried something or to get assistance if you cannot get something to work as expected in your lab.

    . : | : . : | : . tim

    • Proposed as answer by Leo Han Monday, December 28, 2015 8:52 AM
    • Marked as answer by Leo Han Thursday, December 31, 2015 7:19 AM
    Tuesday, December 15, 2015 3:23 PM