Archive for the 'Tech' Category

Office 2010 in the cloud for free

Monday, May 10th, 2010

It seems that Microsoft will release an online version of its upcoming Office 2010 Suite. From what I gather thus far it will be a chopped version that will have running ads. This seems to be their way to compete with free alternatives such as google docs.

Here is an interesting read about their upcoming online web app. Seems that theyre targeting home users more than business or professional users. Frankly Id love to see an online office suite that actually works like their desktop counterparts. Oh, and I’d like full compatibility between versions and formats.

http://seattletimes.nwsource.com/html/businesstechnology/2011818423_microsoftoffice09.html

RHEV - updated

Saturday, March 6th, 2010

We’ve been working hard to put together a demo center for RedHat products in particular RHEV which is a like a breath of fresh air in the virtualization arena. That is not to say the others dont have good products its just that they’re not RedHat and for anyone who has worked on RedHat products knows that there is a difference between RedHat and the rest. This difference is felt from one end of the ecosystem to the other. From the business model to the system architecture if you will.

Were close to going live. We hope at most one month of work and will have the full line of RHEV products ready for demoing. If youre interested make sure you drop me a line (marius pana spanning ro) and Ill get back to you with more information and / or a date for when you can see the software in action.

RHEV as beautiful as it may be is only a small part of the portfolio of software available from RedHat. These past few weeks have been a real beauty as we are now even more aware of the completeness of RedHat’s product portfolio and just how far they’ve come. There is software and services to cover most business needs and where there may be a missing piece there is interoperability like no other.

I hope that you will take the time to come by and visit us once we are live as there will be very interesting and very practical things to see.

RHEV - import vmware image into RHEV

Saturday, January 2nd, 2010

Since a lot of our work lately has been based on working with RHEV and NagiosXI I wrote a small howto for converting and importing a vmware vmdk image into RHEV. The procedure details how to import into RedHats RHEV virtualization product but the converted image can be used across any KVM enabled server.

Since RHEV at its present version does not include import tools the above procedure is useful for those that need to migrate from one solution to another.

————

For those using Red Hat Enterprise Virtualization here is what I hope to be an understandable procedure for migrating your vms. The idea is to create a new vm in RHEV with a preallocated hard disk the same size or larger than the one to be imported. From here we just need to identify where the vm’s disk are located in the rhev datacenter hierarchy and copy over our converted vm.

First you must convert your nagiosXI image to qcow2 in order for RHEV to import it. This is accomplished by issuing the following command:

Code:
# qemu-img convert -O qcow2 nagiosxi-kvm.img

On the RHEV manager

1. Create a new virtual machine from the RHEV manager interface.

1.a. Select RHEL 5.x as the operating system.

2. Configure network interfaces and hard disks

Note: The RHEV Guide Me wizard will pop-up after creating the vm.

2.a. Select Configure Network Interfaces and select the network and type. When selecting the netowrk type (drivers) you can use any of the provided drivers including RedHat VirtIO (recommended) as they are included in NagiosxI.

2.b. Select Configure Virtual Disks and make sure you configure your new disk to be exactly the same size or larger than the size of the NagiosXI virtual disk. In our test environment we created a 20 GB disk. Make sure that you keep the type (driver) to IDE and select preallocated disk!

Note: The hard disk must be at least the same size as the one to be imported and preallocates.

3. Identify your newly created vm and associated disk(s) in RHEVM datacenter.

NOTE: I am assuming you only have one DataCenter. If you have more than one you need to identify the ID of the datacenter that you wish to migrate into.

3.a. Using the RHEV Manager Scripting Library display your vm’s id:

Code:
PS C:\> $vm=select-vm(”Name=“)
PS C:\> $vm

VmId : 1c657f20-1d64-4bff-9084-93530962040f
Name : w2k30-02
Description :
HostClusterId : 1
TemplateId : 2108f097-8993-4edf-b423-a81344aef747

From the above note the VmID.

3.b. Using the RHEV Manager Scripting Library display your vm’s disk id(s):

Code:
PS C:\> $vm.getdiskimages()

CreationDate : 12/25/2009 7:56:57 PM
LastModified : 12/25/2009 7:56:57 PM
ActualSizeInSectors : 1048576
ActualSizeInMB : 512
ActualSizeInGB : 0
Description : VDC_w2k30-02_12/25/2009 5:54:46 PM
SnapshotId : 46e8f0df-b41f-42c5-82fe-ad808f22ef52
VmSnapshotId : a6e9fad2-e5f6-4343-be5f-5fb79d275654
SizeInGB : 10

From the above command note the SnapshotID

The following is to be executed on one of your RHEV hosts (physical servers).

3.c. Navigate to your vm’s directory on one of your RHEV hosts.

Now to find out where the datacenter is mounted run the mount command and note the output. Look for rhev in the output.

Code:
# mount

….
192.168.0.162:/srv/iso on /rhev/data-center/mnt/192.168.0.162:_srv_iso type nfs (rw,soft,timeo=10,retrans=6,addr=192.168.0.162)
/dev/mapper/8233a333–d7cb–4b1d–9639–143b9ad68f98-master on /rhev/data-center/mnt/blockSD/8233a333-d7cb-4b1d-9639-143b9ad68f98/master type ext2 (rw)
….

In our particular case it is the second entry that contains our datacenter. Your output will differ based on the technology used (NFS,FCP,iSCSI)..

3.d. Change to the vms directory.

Code:
# cd /rhev/data-center/mnt/blockSD/8233a333-d7cb-4b1d-9639-143b9ad68f98/master/vms

3.e. Enter your vm’s directory. This is the VmID noted in step 3.a.

# cd

In this directory you will find the configuration file for your vm (VmID.ovf) and symbolic link to your disks. List the contents of the symbolic link and look for the SnapshotID you noted earlier. This is your disk.

4. Copy your nagiosxi-kvm.img image over to this server (scp,etc.) and dd it over the disk we just identified.

Code:
# dd if=/path/to/nagiosxi-kvm.img of=/rhev/data-center/…./disk-id

That’s it. Now you should have functional NagiosXI vm ready to use from within RHEV.

If things are not clear please let me know and Ill try to clear them up :)

Good luck.

———
I used the following link to convert from vmdk to qcow2. [LINK]
The following link is the howto located in the nagiosxi support forums. [LINK]

From Turbines and Straw, Danish Self-Sufficiency

Sunday, October 11th, 2009

Here is an interesting story some of you might have picked up on slashdot or the New York Times but I thought it was worth mentioning again here.

With a population of just 4000 people, Samso is definetely on the right track. Why is there no such interest in our local neck of the woods?

Government anyone?