首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到Ubuntu树的hvm内核

找不到Ubuntu树的hvm内核
EN

Stack Overflow用户
提问于 2018-10-24 12:29:37
回答 1查看 1.3K关注 0票数 1

我的服务器环境是centos7.3,我想在it.My安装命令上安装kvmUbuntu16.04,如下所示:

代码语言:javascript
复制
virt-install --name demo01 --ram 4096 \
--disk path=/var/lib/libvirt/images/demo01.img,size=90 \
--vcpus 2 --os-type linux --os-variant ubuntunatty \
--network bridge=br0 --graphics none --console pty,target_type=serial \ 
--location /workspace/ubuntu-16-server.iso \
--extra-args 'console=ttyS0,115200n8 serial' --host-device 04:00.0 \ 
--features kvm_hidden=on --machine q35 \

然后发生了一个错误:

代码语言:javascript
复制
ERROR    Couldn't find hvm kernel for Ubuntu tree.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start demo01
otherwise, please restart your installation.
EN

回答 1

Stack Overflow用户

发布于 2022-02-05 20:40:02

Ubuntu20.04服务器测试解决方案与我的额外的自动安装 args

代码语言:javascript
复制
virt-install \
  --name=$VMNAME \
  --os-variant=ubuntu20.04 \
  --memory=2048 \
  --vcpus=1 \
  --network network=default \
  --disk=${IMG_PATH},cache=none,format=qcow2,bus=virtio \
  --location=/home/user/Downloads/ubuntu-20.04.3-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd \
  --extra-args "autoinstall ds=nocloud-net;s=http://192.168.122.1:3003/" \
  --noreboot

来自man virt-install

代码语言:javascript
复制
Additionally, --location can take 'kernel' and 'initrd' sub options. These paths relative to the specified location URL/ISO that allow selecting specific files for kernel/initrd
           within the install tree. This can be useful if virt-install/ libosinfo doesn't know where to find the kernel in the specified --location.

           For example, if you have an ISO that libosinfo doesn't know about called my-unknown.iso, with a kernel at 'kernel/fookernel' and initrd at 'kernel/fooinitrd', you can make this
           work with:

             --location my-unknown.iso,kernel=kernel/fookernel,initrd=kernel/fooinitrd
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52969026

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档