virsh命令集合
help 打印幫助attach-device 從一個(gè)XML 文件附加裝置attach-disk 附加磁盤設(shè)備attach-interface 獲得網(wǎng)絡(luò)界面autost
help 打印幫助
attach-device 從一個(gè)XML 文件附加裝置
attach-disk 附加磁盤設(shè)備
attach-interface 獲得網(wǎng)絡(luò)界面
autostart 自動(dòng)開始一個(gè)域
capabilities 性能
cd change the current directory
connect 連接(重新連接)到 hypervisor
console 連接到客戶會(huì)話
cpu-baseline compute baseline CPU
cpu-compare compare host CPU with a CPU described by an XML file
create 從一個(gè) XML 文件創(chuàng)建一個(gè)域
start 開始一個(gè)(以前定義的)非活躍的域 destroy 刪除一個(gè)域
detach-device 從一個(gè) XML 文件分離設(shè)備
detach-disk 分離磁盤設(shè)備
detach-interface 分離網(wǎng)絡(luò)界面
define 從一個(gè) XML 文件定義(但不開始)一個(gè)域 domid 把一個(gè)域名或 UUID 轉(zhuǎn)換為域 id domuuid 把一個(gè)域名或 id 轉(zhuǎn)換為域 UUID dominfo 域信息
domjobinfo domain job information
domjobabort abort active domain job
domname 將域 id 或 UUID 轉(zhuǎn)換為域名
domstate 域狀態(tài)
domblkstat 獲得域設(shè)備塊狀態(tài)
domifstat 獲得域網(wǎng)絡(luò)接口狀態(tài)
dommemstat get memory statistics for a domain domblkinfo domain block device size information
domxml-from-native Convert native config to domain XML domxml-to-native Convert domain XML to native config dumpxml XML 中的域信息
edit 編輯某個(gè)域的 XML 配置
,find-storage-pool-sources 發(fā)現(xiàn)潛在存儲(chǔ)池源
find-storage-pool-sources-as 找到潛在存儲(chǔ)池源
freecell NUMA可用內(nèi)存
hostname 打印管理程序主機(jī)名
list 列出域
migrate 將域遷移到另一個(gè)主機(jī)中
migrate-setmaxdowntime set maximum tolerable downtime net-autostart 自動(dòng)開始網(wǎng)絡(luò)
net-create 從一個(gè) XML 文件創(chuàng)建一個(gè)網(wǎng)絡(luò)
net-define 從一個(gè) XML 文件定義(但不開始) 一個(gè)網(wǎng)絡(luò) net-destroy 刪除一個(gè)網(wǎng)絡(luò)
net-dumpxml XML 中的網(wǎng)絡(luò)信息
net-edit 為網(wǎng)絡(luò)編輯 XML 配置
net-list 列出網(wǎng)絡(luò)
net-name 把一個(gè)網(wǎng)絡(luò)UUID 轉(zhuǎn)換為網(wǎng)絡(luò)名
net-start 開始一個(gè)(以前定義的) 不活躍的網(wǎng)絡(luò) net-undefine 取消定義一個(gè)非活躍的網(wǎng)絡(luò)
net-uuid 把一個(gè)網(wǎng)絡(luò)名轉(zhuǎn)換為網(wǎng)絡(luò)UUID
iface-list list physical host interfaces
iface-name convert an interface MAC address to interface name
iface-mac convert an interface name to interface MAC address
iface-dumpxml interface information in XML
iface-define define (but don't start) a physical host interface from an XML file
iface-undefine undefine a physical host interface (remove it from configuration)
iface-edit edit XML configuration for a physical host interface
iface-start start a physical host interface (enable it / "if-up") iface-destroy destroy a physical host interface (disable it / "if-down")
managedsave managed save of a domain state
,nodeinfo 節(jié)點(diǎn)信息
nodedev-list 這臺(tái)主機(jī)中中的枚舉設(shè)備
nodedev-dumpxml XML 中的節(jié)點(diǎn)設(shè)備詳情
nodedev-dettach dettach node device from its device driver nodedev-reattach reattach node device to its device driver nodedev-reset 重置節(jié)點(diǎn)設(shè)備
nodedev-create create a device defined by an XML file on the node
nodedev-destroy destroy a device on the node
nwfilter-define define or update a network filter from an XML file
nwfilter-undefine undefine a network filter
nwfilter-dumpxml network filter information in XML nwfilter-list list network filters
nwfilter-edit edit XML configuration for a network filter pool-autostart 自動(dòng)啟動(dòng)某個(gè)池
pool-build 建立池
pool-create 從一個(gè) XML 文件中創(chuàng)建一個(gè)池 pool-create-as 從一組變量中創(chuàng)建一個(gè)池
pool-define 在一個(gè) XML 文件中定義(但不啟動(dòng))一個(gè)池
pool-define-as 在一組變量中定義池
pool-destroy 銷毀池
pool-delete 刪除池
pool-dumpxml XML 中的池信息
pool-edit 為存儲(chǔ)池編輯 XML 配置
pool-info 存儲(chǔ)池信息
pool-list 列出池
pool-name 將池 UUID 轉(zhuǎn)換為池名稱
pool-refresh 刷新池
pool-start 啟動(dòng)一個(gè)(以前定義的)非活躍的池 pool-undefine 取消定義一個(gè)不活躍的池
pool-uuid 把一個(gè)池名稱轉(zhuǎn)換為池 UUID
secret-define define or modify a secret from an XML file secret-dumpxml secret attributes in XML
,secret-set-value set a secret value
secret-get-value Output a secret value
secret-undefine undefine a secret
secret-list list secrets
pwd print the current directory
quit 退出這個(gè)非交互式終端
exit 退出這個(gè)非交互式終端
reboot 重新啟動(dòng)一個(gè)域
restore 從一個(gè)存在一個(gè)文件中的狀態(tài)恢復(fù)一個(gè)域 resume 重新恢復(fù)一個(gè)域
save 把一個(gè)域的狀態(tài)保存到一個(gè)文件
schedinfo 顯示/設(shè)置日程安排變量
dump 把一個(gè)域的內(nèi)核 dump 到一個(gè)文件中以方便分析
shutdown 關(guān)閉一個(gè)域
setmem 改變內(nèi)存的分配
setmaxmem 改變最大內(nèi)存限制值
setvcpus 改變虛擬 CPU 的號(hào)
suspend 掛起一個(gè)域
ttyconsole tty 控制臺(tái)
undefine 取消定義一個(gè)非活躍的域
update-device update device from an XML file
uri 打印管理程序典型的URI
vol-create 從一個(gè) XML 文件創(chuàng)建一個(gè)卷
vol-create-from create a vol, using another volume as input vol-create-as 從一組變量中創(chuàng)建卷
vol-clone clone a volume.
vol-delete 刪除卷
vol-wipe wipe a vol
vol-dumpxml XML 中的卷信息
vol-info 存儲(chǔ)卷信息
vol-list 列出卷
vol-pool returns the storage pool for a given volume key or path
,vol-path returns the volume path for a given volume name or key
vol-name returns the volume name for a given volume key or path
vol-key returns the volume key for a given volume name or path
vcpuinfo 域 vcpu 的信息
vcpupin 控制域 vcpu affinity
version 顯示版本
vncdisplay vnc 顯示
snapshot-create Create a snapshot
snapshot-current Get the current snapshot
snapshot-delete Delete a domain snapshot
snapshot-dumpxml Dump XML for a domain snapshot snapshot-list List snapshots for a domain
snapshot-revert Revert a domain to a snapshot