VM配置文件所在分區(qū)內(nèi)存太小導(dǎo)致錯誤的解決方法
來源:程序員人生 發(fā)布時間:2014-05-26 11:00:25 閱讀次數(shù):3085次
前幾天在自己工作機(Win2008 R2)上安裝的VS等一些工具,機器的系統(tǒng)盤空間大幅減少到3G以下. 在此機器上用Hyper-v啟動MyVirtualMachine(配給內(nèi)存為5120M)時,Hyper-v報錯誤信息: Could not initialize memory: There is not enough space on the disk. 具體如下:
[Window Title]
Virtual Machine Connection
[Main Instruction]
The application encountered an error while attempting to change the state of 'MyVirtualMachine'.
[Content]
'MyVirtualMachine' failed to start.
Could not initialize memory: There is not enough space on the disk. (0x80070070).
Failed to create memory contents file 'C:ProgramDataMicrosoftWindowsHyper-VVirtual MachinesA00AE5F2-48F9-4114-A804-A85289C8541DA00AE5F2-48F9-4114-A804-A85289C8541D.bin' of size 5120 MB.
[Expanded Information]
'MyVirtualMachine' failed to start. (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
'MyVirtualMachine' could not initialize memory: There is not enough space on the disk. (0x80070070). (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
'MyVirtualMachine' failed to create memory contents file 'C:ProgramDataMicrosoftWindowsHyper-VVirtual MachinesA00AE5F2-48F9-4114-A804-A85289C8541DA00AE5F2-48F9-4114-A804-A85289C8541D.bin' of size 5120 MB. (Virtual machine ID A00AE5F2-48F9-4114-A804-A85289C8541D)
[^] Hide details [Close]
經(jīng)分析發(fā)現(xiàn):
MyVirtualMachine配置的文件所在磁盤為系統(tǒng)盤, 其空間小于3G,
此工作機Hyper-V的Virtual Machines的配置文件所在的文件夾為:%SystemDrive%ProgramDataMicrosoftWindowsHyper-VVirtual Machines. (可由下方式查看:打開Hyper-v Manager,在控制臺樹面板中,選中當(dāng)前機器->[Action]->[Hyper-v Setting]->[Server]組->[Virtual Machines])
在提示信息中Hyper-V將為MyVirtualMachine在其配置文件所在的文件夾下分配5120 MB(配給的內(nèi)存大小),此時報錯沒有足夠空間
解決辦法:
轉(zhuǎn)移MyVirtualMachine的配置文件到其他的磁盤(本人沒有在Hyper-v Manager中發(fā)現(xiàn)此功能,是否存在?)
修改此工作機上Hyper-V的Virtual Machines的配置文件所在的文件夾,按以前的配置再創(chuàng)建新的VM(操作成功)
修改此工作機上Hyper-V的Virtual Machines的配置文件所在的文件夾,拷貝VM的配置文件到新的目錄下,然后重新啟動Hyper-v服務(wù).(嘗試沒有成功,Hyper-v Manager沒顯示拷貝過去的配置文件)
通過簡單修改VM的配置文件,指定將要生成bin文件的路徑到其他磁盤.(發(fā)現(xiàn)沒有簡單的配置達到此目的,沒有花時間仔細研究)
結(jié)論:
VM配置文件所在磁盤空間小于其配給內(nèi)存大小時,當(dāng)Hyper-v啟動VM時會報如下錯誤信息:Could not initialize memory: There is not enough space on the disk. 可通過修改此工作機上Hyper-V的Virtual Machines的配置文件所在的文件夾,按以前的配置再創(chuàng)建新的VM來解決.
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機掃描二維碼進行捐贈