![KVM のネットワーク エラー](https://rvso.com/image/231054/KVM%20%E3%81%AE%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%20%E3%82%A8%E3%83%A9%E3%83%BC.png)
Debian 11 (Bullseye) で KVM 仮想マシンを実行しようとしています
- 本当に重要な場合に備えて、ChromeOS の crouton からもこれを実行していますが、そうではないと思います。
エラーは次のとおりです: インストールを完了できません: 「要求された操作は無効です: ネットワーク 'default' がアクティブではありません」
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2001, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 701, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 649, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File "/usr/lib/python3/dist-packages/libvirt.py", line 4366, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active
次のガイドを試しました:https://askubuntu.com/questions/1036297/cant-start-kvm-guest-network-default-is-not-active しかし、提供された修正プログラム「sudo virsh net-start default」は失敗します。
sudo virsh net-start default
[sudo] password for luhgarlicbread:
error: Failed to start network default
error: internal error: Failed to apply firewall rules /usr/sbin/iptables -w --table filter --list-rules: # Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument
- さらに、KVM > 編集 (上部) > 接続の詳細で、左下の「ネットワークの開始」ボタンを押してもエラーが発生します。
Error starting network 'default': internal error: Failed to apply firewall rules /usr/sbin/iptables -w --table filter --list-rules: # Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 3436, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: internal error: Failed to apply firewall rules /usr/sbin/iptables -w --table filter --list-rules: # Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument
すべてのネットワーク チェックをバイパスしたり、KVM 上のネットワークを完全に無効にしたりする方法はありますか? 試すことができるヒント、コツ、または修正方法はありますか? 問題が山積みのようです。
PS: 他の問題はすべて解決しました。 1 つの顕著な問題は、libvirtd が systemctl で起動しない (そうだと思います) ことです。そのため、ターミナルから手動でプロセスを開始し、その term. ウィンドウを開いたままにして、virt-manager を使用して KVM で仮想マシンを作成しようとしています。