Saturday, February 29, 2020

Nested KVM performance evaluation on Linux Manjaro 19.0 Guest on Virthost CentOS 8.1

UPDATE 03/05/2020
   Seems to work only on CentOS 8.1 
   Failure on F31, Manjaro GDM 19.0.1 ( bare metal)
END UPDATE

Performance appraisal has been done via attempt to set up Manjaro 19.0 Guest as KVM virtualization host installing Qemu && Libvirt via native command  `pacman -S`. After creating the Manjaro 19.0 virtual machine, edit its XML profile via `virsh edit`. Shut down VM && replace 'host-model' with 'host-passthrough' && VM restart. Set up KVM-Hypervisor on Manjaro 19 Guest



 $ sudo pacman -S qemu virt-manager virt-viewer \
   dnsmasq vde2 bridge-utils openbsd-netcat  
 $ sudo pacman -S ebtables iptables
 $ sudo systemctl enable libvirtd.service
 $ sudo systemctl start libvirtd.service

Tune /etc/libvirt/libvirtd.conf :   unix_sock_group = "libvirt" (line 85)  unix_sock_rw_perms = "0770" (line 102) When done restart libvirtd daemon. Changes been done will suppress  prompt for root password at Virt-Manager startup. They are, actually, optional.
 $ sudo usermod -a -G libvirt $(whoami)
 $ newgrp libvirt
 $ sudo systemctl restart libvirtd.service
Define network openstackvms.xml on the Manjaro Guest
# cat openstackvms.xml
<network>
   <name>openstackvms</name>
   <uuid>d0e9964a-f91a-40c0-b769-a609aee41bf2</uuid>
   <forward mode='nat'>
     <nat>
       <port start='1024' end='65535'/>
     </nat>
   </forward>
   <bridge name='virbr1' stp='on' delay='0' />
   <mac address='52:54:00:60:f8:6d'/>
   <ip address='192.169.142.1' netmask='255.255.255.0'>
     <dhcp>
       <range start='192.169.142.2' end='192.169.142.254' />
     </dhcp>
   </ip>
 </network>




Now create VM F31 inside Guest



   At this point verify status of libvirtd.service 
  Sequence of DHCP requests and responses for "virbr1"  is clearly shown via `systemctl status libvirtd.service` command


  Now just try to watch movie (via YouTube) on F31 guest running inside Manjaro 19 Guest  (nested KVM has been set up ) on VirtHost CentOS 8.1.  Spice console is working fine even running on the F31 guest inside Manjaro 19.0 KVM guest .


Wednesday, February 19, 2020

The only option brought me to success installing telegram-desktop on CentOS 8.1 appears to be snap

In meantime the only option brought me to success installing telegram-desktop on CentOS 8.1 appears to be snap
Run via CLI :-

 $  sudo yum install epel-release
 $  sudo yum install snapd
 $  sudo systemctl enable --now snapd.socket
 $  sudo ln -s /var/lib/snapd/snap /snap
 $  sudo snap install telegram-desktop



  CentOS 8 Stream behaves same way
 


Sunday, February 16, 2020

Why am I annoyed by endless calls on the Yandex Zen network to replace Windows 10 by Linux Mint ?

Well the core reason is Cinnamon Desktop provided by Linux Mint. I clearly realize that this post would never be published on Yandex Zen so I don't have an option to reach the audience which is strongly affected by making decision migration to Linux Mint rather then migration to Ubuntu 18.04.4 LTS followed up by installing  Cinnamon Desktop as alternative to Gnome 3.32 on Ubuntu 18.04. We actually need just two command line directives on Ubuntu 18.04.4 LTS to achieve so much needed Cinnamon desktop environment. Just run via CLI

$ sudo apt update
$ sudo apt install cinnamon-desktop-environment

Afterwards to be safe reboot system and select Cinnamon as an option for yours login into system. 
Command  `apt install cinnamon-desktop-environment` is finishing up successfully. Reboot system just in case re-login should be enough in general














Quoting official guide 
=================
This will take a while depending on your internet connection as the packages to be downloaded total to about 1G. This should take roughly 5 – 10 minutes if you have a fast internet connection. After the successful installation of all the required software packages, You need to either log out or reboot your system entirely. To avoid wasting much time, logging off comes off as the better option of the two. On the login screen, click on the gear icon adjacent to the ‘Sign In’ button to display a list of possible desktop display environments. Next, click on the ‘Cinnamon’ option.
================
Quoting ends

  System is up again . Make sure you see a small wheel under password prompt window.
 

   That is it. We have Cinnamon GUI Environment as optional choice upon login into system
    

   Notice you are actually running Ubuntu 18.04.4 LTS with Ubuntu Linux Kernel 5.3.0-28-generic and Cinnamon Desktop at a time.

