问题 1:运行 Ubuntu Linux 的 pv 虚拟机可以运行,但无法通过桥接连接,直到我添加\n net.ipv4.ip_forward=1
(sysctl.conf
并重新启动)。不确定为什么我现在需要这个,但查看sysctl.conf
启动时运行的问题(v.旧问题)可能会提供线索。
问题 2:(更大的问题)运行 Windows 10 的 hvm 虚拟机现在拒绝启动:
\nroot@ap1:/etc/xen# cat zz.cfg\ntype = 'hvm'\nname = 'win10'\nmemory = 4196\nvcpus = 3\nvif = ['bridge=xenbr0']\ndisk = ['phy:/dev/rootvg/win10-disk,hda,w','file:/backups/MLaptop/Windows10.iso,hdc:cdrom,r']\nsdl = 0\nvnc = 1\nvncconsole = 1\nvnclisten = ''\nvncpasswd = ''\non_poweroff = 'destroy'\non_reboot = 'restart'\non_crash = 'restart'\nlocaltime = 1\nroot@ap1:/etc/xen# \nroot@ap1:/etc/xen# xl create zz.cfg\nParsing config from zz.cfg\nlibxl: error: libxl_dm.c:2426:device_model_spawn_outcome: Domain 18:domain 18 device model: spawn failed (rc=-3)\nlibxl: error: libxl_create.c:1563:domcreate_devmodel_started: Domain 18:device model did not start: -3\nlibxl: error: libxl_dm.c:2541:kill_device_model: Device Model already exited\nlibxl: error: libxl_domain.c:1034:libxl__destroy_domid: Domain 18:Non-existant domain\nlibxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 18:Unable to destroy guest\nlibxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 18:Destruction of domain failed\n
Run Code Online (Sandbox Code Playgroud)\n有谁知道为什么我升级后可能会失败?
\n更多信息:- en.service 未正常启动:
\nroot@ap1:/etc/xen# systemctl status xen.service\n\xe2\x97\x8f xen.service - LSB: Xen daemons\n Loaded: loaded (/etc/init.d/xen; generated)\n Active: failed (Result: exit-code) since Thu 2020-06-18 18:08:58 BST; 1min 58s ago\n Docs: man:systemd-sysv-generator(8)\n Process: 2378 ExecStart=/etc/init.d/xen start (code=exited, status=1/FAILURE)\n Tasks: 3 (limit: 19033)\n Memory: 30.5M\n CGroup: /system.slice/xen.service\n \xe2\x94\x9c\xe2\x94\x802460 /usr/lib/xen-4.11/bin/oxenstored --pid-file /var/run/xenstore.pid\n \xe2\x94\x94\xe2\x94\x802466 /usr/lib/xen-4.11/bin/xenconsoled --pid-file /var/run/xenconsoled.pid\n\nJun 18 18:08:58 apollo systemd[1]: Starting LSB: Xen daemons...\nJun 18 18:08:58 apollo xen[2378]: * Starting Xen daemons\nJun 18 18:08:58 apollo xen[2469]: qemu-system-i386: -xen-domid 0: Option not supported for this target\nJun 18 18:08:58 apollo xen[2378]: ...fail!\nJun 18 18:08:58 apollo systemd[1]: xen.service: Control process exited, code=exited, status=1/FAILURE\nJun 18 18:08:58 apollo systemd[1]: xen.service: Failed with result 'exit-code'.\nJun 18 18:08:58 apollo systemd[1]: Failed to start LSB: Xen daemons.\n
Run Code Online (Sandbox Code Playgroud)\n
从 18.04 到 20.04 的发行版升级日志指出,它找不到xen
utils 4.9 版本(本应安装 4.11)。
我尝试删除xen
然后重新安装它(从 Ubuntu 使用apt
),但这并没有解决问题。所以我删除了 和xen
,qemu
然后重新安装
xen-hypervisor-amd64
。qemu
这已经引入了现在支持-xen-domid
打开的版本qemu-system-i386
。xen-service
现在报告运行正常,我的 Windows 10 虚拟机现在像以前一样工作。
归档时间: |
|
查看次数: |
1451 次 |
最近记录: |