ユーザ用ツール

サイト用ツール


os:xenserver:command

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
os:xenserver:command [2017/04/14 05:21] – 外部編集 127.0.0.1os:xenserver:command [2026/01/29 16:23] (現在) hayashi
行 55: 行 55:
  
   xe vm-import filename=/mnt/nfs/gekkeikan.xva sr-uuid=7a5b89abc-1f2d-xxxx-xxxx-123456789abc   xe vm-import filename=/mnt/nfs/gekkeikan.xva sr-uuid=7a5b89abc-1f2d-xxxx-xxxx-123456789abc
 +
 +
 +===== VM エクスポート して 別ホストで VM インポート =====
 +
 +  # ホストAにログインして実行
 +  xe vm-export vm=[Template_Name_or_UUID] filename= | ssh root@[Host_B_IP] xe vm-import filename=/dev/stdin
 +
 +sr-uuidを指定しないとdefault SRで作成
 +===== VMをテンプレートに変換 =====
 +
 +  # テンプレートに変換
 +  xe vm-param-set uuid=[VM_UUID] is-a-template=true
 +  
 +===== VM エクスポート して 別ホストで テンプレートに変換 =====
 +
 +  # ホストAで実行
 +  xe vm-export uuid=(AのUUID) filename= | ssh root@[B_Pool_Host_IP] 'NEW_UUID=$(xe vm-import filename=/dev/stdin); xe vm-param-set uuid=$NEW_UUID is-a-template=true'
  
 ===== VMコピー ===== ===== VMコピー =====
  
-  xe vm-copy new-name-label='new name' uuid=VMのUUID sr-uuid=コピー先SRのUUID +  xe vm-copy new-name-label='new name' uuid=VMのUUID sr-uuid=コピー先SRのUUID 
  
 ===== VMのIPアドレスを取得 ===== ===== VMのIPアドレスを取得 =====
行 122: 行 139:
   interface-rename --update <target eth name>=MAC|PCI|Phys|"SMBios"   interface-rename --update <target eth name>=MAC|PCI|Phys|"SMBios"
  
-===== 参考 ===== +===== メモリ変更 =====
-[[http://d.hatena.ne.jp/eth0jp/20111224/1324701783|XenServerのxeコマンドのtips]]+
  
-[[http://support.citrix.com/article/CTX135809|How to Change Order of NICs in XenServer 6.1]]+  xe vm-memory-limits-set uuid=<uuid of the valid VM> static-min=<nn>GiB/MiB dynamic-min=<nn>GiB/MiB dynamic-max=<nn>GiB/MiB static-max=<nn>GiB/MiB
  
-[[http://docs.vmd.citrix.com/XenServer/4.0.1/ja/reference/ch05s04.html|xe コマンド リファレンス]]+例 
 +  xe vm-memory-limits-set uuid=a1bbb2cc-3d45-678e-0000-0xxxxxxxxxxx static-min=8GiB dynamic-min=8GiB dynamic-max=8GiB static-max=8GiB 
 + 
 +===== 参考 ===== 
 +  * [[http://d.hatena.ne.jp/eth0jp/20111224/1324701783|XenServerのxeコマンドのtips]] 
 +  * [[http://support.citrix.com/article/CTX135809|How to Change Order of NICs in XenServer 6.1]] 
 +  * [[https://docs.xcp-ng.org/appendix/cli_reference/|xe コマンド リファレンス]]
os/xenserver/command.1492147293.txt.gz · 最終更新: by 127.0.0.1