Xenserver Host 간 VM 이전하기 – vm-migrate
작성자 : 서진우 (alang@clunix.com)
같은 Pool 내부의 XENSERVER 간에 VM 옮기기
# xe vm-migrate host=<other xenserver> vm=<vm_name> live=true force=true
서로 다른 Pool에 소속된 XENSERVER 간 VM 옮기기 (Live상태)
# xe vm-migrate remote-master=192.168.123.72 remote-username=root remote-password=root/// vm=RNTIER27-04b destination-sr-uuid=1839d06d-f608-c75c-d616-f09d487b6e67 live=true force=true
migration tool 이용하는 방법 (Halted 상태)
# yum install glibc.i686
# wget http://djlab.com/stuff/migratevm-1.0.1.tar.gz
# tar zxf migratevm-1.0.1.tar.gz && cd migratevm-1.0.1
# ./migratevm
migratevm 1.0.1 started
Enter source host name/IP (blank = localhost):
Enter username for localhost (blank = root):
Enter password for localhost: *******
Enter source vm name or uuid on localhost: RNTIER27-04b
Enter destination host name/IP (blank = localhost): 192.168.123.72
Enter username for 192.168.123.72 (blank = root): root
Enter password for 192.168.123.72: *******
Destination SR on 192.168.123.72 (blank for default):
Connecting to source host
Connecting to destination host and Starting transfer
…… 1.9%, 7440.59 (KB/sec))
주요 옵션
-sh : source host
-su : source user (usually root)
-sp : source pass
-sv : source VM label or UUID
-dh : destination host
-du : destination user
-dp : destination pass
-ds : destination SR (optional)
# ./migratevm -sh localhost -su root -sp xxxxx -sv WIN7X02 -dh 192.168.123.72 -du root -dp xxxxx -ds f956e313-d403-9c21-62eb-b5ada58f7a87
migration 시 주의 사항
destination xenserver 에 Migration VM이 요구하는 메모리 만큼 여유 메모리가 있어야 함.
보유메모리가 아니라 할당되지 않은 여유 메모리가 확보되어야 함.
GPU-PT 형태의 VM은 반드시 GPU를 none 상태로 변경한 후 Migration 시킴
destination SR 에 용량 체크 필요
4 Responses
1birthplace
2dilemma
calming music
calming music
… [Trackback]
[…] Find More on on that Topic: nblog.syszone.co.kr/archives/8989 […]