摘要: <![if !supportLists]>1. <![endif]>硬盘扩容<!--more-->qcow2格式磁盘,直接通过qemu-img 直接扩展qcow2磁盘, 新添加一块qcow2 格式的磁盘加入到KVM虚拟机,然后通过虚拟机系统lvm逻辑卷管理方式进行管理,扩展磁盘空间。 添加一块qco 阅读全文
posted @ 2017-09-12 15:49 yangrz 阅读(386) 评论(0) 推荐(0) 编辑
摘要: KVM虚拟机的管理主要是通过virsh命令对虚拟机进行管理。 <!--more--> <![if !supportLists]>1. <![endif]>配置文件目录 虚拟机的配置文件放在/etc/libvirt/qemu/目录下,命名规则: 主机名.xml [root@localhost work 阅读全文
posted @ 2017-09-12 15:48 yangrz 阅读(380) 评论(0) 推荐(0) 编辑
摘要: virsh 无法重启或者关闭虚拟机 <!--more--> 1 命令行virsh reboot vm-name kvm目前仍不支持reboot命令,'reboot' is not supported by the hypervisor 2 虚拟机内部重启操作不成功,状态为关机,重启失败。 原因配置文 阅读全文
posted @ 2017-09-12 15:47 yangrz 阅读(3560) 评论(0) 推荐(0) 编辑
摘要: <![if !supportLists]>1. <![endif]>查看磁盘格式: <!--more--> [root@localhost kvm-host]# qemu-img info test01.qcow2 image: test01.qcow2 file format: qcow2 vir 阅读全文
posted @ 2017-09-12 15:45 yangrz 阅读(790) 评论(0) 推荐(0) 编辑
摘要: <![if !supportLists]>1. <![endif]>查看系统是否支持虚拟化 <!--more--> egrep '(vmx|svm)' /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 阅读全文
posted @ 2017-09-12 15:43 yangrz 阅读(440) 评论(0) 推荐(0) 编辑