How to Create Virtual Hard Disk Drive using Logical Volume

This is an article which is discussing about how to create a Logical Volume which is going to be utilized for the sake of a Guest Machine or a Virtual Server created from an utility such as ‘libvirt’.

Scenario : Having created a Guest Machine based on Ubuntu Linux 16.04 as a baseline template for other Guest Machine which is selected to run with Ubuntu Linux 16.04, below is how to assign those images representing the already installed Guest Machine with Ubuntu Linux 16.04 so that the other new created Guest Machine can be executed and can be directly operated without having to install or to perform the installation step from the beginning. Below are the steps for achieving the scenario :

1. Creating a new Logical Volume which will become the base of the hard disk to be used with the new created Guest Machine. The syntax for creating a Logical Volume is shown as below :

lvcreate -L size -n logical_volume_name logical_volume_group_name

This is the execution of the command in the real situation :

Continue reading “How to Create Virtual Hard Disk Drive using Logical Volume”

Install Gitlab on CentOS 7 via Command Line

Using an already configured and installed guest machine running on a Virtual Machine Manager, in this article there will be some steps described for installing Gitlab.

1. The first step is accessing the guest machine from the host machine as shown below :

user@hostname:~/test-file$ ssh root@xxx.xxx.xxx.xxx
The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established.
ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxx.xxx.xxx.xxx' (ECDSA) to the list of known hosts.
root@xxx.xxx.xxx.xxx's password:
Last login: Fri Dec 16 11:03:36 2016 from gateway
[root@hostname ~]#

2. After successfully connected to the guest machine, install and configure the necessary dependencies for further preparation in order to install gitlab. Below is the steps on the preparation :

sudo yum install curl policycoreutils openssh-server openssh-clients

Below is the command’s execution output :

Continue reading “Install Gitlab on CentOS 7 via Command Line”

Error starting Guest Machine in Virtual Machine Manager because Failed to connect socket to ‘virtlogd-socket’

This article is created to discuss on handling error arises whenever Virtual Machine Manager has already successfully installed. It is actually happened when further editing process of a configuration file has already done to define nested virtualization.

The configuration file is edited in order to aim nested virtualization where in the Guest Machine runs inside Virtual Machine Manager, it will ¬†create another Guest Machine. That is where the ‘nested virtualization’ comes.¬†See the article titled ‘Configure KVM for Nested Virtualization‘.

After configuring Host Machine which is responsible for running Guest Machine using Virtual Machine Manager, there is an error starting instance or Guest Machine in Virtual Machine Manager shown as follows :

Continue reading “Error starting Guest Machine in Virtual Machine Manager because Failed to connect socket to ‘virtlogd-socket’”

Create New Guest Machine in Virtual Machine Manager

In this article, creating a new Guest Machine in Virtual Machine Manager will be described in several steps. Guest Machine is a term which is used to point out to the virtual servers runs.

Those virtual servers or virtual machines which is generally manage by a specific purpose software. It is a software aim to manage virtual servers or virtual machines and for an example one of them is the Virtual Machine Manager.

After successfully installed Virtual Machine Manager which is also known as virt-manager, the management of guest machine or virtual server in detail such as the tasks of creating, deleting, editing, running and stopping the guest machine or virtual server can be easily done in it.

To create a new Guest Machine, below is the step execute :

Continue reading “Create New Guest Machine in Virtual Machine Manager”