Xen 4.4:“/ usr / lib / xen-4.4 / bin / qemu-dm”不可执行

时间:2015-11-17 16:11:36

标签: debian virtual-machine virtualization xen

我有一个运行Xen 4.4的Debian服务器。我想创建一个新的Windows 7虚拟机并从ISO映像安装它。这是我用于此的配置文件:

kernel = "/usr/lib/xen-4.4/boot/hvmloader"

builder = 'hvm'

name = "win7"
uuid = "44dee145-256a-4450-9270-73aebd8b64a5"
memory = 2048
vcpus = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"

disk = [
         'phy:/dev/vg0/win7-demo-disk,hda,w',
         'file:/tmp/Win7.iso,hdc,r,devtype=cdrom',
       ]

vif = [ "mac=00:16:3e:46:e6:fb,bridge=br0" ]
boot="dc"
vnc = 1
vnclisten = "0.0.0.0"
vncunused = 1
localtime = 1
vncpasswd = "XXXXXXXX"

我执行这个commad:xl create win7.cfg

它解决了以下错误:

Parsing config from win7.cfg
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware
libxl: error: libxl_dm.c:1250:libxl__spawn_local_dm: device model /usr/lib/xen-4.4/bin/qemu-dm is not executable: No such file or directory
libxl: error: libxl_dm.c:1388:device_model_spawn_outcome: (null): spawn failed (rc=-3)
libxl: error: libxl_create.c:1186:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:1484:kill_device_model: unable to find device model pid in /local/domain/395/image/device-model-pid
libxl: error: libxl.c:1421:libxl__destroy_domid: libxl__destroy_device_model failed for 395

/usr/lib/xen-4.4/bin/ 目录中,我没有 qemu-dm 文件。我已阅读Debian forun, qemu-dm 已从Xen 4.4中删除。以前我有Xen 4.1。对于此版本, qemu-dm 会在 /usr/lib/xen-4.4/bin/qemu-dm

中执行并存储

如何解决这个问题?

1 个答案:

答案 0 :(得分:3)

/usr/lib/xen-4.4/bin/qemu-dm似乎是一个计算路径,但正如您所提到的,它指向Debian 8 Jessie中没有现有文件。

仅使用Debian 8板载资源帮助我:

  • 安装qemu-system-x86。 (不确定这是否真的有必要。)
  • 从DomU配置文件中删除kernel = …行。 (要使这条线被忽略的警告静音。)
  • 在DomU配置文件中添加一行device_model_version="qemu-xen"。 (这可能是让它再次运作的主要方法。)

浏览this thread on the xen-users mailing list后,凭经验找到。