所以过去当我在 kvm 中安装 vms 时,我使用的是 kvm GUI,但现在我想从终端安装虚拟机,这是我尝试做的:
virt-install --network bridge:virbr0 --name testvm1 --os-variant=ubuntu20.04 --ram=2048 --vcpus=1 --disk path=/var/lib/libvirt/images/testvm1-os.qcow2,format=qcow2,bus=virtio,size=5 --graphics none --location=/home/aron/Desktop/os_distros/ubuntu-20.04.1-live-server- amd64.iso --extra- args="console=tty0 console=ttyS0,115200" --check all=off
我会收到的错误信息:
Starting install...
ERROR Couldn't find kernel for install 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 testvm1
otherwise, please restart your installation.
尝试用“--cdrom”替换“--location”来解决该问题后
这是我收到的错误消息:
ERROR Kernel arguments are only supported with location or kernel installs.
现在我希望能够从终端安装虚拟机,所以如果有人能帮助我,我会非常感激,提前谢谢