Create a virtual HDD on hyper-v 2012 Core

hi guys
i tried to create a Virtual HDD on Hyper-2012R2 Core however it won't allow me to !
new-vhd : Failed to create the virtual hard disk.
The size specified for 'D:\Virtual Machines\Movies.vhdx' is too small. The smallest valid size for a virtual hard disk is 3MB.
A parameter that is not valid was passed to the operation.
    + CategoryInfo          : InvalidArgument: (Microsoft.Hyper...l.VMStorageTask:VMStorageTask) [New-VHD], VirtualizationOperationFailedException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.Vhd.PowerShell.NewVhdCommand
any suggestions ?

Since we're talking about 2012R2, I'm not a fan of the syntax after checking technet.  Let's rework the order a bit and try this command:
New-VHD -Path D:\Virtual Machines\Movies.vhdx -SizeBytes 800GB -Dynamic
http://technet.microsoft.com/en-us/library/hh848503.aspx
Thank you for your answer however it comes back with the next error.
[hv1]: PS D:\> New-VHD -Path D:\Virtual Machines\Movies.vhdx -SizeBytes 800GB -Dynamic
A positional parameter cannot be found that accepts argument 'Machines\Movies.vhdx'.
    + CategoryInfo          : InvalidArgument: (:) [New-VHD], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Vhd.PowerShell.NewVhdCommand

