Here is the list of projects,
How to install Kamailio and Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/etc/init/failsafe.conf #ifdown eth0 #ifdown eth1 # Adding deb kamailio package address to source.list (1) edit kamdb (2) edit /etc/default/kamailio # If you want to use Mysql module of Kamailio $ kamdbctl create $kam ... user pass domain # Create user over terminal. |
apt-get update “Hash sum mismatch” error
Just remove the content of /var/lib/apt/lists directory:
sudo rm /var/lib/apt/lists/*
then run:
sudo apt-get update
Xen Installation Step 1
.
1 2 3 4 5 6 7 8 9 10 11 12 |
wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-doc-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-debuginfo-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-devel-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-hypervisor-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-libs-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-licenses-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-ocaml-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-ocaml-devel-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/xen-runtime-4.2.5-9.el6.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/kernel-xen-3.14.33-1.el6xen.x86_64.rpm wget http://au1.mirror.crc.id.au/repo/el6/x86_64/kernel-xen-firmware-3.14.33-1.el6xen.x86_64.rpm |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
rpm -ivh --nodeps xen-4.2.5-9.el6.x86_64.rpm xen-doc-4.2.5-9.el6.x86_64.rpm xen-hypervisor-4.2.5-9.el6.x86_64.rpm xen-libs-4.2.5-9.el6.x86_64.rpm xen-licenses-4.2.5-9.el6.x86_64.rpm xen-runtime-4.2.5-9.el6.x86_64.rpm rpm -ivh --nodeps xen-debuginfo-4.2.5-9.el6.x86_64.rpm xen-devel-4.2.5-9.el6.x86_64.rpm xen-ocaml-4.2.5-9.el6.x86_64.rpm xen-ocaml-devel-4.2.5-9.el6.x86_64.rpm rpm -ivh --nodeps --force kernel-xen-3.14.33-1.el6xen.x86_64.rpm kernel-xen-firmware-3.14.33-1.el6xen.x86_64.rpm depmod: WARNING: could not open /lib/modules/3.14.33-1.el6xen.x86_64/modules.order: No such file or directory depmod: WARNING: could not open /lib/modules/3.14.33-1.el6xen.x86_64/modules.builtin: No such file or directory depmod: WARNING: could not open /var/tmp/initramfs.XexgLv/lib/modules/3.14.33-1.el6xen.x86_64/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/initramfs.XexgLv/lib/modules/3.14.33-1.el6xen.x86_64/modules.builtin: No such file or directory mv /usr/lib64/python2.6/site-packages/xen /usr/lib64/python2.7/site-packages mv /usr/lib64/python2.6/site-packages/xen-3.0-py2.6.egg-info /usr/lib64/python2.7/site-packages cd /usr/lib64 ln -s libpython2.7.so.1.0 libpython2.6.so.1.0 ln -s liblzma.so.5.0.99 liblzma.so.0 ln -s libgnutls.so.28.20.4 libgnutls.so.26 edit /etc/default/grub : GRUB_DEFAULT="CentOS Linux, with Xen hypervisor" grub2-mkconfig --output=/boot/grub2/grub.cfg chkconfig --level 2345 xend on systemctl stop NetworkManager systemctl disable NetworkManager Create a network initialization script (replacing eth0,a.b.c.d and e.f.g.h with your adapater,IP address and gateway address): ################################################# /etc/xen/scripts/xenbr0.sh #!/bin/bash brctl addbr xenbr0 ip addr flush eno1 ip addr add xx.210.xx.109/24 broadcast xx.xx.254.255 dev xenbr0 ifconfig xenbr0 up ip route add default via xx.xx.254.1 brctl addif xenbr0 eno1 ######################################################## yum install libvirt python-virtinst libvirt-daemon-xen ######################################################### vnc network giving error for the XEN network. 1. new virtual network created . 2. network interface came here than added (+) Bridge . em0 XENbridge clicked. |
Crontab Kill kernel thread and virus
1 2 3 4 5 6 7 8 9 10 |
#now*/5 * * * * killall -9 kthread #now*/1 * * * * killall -9 kthreadd #now*/12 * * * * killall -9 named #now*/1 * * * * find /tmp/ -name 'pnscan' -exec rm {} \; #now*/3 * * * * killall -9 proftpd #now*/5 * * * * ufw delete deny 7778 && ufw deny 7778 #now* * * * * rm /lib/httpd /lib/httpd.pid /lib/httpds #*/13 * * * * killall -9 chronyd # http://fedoraproject.org/wiki/How_to_edit_iptables_rules # How to delete - rules at iptables |
Virtual network security configuration
Only local access VM network creating
ALL OF the interfaces, `ROUTED` not `NAT`
no internet only routed net.
NAT is unsecure network, because server can reachable from internet.
So the best one is the NOT _ NAT
Virtual machine disc conversion command line example
1 2 |
# Disk Conversion root@s:/backups/# qemu-img convert -O raw vm-102-disk-1.qcow2 test.img |