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
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