- 客户端:Ubuntu 20.04.3 LTS
- 虚拟客户端:18.04 LTS
- 蟒蛇3.8.10
我需要在虚拟机管理器上创建一个桥。
我安装了 GNOME Boxes 并运行了 Ubuntu 18.04 LTS。它没有检查桥接,但当我在虚拟机管理器中打开 VC 时 →打开 →网卡, 放桥接模式并点击跑步,我收到此错误:
Error starting domain: 'utf-8' codec can't decode bytes in position 158-159: invalid continuation byte
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1279, in startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1234, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
File "/usr/lib/python3/dist-packages/libvirt.py", line 37, in __init__
err = libvirtmod.virGetLastError()
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 158-159: invalid continuation byte
请帮我解决这个问题。
答案1
这帮我解决了这个问题。运行以下命令显示默认网桥处于非活动状态。
sudo virsh net-list --all
使用以下命令启动默认网桥。
sudo virsh net-start default
使用以下命令自动启动网桥。
sudo virsh net-autostart --network default