创建虚拟机时报hvm错误

在使用KVM的virt-install命令安装Ubuntu时,可能会遇到找不到HVM内核的错误。文章指出,如果使用--cdrom选项,将无法配合--extra-args参数。为了解决这个问题,需要使用--location参数,并且提到ISO文件实际上是压缩文件。提供了解决该问题的线索,即理解ISO文件的性质并寻找替代方法。
摘要由CSDN通过智能技术生成

  1. kvm使用virt-install安装ubuntu的时候(或大部分ubuntu的时候),会报错Couldn't find hvm kernel for Ubuntu tree
    这个问题国内大部分解决方案并不适用,引用国外的一句话

If you use --cdrom in replace of --location you will loose some options like --extra-args ! This useful parameter could not be used in cooperation with --cdrom ! If you want to use --extra-args you must use --location ! If you like this parameter you must overcome to this problem such a different way! If you want to overcome to this problem, you must know that .iso files are a type of compressed files, first of all! Yes! They are some special type of compressed files like .zip or .rar, .tar.gz and so etc.

  1. 顺便挂一个可用的ubuntu20 iso Ubuntu Server 20.04.1 LTS (Focal Fossa)
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值