@saoussen5765 @hydn @ivansalloum @Don11 there have many questions asked about the virtual machine setup and how to do that. I was configuring a new virtual machine on the system that i am working for the installation of the vagrant and setting up the corresponding, so i wrote this down quickly so that it will help all.
# Installing the packages required for the setting up of the disk to the VM
$ sudo apt-get install lvm
$ sudo apt-get install lvm
# Formatting the disk and enabling it for the attachment
$ sudo fdisk /dev/sda
# After formatting the disk partition information can be retrieved by
$ sudo partprobe
### creating a physical drive
$ sudo pvcreate /dev/vdb
$ sudo pvcreate /dev/vdb
$ sudo pvs or pvsdisplay # checking the creating physical drive
### creating a volume group
$ sudo vgcreate storage /dev/vdb /dev/vdc
### creating a lvm
$ sudo lvcreate -n storage_lvm -l 100%FREE dba_storage #(-l defines the size of the volume to be created, you can define 10G to create a VM of 10G)
$ sudo lvcreate -n storage2_lvm --size 10G #(creating an lvm with a specific size)
$ sudo lvs or lvsdisplay # checking the created lvm
### formatting the file system: formatting using the ext3 or the xfs
mkfs.ext3 /dev/storage/dev/storage_lvm
mkfs.xfs /dev/storage/dev/storage_lvm
### creating a group
$ sudo groupadd system_users
#### adding a user to the group
$ sudo usermod -a -G system_users user
#### formatting and binding the partition to the mount point
$ lsblk --fs dba_storage
create a mount point
mkdir --parents mount-point
#creating an user in the linux environment after the disk installation and mounting
$ sudo useradd gaurav # adding a user without the home directory
$ sudo useradd -m gaurav # adding a user with the home directory
$ sudo passwd gaurav # assigning a password to the user
$ sudo useradd -m gaurav -p passwd # passing all the arguments in one line
$ sudo usermod -L gaurav # locking the user
$ sudo groupadd group # adding a group to the created lvm
$ sudo usermod -a -G gaurav group # adding gaurav t
alles super,
Gaurav