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 nfs.ads.local
2) on nfs.ads.local:
# 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, CN=rhevh3.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=172.16.16.106
(...)

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

The password is pippo, have fun!

Advertisements

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!
😀

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.

September 6, 2016

ESX 5.5 and Ovirt 4.0.3 v2v

Posted in Redhat Enterprise Virtualization at 8:45 pm by alessiodini


In these days I’m working for a customer moving via v2v ESX guests to Ovirt infrastructure.
I installed and configured the Ovirt 4.0.3 release which is one week old!
I already opened a couple of bugzilla and I think they will be three soon.. I want first to repeat some test watching how to deal with a particular issue. I can’t browse ESX machine from Ovirt dashboard, the VDSM is unable to get some vmdk size and browsing does not work. Actually I’m only migrating guests with virt-v2v command, it’s pretty good!!!

I’m also playing a bit with virsh command, connecting via vpx to Vcenter and via esx directly to ESX physical host. Following an example:

Welcome to virsh, the virtualization interactive terminal.

Type: ‘help’ for help with commands
‘quit’ to quit

virsh # list
Id Name State
—————————————————-
29205 xyz running
31760 AdsAnalyzer running
32412 DB_GRA running
33647 WebSite running
34915 Debian_8 running
34918 Ospita running
34928 OpenSuse running
34930 vm04 running
34935 vm01 running

I’m so funny!! 😀

July 27, 2016

xsos: Great Redhat utility !!

Posted in Redhat Enterprise Virtualization at 9:45 am by alessiodini


In these days I’m studying Openshift resource quotas based on millicores units.
Digging the CPU info on my systems I came across a great tool called xsos. It’s FANTASTIC!!!
With this tool you can get in short time any info about cpu,memory,network, and much much more!!
Here you can see some example about it. Have fun!!