Today I tried to update our xen virtual hosts to Ubuntu 12.04.
The message just says that the Boot loader doesnÄt return any data.
The problem relates to the grub2 boot loader, which updates the grub.cfg with
root=(hd0,msdos1)
entries.
cause we don’t need any grub2 boot loader on our machines the simplest solution for this is to use grub1 instead of grub2.
aptitude -y purge grub2 grub-pc grub2-common && aptitude install grub
If you already have the problem that you cannot boot into your domain anymore you just have to mount the disk / image, chroot into it and execute the commands afterwards.
I’m using a libvirt pool with LVM, so for me its something like this:
kpartx -a /dev/vg0/www.xxxx.org.img
mount /dev/mapper/vg0-www.xxxx.org.img1 /mnt
chroot /mnt
for i in /proc /sys /dev /run; do mount $i; done
aptitude -y purge grub2 grub-pc grub2-common && aptitude install grub
for i in /proc /sys /dev /run; do umount $i; done
exit
umount /mnt
kpartx -d /dev/vg0/www.xxxx.org.img
virsh start www.xxxx.org
If you get some problems with the network that you cannot resolve any domain names, just override the resolvconf for the install.
mkdir -p /run/resolvconf
echo "nameserver 8.8.8.8" > /run/resolvconf/resolv.conf
I mentioned a strange problem with one of our PC’s today.
Excel 2007 was not able to copy any formulas anymore, it just copied all the values but no formulas. Even with Paste Special you just had the option to copy text.
It turned out that the Skype Click to Call Plugin messes up the clipboard, so just closing the browser or uninstalling the Plugin did the trick.
Maybe not so related to all the programming stuff here, but everyone have to have some private life and some hobbies.
So I bought a small motorbike and sure I was looking for some parts and manuals which are kind of hard to find online. So I decided to post them.
handout from yamaha
Yamaha DT230 DT Lanza Service Manual
Yamaha DT230 DT Lanza N Owners Manual
Yamaha DT230 DT Lanza L Owners Manual
You can find any Yamaha part numbers inside as well as how to fix nearly everything on your own!
Here are two pics of mine!
installation of dependencies
aptitude install postgresql postgresql-client python-dateutil python-feedparser \
python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid \
python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing \
python-reportlab python-tz python-vatnumber python-vobject python-webdav \
python-werkzeug python-xlwt python-yaml python-zsi python-simplejson
get 6.1 release
wget http://nightly.openerp.com/6.1/releases/openerp_6.1-1-1_all.deb
install 6.1 release
dpkg -i openerp_6.1-1-1_all.deb
create database role
su postgres
createuser --createdb --username postgres --no-createrole \
--no-superuser --pwprompt openerp
Go to:
http://SERVER_IP:8069
–> Manage Databases
Master Password: admin
If you recently face the problem that SFC doesn’t post automatically on your facebook page anymore.
And you get the error:
.../plugins/simple-facebook-connect/facebook-platform/facebookapi_php5_restlib.php on line 3112
Just turn of the facebook https redirection on Facebook.
Account settings -> security settings -> Secure browsing
otherwise SFC will be redirected to https and can’t handle the redirection properly.
I’m looking forward that this problem will be fixed soon.
Besides I’m sorry that I don’t have time anymore to post here anymore, but currently I’m in Tanzania for 1 year and will be back in November.
Do you see strangeudp checksum errors in your tcpdump?
turn off tx checksumming with
ethtool -K eth0 tx off
cause mv and cp -ar, don’t copy hardlinks on filesystems you normally have to use rsync with the --hard-links parameter to copy a directory with symlinks, hardlinks and times.
rsync uses a lot of memory, cause it’s building a big file/link table in your memory. if you try to move incremental server backups based on hardlinks, than it could be easy to save hundreds of MB in memory.
for example, if you want to move the backup directory for server1 from /backup3 to /backup4 try:
# mkdir -p /backup4/server1
# cd /backup3/server1
# find . -depth -print | cpio -pdm /backup4/server1
chroot: cannot run command `mount`: Exec format error
Ach Gott, da sucht man nach noexec oder ähnlichen versteckten Hindernissen, die das amd64 System daran hindern die i386 executables auszuführen und dabei hat man nur vergessen
Executtable File Formats Emulations ---- >
[*] IA32 Emulation
einzuschalten …
Manchmal kann das Leben so einfach sein
Bin mal gespannt wie das neue FAI System wird. Hab nun meine beiden 64Bit Systeme zum ergiebigen Testen, sodass es bald die vollautomatische 32bit / 64bit confixx / plesk / managed server dingensbumens install gibt
simple solution to fix the sometimes “time went backward” problem occuring in DomU’s
for each DomU add xen.independent_wallclock=1 to /etc/sysctl.conf
and add clock=jiffies in the DomU’s config file in the extra-section
p.e.:
extra = "xencons=tty console=tty clock=jiffies"
quick and dirty ISO-8859-15 to UTF-8 conversion for old directories and files.
this does not convert the file content or something, only file and directory names
find . -type d -exec sh -c 'i="{}"; mv "$i" "$(echo $i|iconv -f ISO_8859-15)" \
2>/dev/null && echo "moved $(echo $i|iconv -f ISO_8859-15)"' \;
find . -type f -exec sh -c 'i="{}"; mv "$i" "$(echo $i|iconv -f ISO_8859-15)" \
2>/dev/null && echo "moved $(echo $i|iconv -f ISO_8859-15)"' \;
worked fine for my old mp3 library with wrong converted ISO charakters in it.
if you have a lot of subdirectories with chars to convert you could become problems, with converting already encoded directories again. you could do something like that:
I didn’t test it, but it should be working
for i in `seq 0 50 | sort -r -n`; do
find . -type d -exec sh --mindepth=$i -c 'i="{}"; mv "$i" "$(echo $i|iconv -f ISO_8859-15)" \
2>/dev/null && echo "moved $(echo $i|iconv -f ISO_8859-15)"' \;
done