gpt4 book ai didi

kvm - RHEL kvm *​​(x86_64) 上的 ubuntu guest 失败

转载 作者:行者123 更新时间:2023-12-04 15:24:17 25 4
gpt4 key购买 nike

我有一个 x86_64 m/c,我在这个 m/c 上成功安装了 Sles12 和 RHEL7 guest。但是在创建 ubuntu guest (64 位)时,这是失败的。

virt-install --name=ubuntu1 --virt-type=kvm --boot cdrom,hd --network=default,model=virtio --disk /dev/dm-13,size=300,format=raw,bus=virtio,cache=none,sparse=true --memory=8192 --vcpu=2 --location=/home/suse/ubuntu-16.04-server-amd64.iso  --console pty,target_type=serial --graphics none --extra-args 'console=ttyS0,115200n8 serial'
Starting install...
Retrieving file info... | 134 B 00:00:00
Retrieving file version.info... |116 B 00:00:00
ERROR Couldn't find hvm kernel for Ubuntu tree.

lsmod|grep kvm
kvm_intel 162153 8
kvm 525259 1 kvm_intel

在使用调试运行时,这是期待 i386 吗?

[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:1169) Regex didn't match, not a ALT Linux distro
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:196) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.VxW9Li/current/images/MANIFEST
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:101) Fetching URI: /var/lib/libvirt/boot/virtinstmnt.VxW9Li/install/netboot/version.info
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:112) Saved file to /var/lib/libvirt/boot/virtinst-version.info.C0NcW7
Retrieving file version.info... |116 B 00:00:00
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:446) Detected distro name=Ubuntu osvariant=linux
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:196) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.VxW9Li/install/netboot/ubuntu-installer/i386/linux
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (urlfetcher:243) Cleaning up mount at /var/lib/libvirt/boot/virtinstmnt.VxW9Li
[Wed, 28 Dec 2016 11:57:45 virt-install 17391] DEBUG (cli:295) File "/usr/share/virt-manager/virt-install", line 1084, in <module>
sys.exit(main())
File "/usr/share/virt-manager/virt-install", line 1078, in main
start_install(guest, continue_inst, options)

有人可以建议吗?

最佳答案

从debug可以看出确实是在寻找i386,也就是“default arch”。

完全相同的问题已在 askubuntu q/a 中得到解决并且一直是patched正确检测 ISO 名称中的体系结构。

带有补丁的 Virt-manager 没有正式发布,因此需要从源代码运行 virt-manager 或通过更改和编译 /usr/share/修改现有安装virt-manager/virtinst/urlfetcher.py 文件。

关于kvm - RHEL kvm *​​(x86_64) 上的 ubuntu guest 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41366522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com