libvirt- Virsh 所有命令詳單

http://blog.chinaunix.net/uid-26284395-id-2888083.html

命令:

    help            打印幫助
    attach-device   從一個XML文件附加裝置
    attach-disk     附加磁盤設備
    attach-interface 獲得網絡界面
    autostart       自動開始一個域
    capabilities    性能
    cd              change the current directory
    connect         連接(重新連接)到 hypervisor
    console         連接到客戶會話
    cpu-baseline    compute baseline CPU
    cpu-compare     compare host CPU with a CPU described by an XML file
    create          從一個 XML 文件創建一個域
    start           開始一個(以前定義的)非活躍的域
    destroy         刪除一個域
    detach-device   從一個 XML 文件分離設備
    detach-disk     分離磁盤設備
    detach-interface 分離網絡界面
    define          從一個 XML 文件定義(但不開始)一個域
    domid           把一個域名或 UUID 轉換爲域 id
    domuuid         把一個域名或 id 轉換爲域 UUID
    dominfo         域信息
    domjobinfo      domain job information
    domjobabort     abort active domain job
    domname         將域 id 或 UUID 轉換爲域名
    domstate        域狀態
    domblkstat      獲得域設備塊狀態
    domifstat       獲得域網絡接口狀態
    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            編輯某個域的 XML 配置
    find-storage-pool-sources 發現潛在存儲池源
    find-storage-pool-sources-as 找到潛在存儲池源
    freecell        NUMA可用內存
    hostname        打印管理程序主機名
    list            列出域
    migrate         將域遷移到另一個主機中
    migrate-setmaxdowntime set maximum tolerable downtime
    net-autostart   自動開始網絡
    net-create      從一個 XML 文件創建一個網絡
    net-define      從一個 XML 文件定義(但不開始)一個網絡
    net-destroy     刪除一個網絡
    net-dumpxml     XML 中的網絡信息
    net-edit        爲網絡編輯 XML 配置
    net-list        列出網絡
    net-name        把一個網絡UUID 轉換爲網絡名
    net-start       開始一個(以前定義的)不活躍的網絡
    net-undefine    取消定義一個非活躍的網絡
    net-uuid        把一個網絡名轉換爲網絡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        節點信息
    nodedev-list    這臺主機中中的枚舉設備
    nodedev-dumpxml XML 中的節點設備詳情
    nodedev-dettach dettach node device from its device driver
    nodedev-reattach reattach node device to its device driver
    nodedev-reset   重置節點設備
    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  自動啓動某個池
    pool-build      建立池
    pool-create     從一個 XML 文件中創建一個池
    pool-create-as  從一組變量中創建一個池
    pool-define     在一個 XML 文件中定義(但不啓動)一個池
    pool-define-as  在一組變量中定義池
    pool-destroy    銷燬池
    pool-delete     刪除池
    pool-dumpxml    XML 中的池信息
    pool-edit       爲存儲池編輯 XML 配置
    pool-info       存儲池信息
    pool-list       列出池
    pool-name       將池 UUID 轉換爲池名稱
    pool-refresh    刷新池
    pool-start      啓動一個(以前定義的)非活躍的池
    pool-undefine   取消定義一個不活躍的池
    pool-uuid       把一個池名稱轉換爲池 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            退出這個非交互式終端
    exit            退出這個非交互式終端
    reboot          重新啓動一個域
    restore         從一個存在一個文件中的狀態恢復一個域
    resume          重新恢復一個域
    save            把一個域的狀態保存到一個文件
    schedinfo       顯示/設置日程安排變量
    dump            把一個域的內核 dump 到一個文件中以方便分析
    shutdown        關閉一個域
    setmem          改變內存的分配
    setmaxmem       改變最大內存限制值
    setvcpus        改變虛擬 CPU 的號
    suspend         掛起一個域
    ttyconsole      tty 控制檯
    undefine        取消定義一個非活躍的域
    update-device   update device from an XML file
    uri             打印管理程序典型的URI
    vol-create      從一個 XML 文件創建一個卷
    vol-create-from create a vol, using another volume as input
    vol-create-as   從一組變量中創建卷
    vol-clone       clone a volume.
    vol-delete      刪除卷
    vol-wipe        wipe a vol
    vol-dumpxml     XML 中的卷信息
    vol-info        存儲卷信息
    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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章