kvm启动虚拟机,连接到openvswitch交换机上。
1、启动命令
virt-install \
--connect qemu:///system \
--name=test \
--ram 4096 \
--os-type=linux \
--os-variant=rhel6 \
--disk path=a.raw,device=disk,bus=virtio,format=raw \
--disk path=a.qcow2,device=disk,bus=virtio,format=qcow2 \
--network network:br-ex \
--vcpus=2 \
--vnc \
--check \
-d \
--boot hd
提示错误:
ERROR Error in network device parameters: Virtual network 'br-ex' does not exist: Network not found: no network with matching name 'ovs-br1'
2、原因是kvm无法识别br-ex网桥。查看kvm的network:
virsh net-list
Name State Autostart Persistent
----