Category Archives: CentOS

How to resize the KVM Virtual Machine Disk

In this post I’ll show you the steps for resizing the virtual disk without creating a copy or clone of it. Before starting this procedure, I would suggest you backing up any important data on the virtual machine.

Login to the KVM Machine and verify the current hard drive size:

1

Read more of this post

Advertisements

Converting a VMware Workstation virtual machine to KVM

In this tutorial, I’ll show you the step by step procedure to convert the vmware machine into kvm, during this conversation, I have faced some issues, which I’ll also share with you along with solution.

Before converting the vmware machine,I strongly recommend removing the vmware tools and any existing snapshots of the virtual machine.Then, on the windows machine, convert this multi-file image into a single image:

cd "C:\Program Files (x86)\VMware\VMware Workstation"
vmware-vdiskmanager.exe -r "D:\VMWare\winxplite\XP-Lite.vmdk" -t 0 "D:\VMWare\winxplite\winxp.vmdk"

1

Note: Please change the path of vmdk file according to your requirement.

Read more of this post

How to verify the modulus of the CSR,Private Key and Certificate

To verify that a private key matches its certificate we need to compare their modulus.

First move to the directory,where you placed your SSL certificate.

ls

1

Read more of this post

Increase the root filesystem in Linux inside VMWare Workstation/VSphere without LVM

In this tutorial, I’ll explain the step by step procedure to resize the Linux root partition without losing the date. This will be really handy if you are not using LVM and you came to know that your existing root partition is run out of space.

WARNING: It’s really dangerous, so backup your data before attempting this. Please don’t blame me, if you destroy your system. You are responsible for your own actions!

Prerequisites to Start this Tutorial:

You will need to download the GParted live CD ISO file for the later use in this tutorial, so you can get this here.

Let’s start the tutorial by verifying the current root filesystem size:

df -h

1Create any file, just for verification, that we didn’t lose the data during the root partition increase process.

Read more of this post

Part-4: Restore disk from Clonezilla Auto Restore CD/DVD

Please read the Part-1,2 and 3 before starting this tutorial, in order to get the better understanding.

1) At first, Clonezilla auto restore CD/DVD comes up with this screen just press ENTER:

1

Read more of this post

Part-3: Restore an image of a Hard drive using Clonezilla

In this tutorial, we’ll check that how to restore an image of a hard drive using the Clonezilla, that we have created in the Part-1 and stored it on the SSH Server.

Note: One of Clonezilla’s “Limitations” is that the destination disk must be the same size or larger than the source disk that we have been cloned, so make sure that the destination disk must be the same size or larger.

To restore an image of a hard drive, boot the system from the Clonezilla Live CD and follow the exact same procedure from step 1 to until step 15, that we have performed in Part-1.

1) On step 16, select the “restoredisk” option and press ENTER:

1

Read more of this post

Part-2: Creation of autorun recovery Clonezilla live CD/DVD from image

In the first part, we have created the Clonezilla image and store it on SSH Server. In this part, we’ll create the autorun recovery Clonezilla live DVD from that image.

Note: You need to go through the same process again from step 1 to until step 15, that we have performed in Part-1.

1) Select  the “recovery-iso-zip” and press ENTER:

1

Read more of this post

Part-1: Creation of Hard drive image using Clonezilla

clonezilla

Scenario:

The scenario is really simple, in which  I want to backup my Ubuntu server using the “CloneZilla Live” and also want to store it on another server which has an ip address of 192.168.179.141. If you want to learn more about CloneZilla, please visit this link.

Let’s start the tutorial by inserting the CloneZilla Live CD into the server that you want to backup and boot from it.

1) At first, CloneZilla Live comes up with this screen just press ENTER:

1

Read more of this post

How to reduce the root partition in LVM

In this tutorial, I am using the CentOS6(I believe that its also applicable on other Linux distro but didn’t try yet) that has ext4 partition lv_root mounted as / and lv_swap as swap from the volume group vg_centos6 (which is default), that has two hard drives (66GB & 25GB). Due to some reasons, I want to remove the 25GB hard drive from my computer and want to add new 50 GB hard drive. Before, removing the hard drive from the computer, we need to resize the lv_root, then remove it from volume group and at the end from the physical volume.

WARNING: It’s really dangerous, so backup your data before attempting this. Please don’t blame me, if you destory your system. You are responsible for your own actions!

Check the size of  lv_root before starting this process:

df -h

0 Read more of this post

How to extend the root partition in LVM

In this tutorial, I am using the CentOS6(but also applicable on other Linux distro) that has ext4 partition lv_root mounted as / and lv_swap as swap from the volume group vg_centos6 (which is default), we pretend that we are running out of space in lv_root(/) and volume group (vg_centos6) doesn’t have any free space. We added a brand new drive with 20 GB space. Now, we need to assign this 20 GB space to volume group and then extend lv_root(/).

WARNING: Backup your data before attempting this.

First, we’ll check the file system disk space usage and logical volume information:

sudo df -h
sudo lvs

1

Read more of this post

%d bloggers like this: