文章分类 - 0.6 kvm
摘要:10. 不重启虚拟机在线增加网卡virsh domiflist test02 查看test02子机的网卡列表virsh attach-interface test02 --type bridge --source br0 //命令行增加一块网卡virsh dumpxml test02 > /etc/
阅读全文
摘要:9. 调整cpu和内存查看子机配置:virsh dominfo test02virsh edit test02修改: <memory unit='KiB'>524288</memory> <currentMemory unit='KiB'>524288</currentMemory> <vcpu p
阅读全文
摘要:7. 快照管理a. 创建快照virsh snapshot-create aming3会报错:unsupported configuration: internal snapshot for disk vda unsupported for storage type raw这是因为raw格式的镜像不能
阅读全文
摘要:8. 磁盘扩容a. 对于raw格式的虚拟磁盘扩容qemu-img info /data/kvm/test03.img //本身只有9Gimage: /data/kvm/test03.imgfile format: rawvirtual size: 9.0G (9663676416 bytes)dis
阅读全文
摘要:6. virsh 常用操作a. 开启子机virsh start centos6.6_1 --console也可以在开启的同时连上控制台virsh start centos6.6_1 --consoleb. 关闭子机virsh shutdown centos6.6_1 (这个需要借助子机上的acpid
阅读全文
摘要:5. 克隆虚拟机virt-clone --original aming2 --name aming3 --file /data/kvm/aming3.qcow2 virt-clone --original aming2 --name aming3 --file /data/kvm/aming2.im
阅读全文
摘要:2. 安装kvm前的准备工作a. 清除iptables规则service iptables stop; service iptables saveb. 关闭selinuxsed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/confi
阅读全文

浙公网安备 33010602011771号