首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在qemu-kvm中创建实例的安装错误

在qemu-kvm中创建实例的安装错误
EN

Server Fault用户
提问于 2021-03-26 08:42:46
回答 1查看 2.3K关注 0票数 0

操作系统: Debian 10.4 libvirtd版本: 5.0.0

你好!

我需要在qemu中创建一个实例。使用此命令:

代码语言:javascript
复制
virt-install --connect qemu:///system --virt-type kvm --name test01 --ram=2048 --vcpus=2 --disk /opt/test01/test01.img,bus=virtio,size=10 --pxe --boot uefi --noautoconsole --graphics none  --hvm  --network bridge:eth0  --description "Test VM with w2k16" --os-type=windows --debug

但他回来了:

代码语言:javascript
复制
[Fri, 26 Mar 2021 10:26:07 virt-install 1172] DEBUG (cli:253)   File "/usr/share/virt-manager/virt-install", line 955, in <module>
    sys.exit(main())
  File "/usr/share/virt-manager/virt-install", line 949, in main
    start_install(guest, installer, options)
  File "/usr/share/virt-manager/virt-install", line 625, in start_install
    fail(e, do_exit=False)
  File "/usr/share/virt-manager/virtinst/cli.py", line 253, in fail
    logging.debug("".join(traceback.format_stack()))

[Fri, 26 Mar 2021 10:26:07 virt-install 1172] ERROR (cli:254) Unable to add bridge eth0 port vnet0: Operation not supported
[Fri, 26 Mar 2021 10:26:07 virt-install 1172] DEBUG (cli:256) 
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 598, in start_install
    transient=options.transient)
  File "/usr/share/virt-manager/virtinst/installer.py", line 419, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/installer.py", line 362, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 3732, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: Unable to add bridge eth0 port vnet0: Operation not supported
[Fri, 26 Mar 2021 10:26:07 virt-install 1172] DEBUG (cli:267) Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start test01
otherwise, please restart your installation.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start test01
otherwise, please restart your installation.
root@ctng-flc-test01:/opt/test01#   virsh --connect qemu:///system start test01
error: failed to get domain 'test01'

br0在Debian,贺平在物理网络中其他叶问。我可以使用BR0 IP建立和接收ssh连接。

我不明白父母的错误是什么:

代码语言:javascript
复制
Domain installation does not appear to have been successful.

代码语言:javascript
复制
ERROR (cli:254) Unable to add bridge eth0 port vnet0: Operation not supported

以及如何修复它们。

再次感谢!

EN

回答 1

Server Fault用户

回答已采纳

发布于 2021-03-26 09:51:35

代码语言:javascript
复制
bridge=BRIDGE
  Connect to a bridge device in the host called BRIDGE.
  Use this option if the host has static networking config & the guest requires
  full outbound and inbound connectivity  to/from the LAN.
  Also use this if live migration will be used with this guest.

--network bridge=<bridge_iface_not_phys_iface>,即.--network bridge=br0

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1058402

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档