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

mutt: daily use (still in progress)

Posted on Tue 07 May 2013 in Linux • Tagged with notepad, linux, mutt, work • 1 min read

Tag messages matching
shift-t -> "search string"

Limit messages matching (pattern)
l > \~T (tagged)
l > \~A (all)
l > \~N (new)
l > \~U (unread)
l > \~F (flagged)
l > "search string"

Random commands
;d > Delete tagged messages
s > Move message
;s > Move tagged messages
b > Bounce messages
w/W > Set/Clear Flag
:source …


Continue reading

folks...thats for you: how to extract a initrd file

Posted on Mon 04 February 2013 in Linux • 1 min read

Tag, linux, howto, notepad Slug: folks-thats-for-you-how-to-extract-a-initrd-file Status: published

$ gzip -dc /boot/initrd-2.6.32.23-0.3-default | cpio -id

Apache2 & Jenkins & SSL

Posted on Sat 15 December 2012 in Linux • Tagged with Apache2, Gentoo, java, notepad, linux • 1 min read

$JAVA_HOME/bin/java -DJENKINS_HOME=/var/lib/jenkins -Xms=512m -Djava.awt.headless=true \
  -server -jar /var/lib/jenkins.war --httpPort=8080 --httpListenAddress=127.0.0.1 \
  --ajp13Port=-1 --logfile=/var/log/jenkins.log

apache vhost config

  ServerAdmin admin@example.com
  DocumentRoot "/srv/www/"
  ServerName jenkins.example.com

  SSLEngine On
  SSLVerifyClient …

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

aacraid & arcconf - Create a RAID5 online

Posted on Thu 04 October 2012 in Linux • Tagged with linux, notepad • 1 min read

                                                                    |-- Drives  --|
arcconf CREATE 1 LOGICALDRIVE Name R5_3TB Rcache RON Wcache WT MAX 5 0 4 0 5 0 6 0 7
                                                         Raid size <|  | | |
                                                           Raid level <| | |
                                                             Channel ID <| | 
                                                                 Drive ID <|

Gentoo - Jenkins startup script

Posted on Wed 19 September 2012 in Linux • Tagged with Gentoo, linux, notepad • 1 min read

Not the best but its working for me...maybe JENKINS_* and JAVA_OPTS can be moved to /etc/conf.d/jenkins or something else.

#!/sbin/runscript

depend() {
        use logger dns
        need apache2
        provide jenkins
}

JENKINS_USER=jenkins
LOCKFILE=/var/run/jenkins.pid

JENKINS_HOME=/home/jenkins
JAVA_HOME=/usr/java/jdk1.6.0_25

JAVA_OPTS …

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...)


Gentoo and libvirt-0.9.12

Posted on Wed 01 August 2012 in Linux • Tagged with Gentoo, Linux, notepad • 1 min read

Yesterday i've started the update process for my system...so far, so good.

After a while emerge finished successfully...of course with a lot of messages, even some messages (from libvirt) that in my kernel config some features are missing e.g.

[...]
CONFIG_DEVPTS_MULTIPLE_INSTANCES
CONFIG_VETH
CONFIG_MACVLAN
CONFIG_NETFILTER_XT_TARGET_CHECKSUM
CONFIG_NETFILTER_ADVANCED
CONFIG_BRIDGE_NF_EBTABLES
[...]

As usually …


Continue reading