ubuntu创建kvm虚拟机

cpu虚拟化支持
[[email protected]~]# egrep -o '(vmx|svm)' /proc/cpuinfo
vmx
vmx
vmx
vmx
KVM环境
[[email protected] ~]# apt-get install qemu-kvm qemu-system libvirt-bin virt-manager bridge-utils vlan
[[email protected] ~]# service libvirt-bin status
libvirt-bin start/running,process 1442

ACPI 高级配置和电源管理接口,通过这个服务来执行电源关闭的动作

[[email protected] ~]# apt-get install acpid 
[[email protected] ~]# service acpid status
acpid start/running,process 1364
制作iso镜像
[[email protected] ~]# dd if=/dev/sr0 of=/data/iso/CentOS-V6.5.23.iso          
1801312+0 records in
1801312+0 records out
922271744 bytes (922 MB) copied,29.0399 s,31.8 MB/s
制作磁盘镜像
[[email protected] ~]# qemu-img create -f raw /data/raw/disk01.raw  10G
Formatting '/data/raw/disk01.raw',fmt=raw size=10737418240
创建虚拟机
[[email protected] ~]# virt-install >     --name=CentOS-V6.5.23-server01 >     --virt-type=kvm >     --ram=1024 >     --cdrom=/data/iso/CentOS-V6.5.23.iso   >     --disk path=/data/raw/disk01.raw >     --network network=default >     --graphics vnc,listen=0.0.0.0 >     --noautoconsole

Starting install...
Creating domain...                                                                                               |    0 B     00:00     
Domain installation still in progress. You can reconnect to 
the console to complete the installation process.

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...