Similar Messages

  • 0x80070569 Error When Creating Second Virtual server in Hyper-v 2012

    I get this error when I try to create a second VM from Hyper-v Manager on windows 8 / server 2012 / server 2008 R2.
    Hyper-v is running on a new install of server 2012 core.
    I was able to create the first VM (server 2012 with a GUI) and is running fine.
    I have tried adding the local administrator account to the logon as a batch job and doing a gpupdate /force with not luck.
    Both the server 2012 core and the server 2012 VM are joined to the same domain.  I am logged into server 2012 and server 2008 R2 as the domain administrator.
    Any ideas would help!

    Hi,
    Error Message: The user has not been granted the requested logon type at this computer, this problem typically occurs when the user does not have the permissions to log on locally on the computer.
    By default, members of the Users group have the ability to log on locally, but an administrator can deny the right to specific user or group accounts. An explicitly denied right always overrides an allowed right.
    This can be caused by either of the following:
    Neither the user account nor any of the groups it belongs to has been granted the Allow log on locally user right.
    The user account or one or more of the groups it is a member of has been listed in the Deny log on locally user right.
    Ensure that the user, or a group the user belongs to has the right to log on locally. Ensure that the user, and all groups that the user belongs to, are not denied the right to log on locally.
    Also, have you tied to restart to restart the Hyper-V host server? Restart it and check the result.
    You may also try to create VM using PowerShell command:
    Sample Scripts for Managing Virtual Machines
    http://technet.microsoft.com/en-us/library/bb963748.aspx
    For more information please refer to following MS articles:
    Error Message: The user has not been granted the requested logon type at this computer
    http://technet.microsoft.com/en-us/library/cc732593(v=WS.10).aspx
    Windows 8 Hyper-V Virtual Machine Management Service
    http://social.technet.microsoft.com/Forums/lv/winserverhyperv/thread/4b3e7582-dc20-4dcb-8e71-fef9fecce19c
    Lawrence
    TechNet Community Support

  • All vm's in hyper-v 2012 core cannot initialize

    Hi,
    All vm's in hyper-v 2012 core cannot initialize.
    there is ram and space in drive. Tried to run windows update and restarted hyper-V.
    any suggestions?
    Thanks

    So on your other host, 10.21.0.150 (?), right-click on the folder 'virtualmachines' and select 'Properties'. Go to the 'Sharing' tab and enable sharing. You will need to specify the domain admin, in your case, to have full permissions to the share.
    Note that I wouldn't really recommend your approach from a permissions point of view - rather, I'd create a separate account within AD for this, grant that user full permissions to the folder, and then provide these credentials from your Hyper-V host.
    I'm not sure which OS you're using for hosting your 'virtualmachines' folder, but http://technet.microsoft.com/en-us/library/cc770406.aspx should provide additional information
    for actually configuring your shares.
    Further, I'd use a little more descriptive name than just 'New Virtual Machine' in order to help keep things more organized as your environment grows.

  • Poor network when create virtual switch in hyper-v 2012

    Hello,
    i installed on DELL R620 windows server 2012 STD and add the hyper-v role
    when i created a virtual switch , the speed of network in the HOST( the server itself) is ver poor ( copy file from fileserver is 300Kbs)
    when i remove the virtual switch , the speed of the network is better(  copy file from fileserver is 10-20Mbps)
    i spoke with DELL support center , and after check up , no problem has found.
    i tried all the chnges with the offload checksum etc but nothing helped
    Please your comment about this issue
    Thanks
    Dotan

    Need some additional information
    Which Team type are you utilizing? 
    Which Raid Controller are you using on the hosts?
    I would suggest you try this as well while its specific to 10Gb CNA's it can help with 1Gb in some cases.  SMB
    FILE COPY PERFORMANCE
    Also utilizing the low latency Bios settings can often offer additional NIC performance 
    Dell 12th Gen Low Latency Bios Settings
    -Sean

  • Bitlocker within Virtual Machines on Hyper-V 2012 R2 Host

    I'm just trying to get a definitive answer to the question of can we enable Bitlocker encryption within a VM that's housed on a hyper-V 2012 R2 host?
    Some posts I've seen say it can be done and detail the steps, but others suggest that you can only use Bitlocker on data drives within the VM and not boot drives.
    Can anyone please clarify the situation for me?
    Cheers for now
    Russell

    Bitlocker is not supported inside VMs. That is due to the fact that TPM chips cannot be passed through into VMs.
    It does however not mean, that BL won't work. You cannot use netunlock as it needs a tpm - correct. But you can use startup keys (emulated floppy disks) that provide the key so you have a hands-free reboot.
    Like this: add a floppy image to your vm. Format that floppy. Tell Bitlocker to use additional startup keys and not require a tpm. Than, enable Bitlocker:
    manage-bde -on c: -sk a:
    [will write a startup key to that virtual floppy].
    I've just been looking at the BitLocker documentation and was wondering if I can use the ADaccountorgroup protector instead of the virtual floppy drive, as suggested by the text below (from TechNet):-
    An alternative to the startup key protector on non-TPM hardware is to use a password and an
    ADaccountorgroup protector to protect the operating system volume. In this scenario, you would add the protectors first.  This is done with the command:
    manage-bde -protectors -add C: -pw -sid <user or group>
    This command will require you to enter and then confirm the password protector before adding them to the volume.  With the protectors enabled on the volume, you can then turn BitLocker on.
    I assume that as long as the AD Group or User is present, the volume can be unlocked?
    Cheers for now
    Russell

  • Virtual SAN Manager Hyper-V 2012 R2 iSCSI

    I think I know the answer to this question, but one someone to tell me for sure....
    We currently have iSCSI San's implemented in our organization.  We are using Hyper-V 2012 R2 and doing nothing fancy with it.  We could like to be able to take advantage of Virtual SAN Manager within Hyper-V to take care of the snapshotting, etc.. 
    It appears that in order to use this you must have a FC SAN.  Can someone tell me if this is a correct statement or not?
    Any help would be greatly appreciated.

    Hi jesmitch,
    Yes , it is .
    plaese refer to following preparation :
    One or more installations of Windows Server 2012 with the Hyper-V role installed.
    A computer with one or more Fibre Channel host bus adapters (HBAs) that have an updated HBA driver that supports virtual Fibre Channel. Updated HBA drivers are included with the in-box HBA drivers for some models. The HBA ports to be used with virtual
    Fibre Channel should be set up in a Fibre Channel topology that supports NPIV. To determine whether your hardware supports virtual Fibre Channel, contact your hardware vendor or OEM.
    An NPIV-enabled SAN.
    Virtual machines configured to use a virtual Fibre Channel adapter, which must use Windows Server 2008, Windows Server 2008 R2, or Windows Server 2012 as the guest operating system.
    Storage accessed through a virtual Fibre Channel supports devices that present logical units. Virtual Fibre Channel logical units cannot be used as boot media.
    For detials please refer to the link below :
    http://blogs.technet.com/b/privatecloud/archive/2013/07/23/hyper-v-virtual-fibre-channel-design-guide.aspx
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to check the RAID or HDD config in Hyper v 2012 core

    I have hyper v 2012 / hyperv 2008 core running in rack server. I wanted to verify whether the server is in RAID or not. How do i check that?
    Regards,
    Sathish
    Sathishkumar M

    Hi Sathishkumar M,
    I think that the best solution is to check from the RAID controller BIOS.
    Anyway try with the command DiskRAID 
    https://technet.microsoft.com/en-us/library/cc775926%28v=ws.10%29.aspx

  • Whether Hyper-V 2012 will support Thin provisioning ?

    Hi All,
           I am installing windows server 2012 in Hyper V as a VM using iso images.... While creating new virtual machine in Hyper-V I am not able to see any options like "Thin Provisioning"... In Hyper V how thin provisioning will
    work and how to enable it?
    I install one Server 2012 in Hyper V--> It display harddisk type as "xxxx.vhdx"
    Note:In Vmware the thin provisioning option is available while creating virtual machines.
    Thanks,
    Rajarajan.D

    Hello,
    I hope you have a great day.
    Creating the VHDX file as dynamically expanding, is the VMware equivalent to thin provisioning.
    Example: Create dynamically vhdx with size of 100 GB and install Server 2012 OS. The Guest OS will see drive capacity as 100GB however the actual vhdx file would only consume about 15 - 30GB physical hard disk space depending on the features/roles you
    install in the OS.
    Creating a 100GB Fixed VHDX would consume 100GB of physical hard disk space.

  • Can I assign several physical storage locations for each virtual machine when using the replication-feature from Hyper-V 2012 R2?

    Hi everyone,
    I have 2x physical servers running Hyper-V 2012 R2. Each hosts several virtual machines. The VHDs of the VMs are stored on several dedicated physical disks to have a performance boost. For exampe if VM A has two VHDs attached I made sure that the VHDs are
    on different physical disks to have them not slow-down each other in case of intensive disk accesses.
    So far so good. I was looking forward to the replication-feature. The idea is to have the two physical servers have their primary running VMs being replicated to the other physical server and vice-versa. I was hoping to have the chance to choose for each
    individual VM where the replicated VHD will be stored. But instead I can only see the one location/path which is configured in Hyper-V Manager when I activate the replication-feature on the server.
    Is there by any chance a way how to select the storage location for each VHD/VM if using the replication-feature of Hyper-V 2012 R2?
    Thanks in advance.
    Cheers,
    Sebastian

    Secondly, you could replicate different VMs to different storage locations to perform some of the disk balancing you are trying to perform.  Lastly, you could copy the vhd file to a different location
    before starting the VM.
    .:|:.:|:. tim
    Hi Tim,
    thanks for the reply. Sorry, but I had some other tasks to take care of, so I wasn't paying enough attention to this thread.
    The part I quoted from your reply sounds exactly like the action I'd like to perform, but as you pointed out before this should not be possible.
    How can I perform the action (replicating each VM to a storage location) as you mentioned secondly? To sum it up again:
    2x physical machines carrying severel HDDs
    8+ VMs spread to run on the 2x servers
    when setting up replication I can only set the storage-location from server A on B and vice versa B on A
    Thanks again for your reply.
    Cheers,
    Sebastian

  • How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?

    Hi ,
    anybody know  How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?
    I want to create lab but i couldn't  I follow this article but the new VM is off
    http://blogs.technet.com/b/gbanin/archive/2013/06/26/how-to-install-hyper-v-on-a-virtual-machine-in-hyper-v.aspx
    one of hyper-v component is not running
    thanks

    Previously it has been blocked to install Windows Server in the VM and then add the Hyper-V Role.
    However, it has always been possible to install Hyper-V Server inside a VM. (the free Hyper-V Server SKU)
    The Hyper-V Server VM is fully manageable, but it cannot start any VMs.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Virtual Machine Manager to manage Hyper-V 2012 R2 Servers

    Hi,
    I am trying to create an environment wherein I have few Hyper-V 2012 R2 hosts, Windows Server 2012 hosts, and Windows Server 2008 hosts. All are registered to a AD server.
    On Windows Server 2012 host, I have created a virtual machine on which System Center Virtual Machine Manager 2012 SP1 is running. This Virtual Machine Manager is perfectly able to manage Windows Server 2008 hosts.
    However when tried to add Windows Server 2012 hosts and Hyper-V 2012 R2 hosts, it gives the following error:
    Error (2916)
    VMM is unable to complete the request. The connection to the agent windows2012.test.com was lost.
    WinRM: URL: [http://windows2012.test.com:5985], Verb: [INVOKE], Method: [Associate], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/AgentManagement]
    Unknown error (0x80338012)
    Recommended Action
    Ensure that the WS-Management service and the agent are installed and running and that a firewall is not blocking HTTPS traffic.
    This problem can also be caused by WMI service crash. Ensure that KB 982293 (http://support.microsoft.com/kb/982293) is installed on the machine if it is running Windows Server 2008 R2.
    If the error persists, reboot windows2012.test.com and then try the operation again.
    Checked:
    > WS-Management service is running
    > VMM agent got installed
    Questions:
    1. Whether System Center 2012 SP1 - Virtual Machine Manager is compatible to manage Hyper-V Sever 2012 and Windows 2012 R2 Server.
    2. What is the latest version of VMM to manage Hyper-V Sever 2012 and Windows 2012 R2 Server.

    Hello,
    I have installed VMM 2012 R2, this is also not allowing me to add and manage Server 2012 R2 hosts. However it is perfectly able to manage Server 2008 host.
    It gives following error when tried to add Server 2012 R2 hosts:
    Error (2916)
    VMM is unable to complete the request. The connection to the agent windows2012.test.com was lost.
    WinRM: URL: [http://windows2012.test.com:5985], Verb: [INVOKE], Method: [Associate], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/AgentManagement]
    Unknown error (0x80338012)
    Recommended Action
    Ensure that the WS-Management service and the agent are installed and running and that a firewall is not blocking HTTPS traffic.
    This problem can also be caused by WMI service crash. Ensure that KB 982293 (http://support.microsoft.com/kb/982293) is installed on the machine if it is running Windows Server 2008 R2.
    If the error persists, reboot windows2012.test.com and then try the operation again.
    Any suggestions please?

  • Hyper-V 2012 R2 creating a new vhdx and copying from a source vhdx will physical file size reduce?

    Hi,
    I'm running Hyper-V 2012 R2 as part of Server 2012 Essentials.
    As seems common from other threads I've read I have created an expanding VHDX with a maximum size too large (almost the same size as the physical disc it lives on). Although there is only around 350GB of data in the VHDX, the actual file size is approaching
    900GB on the host.
    I'm using the "Add New Virtual Disk" wizard to make a new VHDX to replace this massive file. I want the contents of the old VHDX to be copied to the new one so in the add disk wizard I selected the option to copy the contents of my new disk from
    the original.
    So my question is: the source VHDX is 900GB, the data inside the is around 350GB. What size is my new VHDX likely to be? Is it likely to reduce to nearer the actual data size?
    I'm asking because I'm currently running this operation to an external USB drive and it's painfully slow - going to take hours to complete. If the size isn't going to reduce I may as well cancel it and look for a better option.
    Any comments appreciated.
    David

    I am assuming that you are using dynamic virtual disks for your VHDX (they can be dynamic or fixed).
    And, it is usually some type of transaction, backup agent, of the like that causes this type of behavior.  Some action that requires a cache on disk that is later deleted.
    There is a shrink action that can be done, but that will not optimize fully.
    The way to fully optimize is to mount the old virtual disk and create a new virtual disk and mount it, and then copy the contents from one to the other.  This lays the files out in a nice orderly way, without anything being written to the end of the
    virtual disk causing it to expand strangely.
    Over time, if you are still using the backup agent (for example) that got you into this situation, you will be there again.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Move Virtual Machine from Hyper-V Server 2008 R2 SP1 to Hyper-V Server 2012 fails with Error 2901

    I have six Hyper-V 2008 R2 SP1 servers and two Hyper-V 2012 servers. I am running SCVMM 2012 SP1. I am trying to use "move virtual machine" from within SCVMM to move VMs from a 2008 host to a 2012 host. I have tried different VMs on different hosts
    and they all fail with this error:
    ==========
    Error (2901)
    The operation did not complete successfully because of a parameter or call sequence that is not valid.
    The parameter is incorrect (0x80070057)
    Recommended Action
    Ensure that the parameters are valid, and then try the operation again.
    ==========
    I have successfully created a VM on one of the 2012 hosts and moved it to the other 2012 hosts.  I can move VMs from 2008 host to 2008 host.  I just cannot move VMs from 2008 host to 2012 host.
    Does SCVMM 2012 SP1 not support moving VMs from Hyper-V 2008 to Hyper-V 2012?

    Hello Kevin,
    Have you got an resolution yet ? Do you have latest update roll up pack applied to SCVMM 2012 SP1?
    With SCVMM 2012 SP1  " Running VMs (Live Migartion) and VMs which are in Saved state or having checkpoints can not be migrated from 2008R2 host to 2012 Host " 
    above was fixed in SCVMM 2012 Update Roll up 1
    Apart this please check the approx. size of data (VHDs) which will get transferred over the network , If you have large files chances are more to get such errors.
    Thanks
    ~NY

  • Virtual machine packaging in Hyper-V 2012?

    Hi all,
    I am running a custom Linux VM on Hyper-V 2012. Do we have a virtual machine packaging mechanism in Hyper-V 2012 Server, similar to OVF in ESXi?
    I tried MSVMC tool. But looks like it only works for Windows guests.
    Do we have any other option for getting a VM package in Hyper-V ?
    Thanks in advance,
    Saleem

    You Export the VM - that creates a folder of files (not unlike OVF).
    You can then zip this or TAR it.  Hand it off, extract it, Import it on the other end.
    The process is the same, but the XML is not 'ovf' - it is very similar however.
    BTW - OVF is an open standard.  And VMware has an proprietary implementation of it.  So, taking that into consideration as well.  The process is no different.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Hyper-V 2012 R2 Virtual machine creation date resets to 01/01/1601 after host reboot

    Server 2012 R2 with Hyper-V stand-alone, no cluster. I created new virtual machine. When I rebooted host, I noticed that creation date of the VM becames wrong, something of 01/01/1601.
    VM creation date does not persists between Hyper-V host reboots or restarting of the VMM service.

    Yes, there's a known bug. While the VM is running, hit the stop service button (or net stop vmms from the command line) and restart it (or net start vmms from the command line).
    John Howard, Senior Program Manager, Hyper-V Team, Microsoft Corporation.
    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

Maybe you are looking for

  • Can you look at my code?

    Ok, Murray was kind enough to help me but then I managed to mangle everything so I'm starting from scratch. I work in graphics but not in web design, so html and css are fairly new to me. I put together a simple set of images and I successfully got t

  • How do I delete an old device I no longer have that still shows in Safari iCloud settings?

    In the iCloud website..in settings it shows the devices that you are signed in to. I handed a broken 17" MBP into Apple for exchange for a new 15" but the 17" still shows active in my devices. I cannot find a way to delete the device...any solutions

  • Javascript:history.go(-1)

    This is driving me absolutely insane. I am using this code within flash to go to previous page from browsers history. It works fine on my mac, but testing in Windows IE7 it only works once. http://www.bloxdesigns.com/jewelry/necklaces/page1/metal/pag

  • DFM device discovery issue "Devices stuck in Questioned state"

    Hi We have LMS 3.0.1 installed with DFM 3.0.4 The devices are showing Questioned with Error code "SNMP timeout" with no specific reason. The snmpwalk is coming for the device as I checked with snmpwalk command. The only device discovered as"known" ha

  • Use of Single Instance Store (SIS) in DPM 2012 R2

    Hi, Please help me to understand use of installing Single Instance Store (SIS) feature while installation of DPM 2012 R2 or reason behind installing it.