September 4, 2017

Changing Company!

Posted in News at 1:05 pm by alessiodini

Today I resigned from my company, Assembly Data System.
Starting from 16 November I will begin to work for Sinergy and I hope to learn everything possible about storage, mixing for any project: operating systems, cloud and also storage knowledge!
At same time I’m studying for taking the next Redhat exam, I’m still planning to get RHCA level.
Let’s study more harder!! 😀


August 22, 2017

Ansible and Vmware ESX

Posted in Ansible at 8:29 am by alessiodini

In these days I’m writing a couple of playbooks using vmware_guest module.
The goal is to deliver new virtual machines and to customize them.

I faced a strange issue during my tests:

[root@ansible ~]# ansible-playbook delivery.yaml
[WARNING]: provided hosts list is empty, only localhost is available

PLAY [devops rhel creation] ************************************************************************************************************************************

TASK [rhel cloning] ******************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Network ‘1000 – – TEST (dvSwitch-Production)’ does not exists”}
to retry, use: –limit @/root/first.retry

PLAY RECAP *****************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1

I was surprised because I got that name browsing Vmware with my Vsphere Client.
I tried again and again changing the playbook code, but finally I was able to discover the real issue.
Vmware uses special characters!!
I found this detail trying to manually add a new network interface from Vsphere Client:

Here it is the network name as I passed to playbook:

Finally the solution!

I spoke about this with my colleagues and they said me Vmware also use special characters for his internal database.

June 1, 2017

Redhat Satellite 6.2.9

Posted in Redhat Satellite at 8:10 am by alessiodini

From the last week I’m working for a new customer. Actually I mainly work on Redhat Satellite 6.2, Redhat Cluster and I hope to also work with more and more things!
I have the opportunity to work in an english speaking environment, I finally can improve my poor english!!!
Soon I will share some satellite note and procedure 😀

May 9, 2017

RHEV: How to connect to guest’s console without administration portal

Posted in Redhat Enterprise Virtualization at 11:26 am by alessiodini

Today I’m playing a bit with RHEV, and I was curious about how to connect to guests console without using web portal.
Looking on the web I found this link and it’s useful but at same time not that clear.

So, following the ticket method I was able to use the console without rhevm:

1) You need a system where u can use X. In my case I have a vm called
2) on
# scp root@hypervisor:/etc/pki/vdsm/libvirt-spice/ca-cert.pem /root/ca-cert.pem
# yum install -y virt-viewer

3) on the hypervisor where the vm is running:
# vdsClient -s 0 list table | awk '{ print $1,$3 }'
b0718db7-308c-4631-8a34-dee367c984cf centos2
11329426-2b7e-4b02-a1de-534a745d7df5 centos1

# openssl x509 -in /etc/pki/vdsm/libvirt-spice/server-cert.pem -noout -text | grep Subject:
Subject: O=ads.local,

# vdsClient -s 0 setVmTicket UUID PASSWORD VALIDITY
# vdsClient -s 0 setVmTicket b0718db7-308c-4631-8a34-dee367c984cf pippo 3600

4) Verify under RHEV which logical network is configured as “display”
5) Check on the hypervisor the port to connect with:

# ps -ef | grep centos2 ( look for tls-port argument )
-spice tls-port=5901,addr=

From I run:
# remote-viewer --spice-ca-file=ca-cert.pem spice:// --spice-host-subject="O=ads.local," <– these fields are from the step 3!

The password is pippo, have fun!

April 21, 2017

How to use nested virtualization under Vmware ESX 5.5

Posted in VMware at 9:59 am by alessiodini

Do you wanna play using RHEV inside ESX?
You have to verify a couple of things:

1) To enable promiscous mode ( promiscous mode is explained here )
2) To enable nested virtualization. In my case selecting option “Use Intel VT-X/AMD-V” was not enough.
I had to manually edit the vmx file adding a couple of options. You have to:

– stop the vms
– go to “Datastore and Datastore Clusters” section
– browse the datastore where you have your vms files.
– download the .vmx file
– append the options: vhv.enable = “TRUE” and vmx.allowNested = “TRUE”
– upload the .vmx file overwriting the old one
– start the vm
– connect to vm and check for /proc/cpuinfo lines

In my case I’m playing with RHEV under ESX, and after this procedure, when I ran hosted-engine –deploy I can see:

[ INFO ] Hardware supports virtualization

Nice! 😀

April 19, 2017

Got Certified!!!

