参考链接
https://sysadminman.net/blog/2011/kvm-virtualization-text-centos-guest-install-2098(安装流程)
https://bugzilla.redhat.com/show_bug.cgi?id=1314092(centos7 ram的bug,内存至少配置2G )
安装准备:
centos75.iso的镜像文件或者http源(https://mirrors.aliyun.com/centos/7.5.1804/)
开始安装:
1.挂载镜像文件:
#mount -o loop centos75.iso /mnt/
2.virt-inatall安装虚拟机
#virt-install -n centos75 -r 2048 --nographics -l /mnt/ --disk /tmp/centos75.qcow2,size=20,bus=virtio -x "console=ttyS0"
3.等待加载打印,然后选择安装,结束.
注意:安装时虚拟机的内存要配置大一些,等安装完成后可以再行缩减运行.
安装中仅仅使用了个别参数,如果需要增加其它参数,自行增加即可.