1,新建文件硬盘

qemu-img create -f qcow2 testdisk.img 2G

openNebula libvirt-virsh attach disk device for kvm_可执行

2,在线虚拟机添加文件硬盘block storage

新创建的磁盘文件需要有可执行权限

openNebula libvirt-virsh attach disk device for kvm_可执行_02

openNebula libvirt-virsh attach disk device for kvm_自动挂载_03

3,给新添加的硬盘分区,格式化,挂载,自动挂载

openNebula libvirt-virsh attach disk device for kvm_自动挂载_04

/dev/vdb1 /ruige ext4 defaults 1 2 /etc/fstab