Tuesday, August 18, 2020

Cockpit web interface  PR_CONNECT_RESET_ERROR

oVirt 4.4.1 

Cockpit web interface  PR_CONNECT_RESET_ERROR

grep cockpit-tls /var/log/audit/audit.log | audit2allow  -M cockpit-tls

semodule -i cockpit-tls.pp


Thursday, August 29, 2019

Upgrade oVirt host node from 4.0 to 4.1 or 4.2 dependency error Error: Package: vdsm-gluster-4.20.23-1.el7


Upgrade oVirt host node from 4.0 to 4.1 or 4.2 dependency error Error: Package: vdsm-gluster-
4.20.23-1.el7 from Centos install. This is not a imgbase install.


yum remove ovirt-release40
yum install https://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm
yum clean all ; yum makecache ; yum install ovirt-host
yum remove vdsm-gluster.noarch
yum install ovirt-host #Or Execute Upgrade from Engine

Detailed Instructions

Error


yum install ovirt-host

--> Running transaction check
---> Package centos-release.x86_64 0:7-2.1511.el7.centos.2.10 will be updated
---> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be an update
---> Package vdsm-gluster.noarch 0:4.20.23-1.el7.centos will be an update
--> Processing Dependency: vdsm = 4.20.23-1.el7.centos for package: vdsm-gluster-4.20.23-1.el7.centos.noarch
--> Finished Dependency Resolution
Error: Package: vdsm-gluster-4.20.23-1.el7.centos.noarch (ovirt-4.2)
           Requires: vdsm = 4.20.23-1.el7.centos
           Removing: vdsm-4.18.11-1.el7.centos.x86_64 (installed)
               vdsm = 4.18.11-1.el7.centos
           Updated By: vdsm-4.20.46-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.46-1.el7
           Available: vdsm-4.20.9.3-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.9.3-1.el7.centos
           Available: vdsm-4.20.13-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.13-1.el7.centos
           Available: vdsm-4.20.14-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.14-1.el7.centos
           Available: vdsm-4.20.17-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.17-1.el7.centos
           Available: vdsm-4.20.18-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.18-1.el7.centos
           Available: vdsm-4.20.19-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.19-1.el7.centos
           Available: vdsm-4.20.20-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.20-1.el7.centos
           Available: vdsm-4.20.22-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.22-1.el7.centos
           Available: vdsm-4.20.23-1.el7.x86_64 (ovirt-4.2-centos-ovirt42)
               vdsm = 4.20.23-1.el7
           Available: vdsm-4.20.23-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.23-1.el7.centos
           Available: vdsm-4.20.27.1-1.el7.centos.x86_64 (ovirt-4.2)
               vdsm = 4.20.27.1-1.el7.centos
           Available: vdsm-4.20.32-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.32-1.el7
           Available: vdsm-4.20.33-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.33-1.el7
           Available: vdsm-4.20.34-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.34-1.el7
           Available: vdsm-4.20.35-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.35-1.el7
           Available: vdsm-4.20.39-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.39-1.el7
           Available: vdsm-4.20.39.1-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.39.1-1.el7
           Available: vdsm-4.20.43-1.el7.x86_64 (ovirt-4.2)
               vdsm = 4.20.43-1.el7
                                     

Solution 


yum remove vdsm-gluster.noarch
             
======================================================================================================================================================================================================= Package                                                                   Arch                                                     Version                                                                  Repository                                                   Size
=======================================================================================================================================================================================================Removing:
 vdsm-gluster                                                              noarch                                                   4.18.11-1.el7.centos                                                     installed                                                   234 k
Removing for dependencies:
 ovirt-release-host-node                                                   noarch                                                   4.0.3-1.el7                                                              installed                                                   315 k

Transaction Summary
=======================================================================================================================================================================================================Remove  1 Package (+1 Dependent package)

Installed size: 549 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : ovirt-release-host-node-4.0.3-1.el7.noarch                                                                                                                                                                                                                  1/2
  Erasing    : vdsm-gluster-4.18.11-1.el7.centos.noarch                                                                                                                                                                                                                    2/2
  Verifying  : ovirt-release-host-node-4.0.3-1.el7.noarch                                                                                                                                                                                                                  1/2
  Verifying  : vdsm-gluster-4.18.11-1.el7.centos.noarch                                                                                                                                                                                                                    2/2

Removed:
  vdsm-gluster.noarch 0:4.18.11-1.el7.centos                                                                                                                                                                                                                                 
and than upgrade from Engine which executes "yum install ovirt-host"


Thursday, May 23, 2019

Systemd disable STD I/O from service


sudo systemctl edit service@.service

[Service]
StandardOutput=null
StandardError=null

or

sudo systemctl edit service.service

[Service]
StandardOutput=null 
StandardError=null

Clear journalctl

sudo journalctl --rotate
sudo journalctl --vacuum-time=1s

or

sudo journalctl --rotate
sudo journalctl --vacuum-size=50M

Friday, August 10, 2018

Live resize Linux partition.


If disk has two partitions and we extended the disk to get more free space we can extend partition to use free space.

1. Use growpart

Test run if partition can be extended

sudo growpart -N /dev/vda 2 && echo $?

Actual extending partition

sudo growpart /dev/vda 2 && echo $?
In Debian and Ubuntu it is packaged as cloud-guest-utils.

2. Use parted, resizepart

sudo parted resizepart 2 -1

3. fdisk for advanced users
Use fdisk to delete partition and create new one to the end of disk.

Tuesday, August 7, 2018

How to Import a Git Repository from bundle backup


git clone --mirror test.bundle

cd test

git remote rm origin

git remote add origin https://git.mydomain.com/test/test.git

git push -u origin master


Wednesday, June 8, 2016

Windows 10 guest slow on VirtualBox

Windows 10 guest slow on VirtualBox

For improving Windows 10 performance in VirtualBox, shutdown Windows 10, go to settings of your Windows 10 VirtualBox definition and change default hypervisor.


VM Settings > System > Acceleration tab, Paravirtualization, select Hyper-V (previously set to Default)



It might help using USB 3.0 in configuration instead of USB 2.0.


Solution was found here