menu Chancel's blog
rss_feed
Chancel's blog
秋雨一何碧,山色倚晴空。

qcow2磁盘动态扩容

作者:Chancel Yang, 时间:2022 Aug 08, 阅读:95

kvm虚拟了一个64G的Windows10,日积月累发现空间不足了,使用qemu-img给虚拟机扩容增加64G,如下

sudo qemu-img resize Windows10.qcow2 +64G

查看磁盘信息

➜  images sudo qemu-img info Windows10.qcow2       
image: Windows10.qcow2
file format: qcow2
virtual size: 128G (137438953472 bytes)
disk size: 61G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: true
    refcount bits: 16
    corrupt: false

打开Windows10,按win+x后按k进入磁盘管理,选择C盘进行扩展卷,扩展后如下

20220808.113612.png

[[replyMessage== null?"发表评论":"发表评论 @ " + replyMessage.m_author]]

account_circle
email
web_asset
textsms

评论列表([[messageResponse.total]])

还没有可以显示的留言...
[[messageItem.m_author]] [[messageItem.m_author]]
[[messageItem.create_time]]
[[getEnviron(messageItem.m_environ)]]
[[subMessage.m_author]] [[subMessage.m_author]] @ [[subMessage.parent_message.m_author]] [[subMessage.parent_message.m_author]]
[[subMessage.create_time]]
[[getEnviron(messageItem.m_environ)]]