Install virtual machines in one line

To install a VM from command line, you can use the following command. Change the required parameters as need but you need to change at-least CDROM iso image and disk-path.

virt-install \
    -n myVM \
    --description "Test VM" \
    --os-type=Linux \
        --os-variant=centos7 \
        --ram=2048 \
        --vcpus=2 \
        --disk path=./myVM.img,bus=virtio,size=10 \
        --graphics none \
        --cdrom  <Image installtion CDROM>.iso \
        --net user

sysreporter on Fedora – basic system report in email

From the packages github page:



SysReporter (System Reporter) is a bash script that runs and aggregates a set of reports about its host system. The report can then be emailed to the system administrator on a daily, hourly, minutely basis.

and from dnf info

Name        : sysreporter
Arch        : noarch
Epoch       : 0
Version     : 3.0.4
Release     : 1.fc24
Size        : 17 k
Repo        : @System
From repo   : updates
Summary     : Basic system reporter with emailing
URL         :
License     : MIT
Description : Basic system reporter with emailing

To install the package:

dnf install sysreporter


and to run :

sysreport run email
# OR
sysreport run stdout


Get your local IP address like pro

In shell scripts if you need to get you local IP address corresponding to your hostname then you can use this command

hostname -i