You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行packer build ubunthu.json报错,需安装哪个插件修复?

需安装的软件及验证步骤

从报错来看,系统找不到qemu-system-x86_64可执行文件,这是Packer构建Ubuntu镜像时依赖的虚拟化工具,需安装QEMU组件:

各系统安装命令

  • Debian/Ubuntu:
    sudo apt update && sudo apt install qemu-kvm qemu-system-x86_64
    
  • RHEL/CentOS/Fedora:
    sudo dnf install qemu-kvm qemu-system-x86
    
  • macOS(通过Homebrew):
    brew install qemu
    
  • Windows(通过Chocolatey):
    choco install qemu
    

验证安装

执行以下命令确认安装成功:

qemu-system-x86_64 --version

能正常输出版本信息即可重新运行packer build ubuntu.json。

内容的提问来源于stack exchange,提问作者kumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 20:49:52