Migrasi openvz ke kvm/vmware esxi

1. Install os yang sama persis di kvm atau esxi misal ip 10.10.0.159
pastikan rsync dan openssh-server terinstall
#apt-get install rsync && apt-get install openssh-server
#yum install rsync && yum install openssh-server

2. Masuk ke openvz
Fedora/RHEL/CENTOS : yum install mingetty
Debian/Ubuntu : apt-get install mingetty
tambahkan mingetty di /etc/inittab
vi /etc/inittab

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

lalu aktifkan atau di reboot
install rsync dan openssh-servejika belum ada
#apt-get install rsync && apt-get install openssh-server or
#yum install rsync && yum install openssh-server
jalan kan rsync
#rsync -exclude=/etc/fstab --exclude=/boot --exclude=/proc --exclude=/lib/modules/ --exclude=/etc/udev --exclude=/lib/udev --exclude=/sys -e ssh --delete --numeric-ids -avpogtStlHz / [email protected]:/
#shutdown -h now

3. Masuk ke  kvm atau esxi misal ip 10.10.0.159
edit network setting nya

Debian vi /etc/network/interfaces
# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address 10.10.0.223
netmask 255.255.255.0
gateway 10.10.1.1

Centos vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.10.0.223
HWADDR=3c:d9:2b:gb:gf:hj
IPADDR=192.168.0.9
NETMASK=255.255.254.0
NETWORK=10.10.0.1
ONBOOT=yes
GATEWAY=10.10.0.1
TYPE=Ethernet
#reboot

Sukses buat migrasi debian 7 openvz di proxmox ke vmware esxi 5

Komentar

Postingan populer dari blog ini

Cloudflared argo tunnel zero trust service on Mikrotik

Migrasi zimbra ke zimbra dengan rsync

Squid Proxy ssl bump untuk transparent HTTPS #2