Tag: linux

21Apr

Building Advanced Labs Using EVE-NG

Here’s a tiny backstory: Looking back into the past five to six years, homelabbing has been one of greatest pleasures to fiddle around and come up with the right setup for whatever I’m learning. I’ve went from VMs on my laptop to using XEN on some old machine to VMware ESXi. ESXi is great, but with time, I kept finding myself doing a lot of the same thing over and over, and although I automated most parts that are repetitive, I felt like I wanted something a bit quicker that just works.

For around two years, oVirt has been my choice for hosting my run-of-the-mill – mostly linux – labs. It works well with images, it can be automated, and it does nested virtualization very, very well. Nested Virtualization and speed to bring VMs up were my two absolutely favorite parts, especially as I started working on Contrail and Openstack. I still happily run oVirt today for everything, except Networking Labs. That’s the spot I realized I needed something fresh that tackles the problem of network devices labs in a smarter way.

Enter EVE-NG

My problem began when I needed to run labs containing network devices (Juniper vMX, vSRX, Cumulus, VyOS, etc). Unfortunately, creating such labs over oVirt or even nested over KVM within a linux host can be very tricky and time consuming with lots of moving parts that can easily break it. It just didn’t make sense to me that running a back-to-back connection between two devices meant you’d create a bridge and link both VMs on it. This is also how ESXi does it apparently, and it is a very tedious process that I don’t think I’d want to go through when I want to quickly spin something up to try it. That’s when EVE-NG came into the picture.

Emulated Virtual Environment – Next Generation (EVE-NG) simplifies the process of running labs containing network devices, and the way to interconnect them with other virtual nodes. It solves the missing piece of making such labs easier to build, and it does it in an intuitive way.

EVE-NG supports a whole bunch of disk images to be used when building labs. You have Linux (of course), and you have an increasing list of supported network virtual devices including Juniper, Cisco, F5, and many others. You can check the full list here. The User Interface of EVE-NG makes it so that the topology you see does actually work. You can place the devices, Drag-and-Drop cables to establish connectivity between the devices and select the wanted ports, re-organize and label things, it just does it in a good presentable way that also allows a speedy lab building process. There are many other features that you should definitely check out on their website

EVE-NG Deployment Options

Read More »

6Oct

Using Reboot Module in Ansible 2.7

For a while, rebooting a Linux machine using Ansible has been done primarily using a combination of a reboot shell command module and a wait_for clause to pause execution of other tasks until that machine has came back up. This is also the method that is being taught at the current available revision of DO407 Automation with Ansible course by Red Hat (based on Ansible 2.3). Using this method can be done as follows:

---
- name: Reboot and wait until the server is up
  hosts: server1
  tasks:

    - name: reboot machine
      shell: sleep 2; shutdown -r now "Ansible triggered reboot"
      async: 1
      poll: 0
      ignore_errors: true

    - name: Wait for server to come back
      wait_for:
        host: "{{ inventory_hostname }}"
        state: started
        delay: 30
        timeout: 300
        port: 22
      delegate_to: localhost

New in Ansible 2.7: reboot module

Read More »

27Aug
filezilla plus dropbox

Syncing FileZilla SiteManager via Dropbox

There’s a great chance that you, just like me, are working from multiple devices regularly. Although not optimal, sometimes you have to edit files over ftp/sftp – especially when working with web servers – or to sync files back and forth. Therefore, you need to have saved sessions with you at all times.

FileZilla is a very popular cross-platform tool used to manage FTP sessions. While it offers a session management feature called Site Manager, I have to point out before going any further:

Site Manager does not store your session passwords in an encrypted format! The developer seems to be convinced that you just shouldn’t leave your PC open, and if you’re hacked then.. oh well.

That being said, here’s how you can sync your Site Manager information between your devices. Read More »

26Aug
longview_mysql_stats

How To Enable Longview Metrics for MySQL in Linode Servers

Linode is a very popular Virtual Private Servers (VPS) provider, that offer simplified interfaces to create and manage your servers. This post discusses one of their features: Longview, and how you can utilize it if you’re running MySQL Databases on your VPS.

Longview allows you to collect many metrics on your server in good details. It is also a free service that you get with your subscription – although you can upgrade it for unlimited data retention and more granular metric data. Using Longview, you can monitor stuff like CPU, Memory, Network Utilization and other resources. What we want to do is utilize it to display metrics of our MySQL Database.

The added value of this is that using Longview, you will be able to Read More »

Written with love ♥