2016-12-28 112 views
3

我有一個x86_64 m/c,並且我成功在此m/c上安裝了Sles12和RHEL7 guest虛擬機。但是,當創建一個Ubuntu客戶端(64位),這是失敗的。RHEL上的ubuntu guest虛擬機kvm *​​(x86_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) 

有人可以建議嗎?

+1

爲什麼downvote?我不明白這個哲學。 –

回答

2

從調試,它可以看到它確實在尋找i386,這是「默認拱門」。

askubuntu q/a中解決了完全相同的問題,並且已經從patched正確檢測到ISO名稱的體系結構。

帶修補程序的Virt-manager沒有正式發佈,因此需要通過更改和編譯/usr/share/virt-manager/virtinst/urlfetcher.py文件來從源代碼或修補程序運行virt-manager與現有安裝。

+0

不幸的是,這並沒有解決我的問題 –

相關問題