页次: 1
archlinux 下怎麼安裝kvm ?
离线
$ sudo pacman -S qemu
$ qemu-img create -f qcow2 ArchVM.img 15G
$ cat startvm
#!/bin/sh
exec qemu-system-x86_64 -enable-kvm \
-cpu host \
-drive file=$HOME/ArchVM.img,if=virtio \
-netdev user,id=vmnic,hostname=archvm,hostfwd=tcp:127.0.0.1:2222-:22 \
-device virtio-net,netdev=vmnic \
-m 256M \
-curses \
-name "Arch VM" \
"$@"
$ sudo ./startvm -boot d -cdrom path_to_file.iso
最近编辑记录 依云 (2014-12-09 14:56:20)
离线
页次: 1