安装KVM

使用最新的17有问题,下了个server版的:ubutnu

4、用qemu-img命令创建一个虚拟磁盘

qemu-img create -f qcow2 ubuntu.img 10G

5、安装系统

qemu-system-x86_64 -hda /opt/kvm/ubuntu1204.img

-cdrom /opt/kvm/ubuntu-12.04-server-a/md64.iso -boot d -m 1024

6、启动虚拟机,其实可以下载ubuntu做好到img,就不用自己重新装一边了。话说ubuntu在云计算这方面还是做了不少努力的说

qemu-system-x86_64 ubuntu.img -m 1024

 用qemu-img创建一个虚拟磁盘:

qemu-img crete -f qcow2 ubunt.img 10G

qemu-system-x86_64 -had ubuntu.img -cdrom ubuntu-16.04-server-amd64.iso -boot -d -m 1024

qemu-system-x86_64 ubuntu.img -m 1024

posted @ 2017-12-17 13:29  honpey  阅读(124)  评论(0编辑  收藏  举报