Networking 在qemu中添加桥接适配器
我在本地构建的QEMU版本上运行VM(Ubuntu14)。我正在尝试将预定义的网桥连接到VM,以便VM可以与外部世界通信。我使用什么命令? 我参考了qemu维基@ 运行以下命令会引发错误: ./qemu-system-i386../../../img/ubuntu\u server\u console\u bak.qcow2-监视器stdio-m 1024-网络网卡,型号=rtl8139桥,br=ha207 qemu-system-i386:-网络nic,型号=rtl8139:存在总线=0,单元=0(索引=0)的驱动器 我以前使用过kvm来启动我的虚拟机。我能够通过config.xml中的以下更改连接我的网桥Networking 在qemu中添加桥接适配器,networking,qemu,kvm,libvirt,hypervisor,Networking,Qemu,Kvm,Libvirt,Hypervisor,我在本地构建的QEMU版本上运行VM(Ubuntu14)。我正在尝试将预定义的网桥连接到VM,以便VM可以与外部世界通信。我使用什么命令? 我参考了qemu维基@ 运行以下命令会引发错误: ./qemu-system-i386../../../img/ubuntu\u server\u console\u bak.qcow2-监视器stdio-m 1024-网络网卡,型号=rtl8139桥,br=ha207 qemu-system-i386:-网络nic,型号=rtl8139:存在总线=0,单元
<interface type='bridge'>
<mac address='00:00:00:00:00:ce'/>
<source bridge='ha207' name='eth0'/>
<virtualport type='openvswitch'>
</virtualport>
<model type='e1000'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</interface>
<interface type='bridge'>
<source bridge='control_sw' name='eth1'/>
<model type='e1000'/>
<virtualport type='openvswitch'>
</virtualport>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<interface type='bridge'>
<source bridge='virbr0' name='eth2'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
如何在qemu中实现同样的效果?这是一个简单的打字错误 Qemu将桥,br=ha207解释为磁盘映像的文件名,但它已经有一个。如果您删除。/../../img/ubuntu\u server\u console\u bak.qcow2选项,您将看到它 只需添加-net桥,br=ha207而不是桥,br=ha207