这个命令:
virt-install \
--name bla \
--ram=1024 \
--disk path=/home/me/libvirt/images/bla.qcow2,bus=virtio,size=10 \
--location /home/me/Downloads/ubuntu-18.10-desktop-amd64.iso报告:
ERROR Couldn't find hvm kernel for Ubuntu tree.我怎么才能解决这个问题?
(由于在这个问题上有许多重复的帖子和答案,我也在回答。)
发布于 2019-02-07 12:51:58
而不是使用
--location /home/me/Downloads/ubuntu-18.10-desktop-amd64.iso使用
--cdrom /home/me/Downloads/ubuntu-18.10-desktop-amd64.iso不同之处在于(与手册页):
-c CDROM , --cdrom=CDROM
File or device use as a virtual CD-ROM device for fully virtualized guests. It can
be path to an ISO image, or to a CDROM device. It can also be a URL from which to
fetch/access a minimal boot ISO image. The URLs take the same format as described
for the "--location" argument. If a cdrom has been specified via the "--disk"
option, and neither "--cdrom" nor any other install option is specified, the
"--disk" cdrom is used as the install media.
-l LOCATION , --location=LOCATION
Distribution tree installation source. virt-install can recognize certain
distribution trees and fetches a bootable kernel/initrd pair to launch the
install. 因此,在本例中,正确的命令是:
virt-install \
--name bla \
--ram=1024 \
--disk path=/home/me/libvirt/images/bla.qcow2,bus=virtio,size=10 \
--cdrom /home/me/Downloads/ubuntu-18.10-desktop-amd64.iso发布于 2020-04-06 12:09:08
从技术上讲,您可以使用-位置与更新的virt 1.5+和args解释这里从科尔罗宾逊。我测试过了,这是真的。
然而,在我看来,获得一个Ubuntu与--location的工作是一个痛苦的$。我终于让它使用了以下--location和full命令:
virt-install \
-n ubuntu -r 2048 \
--os-variant=ubuntu19 \
--location http://us.archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/ \
--disk /var/lib/libvirt/images/ubuntu20.img,size=10,device=disk,bus=virtio \
--graphics none -w bridge=br0,model=virtio \
--extra-args 'console=ttyS0,115200n8 serial' \
--force \
--debug确保您探索了--location中的URL,以获得您想要的Ubuntu的适当版本。我相信你会有一些尝试和错误要做..。
对于CentOS .iso映像,我没有这个问题,并且使用了--location,它工作得很好。
发布于 2020-09-11 21:43:03
在尝试使用virt安装Ubuntu20.04.1服务器时,我一直在努力解决这个问题。我找到了一些有用的答案,但找到了另一种解决办法。
第一。最初的问题引用了一个“桌面”iso文件。不过,对于安装到/mnt的“liveserver-amd64.iso”的解决方案,实际上对我启动我的安装很有帮助。
然而,我的安装最终以缓慢的方式移动。我不完全确定为什么这么慢。当我试图取消花费了很长时间的更新时,安装最终崩溃了。不过,还有另一种解决方案,它不涉及安装ISO和提供那些内核引导选项。
有一个遗留(非现场)版本的Ubuntu20.04.1服务器可用。
http://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/
在这条线上找到的。
对于20.04.1服务器的Legacy版本,它实际上将使用--location参数而不是-cdrom参数运行,从而启用-- console=ttyS0选项。
https://askubuntu.com/questions/1116383
复制相似问题