Posts

Showing posts with the label Linux

How to autostart openstack instance or VM

Image
Configuring Instances to Start Automatically in OpenStack Open the nova.conf file & find resume_guests_state_on_host_boot property    vi /etc/nova/nova.conf # resume_guests_state_on_host_boot=false # Set the value of the property to true: resume_guests_state_on_host_boot=true systemctl restart openstack-nova-compute Method 2: You can Set the 'autostart' flag so the vm/domain is started upon boot. You can use virsh command just type virsh on terminal & get help for all available option To list all available domain     virsh   To Domain list.     virsh domstats virsh net-list Here is no auto restart VM found Set  'autostart' flag virsh autostart instance-00000001 For autostart you need to use available KVM functionality.

Steps to Convert MBR to GPT Ubuntu / Debian with Images

Image
Step by Step conversion of MBR partition table to GPT & Install Grub-efi Steps to convert MBR to GPT partition table with UEFI grub. OS & Release :     lsb_release check to see if /sys/firmware/efi exists. [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS Check Disk & Partition     fdisk  -l Here  20GB Disk, 18.3GB / partition & 1.5 GB swap , There are no space left on drive. EFI required approx 200M space with FAT16/32 file system. So we have to reduce old partition Check & change your bios setting ( legacy to uefi ) Step 1: Boot your system using live Ubuntu 16.4 . Create Live Ubuntu 16.4 Bootable pendrive OR  Boot Your system using bootable dvd/cd Step 2: After boot check to see if /sys/firmware/efi exists. [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS Check disk Partition gdisk -l /dev/sda Step 3: Resize partition - Open gparted gparted Select Ubuntu installed disk for resize ( my disk ...

step by step upgrade php5.4 to php5.6

Image
How to Upgrade PHP version 5.4 to 5.6 on CentOS/RHEL  Step 1: Install the Centos SCL repository    yum install centos-release-scl Step 2: List PHP5.6 Package     yum list rh-php56\* Install 5.6 yum install rh-php56-php-devel yum install rh-php56-php rh-php56-php-devel rh-php56-php-mbstring rh-php56-php-gd rh-php56-php-fpm rh-php56-php-mysqlnd libxml2-devel PHP 5.6 File Structure : Configuration File (php.ini) Path            /opt/rh/rh-php56/root/etc Loaded Configuration File                        /opt/rh/rh-php56/root/etc/php.ini Scan this dir for additional .ini files       /opt/rh/rh-php56/root/etc/php.d command path                          /opt/rh/rh-php56/root/bin/...

Upgrade php5.4 to php5.6

Image
How to Upgrade PHP version 5.4 to 5.6 on CentOS/RHEL  Step 1: Install the Centos SCL repository    yum install centos-release-scl Step 2: List PHP5.6 Package     yum list rh-php56\* Install 5.6 yum install rh-php56-php-devel yum install rh-php56-php rh-php56-php-devel rh-php56-php-mbstring rh-php56-php-gd rh-php56-php-fpm rh-php56-php-mysqlnd libxml2-devel PHP 5.6 File Structure : Configuration File (php.ini) Path            /opt/rh/rh-php56/root/etc Loaded Configuration File                        /opt/rh/rh-php56/root/etc/php.ini Scan this dir for additional .ini files       /opt/rh/rh-php56/root/etc/php.d command path                          /opt/rh/rh-php56/root/bin/...

step by step Clonezilla LIVE Boot Using ISO

Image
Clonezilla LIVE Boot Using ISO - CentOS 7 Step 1: Download Ubuntu From "http://clonezilla.org/downloads.php"    http://iij.dl.osdn.jp/clonezilla/67927/clonezilla-live-20170626-zesty-amd64.iso Download: ubuntu 16.4    mkdir /live       cd /live        wget http://iij.dl.osdn.jp/clonezilla/67927/clonezilla-live-20170626-zesty-amd64.iso    mv clonezilla-live-20170626-zesty-amd64.iso /boot/clonezilla.iso Step 2: Add Menuentry on grub.cfg Loopback Explantion : The loopback line must reflect the actual location of the ISO file. In the example, the ISO file is stored in the / directory X is the drive number, starting with 0; Y is the partition number, starting with 1 menuentry 'clonezilla' { set isofile="/live/clonezilla.iso" loopback loop (hd0,2)$isofile      linux (loop)/live/vmlinuz boot=live config nolocales edd=on nomodeset noprompt ocs_live_extra_param="" keyboard-...

Clonezilla LIVE Boot Using ISO

Image
Clonezilla LIVE Boot Using ISO - CentOS 7 Step 1: Download Ubuntu From "http://clonezilla.org/downloads.php"    http://iij.dl.osdn.jp/clonezilla/67927/clonezilla-live-20170626-zesty-amd64.iso Download: ubuntu 16.4    mkdir /live       cd /live        wget http://iij.dl.osdn.jp/clonezilla/67927/clonezilla-live-20170626-zesty-amd64.iso    mv clonezilla-live-20170626-zesty-amd64.iso /boot/clonezilla.iso Step 2: Add Menuentry on grub.cfg Loopback Explantion : The loopback line must reflect the actual location of the ISO file. In the example, the ISO file is stored in the / directory X is the drive number, starting with 0; Y is the partition number, starting with 1 menuentry 'clonezilla' { set isofile="/live/clonezilla.iso" loopback loop (hd0,2)$isofile      linux (loop)/live/vmlinuz boot=live config nolocales edd=on nomodeset noprompt ocs_live_extra_param="" keyboard-...