zoukankan      html  css  js  c++  java
  • xen xl命令记录

    1.xl info

    [root@vt-snb7 ~]# xl info
    host                   : vt-snb7     #Dom0的主机名
    release                : 3.1.0-rc7+   #Dom0的内核版本
    version                : #1 SMP Mon Mar 26 09:34:05 CST 2012  #Dom0内核编译的时间
    machine                : x86_64     #Dom0内核运行的平台
    nr_cpus                : 32         #系统中的逻辑CPU数量
    max_cpu_id             : 127        #host中可能的最大的CPU编号
    nr_nodes               : 2          #NUMA节点的数量
    cores_per_socket       : 8     #每个CPU socket上的core数量
    threads_per_core       : 2          #每个core的线程数量(大于1即是超线程)
    cpu_mhz                : 2693       #CPU的主频
    hw_caps                : bfebfbff:2c100800:00000000:00003f40:15bee3ff:00000000:00000001:00000000
           #CPU的capabilities,实际上同于/proc/cpuinfo中的flags,是其的另外矢量编码之类
    virt_caps              : hvm hvm_directio     #硬件系统关于虚拟化的feature,目前只定义了hvm和hvm_directio(即:VT-d)
    total_memory           : 32726 #硬件系统的中的内存
    free_memory            : 22803 #空闲的内存(未被guest和hypervisor使用的)
    sharing_freed_memory   : 0 # FIX ME
    sharing_used_memory    : 0 # FIX ME
    free_cpus              : 0 # FIX ME
    xen_major              : 4 #Xen的主版本号
    xen_minor              : 2 #Xen的次版本号
    xen_extra              : -unstable #Xen的附加版本号
    xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
    #Xen的capabilities,支持32位和64位的PV和HVM虚拟机
    xen_scheduler          : credit #当前Xen的CPU调度算法
    xen_pagesize           : 4096 #Xen一次块设备上读取数据的大小,单位是bytes
    platform_params        : virt_start=0xffff800000000000 #从这个地址之后就是hypervisor占用的
    xen_changeset          : Fri Mar 23 20:51:48 2012 +0000 25099:4bd752a4cdf3 #Xen的changeset
    xen_commandline        : dom0_mem=2048M iommu=1 loglvl=all guest_loglvl=all msi=1 hap_1gb=1 conring_size=4M
           #grub中xen启动时的命令行
    cc_compiler            : gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)   #本次Xen hypervisor的编译器
    cc_compile_by          : build #编译Xen的用户名
    cc_compile_domain      : sh.intel.com         #编译Xen的机器的所在的域
    cc_compile_date        : Mon Mar 26 09:30:56 CST 2012 #编译Xen的时间
    xend_config_format     : 4 #配置文件的格式,目前是4,对xl已经不太重要了,XL不用Xend了
     
    2.xl help
    Usage xl [-v] <subcommand> [args]

    xl full list of subcommands:

     create              Create a domain from config file <filename>
     list                List information about all/some domains
     destroy             Terminate a domain immediately
     shutdown            Issue a shutdown signal to a domain
     reboot              Issue a reboot signal to a domain
     pci-attach          Insert a new pass-through pci device
     pci-detach          Remove a domain's pass-through pci device
     pci-list            List pass-through pci devices for a domain
     pci-list-assignable-devicesList all the assignable pci devices
     pause               Pause execution of a domain
     unpause             Unpause a paused domain
     console             Attach to domain's console
     vncviewer           Attach to domain's VNC server.
     save                Save a domain state to restore later
     migrate             Save a domain state to restore later
     dump-core           Core dump a domain
     restore             Restore a domain from a saved state
     migrate-receive     Restore a domain from a saved state
     cd-insert           Insert a cdrom into a guest's cd drive
     cd-eject            Eject a cdrom from a guest's cd drive
     mem-max             Set the maximum amount reservation for a domain
     mem-set             Set the current memory usage for a domain
     button-press        Indicate an ACPI button press to the domain
     vcpu-list           List the VCPUs for all/some domains
     vcpu-pin            Set which CPUs a VCPU can use
     vcpu-set            Set the number of active VCPUs allowed for the domain
     list-vm             List the VMs,without DOM0
     info                Get information about Xen host
     sched-credit        Get/set credit scheduler parameters
     domid               Convert a domain name to domain id
     domname             Convert a domain id to domain name
     rename              Rename a domain
     trigger             Send a trigger to a domain
     sysrq               Send a sysrq to a domain
     debug-keys          Send debug keys to Xen
     dmesg               Read and/or clear dmesg buffer
     top                 Monitor a host and the domains in real time
     network-attach      Create a new virtual network device
     network-list        List virtual network interfaces for a domain
     network-detach      Destroy a domain's virtual network device
     block-attach        Create a new virtual block device
     block-list          List virtual block devices for a domain
     block-detach        Destroy a domain's virtual block device
     uptime              Print uptime for all/some domains
     tmem-list           List tmem pools
     tmem-freeze         Freeze tmem pools
     tmem-destroy        Destroy tmem pools
     tmem-thaw           Thaw tmem pools
     tmem-set            Change tmem settings
     tmem-shared-auth    De/authenticate shared tmem pool
     tmem-freeable       Get information about how much freeable memory (MB) is in-use by tmem
     network2-attach     Create a new version 2 virtual network device
     network2-list       list version 2 virtual network interfaces for a domain
     network2-detach     destroy a domain's version 2 virtual network device
     cpupool-create      Create a CPU pool based an ConfigFile
     cpupool-list        List CPU pools on host
     cpupool-destroy     Deactivates a CPU pool
     cpupool-rename      Renames a CPU pool
     cpupool-cpu-add     Adds a CPU to a CPU pool
     cpupool-cpu-remove  Removes a CPU from a CPU pool
     cpupool-migrate     Moves a domain into a CPU pool
     cpupool-numa-split  Splits up the machine into one CPU pool per NUMA node
     
     
     
  • 相关阅读:
    https://blog.csdn.net/yongchaocsdn/article/details/53355296
    P1526 [NOI2003]智破连环阵 [搜索+剪枝(二分图)]
    AT2165 Median Pyramid Hard [二分答案]
    翻煎饼 [迭代加深搜索+剪枝]
    P2962 [USACO09NOV]灯Lights [高斯消元+异或方程组 / 折半搜索]
    P5025 [SNOI2017]炸弹 [线段树优化建图 + Tarjan]
    Tarjan [割点, 缩点, 桥(待填坑)]
    线段树优化建图学习笔记
    P5468 [NOI2019]回家路线 [斜率优化dp]
    CF573E Bear and Bowling [平衡树+动态规划]
  • 原文地址:https://www.cnblogs.com/colin2012/p/9009463.html
Copyright © 2011-2022 走看看