WSGI mod, Python, Django, Celery and a nice fella virtualenv

Here I’ll show how to use Python (3.8.0 in the current example, but legit for latest 3.+ versions, not for os.name == ‘NT’) and virtualenv to setup WGSI enabled website on Django (or any) with implemented Celery + Flower + RabbitMQ. This example is my own path used for automated test framework: Octopus (not available now, but have dev branch opened: Lobster) Here only configurations and setup for Python 3.8.0, virtualenv, WSGI, Django, Celery (worker and beat services), Flower and that’s it. Later I’ll show Django + Celery configuration when they run together (sort of). You may want to install Python at first: Read When your modern and fancy python is installed, we’ll make a virtual environment for our website.Short Read more…

Windows mirrored volume and hard reset

When you doing a hardware reset for Windows Server 2012 Hyper-V with RAID1 you may catch “Volume Sync” For me to remember: http://serverfault.com/questions/107636/how-to-view-status-of-software-raid-1-resynching Read more…

Oh my gosh BACULA config

Recently finished bacula config and run first one successfully! I’m really do not understand now, why does this tool have a complicated system with batch of daemons and modules. For my opinion, backup tool just should know from where to wherever make a backup and how often. But for further usage and remember this config, I’ll add it here.   Is is just a reminder, not a how-to, just want to not forget this. Job configs is not so complicate, intuitively understandable. Director bacula-dir.conf Concole bconsole.conf Storage basula-sd.conf File Daemon Client bacula-fd.conf       Read more…

Install Bacula on debian systems

Failed to load the database DBI driver SQLite at ./bacula-backup-lib.pl line 45 Based on: https://nklug.org.ua/node/23 http://www.microhowto.info/howto/connect_to_a_sqlite_database_using_perl_dbi.html https://ru.wikibooks.org/wiki/Bacula/Быстрый_старт http://help.ubuntu.ru/wiki/руководство_по_ubuntu_server/резервное_копирование/bacula https://www.digitalocean.com/community/tutorials/how-to-install-bacula-server-on-ubuntu-14-04 The main problem was: Failed to load the database DBI driver SQLite at ./bacula-backup-lib.pl line 45 this ultra fast fix can help: apt-get install libdbd-sqlite3-perl You can install any needed module based on SQL you use: MySQL, PostrgeSQL etc. Read more…

Всегда делайте БЕКАПЫ! ВСЕГДА! ДЕЛАЙТЕ! БЕКАПЫ!

Сука, истина в последней инстанции! Только что полтора часа провозился с MySql после Power Failure –  слетела база юзеров, чинил, флашил – нихуя не помогало, ровным счетом нихуяшечки! Спасибо, блять, дебиану с его ебаной старой как мир Mysql 5.5… Так вот, я вдруг вспомнил, что делал когда-то бекапы по расписанию, и О БОЖЕ ЧТО ЭТО!!!!Адин-адин111 Полный бекап базочки даже с таблицей юзеров, гугель 30 сек, первая команда рестора – ЗАРАБОТАЛО! Сученька, спасибочки тебе, прошлый я, что поставил бекапы делаться еженедельно, каждый понедельник. Изменил расписание на ежедневно в полночь! Мало бекапов не бывает! Делайте бекапы! Read more…

From vmdk to vhd

StarWind V2V Image Converter VMware vCenter Converter Standalone Client Very useful: http://rmlinar.net/blog/2014/07/29/convert-single-vmdk-to-vhdx-with-microsoft-virtual-machine-converter-2-0-mvmc/ Read more…

ADDM Comunity Edition install and configure

Here I’ll describe how to install and configure ADDM – Atrium Discovery and dependency Mapping virtual appliance and allow it to run as I want it to run. You can request a free trial on bmc site and they will email you link where you can find virtual appliances.   Tasks are: change root password allow ‘root’ – to log in from everywhere and do anything disable SElinux disable ipv6 proto disable firewall add custom IP, not DHCP allow ftp into appliance install webmin for addm aplliance for easy manage use custom port for UI http note: sometimes apache proxy to multiple addm on port 80 – can produce UI errors. I do not know how handle it, even afterShort Read more…

The conclusion after migration VMvsHyperV

So, what can I say before migration. First day looks good, nothing leaks, all services works as expected, have some additional configuration for MAC addresses etc. During migration I’ve accidentally lost one system disk for one of my VM and photos backup disk, but this is not an issue, because all important stuff have more then one backup. First expression about Hyper-V – it’s more thrifty to system resources, I’m still tuning it to make my vms run smoothly but this is the first thing I saw. Then, Hyper-V has a good mgmt console for all my needs, I have a small env. so I do not need an HUGE MGMT-VM to host vCenterServer because new VM ver. cannot beShort Read more…

Get Acess to VMFS from Windows (Vmplayer+Centos6)

Required: http://www.eastern.nl/2014/12/mounting-vmfs-centos-7/ http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/ Above May not work. So make a VMplayer VM with ESXi installation and mound physical disk where VMFS present. http://www.empirion.co.uk/vmware/vmware-vsphere-client-direct-download-links/ This is the biggest technical perversion I’ve ever did: There are: VmWare Vmplayer + ESXi mounted IDE disks with VMFS bridged network vSphereClient added datastores added NFS datastore to host where vmplayer runs (thought it were faster then just download) Windows Server 2012 NFS role and share enought space Bad method. Spent to much time. On the host where you installed Windows 2012 (for example) and where HDD with ESXI disks is mounted install one of this Hyper-V role vmware player Then create new virtual machine and install ESXi on it, just any trial ESXi you canShort Read more…

vmdk madness!

When reading a lot of guides how better migrate from ESXi to Hyper-V I’ve saw some madness and then I become mad too. I decided to copy important VMs, which I don’t want to break, on my laptop. YEAH!   Guess what? I bet when I’ll migrate almost VMs to Hyper-V one last VM wouldn’t convert and I will run it under the VMbox with bridged NIC from Windows Server with Hyper-V. I feel it would be exactly like that! Read more…