옮기고 싶은 대상이 있는 서버에서, 아래와 같이 커맨드를 이용하여 xen center 에서 migration 하듯
서버를 옮길 수 있다.
서버 대수가 많을 경우, xencenter 에서 목록찾기가 불편하여 cli 를 사용하면 괜찮을 듯 하다
# xe vm-migrate remote-master=192.168.231.39 \ remote-username=root remote-password=1234 \ uuid=1754b632-3ff1-1abd-6b7b-d580bd2c1d47 live=true \ vif:124fb3e5-21d3-afae-f822-3ee15321f29b=298fa867-73b9-511b-6842-6fc63aaea3f7
Performing a Storage XenMotion migration. Your VM's VDIs will be migrated with the VM. |
remote-master - 목적지가 되는 서버 IP
remote-username - 목적지 서버 계정
remote-password - 목적지 서버 패스워드
uuid - 옮기려는 vm 의 uuid
-> xe vm-list 쳤을 때 확인 가능
live - 온라인 migration
vif:<local-vif-uuid>=<remote-network-uuid>
-> local-vif-uuid 는 "xe vif-list params=all" 쳤을 때, 옮기려는 가상 머신의 vif uuid
-> remote-network-uuid "xe net xe network-list params=all" 쳤을 때, 매니지먼트 인터페이스의 uuid