Category Archives: EXSI

PROXMOX , ACCESS VM FROM IP PUBLIC USING IPTABLE (NAT)


BEFORE

root@proxmox1:/etc/network# cat interfaces

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address  192.168.137.104
netmask  255.255.255.0

iface eth1 inet manual

auto eth2
iface eth2 inet static
address  192.168.0.251
netmask  255.255.255.0

auto vmbr0
iface vmbr0 inet static
address  192.168.0.250
netmask  255.255.255.0
gateway  192.168.0.254
bridge_ports eth1
bridge_stp off

        bridge_fd 0
AFTER
root@proxmox1:/etc/network# cat interfaces

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.137.104
netmask 255.255.255.0

iface eth1 inet manual

auto eth2
iface eth2 inet static
address 192.168.0.251
netmask 255.255.255.0

auto vmbr0
iface vmbr0 inet static
address 192.168.0.250
netmask 255.255.255.0
gateway 192.168.0.254
bridge_ports eth1
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp  (Perhatikan baris ini yah!!)

auto vmbr1
iface vmbr1 inet static
address 192.168.37.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s ‘192.168.37.0/24’ -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ‘192.168.37.0/24’ -o vmbr0 -j MASQUERADE

Restart Network

root@proxmox1:/etc/network# /etc/init.d/networking restart

Run on HOST

iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 2222 -j DNAT –to 192.168.37.2:22

iptables -t nat -A PREROUTING -i vmbr0 -p tcp –dport 8888 -j DNAT –to 192.168.37.2:80

 

VM :
ifconfig eth0 192.168.37.2 netmask 255.255.255.0

route add default gw 192.168.37.1

Thanks

 

 

 

Issue + Physical to Virtual (P2V) LVM CENTOS 6.3


[root@alfamart yum.repos.d]# uname -a

Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@alfamart yum.repos.d]# rpm -aq | grep lvm
lvm2-2.02.95-10.el6.x86_64
lvm2-libs-2.02.95-10.el6.x86_64

Solution : DOWNGRADE LVM VERSION (Package on Centos 6.2)

[root@alfamart yum.repos.d]# yum downgrade lvm2* 
Loaded plugins: downloadonly, fastestmirror, presto
Setting up Downgrade Process
Determining fastest mirrors
addons-local | 1.3 kB 00:00
addons-local/primary | 574 kB 00:00
addons-local 1121/1121
Resolving Dependencies
–> Running transaction check
—> Package lvm2.x86_64 0:2.02.87-6.el6 will be a downgrade
—> Package lvm2.x86_64 0:2.02.95-10.el6 will be erased
—> Package lvm2-libs.x86_64 0:2.02.87-6.el6 will be a downgrade
—> Package lvm2-libs.x86_64 0:2.02.95-10.el6 will be erased
–> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Downgrading:
lvm2 x86_64 2.02.87-6.el6 addons-local 548 k
lvm2-libs x86_64 2.02.87-6.el6 addons-local 614 k

Transaction Summary
======================================================================================================================================
Downgrade 2 Package(s)

Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 1.1 M
(1/2): lvm2-2.02.87-6.el6.x86_64.rpm | 548 kB 00:00
(2/2): lvm2-libs-2.02.87-6.el6.x86_64.rpm | 614 kB 00:00
————————————————————————————————————————————–
Total 7.2 MB/s | 1.1 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lvm2-libs-2.02.87-6.el6.x86_64 1/4
Installing : lvm2-2.02.87-6.el6.x86_64 2/4
Cleanup : lvm2-2.02.95-10.el6.x86_64 3/4
Cleanup : lvm2-libs-2.02.95-10.el6.x86_64 4/4
Verifying : lvm2-2.02.87-6.el6.x86_64 1/4
Verifying : lvm2-libs-2.02.87-6.el6.x86_64 2/4
Verifying : lvm2-libs-2.02.95-10.el6.x86_64 3/4
Verifying : lvm2-2.02.95-10.el6.x86_64 4/4

Removed:
lvm2.x86_64 0:2.02.95-10.el6 lvm2-libs.x86_64 0:2.02.95-10.el6

Installed:
lvm2.x86_64 0:2.02.87-6.el6 lvm2-libs.x86_64 0:2.02.87-6.el6

Complete!

Migrate using “VMware vCenter Converter Standalone Client”  5.0.0 

Thank You

#vmkfstools + CLI clode VMK EXSI 5.0


~ # ls -l /vmfs/volumes/lts_medan/ipbx_lts_medan/
-rw-r–r– 1 root root 23 Oct 18 04:42 ipbx_medan-4adab0e2.hlog
-rw——- 1 root root 214748364800 Oct 18 05:53 ipbx_medan-flat.vmdk
-rw——- 1 root root 8684 Oct 18 05:53 ipbx_medan.nvram
-rw——- 1 root root 506 Oct 18 05:35 ipbx_medan.vmdk
-rw-r–r– 1 root root 0 Oct 17 04:25 ipbx_medan.vmsd
-rwxr-xr-x 1 root root 3541 Oct 18 05:53 ipbx_medan.vmx
-rw-r–r– 1 root root 272 Oct 18 04:45 ipbx_medan.vmxf
-rw-r–r– 1 root root 85480 Oct 17 04:26 vmware-1.log
-rw-r–r– 1 root root 168037 Oct 17 05:07 vmware-2.log
-rw-r–r– 1 root root 108120 Oct 17 08:38 vmware-3.log
-rw-r–r– 1 root root 107348 Oct 17 08:59 vmware-4.log
-rw-r–r– 1 root root 112161 Oct 18 04:42 vmware-5.log
-rw-r–r– 1 root root 144158 Oct 18 05:09 vmware-6.log
-rw-r–r– 1 root root 111144 Oct 18 05:53 vmware.log

~ #mkdir -p ls -l /vmfs/volumes/lts_medan/backup_ipbx_medan/

~ #vmkfstools -i “/vmfs/volumes/lts_medan/ipbx_medan/ipbx_medan.vmdk” -d thin “/vmfs/volumes/lts_medan/backup_ipbx_medan/backup_ipbx_medan.vmdk”

 

This slideshow requires JavaScript.

 

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: