Dobrica Pavlinušić's random unstructured stuff
Virtualization workshop: Revision 5

KVM/QEMU

Windows

intelppm.dll blue screen of death -- http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround

Startup script:

# 3M RFID 810
usbdev=0403:6001

sudo chown -R $USER /proc/bus/usb/*

kvm -m 512 -hda win-xp.vmdk -no-acpi -std-vga -monitor stdio -usb -usbdevice host:$usbdev


USB sniffing

info usbhost

OpenVZ

Add disk space to VE

First, resize logical volume:

root@koha-hw:~# df -h /vz/
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg-vz      99G   20G   79G  21% /vz

root@koha-hw:~# vgextend -L +80G /dev/vg/vz
vgextend: invalid option -- L
  Error during parsing of command line.

root@koha-hw:~# lvextend -L +80G /dev/vg/vz
  Extending logical volume vz to 100.00 GB
  Logical volume vz successfully resized

root@koha-hw:~# resize2fs /dev/vg/vz 
resize2fs 1.40-WIP (14-Nov-2006)
Filesystem at /dev/vg/vz is mounted on /vz; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 7
Performing an on-line resize of /dev/vg/vz to 26214400 (4k) blocks.
The filesystem on /dev/vg/vz is now 26214400 blocks long.

Then, take a look how much space does VEs take:

root@koha-hw:~# vzlist -o veid,status,ip,hostname,diskspace,diskspace.s,diskinodes,diskinodes.s
      VEID STATUS  IP_ADDR         HOSTNAME                           DQBLOCKS DQBLOCKS.S   DQINODES DQINODES.S
    212052 running 193.198.212.52  koha-dev.rot13.org                 11717216   15728640      61001     286527
    212226 running 193.198.212.226 koha.ffzg.hr                        6396592   10485760      69013     435472