创建VM报错“Storage parameter error.”

发布时间:2022-06-08 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了创建VM报错“Storage parameter error.”脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

报错“there is not enough free space on the storage pool to create the volume.”

创建VM报错“Storage parameter error.”

 

 

 

 解决办法:回退选择“Select or create custom storage”,点击“Manage...”查看镜像存放位置,可以通过扩展磁盘大小。

创建VM报错“Storage parameter error.”

 

 查磁盘大小,换镜像安装目录

1、df -h

创建VM报错“Storage parameter error.”

 

 2、选择“Select or create custom storage”,创建并选择/home/lib/libvirt/images/rhel8.5

创建VM报错“Storage parameter error.”

 

 

创建VM报错“Storage parameter error.”

 

 

扩展VM空间:qemu-img resize /var/lib/libvirt/images/<virtual-disk-name>.qcow2 +195G
缩小VM空间:qemu-img resize --shrink /var/lib/libvirt/images/<virtual-disk-name>.qcow2 -195G
> /var/lib/libvirt/images is the default location for images, which
> is supported by SELinux.

It would be nice then if virt-manager defaulted to storing images there then,
rather than under $HOME.

 查看硬盘分区类型:

#fdisk -l

创建VM报错“Storage parameter error.”

 

 UEFI+GPT与BIOS+MBR

最小单位

硬盘最小单位:sectors(扇区)=每个扇区512byte

系统文件最小单位:block(块)=每个块4096byte,8个连续扇区组成(默认,可以根据需求更改)

文件系统不是一个扇区一个扇区的来读数据,太慢了,所以有了block(块)的概念,它是一个块一个块的读取的,block才是文件存取的最小单位。

扇区大小:

创建VM报错“Storage parameter error.”

 

块大小:

创建VM报错“Storage parameter error.”

创建VM报错“Storage parameter error.”

 

脚本宝典总结

以上是脚本宝典为你收集整理的创建VM报错“Storage parameter error.”全部内容,希望文章能够帮你解决创建VM报错“Storage parameter error.”所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: