Friday, January 15, 2016

Debian Jessie KVM

Installasi:
# apt-get install qemu-kvm libvirt-bin virtinst bridge-utils
Grand user to manage:
# adduser dedetok kvm
# adduser dedetok libvirt
---------------------------------------------------
List all virtual
# virsh list --all
---------------------------------------------------
Default KVM with NAT
---------------------------------------------------
NAT Configuring default network
# virsh net-info default
# virsh net-autostart default
# virsh net-start default
---------------------------------------------------
KVM with bridge network
---------------------------------------------------
Setting up network using bridge
# brctl addbr br0
# ip addr show
# brctl addif br0 eth0
---------------------------------------------------
or write configuration permanently:
---------------------------------------------------
edit /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.1.10
# netmask 255.255.255.0
# gateway 192.168.1.1
iface eth0 inet manual
# Initial bridge for static
auto br0
iface br0 inet static
bridge_ports eth0
address 192.168.1.10
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
bridge_stp off
bridge_fd 0
bridge-waitport 0
dns-nameservers 8.8.8.8
# Initial bridge for dhcp
#auto br0
#iface br0 inet dhcp
# bridge_ports eth0
iface br0 inet6 static
address 2001:db8::1
netmask 64
gateway fe80::1
autoconf 0
#iface br0 inet6 auto
---------------------------------------------------
additional interface option:
  • bridge_stp off # disable Spanning Tree Protocol
  • bridge_waitport 0 # no delay before a port becomes available
  • bridge_fd 0 # no forwarding delay
  • bridge_ports none # if you do not want to bind to any ports
  • bridge_ports regex eth* # use a regular expression to define ports
---------------------------------------------------
edit /etc/resolv.conf
nameserver 192.168.1.1
---------------------------------------------------
edit /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding=1
---------------------------------------------------
For performance and security reasons, disable netfilter for bridges. Edit /etc/sysctl.conf or create /etc/sysctl.d/bridge.conf with these contents:
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0
net.bridge.bridge-nf-call-arptables=0
run
# sysctl -p
If you create /etc/sysctl.d/bridge.conf, then you need to create /etc/udev/rules.d/99-bridge.rules (If using Linux kernel 3.18 or later,
change KERNEL=="bridge" to KERNEL=="br_netfilter")
ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/sbin/sysctl -p /etc/sysctl.d/bridge.conf"
To allow all traffic to be forwarded across the bridge from KMV guest:
 -I Insert
# /sbin/iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
-P Policy
# iptables -P INPUT ACCEPT
Add default gateway (not necessary)
# route add default gw 192.168.1.1
---------------------------------------------------
network bonding and bridging
---------------------------------------------------
assuming server has 2 network interface eth0 and eth1.
# apt-get install bridge-utils ifenslave
edit /etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet manual
iface eth1 inet manual
# Initial bridge for static
auto br0
iface br0 inet static
bridge_ports bond0
address 192.168.1.10
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
bridge_stp off
bridge_fd 0
bridge-waitport 0
dns-nameservers 8.8.8.8
iface br0 inet6 auto
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond-mode 802.3ad
# bond_mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Available bond mode:
  • balance-rr or 0
  • active-backup or 1
  • balance-xor or 2
  • broadcast or 3
  • 802.3ad or 4
  • balance-tlb or 5
  • balance-alb or 6
---------------------------------------------------
copy iso file into folder /var/lib/libvirt/boot/ (eq dsl-4.4.10.iso)
Create virtual machine: ram 256 with Storage 5G using NAT
# virt-install --name dsl01 --ram 256 --cdrom /var/lib/libvirt/boot/dsl-4.4.10.iso --disk path=/var/lib/libvirt/images/dl01.img,size=5 --network bridge=br0 --graphics none
Create virtual machine: ram 256 with Storage 5G using bridge
# virt-install --name dsl01 --ram 256 --cdrom /var/lib/libvirt/boot/dsl-4.4.10.iso --disk path=/var/lib/libvirt/images/dl01.img,size=5 --network bridge=br0 --graphics none
Create virtual machine ram 2G, virtual cpu 4 with disk image bridge virbr0 (NAT) using Debian network installer no graphics (using console)
# virt-install --virt-type kvm --name deb01 --location http://httpredir.debian.org/debian/dists/jessie/main/installer-amd64/ --extra-args "console=ttyS0" -v --disk path=/home/kvmimages/deb01/disk1.img --memory 2048 --vcpu 4 --network bridge:virbr0
Reference:

Wednesday, December 30, 2015

WHM/Cpanel update and license problems

Update your Centos, from console/terminal run:
# yum update -y
# /scripts/upcp update all
If your WHM/Cpanel asks you to activate your license, and your license not yet expired, run this command
# /usr/local/cpanel/cpkeyclt
To show WHM/Cpanel version via terminal
# cat /usr/local/cpanel/version
11.64.0.33

WHM Backup using WHM Web Console

Home »Backup »Backup Configuration

  1. Global Settings
    1. Backup Status -> Enable
    2. Backup Type -> Compressed (Compressed, Uncompressed, Incremental).
    3. Maximum destination timeout 7200 in seconds (default: 7200)
    4. Maximum restore timeout 21600 in seconds (default: 21600)
  2. Scheduling and Retention
    1. Backup Daily
    2. Backup Weekly
    3. Backup Monthly 1st of the month (default:1st of the month , 15th of the month) Retain 1 Monthly backups default:1.
  3. Files
    1. Backup Accounts select all active user (default:none) 
    2. Backup Suspended Accounts (default:Disable) 
    3. Backup Access Logs (default:Disable) 
    4. Backup Bandwidth Data (default:Enable) 
    5. Use Local DNS (default:Disable)
    6. Backup System Files (default: checked)
  4. Databases
    1. Backup SQL Databases Per Account Only  (default:Per Account Only, Entire MySQL Directory Per Account and Entire MySQL Directory)
  5. Configure Backup Directory 
    1. Default Backup Directory (default: /backup) 
    2. Retain backups in the default backup directory (default: checked) 
    3. Mount Backup Drive as Needed. (default:Disable)
  6. Additional Destinations
Save Configuration




Sunday, December 6, 2015

Blackberry Bold 9900 OS 7.0 build 1346 error 102

Blackberry 7.0 build 1346 error 102
symptoms:
  1. boot fail with error code 102
  2. boot loop
  3. can not enter safe mode using backspace or escape key (right cursor).
Download JL_Cmder from http://www.blackberryfreaks.com/JL_Cmder.html

To find out which parts causing problems, run JL_Cmder.cmd :
D:\JL_Cmder v1.9.0>JL_Cmder.cmd
follow instruction and choose "event log" (menu number 2).
save event log into notepad.

Find which corrupted parts occurred in event log, for examples:
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: verifyHash1 failed for DocsToGoCommon-4(6424)
  • guid:0x97C9F5F641D25E5F time: Thu Jan 01 07:00:00 1970 severity:0 type:2 app:System data:CMM: data unlink failed for net_rim_bb_twitter-8(8699)
Remove them using JavaLoader.exe
D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f net_rim_bb_twitter-8
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing net_rim_bb_twitter-8 Done
Disconnected

D:\JL_Cmder v1.9.0>JavaLoader.exe -u erase -f DocsToGoCommon-4
RIM Wireless Handheld Java Loader
Copyright 2001-2007 Research In Motion Limited
Connected
Erasing DocsToGoCommon-4 Done
Disconnected

D:\JL_Cmder v1.9.0>

References:
  1. http://crackberry.com/help-jvm-error-102-your-blackberry-try-solution-wiping
  2. http://www.blackberryfreaks.com/JL_Cmder.html
  3. http://www.blackberryfreaks.com/How_to_use_JL_Cmder.html

Friday, December 4, 2015

Upgrade Windows 10 Build 10240 to Build 10586 offline



Not more then 4 months, Microsoft has release Windows 10 Build 10586. This forced users to download Windows 10 Build 10586 to perform offline installation.
Offline installation may save your bandwidth!
There are 2 ways to download Windows 10 Build 10586:
  1. Using media creation tools that you can download from https://www.microsoft.com/en-us/software-download/windows10
  2. Direct download from https://www.microsoft.com/en-us/software-download/techbench (I preferred this one). 
Here are some mapping upgrading from previous Windows to Windows 10 Build 10586 
  1. Windows 7 stater edition -> Windows 10 Build 10240 32bit -> Windows 10 Build 10586 32bit.
  2. Windows 7 professional x64 -> Windows 10 Pro Build 10240 x64 -> Windows 10 Build 10586 x64.
  3. Windows 81 SL x64  -> Windows 10 SL Build 10240 x64 -> Windows 10 SL Build 10586 x64.
  4. Windows 81 Bing x64  -> Windows 10 SL Build 10240 x64 -> -> Windows 10 SL Build 10586 x64.
You can find complete list Windows upgrade from this page http://windows.microsoft.com/en-us/windows-10/upgrade-to-windows-10-faq.
Mount your iso files using Virtual CloneDrive and run setup.exe, if autorun not enable (I always set this off to prevent malicious script run)
For CPU N455 and Ram 2G, upgrading from windows 7 stater, took 2.5 hours for each step.
View in Linkedin Post