2.kvm创建第一个虚拟机
# virt-install --virt-type kvm --name Centos6.8--ram 512 --cdrom=/opt/CentOS-6.8-x86_64-bin-DVD1.iso--disk=/opt/Centos_6.6_x86.raw --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-variant=rhel6 #注:--virt-type 虚拟机类型
--name 虚拟机名称
--ram分配内存大小(默认大小MB)
--disk 指定虚拟机镜像(size单位为GB)
--network 为默认
--cdrom 指定安装镜像iso
--vnclisten=0.0.0.0指定VNC绑定IP,默认绑定127.0.0.1,这里改为0.0.0.0
结果:
Starting install...
Creating domain... | 0 B 00:00
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
页:
[1]