Monday, July 21, 2014

Compile Libvirt for xen (libxl toolstack)

Hi all,

Libvirt is the tools which is used for interacting with hypervisor like XEN, KVM. By using the libvirt, we can pass our configuration in the form of XML format.

And this will be very useful when you are interacting the hypervisor with Web services.

Libvirt is the redhat product and it is giving support for XEN hypervisor also.

Then, How i can compile libvirt for xen.?

 ./configure with --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --with-xen=yes --with-libvirt=yes

make 

make install 

and its finished.

If you want to check the libvirt in your system; it have the tool as "virsh".

In your command prompt; type virsh -c xen:///

then it will enter into the special terminal. then type: version

virsh # version
Compiled against library: libvirt 1.2.0
Using library: libvirt 1.2.0
Using API: Xen 1.2.0
Running hypervisor: Xen 4.4.0

You will get like this. It means it successfully installed and also able to communicate with your hypervisor also. In my case, hte hypervisor is XEN. And, finally you did it.

Enjoy and Be CooL... :)


regards,
cooldharma06.. :)


Sunday, July 20, 2014

Convert ogv to mkv using ffmpeg

Hi all,

Most of the peoples know about these things just for reminding i am writing this blog. If you are taking video of your Desktop using recordmydesktop ( Screencasting tool) then the output will comes in out.ogv format. If you want to change that one to mkv means kindly follow the following command.

In case if you haven't installed ffmpeg means kindly install from your repository.

ffmpeg -i sample.ogv -vcodec libx264 -vpre medium -crf 24 -threads 0 -acodec copy sample.mkv

Enjoy.. and Be cool..:)