过程是这样的;
内网两台机器
192.168.2.215 复制出
192.168.2.203 复制到此处启动
启动时报错
virsh # start z6-006-208
error: Failed to start domain z6-006-208
error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/31
2017-11-10T09:50:14.300241Z qemu-kvm: -drive file=/kvm/z6-006-208-disk-001.img,if=none,id=drive-ide0-0-0,format=qcow2,cache=none: could not open disk image /kvm/z6-006-208-disk-001.img: Invalid argument
谷歌了无数次后在一个英文版的答案里面受到了启发 是磁盘文件的格式和xml配置文件里面的格式冲突了。
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/kvm/z6-006-208-disk-001.img'/>
<target dev='vda' bus='virtio'/>
按那个文章 将配置中的qcow2