Another option set up Cinnamon Desktop on top 
of Fedora 31 Server. Proceed as follows
$ sudo dnf -y groupinstall "Cinnamon Desktop"
$ echo "exec /usr/bin/cinnamon-session" >> ~/.xinitrc
$ sudo systemctl set-default graphical.target
The last command will force login into Cinnamon Environment or just
$ startx


    Russian keyboard layout has been added
  Spice Console is running , enjoy video && sound
  inside running Guest
    


   Fedora 31 Server running "Cinnamon Desktop" on bare metal
   
  

    

Wednesday, February 5, 2020

Install Gnome 3.28 on top of Linux Mint 19.3 via snapd daemon

In meantime Snapd daemon might be installed on Linux Mint with no issues. So Gnome 3 Desktop installation is supposed to be done via "sudo snap installs" as quite straight forward procedure. Follow instructions bellow
https://snapcraft.io/install/gnome-3-34-1804/mint
run via CLI ( GnomeSDK is available as well https://snapcraft.io/install/gnome-3-34-1804-sdk/mint )
Details regarding Snapd daemon might be seen at
https://wiki.archlinux.org/index.php/Snap

$ sudo apt update

$ sudo apt upgrade
$ sudo apt install snapd 
$ reboot

At this point system should automatically enable all of the systemd services on Linux Mint that Snapd needs to function properly.

$ sudo snap install gnome-3-34-1804
$ sudo apt install gnome
$ sudo apt install gnome-shell
$ reboot ( or just re-login )


See also - https://wiki.archlinux.org/index.php/Snap




Установка Gnome 3.28 на Linux Mint 19.3

Выполним следующие комманды, следуя
https://snapcraft.io/install/gnome-3-34-1804/mint
Можно даже поставить GnomeSDK - https://snapcraft.io/install/gnome-3-34-1804-sdk/mint

$ sudo apt update
$ sudo apt install snap
$ reboot
$ sudo snap install gnome-3-34-1804
$ sudo apt install gnome
$ sudo apt install gnome-shell
$ reboot ( or just re-login )

Знание английского позволит прочесть - https://wiki.archlinux.org/index.php/Snap



Monday, February 3, 2020

Install Gnome 3.28 on top of Linux Mint 19.3

****************
UPDATE 02/05/20
****************
1. I sincerely apologize for missing an option of same install via snapd. Post below is fixing this and does install Gnome 3.28 avoiding kernel upgrade and using PPAs. 
 See  "Setup Gnome 3 on Linux Mint via snapd daemon"
 https://dbaxps.blogspot.com/2020/02/install-gnome-328-on-top-of-linux-mint.html
2. However, I would guess that CVE's from the list
https://usn.ubuntu.com/4225-1/ 
should be gone for sure in Ubuntu Kernel build 5.5.1(2)
Another reason for kernel upgrade on Mint might be
https://9to5linux.com/new-sudo-vulnerability-could-allow-attackers-to-obtain-full-root-privileges
So non-snap build down here might make some sense due to
presence of kernel upgrade.
*************
END UPDATE
*************
Proceed as follows :-

$ sudo add-apt-repsitory ppa:teejee2008/ppa
$ sudo apt-get update && sudo apt-get install ukuu

Invoke from system menu "Kernel Update Utility"
select kernel 5.5.1 (just highest version available at the moment) and click install . When done

$ sudo reboot




Select from system menu "Software Sources" and add PPAs
ppa:gnome3-team/gnome3
ppa:gnome3-team/gnome3-staging

Now you should see via Linux Mint GUI three  PPAs added 
1. ppa:teejee2008/ppa
2. ppa:gnome3-team/gnome3
3. ppa:gnome3-team/gnome3-staging




Switch to terminal session and run

$ sudo apt update

It would make two gnome PPAs available for package
installation

$ sudo apt install gnome
$ sudo apt install gnome-shell

Re-login selecting "GNOME" or "GNOME on Xorg"





  Linux Mint VM survives cold reboots with no problems
  Verifying whether Gnome 3 is running on Xorg or Wayland


Another kernel upgrade to 5.5.2


  

Install transmission on CentOS 8.1

As usual it takes some time to setup transmission on fresh CentOS (8) release

Proceed as follows

Install GetPageSpeed repository


  1. Install GetPageSpeed repository:
    # dnf install https://extras.getpagespeed.com/release-el8-latest.rpm
  2. Install transmission rpm package:
    # dnf install transmission