[ovirt] Find out hosts and clusters where vm is running. its status, ids, storage domain details in an ovirt dc with python/ovirt-sdk [part 3]

This program can be used to fetch information about : VMs Clusters Hosts Storage domains Data center.. in an ovirt dc. You will have “component” name, id, state along with other information. The program can be downloaded from github How-ever here it is without proper indentation. let me know your feedback.

Ovirt : How to shutdown/stop or start virtual machines (VMs) in ovirt DC automatically using python/ovirt- sdk ? [Part 1]

Recently I got a request to provide a python program to shutdown all the vms in ovirt DC using python-sdk and also to start Vms in the DC. Below program is submitted as a quick solution.. Sharing it here hoping it will help you. To shutdown all the VMs in an Ovirt (www.ovirt.org) Data Center, …

Read more

OSv ( Best OS for Cloud Workloads ) have a release announcement from Cloudius Systems!!

When ‘Dor Laor’ & ‘Avi Kivity’ stepped out of Red Hat, I was thinking, what is next ? 🙂 and it stands now on OSv with this mailing thread.. http://www.mail-archive.com/kvm@vger.kernel.org/msg95768.html It claims “OSv, probably the best OS for cloud workloads! and OSv is designed from the ground up to execute a single application on top …

Read more

Ovirt 3.3 released .. release notes, features.. etc

Ovirt announced its version 3.3 release today with lots of new features and updates.. !! OVirt is a KVM management application for datacenter management. It is the leading open source alternative to VMware vSphere. You can use oVirt to manage hundreds of KVM hypervisor nodes, running thousands of VMs. You can read its release announcement …

Read more

yacc program to implement arithmetic operators

    Lex program %{ #include<stdio.h> #include<stdlib.h> %} %% [0-9]+    {yylval=atoi(yytext);return (NUM);} “+”|”-“|”*”|”/”|”\n”    {return yytext[0];} %% Yacc program %{ #include<stdio.h> #include<ctype.h> int i=0; %} %token NUM %left ‘+”-‘ %left ‘*”/’ %% S:E ‘\n’    {printf(“result =%d”,(int)$$);} ; E:E’+’E    {$$=$1+$3;} |E’-‘E    {$$=$1-$3;} |E’*’E    {$$=$1*$3;} |E’/’E    {$$=$1/$3;} |NUM    {$$=$1;} ; %% #include “lex.yy.c” main() { yyparse(); } int …

Read more

yacc program to implement logical operators

Lex program %{ #include<stdio.h> #include<stdlib.h> %} %% (0|1)+    {yylval=atoi(yytext);return (NUM);} “&”|”|”|”!”|”x”|”\n”    {return yytext[0];} %% yacc program %{ #include<stdio.h> #include<ctype.h> int i=0; %} %token NUM %left ‘&”|”x’ %right ‘!’ %% S:E ‘\n’    {printf(“result =%d”,(int)$$);} ; E:E’&’E    {$$=$1&$3;} |E’|’E    {$$=$1|$3;} |’!’E    {$$=!$2;} |E’x’E    {$$=($1&(!$3))|((!$1)&$3);} |NUM    {$$=$1;} ; %% #include “lex.yy.c” main() { yyparse(); } int yywrap() {} …

Read more

N-Port ID Virtualization or NPIV in virtualization environment ( libvirt, kvm space) Or Assign a lun directly to a VM/guest

I was thinking to write about NPIV long time back and I denied myself till now. Maybe because, it was almost incomplete from libvirt layer. How-ever I can’t do that more, especially after receiving lots of emails on this subject, so here it is: To write about NPIV, I should share some idea about the …

Read more

lex program to eliminate single and multiline comments

%{ #include ;; %} %% “//”([a-z]|[0-9]|[A-Z]|” “)* {} “/*”([a-z]|[0-9]|[A-Z]|” “\””\n”)+”*/” {} %% main() { yylex(); return 0; } int yywrap() { } Sample output single line comment //testing single line comment test line /*multi*/ test line

Categories Lex