qemu 
#> sudo apt-get install kqemu-source kqemu-common build-essential
#> sudo module-assistant prepare kqemu
#> sudo module-assistant auto-install kqemu

/etc/udev/rules.d/60-kqemu.rules:
KERNEL=="kqemu", NAME="%k", MODE="0660", GROUP="kqemu"

#> sudo addgroup --system kqemu
#> sudo adduser USERNAME kqemu
#> modprobe kqemu

create a qemu image:
#> qemu-img create -f qcow2 root.qcow2 20G

install with a cd:
#> qemu -hda root.qcow2 -cdrom cd.iso -boot d

boot installed system:
#> qemu -hda root.qcow2


[ view entry ] ( 684 views )   |  print article
Grub Error 2: Bad file or directory type 
grub prior 0.97 only supports a inode size of 128 Bytes

To format a partition set inode size of 128 Bytes:

#> mkfs.ext3 -I 128 /dev/sda6

[ view entry ] ( 879 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 ] ( 873 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 ] ( 729 views )   |  print article
kvm pxe boot 
get a ISO bootable image without legacy floppy emulation (.iso) from etherboot

kvm.sh:
#!/bin/sh

switch=br0

USERID=$(whoami)
iface=$(sudo tunctl -b -u $USERID)

sudo /usr/sbin/brctl addbr $switch
sudo /sbin/ifconfig $switch 192.168.99.1 up

kvm -M pc -m 512 -smp 1 -cdrom eb-5.4.3-ns8390.iso \
-boot d -net nic,model=rtl8139 \
-net tap,vlan=0,ifname=$iface, \
script=qemu-ifup,downscript=qemu-ifdown

sudo tunctl -d $iface &> /dev/null

sudo /sbin/ifconfig br0 down
sudo /usr/sbin/brctl delbr $switch
qemu-ifup:
#!/bin/sh

#!/bin/sh

switch=br0

if [ -n "$1" ];then
echo "config $1"
/usr/bin/sudo /sbin/ifconfig $1 0.0.0.0 promisc up
/usr/bin/sudo /usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
qemu-ifdown:
#!/bin/sh

switch=br0

if [ -n "$1" ];then
sudo tunctl -d $1
sudo ifconfig $switch down
exit 0
else
echo "Error: no interface specified"
exit 1
fi


[ view entry ] ( 690 views )   |  print article

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