hardy ubuntu-vm-builder with kvm and virtio 
First get ubuntu-vm-builder from http://packages.ubuntu.com/intrepid/ubuntu-vm-builder

#> dpkg -i ubuntu-vm-builder_0.6_all.deb

I suggest to use approx for caching packages

#> sudo apt-get kvm libvirt-bin

#> sudo adduser `id -un` libvirtd (and relogin)

To have a working virio inside the guest i patched:
--- /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl.orig
+++ /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl
@@ -18,13 +18,14 @@
<interface type='network'>
<mac address='%MAC%'/>
<source network='default'/>
+ <model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen='127.0.0.1'/>
%loop%
<disk type='file' device='disk'>
<source file='%img%'/>
- <target dev='hd%curdisk%'/>
+ <target dev='hd%curdisk%' bus='virtio'/>
</disk>
%/loop%
</devices>

#> ubuntu-vm-builder
Read More...

[ view entry ] ( 2043 views )   |  print article
Two usb video capture stick with em28xx driver 
get http://mcentral.de/hg/~mrec/em28xx-new/ ... tip.tar.gz and untar
cd em28xx-new-*
make
find /lib/modules/$(uname -r) -name "em28xx*" -type f | xargs rm -rf
find /lib/modules/$(uname -r) -name "tvp5150.ko" -type f | \
xargs rm -rf
mkdir -p /lib/modules/$(uname -r)/empia
cp *.ko /lib/modules/$(uname -r)/empia
cp tvp5150/tvp5150*.ko *.ko /lib/modules/$(uname -r)/empia
strip -d /lib/modules/$(uname -r)/empia/*.ko
depmod -a

/etc/modprobe.d/local
options em28xx card=14 vbi_mode=0 alt=4
options em28xx card=43 vbi_mode=0 alt=2
These two options lines are really working

With alt i use a lower bandwidth for usb

For Kernel >= 2.6.27 card indexes changed, no alt setting is needed and only one option line in /etc/modprobe.d/local is working:

options em28xx card=9,38

[ view entry ] ( 687 views )   |  print article
io scheduler for databases (deadline) 
As suggested by http://www.nextre.it/oracledocs/oraclemyths.html
i put elevator=deadline to grubs menu.lst.

[ view entry ] ( 606 views )   |  print article
atomic ops in c with help of gcc 
atomic.h Read More...

[ view entry ] ( 780 views )   |  print article
find PCs in a network 
for i in $(seq 2 254); do ping -c 1 192.168.0.$i | grep -q rtt && echo "found 192.168.0.$i"; done

[ view entry ] ( 618 views )   |  print article

<<First <Back | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Next> Last>>