ovirt/rhev/rhv - custom branding (web ui)

Posted on Wed 06 December 2017 in ovirt • Tagged with KVM, ovirt, RHEV, rev, branding, redhat • 1 min read

Step 1 - create a custom folder in /etc/ovirt-engine/branding

[root@rev1 branding]# ll
total 0
lrwxrwxrwx. 1 [..] 00-ovirt.brand -> /usr/share/ovirt-engine/branding/ovirt.brand
lrwxrwxrwx. 1 [..] 50-rhev-2.brand -> /usr/share/ovirt-engine/branding/rhev-2.brand
drwxr-xr-x. 3 [..] 99-custom.brand

Step 2 - copy your layout and create …


Continue reading

RHEV/ovirt - can't switch SPM role - async_tasks are stucked

Posted on Mon 29 August 2016 in ovirt • Tagged with KVM, Linux, ovirt, RHEV, rev, redhat • 1 min read

On the host with the SPM role

$ vdsClient -s 0 getAllTasksStatuses
{'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'feb3aaa5-ec1c-42a6-8f17-f7c94891b43f': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '631fd441-0955-49da-9376-1cba24764aa7', 'taskResult': 'success', 'taskState': 'finished'}, 'b4fe0c6d-d458-4ed2-a9e2-2c0d41914b8f': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '67e1a2e8-3747-43fa-b0dd-fc469a6f6a02', 'taskResult': 'success',
'taskState': 'finished'}}}

On the RHEV/ovirt manager …


Continue reading

RHEV/ovirt - find stucked / zombie tasks

Posted on Sun 14 August 2016 in ovirt • Tagged with KVM, Linux, RHEV, rev, redhat • 1 min read

Random notes

$ vdsClient -s 0 getAllTasksStatuses
$ vdsClient stopTask 
$ vdsClient clearTask 
$ su - postgres
$ psql -d engine -U postgres
> select * from job order by start_time desc;
> select DeleteJob('702e9f6a-e2a3-4113-bd7d-3757ba6bc4ef');

or

/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select * from job;"

entropy inside a virtual machine

Posted on Thu 30 June 2016 in Linux • Tagged with ceph, kvm, linux, notepad • 1 min read

Sometimes my ceph-(test!)deployments inside a VM failed.

The Problem is that the kernel/cpu can not provide enough entropy (random numbers) for the ceph-create-keys command - so it stuck/hang. It is not a ceph problem! This can also happen with ssl commands.

But first things first - we need …


Continue reading

Choosing the right scheduler on a virtual maschine (kvm)

Posted on Tue 20 August 2013 in Linux • Tagged with KVM, Linux, VMware, Notepad • 1 min read

The default i/o scheduler is the Completely Fair Queuing (cfq) in the 2.6 kernel. This is not the first choice for a virtual machine/hypervisor. The combination of the noop and the deadline scheduler is much better for a virtualization host.

virtual machine: noop
hypervisor: deadline

Set the …


Continue reading

[notepad] vmbuilder command

Posted on Tue 13 August 2013 in Linux • Tagged with kvm, libvirt, notepad, xen, vms • 1 min read

vmbuilder kvm ubuntu -a amd64 --suite=precise --cpu=2 --libvirt qemu:///system \
   --mem=2048 --user=root --pass=random --hostname=testsystem --dest=/tmp/test \
   --raw=/dev/vgdata1/test_root --rootsize=16384 --swapsize=2048  --addpkg=openssh-server \
   --bridge=virbr0 --ip=192.168.122.110 --mask=255.255.255.0 --gw=192.168.122.1 …

Continue reading

Building qemu & libvirt from scratch...

Posted on Tue 04 December 2012 in Linux • Tagged with KVM, libvirt, Linux, Notepad • 2 min read

Pre-requirements

git clone git://git.qemu.org/qemu.git
git clone git://github.com/sahlberg/libiscsi.git
http://libvirt.org/sources/libvirt-1.0.0.tar.gz (4/12/12)
aptitude install libvdeplug2 libvdeplug2-dev libaio1 libaio-dev libcap-dev libattr1-dev libsdl-dev libxml2-dev

Building

libiscsi:

./autogen.sh
./configure
make && make install

qemu:

./configure --enable-kvm …

Continue reading

Windows 7 error 0x80300001

Posted on Tue 18 September 2012 in Linux • Tagged with KVM, linux • 1 min read

THANKS Microsoft for this self-explanatory error message during a installation:

"Windows is unable to install to the selected location. Error: 0x80300001."

You should write "FOOOOO! Maybe you have the wrong CD/DVD in your drive."

(I had the virtio drivers cd in my drive...)


libvirt - QEMU Monitor Protocol (QMP)

Posted on Fri 20 May 2011 in Linux • Tagged with KVM, Linux, libvirt, notepad • 1 min read

Because libvirt self is using the qemu monitor to mange the guests, it is not available for the user. Since version 0.8.6 [1] its possbile to send a command throught libvirt to the monitor.

virsh qemu-monitor-command  

The problem is that you must use the QMP format to send …


Continue reading