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:

https://bugzilla.redhat.com/show_bug.cgi?id=1438874
https://bugzilla.redhat.com/show_bug.cgi?id=1438880

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 setuphttp.sh /opt

COPY ports.conf /tmp

RUN chmod 755 /opt/setuphttp.sh

CMD ["/opt/setuphttp.sh"]

4) Create the file ports.conf containing this

$ vi ports.conf

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

#!/bin/bash

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/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2
export APACHE_LOCK_DIR=/var/lock/apache2
mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR
mkdir -p /run/httpd
chmod 777 /run/httpd
rm -f /var/run/apache2/apache2.pid
/usr/sbin/apache2ctl -D FOREGROUND

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

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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca8703ec8049 web “/opt/setuphttp.sh” 3 months ago Up 5 days 0.0.0.0:8080->8080/tcp

web

November 29, 2016

Bought Raspberry Pi3!!!

Posted in Raspberry 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!
unbox

hand

update

November 23, 2016

Redhat: How can I check virtualization prerequisites?

Posted in Linux at 11:45 am by alessiodini


Playing with virt commands, I found virt-host-validate .

It is very useful! If I run it from a virtual machine without nested virtualization enabled, I will have:

# virt-host-validate
QEMU: Checking for hardware virtualization : FAIL (Only emulated CPUs are available, performance will be significantly limited)
QEMU: Checking if device /dev/vhost-net exists : PASS
QEMU: Checking if device /dev/net/tun exists : PASS
QEMU: Checking for cgroup ‘memory’ controller support : PASS
QEMU: Checking for cgroup ‘memory’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpu’ controller support : PASS
QEMU: Checking for cgroup ‘cpu’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpuacct’ controller support : PASS
QEMU: Checking for cgroup ‘cpuacct’ controller mount-point : PASS
QEMU: Checking for cgroup ‘cpuset’ controller support : PASS
QEMU: Checking for cgroup ‘cpuset’ controller mount-point : PASS
QEMU: Checking for cgroup ‘devices’ controller support : PASS
QEMU: Checking for cgroup ‘devices’ controller mount-point : PASS
QEMU: Checking for cgroup ‘blkio’ controller support : PASS
QEMU: Checking for cgroup ‘blkio’ controller mount-point : PASS
QEMU: Checking for device assignment IOMMU support : WARN (Unknown if this platform has IOMMU support)
LXC: Checking for Linux >= 2.6.26 : PASS
LXC: Checking for namespace ipc : PASS
LXC: Checking for namespace mnt : PASS
LXC: Checking for namespace pid : PASS
LXC: Checking for namespace uts : PASS
LXC: Checking for namespace net : PASS
LXC: Checking for namespace user : PASS
LXC: Checking for cgroup ‘memory’ controller support : PASS
LXC: Checking for cgroup ‘memory’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpu’ controller support : PASS
LXC: Checking for cgroup ‘cpu’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpuacct’ controller support : PASS
LXC: Checking for cgroup ‘cpuacct’ controller mount-point : PASS
LXC: Checking for cgroup ‘cpuset’ controller support : PASS
LXC: Checking for cgroup ‘cpuset’ controller mount-point : PASS
LXC: Checking for cgroup ‘devices’ controller support : PASS
LXC: Checking for cgroup ‘devices’ controller mount-point : PASS
LXC: Checking for cgroup ‘blkio’ controller support : PASS
LXC: Checking for cgroup ‘blkio’ controller mount-point : PASS

November 16, 2016

Opensource day 2016!!

Posted in Linux tagged , at 1:33 pm by alessiodini


Yesterday I have been with colleagues at OpenSource Day in Rome!
It was first time for me and I was so funny following Redhat Speech, Labs and much more.
I also saw old and ex colleagues.
I took some picture:

Rome, Palazzo dei congressi

Me

Colleagues

November 9, 2016

RHEV 4.0 suspicious bug

Posted in Redhat Enterprise Virtualization at 10:36 am by alessiodini


During v2v I faced a supermin5 issue. Digging with libguestfs-test-tool I got this error:

supermin: failed to find a suitable kernel (host_cpu=x86_64).

I opened a bugzilla for RHEV 4.0.vhoping to help someone other that is doing the same tasks!
Let’s see how this will going on 🙂

November 7, 2016

Redhat Cloudforms and Redhat Enterprise Virtualization

Posted in Redhat Enterprise Virtualization at 2:44 pm by alessiodini


Today I’m so funny !!
I installed with colleagues Redhat Enterprise Virtualization 4.0 and Redhat Cloudforms 4.1 letting them speak with each other, wow 😀
I’m feeling like a kid 🙂

This is a basic screenshot from RHEV side.

Next page