Some tools such as VS installed on Win2008 R2 a few days ago have greatly reduced the system disk space of the machine to less than 3 GB. when Hyper-v is used to start MyVirtualMachine (allocated to memory of 5120 MB) on this machine, Hyper-v reports the error message: cocould not initialize memory: There is not enough space on the disk. the details are as follows:
[Window Title]
Virtual Machine Connection
[Main Instruction]
The application encountered an error while attempting to change the state of 'myvirtualmacher '.
[Content]
'Myvirtualmacher' failed to start.
Cocould not initialize memory: There is not enough space on the disk. (0x80070070 ).
Failed to create memory contents file 'C: \ ProgramData \ Microsoft \ Windows \ Hyper-V \ Virtual Machines \ A00AE5F2-48F9-4114-A804-A85289C8541D \ A00AE5F2-48F9-4114-A804-A85289C8541D.bin 'of size 5120 MB.
[Expanded Information]
'Myvirtualmacher' failed to start. (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
'Myvirtualmacher' cocould not initialize memory: There is not enough space on the disk. (0x80070070). (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
'Myvirtualmacher' failed to create memory contents file 'C: \ ProgramData \ Microsoft \ Windows \ Hyper-V \ Virtual Machines \ A00AE5F2-48F9-4114-A804-A85289C8541D \ A00AE5F2-48F9-4114-A804-A85289C8541D.bin 'of size 5120 MB. (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
[^] Hide details [Close]
Analysis showed that:
The disk where the file configured by MyVirtualMachine is located is the system disk, and its space is less than 3 GB,
The configuration file of the Virtual Machines of Hyper-V is located in % SystemDrive % \ ProgramData \ Microsoft \ Windows \ Hyper-V \ Virtual Machines. (can be viewed in the following way: Open Hyper-v Manager, in the console tree panel, select the current machine-> [Action]-> [Hyper-v Setting]-> [Server] group-> [Virtual Machines])
In the prompt message, Hyper-V will allocate 5120 MB (allocated memory size) to MyVirtualMachine in the folder where its configuration file is located. At this time, the error message shows that there is not enough space.
Solution:
Transfer the configuration file of MyVirtualMachine to another disk (I have not found this function in Hyper-v Manager, does it exist ?)
Modify the folder where the configuration file of Virtual Machines of Hyper-V on the working machine is located, and create a new VM based on the previous configuration (Operation successful)
Modify the folder of the Virtual machine configuration file of Hyper-V on the working machine, copy the VM configuration file to the new directory, and restart the Hyper-v service. (The attempt failed. Hyper-v Manager does not display the copied configuration file)
By simply modifying the VM configuration file, specify the path of the binfile to be generated to other disks)
Conclusion:
The disk space of the VM configuration file is smaller than the size allocated to the memory. When Hyper-v starts the VM, the following error message is returned: cocould not initialize memory: There is not enough space on the disk. you can modify the folder of the Virtual Machines configuration file of Hyper-V on the working machine and create a new VM based on the previous configuration.