[VMWare]VMware® vCenter™ Converter™
실제 머신을 Virtualization Station용 가상 머신으로 변환
Download VMware® vCenter™ Converter™ from VMware: http://www.vmware.com/products/converter . Before downloading, you must have a VMware account or register a new one
* 다음과 같은 에러가 발생할 경우
"A general system error occurred: Network error: HOST 1.1.1.1 key can't be retrieved"
Source Machine 이 Linux 인 경우로 SSH key 문제.
/etc/hosts.allow 에
ALL:ALL
(또는 'ALL:LOCAL, 192.168.1.' 과 같이 엄격하게 설정. 192.168.1.0/24 는 '192.168.1.' 으로 설정)
추가 후 sshd 서비스를 restart 하거나 안되는 network 서비스를 restart 한다.
* vCenter Converter는 기본적으로 Converter가 실행되는 PC에서 옮겨올 Source 인 physical Mashine 과 최종 생성할 Destination Geust OS 모두와 통신이 되어야 하며, 변환이 실행되면 Destination 인 Guest OS에 임시 호스트를 만들고(Helper라고 한다.) Guest OS(Helper)에서 직접 physical mashine 에 접속하여 데이터를 가져오는 방식으로 동작한다.
예를 들어 Physica Machine 이 Linux라면 vCenter Converter 에서 Linux로 SSH 접속이 가능해야 하고, Destnation 임시 Guest OS(Helper) 에서도 Linux 에 SSH 접속이 가능한 환경이어야 한다.
* 다음과 같은 에러가 발생하는 경우
"A file I/O error occurred while accessing ''."
다음과 같이 Use proxy mode 를 check 한다.
대부분 Source Machine -> Dest Machine Direct 통신이 안되어서 발생하는 문제이다.
Proxy mode off 일 경우 Source Machine에서 Agent가 Source Machine의 Snapshot 을 생성한 Dest Machine(VM) 으로 Direct Copy 한다.
Proxy mode on 일 경우 Souce Machine -> vCenter Converter PC -> Dest Machine 으로 경유하여 Copy 된다.
* Source Physical Machine (Linux) 이 XEN virtual host 인 경우.
Source Machine으로부터 성공적으로 Destination 으로 가져와도 부팅되지 않는다.
1. Source Machine이 linux로 XEN 환경하에 운영되고 있었다면 kernel 및 vConsole 등이 XEN 환경으로 되어 있다.
즉 /boot/에 kernel, image 등이 config-2.6.18-308.13.1.el5xen 처럼 파일명 뒤에 xen 이 붙어 있다.
이러한 파일은 xen 환경에서 구동되는 것이며 vmware 등에서 실행되지 않는다.
따라서 일반 physical machine 의 커널로 생성해 주어야 한다.
이 경우 Live CD 및 설치 CD로 부팅하여 physical machine 용 kernel 로 upgrade 또는 yum, apt-get 등으로 추가 설치한다.
[root@localhost boot]# ll
total 34753
-rw-r--r-- 1 root root 65547 Sep 3 2009 config-2.6.18-164.el5xen
-rw-r--r-- 1 root root 67254 Oct 21 2011 config-2.6.18-274.7.1.el5xen
-rw-r--r-- 1 root root 67187 Aug 22 2012 config-2.6.18-308.13.1.el5xen
-rw-r--r-- 1 root root 67541 Feb 22 2012 config-2.6.18-308.el5
drwxr-xr-x 2 root root 1024 Aug 13 14:45 grub
-rw------- 1 root root 3185822 Nov 8 2010 initrd-2.6.18-164.el5xen.img
-rw------- 1 root root 3301177 Nov 16 2011 initrd-2.6.18-274.7.1.el5xen.img
-rw------- 1 root root 3532302 Aug 9 14:35 initrd-2.6.18-308.13.1.el5xen.img
-rw------- 1 root root 3327923 Sep 13 2012 initrd-2.6.18-308.13.1.el5xen.img.old.0
-rw------- 1 root root 3533559 Aug 13 07:44 initrd-2.6.18-308.el5.img
-rw-r--r-- 1 root root 80032 Mar 17 2009 message
-rw-r--r-- 1 root root 108127 Sep 3 2009 symvers-2.6.18-164.el5xen.gz
-rw-r--r-- 1 root root 115889 Oct 21 2011 symvers-2.6.18-274.7.1.el5xen.gz
-rw-r--r-- 1 root root 116355 Aug 22 2012 symvers-2.6.18-308.13.1.el5xen.gz
-rw-r--r-- 1 root root 116635 Feb 22 2012 symvers-2.6.18-308.el5.gz
-rw-r--r-- 1 root root 1194532 Sep 3 2009 System.map-2.6.18-164.el5xen
-rw-r--r-- 1 root root 1231648 Oct 21 2011 System.map-2.6.18-274.7.1.el5xen
-rw-r--r-- 1 root root 1238711 Aug 22 2012 System.map-2.6.18-308.13.1.el5xen
-rw-r--r-- 1 root root 1275921 Feb 22 2012 System.map-2.6.18-308.el5
-rw-r--r-- 1 root root 2029734 Sep 3 2009 vmlinuz-2.6.18-164.el5xen
-rw-r--r-- 1 root root 2198600 Oct 21 2011 vmlinuz-2.6.18-274.7.1.el5xen
-rw-r--r-- 1 root root 2211272 Aug 22 2012 vmlinuz-2.6.18-308.13.1.el5xen
-rw-r--r-- 1 root root 2115772 Feb 22 2012 vmlinuz-2.6.18-308.el5
-rw-r--r-- 1 root root 409051 Sep 3 2009 xen.gz-2.6.18-164.el5
-rw-r--r-- 1 root root 424895 Oct 21 2011 xen.gz-2.6.18-274.7.1.el5
-rw-r--r-- 1 root root 427592 Aug 22 2012 xen.gz-2.6.18-308.13.1.el5
-rwxr-xr-x 1 root root 961616 Sep 3 2009 xen-syms-2.6.18-164.el5
-rwxr-xr-x 1 root root 990296 Oct 21 2011 xen-syms-2.6.18-274.7.1.el5
-rwxr-xr-x 1 root root 998488 Aug 22 2012 xen-syms-2.6.18-308.13.1.el5
xen 환경하에서는 xen으로 끝나는 화일만 있었다.
2. /boot/grub/grub.conf 등과 같은 부트로더 설정을 physical machine 에 맞게 수정한다.
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-308.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-308.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-308.el5.img
title CentOS (2.6.18-308.13.1.el5xen)
root (hd0,0)
kernel /vmlinuz-2.6.18-308.13.1.el5xen ro root=/dev/VolGroup00/LogVol00 console=xvc0 net.ifnames=0 biosdevname=0
initrd /initrd-2.6.18-308.13.1.el5xen.img
title CentOS (2.6.18-308.13.1.el5xen) 의 내용이 xen 환경의 것이고,
title CentOS (2.6.18-308.el5) 이 추가한 내용이다.
3. /etc/fstab 의 내용이 맞지 않으면 수정해 준다. (vCenter Converter 에서 기본으로 수정해 주나 맞지 않는 경우 수정한다.)
4. /etc/inittab
xen 환경에서 화면을 xen console 로 관리하기도록 수정되어 있다. 따라서 Converter로 변환한 후 위의 것들이 수정된 경우,
부팅은 정상이나 inittab 이 실행되는 순간 화면이 나오지 않는다.
이 경우 다음과 같이 co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav 등을 주석 처리한다.
[root@localhost boot]# vi /etc/inittab
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
#co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
* Windows Source 에서 Agent 설치 시 에러나는 경우
1. 해당 Windows 에 Agent 를 수동 설치한다. (C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone\VMware-Converter-Agent.exe 파일을 복사하여 수동 설치
- 설치 후 서비스가 실행되지 않는 경우
1) DNS 쿼리가 정상동작하는가? (폐쇄망이면 DNS 서버 주소에 127.0.0.1 입력)
2) Registry 추가 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServicesPipeTimeout (DWORD32, 값 300000 (5분))
3) 서비스 시작 유형 (지연시작 -> 시작), Rebooting 후 Agent Uninstall Manual 로 설치 진행.
Troubleshooting checklist for VMware Converter (1016330)
https://kb.vmware.com/s/article/1016330
VMware Knowledge Base
kb.vmware.com
* ssl exception : operation was canceled 발생하는 경우
C:\ProgramData\VMware\VMware vCenter Converter Standalone\converter-agent.xml
C:\ProgramData\VMware\VMware vCenter Converter Standalone\converter-server.xml
C:\ProgramData\VMware\VMware vCenter Converter Standalone\converter-worker.xml
C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone\converter-client.xml
위 파일의 다음 내용을 변경하고 다시 실행한다.
(변경 전 )
<sslOptions>123422720</sslOptions>
(변경 후)
<sslOptions>56313856</sslOptions>