Quicksearch |
Sunday, August 30. 2009363 days lead time
I would like to point out that my last article was in no way meant to be critical towards libvirt, rather on the contrary. I think it's an awesome technology the way it provides a common management platform for various virtualization solutions available on Linux and even other platforms.
For reference, expensive proprietary virtualization solutions don't necessarily fair better. I've in fact recently ran into a problem in a Vmware ESX / Virtual Center environment which, while rather different in manifestation, in the end was similar in nature: diverging state change in the environment and in configuration. The Vmware problem surfaced after kernel changes on Linux guests, where, after rebooting into the new kernel and running the vmware-config- tools script to rebuild the modules, nightly backups with help of the vcbmount utility would fail. The only cryptic error message was: Creating a quiesced snapshot failed because the (user-supplied) custom pre-freeze script in the virtual machine exited with a non-zero return code.It didn't help that there wasn't any "user-supplied pre-freeze script" to begin with. Searching for this error message returned lots of hits, several going at least one year back. However, aside from a few references to a documented Solaris guest issue, which was not applicable, none would actually provide any insight into what the problem might actually be. Unt il I found following post on the Vmware communities site, which pointed out that changes to the uuid.location weren't propagated properly to the vmx definition. For the time being, the best way to work around this (in Linux guests) is to add another reboot right after rebuilding the vmtools modules. Since you should be rebuilding But Vmware should provide a proper fix their stuff, really. I've got this strong feeling that the libvirt bug will be resolved in less time than a year... Thursday, August 27. 2009libvirt networking
Because of my personal virtualization project, I have been working with virsh/libvirt/kvm a lot over the last year.
Once you start to do more advanced networking manipulations with libvirt, there are a few gotcha's to be aware of though. The first issue is an actual bug: when you use 'virsh -c qemu:///system net-create' — with the mandatory xml definition provided as an argument, of course — the new virtual network is created just fine, but not saved out to disk into the /etc/libvirt/qemu/networks directory. As a result, other virsh net-* commands return strange errors when you try manipulating the new network. For example, the net-autostart command will complain with: libvir: QEMU error : internal error Failed to create symlink '(null)' to '(null)': Bad addressRealizing autostart is effectively configured by creating symlinks in the right place, I found that the symlink target did not exist when I saw this error. Searching for a fix I made a really trivial modification to the virtual network definition with 'virsh net-edit', adding a space into the temporary file, but this was enough to have the network definition actually written out to disk. The other thing to keep in mind is to modify the xml definition appropriately, if you use 'virsh net-dumpxml' from an existing virtual network for ease of configuration. There are at a minimum two more things to change besides the obvious changes of name and ip address range. First is the bridge name, which is obvious if you consider that libvirt creates a new bridge for each virtual network you define, to connect the network to. And it won't cause much problems if you forget this because virsh returns an error if you forget it. The other item is the network uuid, which can be simply removed; libvirt will generate a new one for you. It should be equally obvious that you can't have two virtual networks with the same uuid, however virsh won't complain about that — but it will start behaving unexpectedly with the net-* commands if you forget this. Luckily, undefining the interface which I newly added with a duplicate uuid has fixed any resulting issues for me — and I've only forgotten this once. Each of these issues may or may not be equally applicable to the virsh/libvirt/xen combination, but I haven't actually tested. That is for someone else find out and report back :) Monday, April 20. 2009The Sun has set
So in three weeks time, two once large Unix vendors are gone — SGI on april 1st, and now Sun. SGI as a Unix vendor had been dead for years anyway, but still.
Today's announcement also kind of finalizes the answer to my wonderings last year. Sun somehow seems to have managed to send off MySQL into limbo, and it remains yet to be seen if Oracle would have any imperative to bring it back. One thing I do find bothersome with the new situation is that at the moment I write this, the opensolaris.org website appears to be unreachable. Which might just be coincidence, but I do hope that neither Sun until the deal is finished or Oracle afterwards turn away from their current opensource backing positions. Friday, April 10. 2009
The Times They Are a-Changin' Posted by Filip Van Raemdonck
in software at
19:17
Comments (2) Trackback (1) The Times They Are a-Changin'
... And so is computing.
At the beginning of last year, I finally bought a replacement for all the old junk that I was using as computer substitutes; a quad-core (Q6600) system with 4 GiB of memory. For a couple of reasons, I set it up in a hurry, using software raid on two 160 GB harddisks, but last july I decided to redo it properly and at the same time consolidate as many as possible of the old systems I was using virtualization. Until that time, I had been using VMware for virtualization at home, to be able to run appliances or historical VMs I had sitting around. This time I would try to move over to an opensource solution, if any could fullfill my needs. Continue reading "The Times They Are a-Changin'" Thursday, August 14. 2008
Perl hash tree helper Posted by Filip Van Raemdonck
in programming at
19:59
Comments (0) Trackbacks (0) Perl hash tree helper
Last week I needed a way of converting a two-dimensional array, in perl, into a tree-like datastructure.
While seemingly trivial, the convoluted use of references when passing around arrays and hashes between perl function calls -- recursive calls, in this case -- made this a mind-boggling exercise to me. (the fact that I hadn't seriously used perl in the last eight years might have had part in that, too) Below the jump is my implementation, debugging info left in and all. If it's useful for someone, that's great; if not, ... well, except for my mental sanity no harm was done in writing this, either :) Continue reading "Perl hash tree helper" Wednesday, March 26. 2008Lilo LVM fixed root
One annoyance with the lilo bootloader that I've ran into a few times recently, is that it apparently turns any
root configuration arguments into a device number. Which is then passed to the kernel at boot.So if the kernel decides to assign a different device number to the supposed root device, your system may no longer boot. Yesterday I once again ran into this: when I added an additional disk to a system, the LVM volumes which were on that new disk got assigned device numbers before the existing system LVM volumes. Giving the problem a little thought, I realized that the solution — though silly — is really simple: add an “ append="root=/dev/yournode"” directive to lilo.conf, and this boot-time argument will always override the root device set by lilo.No more changing root devices for me… Sunday, March 16. 2008Blog migration
For a while now I had been planning to move this blog a different server and URL; a URL that I would have full control over instead of the user directory it was deployed in.
I also had been longing for a different blog platform some time. While the primary reason for choosing Blosxom.PHP, that it did not depend on a database server, still held, I also had gotten tired of having to dig into it's code (usually in several places) for things that in my opinion should not require having to make changes all over the place. So when the ageing server that held the old blog had temporary IO problems last weekend, I considered the time ready for making the move. Continue reading "Blog migration" Wednesday, March 12. 2008
Debian firewire support Posted by Filip Van Raemdonck
in Debian at
07:07
Comments (0) Trackbacks (0) Debian firewire support
Christian, you forgot to mention the Linux kernel, where a member of the kernel team deliberately broke hardware support.
Thanks to Holger for these links, he has listed several more. I disagree with the suggestion that shipping the old firewire stack in the linux-extra-modules package is sufficient workaround; unless this is not prohibiting it from being included in the installer to support ethernet over firewire? (though in such case it will certainly have implications due to the fact that this package should be pulled in when the installer used eth1394) So Adrian, you too may want to reconsider if Debian really does have less compatibility regressions than other distributions. Friday, February 29. 2008
PyGTK/glade object reuse Posted by Filip Van Raemdonck
in Python at
12:29
Comments (2) Trackbacks (0) PyGTK/glade object reuse
Someone asked on the PyGTK mailinglist if it is possible to reuse certain parts of a libglade window several times within an application.
It certainly is, and it's not even hard to do! I've quickly written a demo application to show how it's done. The user interface designed in glade is really simple, a textbox with two toggle buttons underneath. Activating one button will display a second, disparate textbox beside the original one. Deactivating it will remove that second textarea. The other button will display and remove a copy of the first textbox which was there from application startup. The full widget tree of this interface is shown in the first screenshot. The actual code to the demo application is rather brief. Continue reading "PyGTK/glade object reuse" Monday, February 18. 2008
PHP and SSL with Lighttpd on Debian Etch Posted by Filip Van Raemdonck
in Web at
21:43
Comments (3) Trackback (1) PHP and SSL with Lighttpd on Debian Etch
First, a question: dear lazyweb, how do I completely disable non-SSL access with lighttpd? I can't seem to find how to have a lighttpd SSL-only configuration. (and only binding port 80 on localhost does not count for an answer)
On to the subject. While it's easy to add SSL to lighttpd and enable PHP (through fastcgi) — and Debian makes it even easier with it's lighty-enable-mod tool — if you only do it once in a blue moon then it's not exactly resident knowledge. So here are the steps to do it, on Debian Etch:
That's all there is to it. Well, strictly speaking there's a step 4a: install a certificate; but that's arguably not a part of the configuration process. (for reference: openssl req -new -x509 -keyout /etc/lighttpd/selfcert.pem -out /etc/lighttpd/selfcert.pem -days 365 -nodes will generate a self-signed certificate)
|
about this blogThis weblog contains the ramblings of Filip Van Raemdonck. He is a male system administrator in his early thirties, happily married, and happens to be passionate about fast motorcycles and photography.
Syndicate This BlogArchives |
Comments
Thu, 31.12.2009 14:15 CET
They had a fox the other day, too. Funny, indeed.
Thu, 31.12.2009 03:07 CET
A better example, from a genui ne Windows ad campaign, as I s aw personally at Heathrow late this year: http://blogs [...]
Sat, 12.12.2009 18:40 CET
and you are happy with the lap top? you don't want to resell ? :) can't find anything as cheap on kapaza or ebay [...]
Sat, 12.12.2009 18:18 CET
It came with the 5500mAh batte ry.
Sat, 12.12.2009 12:39 CET
this laptop was sold out in 2 days time now they sell a dua l core atom of packard bell fo r 285euro
Thu, 10.12.2009 21:08 CET
Which type of battery does it contain? 4400mah small6 5500 mah standard or 6600mah Big
Sat, 05.12.2009 16:57 CET
The Celeron is probably has be tter performance anyway, but w orse battery life. The Atom is really neutered. I'd [...]
Wed, 28.10.2009 20:41 CET
The lack of checking for a cla shing UUID/name when defining networks is a clear bug in lib virt. We wrote some test [...]
Fri, 16.10.2009 01:45 CEST
This is sunlight shining throu gh the cracks in the Transform atorhus building of WesterGasF abriek in Amsterdam, isn't it?
Tue, 13.10.2009 18:23 CEST
What the beep is this? Damn beautiful picture though.