zoukankan      html  css  js  c++  java
  • VM配置文件所在磁盘空间小于其配给内存时的错误信息

      

      前几天在自己工作机(Win2k8 R2)上安装的VS等一些工具,机器的系统盘空间大幅减少到3G以下. 在此机器上用Hyper-v启动MyVirtualMachine(配给内存为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:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\A00AE5F2-48F9-4114-A804-A85289C8541D\A00AE5F2-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:\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]

     经分析发现:

    1. MyVirtualMachine配置的文件所在磁盘为系统盘, 其空间小于3G,
    2. 此工作机Hyper-V的Virtual Machines的配置文件所在的文件夹为:%SystemDrive%\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines. (可由下方式查看:打开Hyper-v Manager,在控制台树面板中,选中当前机器->[Action]->[Hyper-v Setting]->[Server]组->[Virtual Machines])
    3. 在提示信息中Hyper-V将为MyVirtualMachine在其配置文件所在的文件夹下分配5120 MB(配给的内存大小),此时报错没有足够空间

     解决办法:

    1. 转移MyVirtualMachine的配置文件到其他的磁盘(本人没有在Hyper-v Manager中发现此功能,是否存在?) 
    2. 修改此工作机上Hyper-V的Virtual Machines的配置文件所在的文件夹,按以前的配置再创建新的VM(操作成功)
    3. 修改此工作机上Hyper-V的Virtual Machines的配置文件所在的文件夹,拷贝VM的配置文件到新的目录下,然后重新启动Hyper-v服务.(尝试没有成功,Hyper-v Manager没显示拷贝过去的配置文件) 
    4. 通过简单修改VM的配置文件,指定将要生成bin文件的路径到其他磁盘.(发现没有简单的配置达到此目的,没有花时间仔细研究)

     结论:

           VM配置文件所在磁盘空间小于其配给内存大小时,当Hyper-v启动VM时会报如下错误信息:Could not initialize memory: There is not enough space on the disk. 可通过修改此工作机上Hyper-V的Virtual Machines的配置文件所在的文件夹,按以前的配置再创建新的VM来解决.

  • 相关阅读:
    程序员7种武器成
    FastReport 使用技巧篇
    FastReport调用Delphi中的自定义函数(人民币大写金额)mtm
    FastReport里面正确调用函数的方法
    FastReport报表设计
    FastReport报表对象介绍一:“Text”对象
    设定报表变量的CharSpacing
    FastReport问题整理(技巧)
    FASTREPORT 整理 (mtm)
    fastReport 运行时设计报表 (mtm)
  • 原文地址:https://www.cnblogs.com/zzj8704/p/1689612.html
Copyright © 2011-2022 走看看