zoukankan      html  css  js  c++  java
  • ubuntu创建kvm虚拟机

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

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

    [root@ubuntu ~]# apt-get install acpid 
    [root@ubuntu ~]# service acpid status
    acpid start/running, process 1364
    
    制作iso镜像
    [root@ubuntu ~]# 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
    
    制作磁盘镜像
    [root@ubunt ~]# qemu-img create -f raw /data/raw/disk01.raw  10G
    Formatting '/data/raw/disk01.raw', fmt=raw size=10737418240 
    
    创建虚拟机
    [root@ubuntu ~]# 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.
    
  • 相关阅读:
    重装Win10系统的非常简单的操作教程
    Python
    Delphi
    Libs
    Windows Server
    Windows Server
    Delphi
    Delphi
    Delphi
    Delphi
  • 原文地址:https://www.cnblogs.com/wshenjin/p/11057756.html
Copyright © 2011-2022 走看看