Could not access KVM kernel module: No such file or directory

Proxmox VE 2.1相關報錯解決

如果創建虛擬機的時候提示如下錯誤:

Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!
TASK ERROR: start failed: command 『/usr/bin/kvm -id 100 -chardev 』socket,id=monitor,path=/var/run/qemu-server/100.mon,server,nowait’ -mon 『chardev=monitor,mode=readline’ -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -usbdevice tablet -name xp -smp 』sockets=1,cores=1′ -nodefaults -boot 『menu=on’ -vga cirrus -localtime -rtc-td-hack -k en-us -drive 『file=/var/lib/vz/template/iso/cn_windows_7_ultimate_x86_dvd_x15-65907.iso,if=none,id=drive-ide2,media=cdrom,aio=native’ -device 『ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200′ -drive 『file=/mnt/pve/KS86/images/100/vm-100-disk-1.raw,if=none,id=drive-ide1,aio=native,cache=none’ -device 『ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1,bootindex=100′ -m 2048 -netdev 『type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge’ -device 『rtl8139,mac=02:56:EB:46:6A:60,netdev=net0,bus=pci.0,addr=0×12,id=net0,bootindex=300′ -cpuunits 1000′ failed: exit code 1

那很簡單。可能是沒有啟用BIOS中的虛擬化功能,因為KVM需要主機板虛擬化支持。主機板裡面選項是「Intel虛擬化」開啟;其他主板,找到VT相關選項,開啟即可解決。記得AMD虛擬化功能選項為「SVM」。

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s