我们使用 KVM 创建虚拟机后,会在 /etc/libvirt/qemu/ 路径下生成该虚拟机的 xml 配置文件,很多时候,我们会以此 xml 配置为模板,进行修改后来创建新的虚拟机,这样,就需要我们了解该配置文件中各个字段的意思,下面,就对该文件做一说明:








  node1                                                                      
  8908d03b-0329-4105-851f-c93fd091e9e9                                       
  2097152                                                     
  2097152                                       
  2                                                       
                                                                                      
    hvm
    
  
                                                                                
    
    
  
                                         
    Westmere
  
                                                                      
    
    
    
  
  destroy                                                      
  restart                                                          
  destroy                                                            
                                                                                      
    
    
  
                                                                                 
    /usr/libexec/qemu-kvm                                            
                                                          
                                                        
                                        
                                                          
               
    
                                      
      
    
    
      
      
    
    
      
      
    
    
      
      
    
                                        
    
      
    
                                                                 
                                                         
                                                                
      
                
    
                                                                        
      
        
      
    
    
      
    
                                                                      
      
      
    
                                                                  
      
                            
    
                                                            
      
    
                                                            
                                                         
                                                     
      
      
    
                                                                       
      
    
    
                                                       
      
    
    
      
    
                                                                
      
    
  

这里采用源文件注释的方式对字段进行说明,可以是更方便的了解字段意思,各位老铁可直接复制粘贴,修改之后使用。