Posted in Linux at 9:06 am by alessiodini

I passed the exam Redhat EX318!
Now I’m certified on RHEV as “RHCVA” – Redhat Certified Virtualization Administrator.
I have to thank a couple of friends: Giovanni Mancuso and Davide Giannlivigni, they helped me studying for the exam ( I did not take the course )

Thank you both!!!

April 5, 2017

RHOSP 10 Composable Roles

Posted in OpenStack at 10:06 am by alessiodini

I read about Redhat OpenStack 10 composable roles.
What I’m speaking about? The option to configure a single baremetal server with multiple roles, for example it can be both compute and controller at same time!!
This is fantastic and I can’t wait for play with those roles!

April 4, 2017

RHEV and RHOSP Integration

Posted in Redhat Enterprise Virtualization at 4:09 pm by alessiodini

I’m working about RHEV 4.0.7 and Redhat Openstack 10 Integration.
My goals are:

1) To use external network from neutron connecting vms running on RHEV.
2) To apply openstack security groups rules to RHEV vms.

Actually it’s quite hard to reach each goal because I’m facing a lot of bugs.
Today I opened a couple of bugzilla:

but there are more active bugs fixed in 4.1 or 4.2 release.
I was able to partially integrate RHV and RHOSP using RHEV 4.0.7 – RHOSP 7 and 8 but I faced more bugs and I’m trying to use the RHOSP 10 version.

When I will reach my goals I will share any detail about this task!

March 21, 2017

Raspberry Pi 3: how to create http fileserver inside a Docker container

Posted in Raspberry at 9:08 pm by alessiodini

After a long time where I was incredible busy, I have a time to write a new post 🙂

On December I bought Raspberry Pi 3, and I’m still playing with it using some software I’m writing and docker containers.
One of my first goals was to create a public http fileserver where I could put iso files, job notes, scripts, and much more.
For this purpose I made one dedicated container, called “web”.
Following these instructions you can easily replicate my job having a web container running on port 8080:

1) Create a working directory called “http”.

$ mkdir http
$ cd http

2) Create all the files needed for the web image and later for the container

$ vi 000-default.conf

( you can get the file here )

3) Create a Dockerfile

$ vi Dockerfile

Put inside the Docker file:

FROM armhf/debian

COPY 000-default.conf /tmp

COPY /opt

COPY ports.conf /tmp

RUN chmod 755 /opt/

CMD ["/opt/"]

4) Create the file ports.conf containing this

$ vi ports.conf

5) Finally the script containing the commands to run inside the container!


apt-get update
apt-get install -y apache2 apache2-utils
echo "password_here" | htpasswd -i -c /etc/apache2/.htpasswd download ( this will be the user for the authentication )
cp -f /tmp/ports.conf /etc/apache2/
cp -f /tmp/000-default.conf /etc/apache2/sites-available/
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_LOG_DIR=/var/log/apache2
export APACHE_PID_FILE=/var/run/
export APACHE_RUN_DIR=/var/run/apache2
export APACHE_LOCK_DIR=/var/lock/apache2
mkdir -p /run/httpd
chmod 777 /run/httpd
rm -f /var/run/apache2/
/usr/sbin/apache2ctl -D FOREGROUND

So, in our directory http we have those files:
– 000-default.conf
– Dockerfile
– ports.conf

now the fun begins!
Let’s build the image called “web”:

$ docker build -t web .

Let’s suppose we have a directory called /http on our physical raspberry ( where we have all files we need to share via web ) we would like to share it to the container. How?

$ sudo docker run -d –privileged=true –name web -p 8080:8080 -v /http:/web web

What did I just run?

docker run -d -> run in background
–name web -> name of the container
-p 8080:8080 -> this is the port forwarding between the docker and the raspberry
-v /http:/web -> this mounts /http from the raspberry as /web inside the container
web -> the name of this container!

How can I check the container status?

$ docker ps -a
ca8703ec8049 web “/opt/” 3 months ago Up 5 days>8080/tcp


November 29, 2016

Bought Raspberry Pi3!!!

Posted in News at 9:22 pm by alessiodini

For the black Friday I had two presents for me:

1x Raspberry Pi3
1x external 2TB Hard Disk

I was so curious to play with Raspberry and after only 2 days I can say:
“Why did I buy it now and not before??” I falled in love for it 😀

It’s AMAZING, I will work about media center, backup server and much much more..

Followin some picture took during first unbox and boot!



Previous page · Next page