Search Results: "tim"

3 January 2007

Russell Coker: Windows Vista

There's a blog about Windows Vista as the Free Software Foundation site. Not much content yet apart from RSS links but it should have some potential in future.

I am not planning on tracking Vista in detail (not enough time), but if you want to track such things then the FSF site should be useful.

Lars Wirzenius: Random thought: "You write free software, therefore you..."

In a discussion on a mailing list, on a topic that isn't relevant to this log entry, someone wrote: "I just have expectations that if there is going to be progress in the [civil liberties/equality issue], that the 'Free' software world would be at the forefront of that effort". This is a common mistake. The thing that unites the free software developers, and the only thing that unites us, is that we make free software. Even though many of the us are liberal, or libertarian, or "leftist", or "green", or whatever you perceive as the common trait, it is wrong to assume all of us are. Some free software developers are very much "leftist", to the extent of being members of the communist party. Some are stout, Bush-voting Republicans. A couple are neo-Nazis. Some are worried about global warming; others are working full time to prove it isn't happening. ESR has a gun fetish, I'm nervous even of policemen carrying guns. All free software developers aren't even united in their opinions on matters that affect free software development directly. Some organize campaigns against software patents, others (although admittedly very few) apply for them. I'm a free software developer and the only thing about me you can deduce from that is that I develop free software.

Andreas Schuldei: GTD software, Work meetings

Since I am on "maternity leave" now and basicly run the household and try to keep the children entertained, my time to get things done is randomly fragmented and I want to plan the things better that I have on the plate. Liw's blog post reminded me of GTD and today I was looking for planning tools. On Wikipedia's GTD page they mention two: A Firefox plugin to use with gmail (and therefor everywhere where I would have internet) and ThinkingRock, a java app which aparently would fit on a USB key. Of course i wonder which one might be better? The ThinkingRock one seems to be a heavy weight GTD tool. Does that spoil GTD's light weight character? I watched the demos and it seems to be pretty feature complete. I would like to hear from people who use GTD and am interested in their oppinions. Thanks!

Debian Work Meetings - Extremadura evaluation
8 people already managed to send in their evaluations or feedback mails to me regarding the Extremadura work meetings. That is surprisingly few, given the fact that we had 6 meetings with an average of 20 people. And so far I got only one reply from someone who could not attend eventhough she was very interested, explaining why (different continent, too far, too expensive) etc. I had expected more replies in that category, given that we had mostly europeans coming to Extremadura and I had intended to spread out future meetings over the globe more evenly. So I ask both those that attended and did not manage to send in some evaluation and also those that would have liked to come and could not to mail me!

Uwe Hermann: 23C3 - Day 2, 3, 4

Sputnik A bit late, but here are some more random notes from 23C3:

Erich Schubert: Debtags RDF export

I've set up some simple RDF export (gzip only, please add caching yourself!) for the Debtags data. The export is using the DOAP ("Description of a project") vocabulary, though it isn't optimal (we're not talking about separate projects, but multiple packages may belong to the same). The format of the RDF file may (and will!) still change, for example I'd like to have some explicit URIs for the packages instead of just storing it in the name tag. Suggestions for a matching vocabulary / serialization are welcome. But if you want to play around with some real-life data, just grab a copy. There is a couple of interesting things you can do with it, such as my folding tag cloud. So go ahead, and play around with it a bit.

Sven Mueller: Microsoft Windows Vista - They did it all wrong

Note: This post grew larger than originally intended. It drifted away from Vista to general rants about Microsoft and the content industry towards the end of the post, so just skip the rest if this is not of interest to you.
The latest thing I heard about Vista is that Microsoft bribes bloggers with Vista notebooks. As the article points out, this is plain wrong. Apart from crossing the line by not only giving away their own product to reviewers for free, but by actually providing an additional benefit (in the form of the notebook), they also did it wrong because - as the article on tech.blorge.com linked above points out - they don’t understand the way blogging “works”. Too many will be more or less angry because they didn’t get a free notebook (if anything at all).

In my opinion though, this is by far the least important mistake they made with Vista. All their content protection stuff is far worse. It basically does what current copy protection mechanisms already do, but to a much larger extend: Bother the legitimate users while users of pirated copies are uneffected. I don’t think they can avoid pirated copies for a minute. A friend already has a nice HD video player (HDDVD IIRC) and a nice HDCP capable TFT-display, both bought in december. Problem is that the HDCP protected connection resets every few minutes, causing a dropout in both video and sound for a few seconds each time. Seems HDCP compatible player and HDCP compatible display doesn’t necessarily mean that the two work together. Fortunately, in this case, there is some “secret” code you can enter on the players remote to disable HDCP completely. Of course, technically, this is not legal use, but if he didn’t use that hack, he wouldn’t be able to watch his legitimately bought video with his legitimate player and display. Given this problem, I can only shudder when thinking what will happen on Windows Vista with all those encrypted and signed communication channels (drive->memory->videocard->display, just to name the most obvious ones). And there is also the degradation of totally unrelated audio and video stuff while some “premium content” is played. Assume that I play some premium audio stuff. According to the hardware and driver specs for Vista, the availability of any premium content means that any non-encrypted channels need to be turned off or artificially degraded (like downsampling video from 1080p to VGA and upsampling it again since the display might be limited to only display 1080p). This is oh-so-stupid.
And there is also their EULA, as reviewed by Ed Foster. I won’t go into details here, but let’s just say that the EULA is the final nail in Vista’s coffin for me. I’ve been a Windows user since Windows for Workgroups came out (though I’ve used Linux on my machines since 1993 - and almost exclusively since 1998), but I won’t buy Vista, not even when it would be included with a new PC. By the way: This also most likely means that I won’t buy any HD video stuff at all, since the Vista content protection stuff was mostly dictated by the big Hollywood studios. Seems like I will be saving quite some money over the next years. (Which I actually need to do anyway.) Other interesting links regarding Vista: I said they did it all wrong because they forgot that they are selling Windows not to the content industry but to the consumers. Sure, the consumers want to see what Microsoft calls premium content, but I’m also sure that they don’t want all that content protection nonsense Microsoft built into Vista for the sake of the content providers. They lost the balance between avoiding pirated copies (which I think the content protection stuff will have no big effect on) and bothering users of legitimate copies. Heck, I already use “pirate” copies of most of the (Windows-based) games I play because I don’t want to be bothered by their original-CD-checks, even though I own at least one legal copy of all the games I play. Would I need to download pirate copies of the HD movies I want to watch because I don’t want to be bothered by whatever side-effects VCP will have, even if I own legal copies of the same movies? Dear Microsoft, dear Content-Industry (TimeWarner, Disney, whoever), please re-think who you want to sell your content to. I already avoid DVDs which carry additional copy protection (apart from CSS), and if they were available at all, I would prefer to buy DVDs without even CSS. The same is true for CDs (except that they obviously don’t have CSS). Consequently, I’m likely to avoid buying HD videos which impose unpleasant restrictions on me, including those that disable the S/PDIF output of my player (no matter wether PC or standalone) since I paid a lot of money for decent HIFI equipment two years ago and I sure as hell won’t want to by new equipment within the next few years. Luckily, I didn’t yet buy any HD video gear, though my notebook, when equipped with a HDDVD or Blueray drive should be capable of playing HD video - if MS and the content industry wouldn’t impose stupid restrictions.

Lars Wirzenius: Random thought: A touch of neophilia

I'm not going to make any New Year's resolutions this year. I will, however, use the New Year as an excuse to re-think many things in my life. To start with, I have re-subscribed to several Debian mailing lists, even debian-private. A second new thing is that I have a new toy, an iRobot Roomba GR. In other words, an automatic vacuum cleaner. I used it for the first time today, and it was hilariously funny. Not excessively expensive, either. A third new thing is that I re-installed my laptop, with the Debian-Installer daily build from 2006-12-31. It worked like a charm. The old installation on this laptop had deteriorated over several months, as I did unspeakably evil things to it, so starting from fresh was a bit of a relief. Now I have an encrypted hard disk, and a working suspend and hibernation (suspend-to-ram and suspend-to-disk), apart from the backlight not coming back on automatically after resume. Yay! Etch is going to totally rock. A fourth new thing is that I switched over my web log from CVS to Bazaar (bzr). It was the last vestige of my youth. When I was a child, I used RCS. When I was young, I used CVS. Now in my old age, I use Bazaar, because it is comfortable. Incidentally, Notetak is up to version 0.4, and I'm getting comfortable with it, too. I'm going to experiment with adding tags to notes. I don't yet have an idea what would be a good UI design for that, but it will come to me eventually. New things are good, even for neophobic luddites like myself.

Simon Huggins: Best feed readers

I think I need to change the way I read RSS/ATOM feeds. At the moment I run a local planet partly because I'm a control freak and it meant that when Planet Debian was down I could still read those feeds and partly because I want to add other people's feeds to it and want to read them all in the same place. This is mostly fine apart from planet's "feature" of ignoring the dates in feeds and occasional either broken feeds or broken parsing causing me to see literal HTML in the generated page. Until recently I didn't have any further problems but a while back I added a very verbose machine generated feed which it would be nice to be able to look at separately. Planet doesn't cope well with this; this feed's entries tend to push interesting ones off so either I have to tell planet to generate a huge page (including much stuff I've already read) or setup separate planet configs. It also just feels inefficient for me to have all the stuff I've already read at the bottom of the page and to be loading any linked images (well ok, getting a 304 Not Modified hopefully) every time I want to look at my planet page. So I think I want a standalone reader or possibly to use an independent service like the google reader or bloglines. Though am I still a control freak so the former sounds better for me. I just tried liferea (from unstable, 1.0.27) and was clicking around and it segfaulted. Not exactly a glowing recommendation. It'd be neat if there was one that presented posts a bit like planet does - all expanded ready for reading one after the other in date order - so all I have to do is read and scroll and things get marked as read. It'd be really neat if I could then mark things as unread or file them some how. Dear lazyweb, does something like this exist? love and kisses, huggie

Russell Coker: Xen shared storage

disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w', 'phy:/dev/vg/xen1-drbd,hdc,w', 'phy:/dev/vg/san,hdd,w!' ]

For some work that I am doing I am trying to simulate a cluster that uses fiber channel SAN storage (among other things). The above is the disk line I'm using for one of my cluster nodes, hda and hdb are the root and swap disks for a cluster node, hdc is a DRBD store (DRBD allows a RAID-1 to be run across the cluster nodes via TCP), and hdd is a SAN volume. The important thing to note is the "w!" mode for the device, this means write access is granted even in situations whre Xen thinks it's unwise (IE it's being used by another Xen node or is mounted on the dom0). I've briefly tested this by making a filesystem on /dev/hdd on one node, copying data to it, then umounting it and mounting it on another node to read the data.

There are some filesystems that support having multiple nodes mounting the same device at the same time, these include CXFS, GFS, and probably some others. It would be possible to run one of those filesystems across nodes of a Xen cluster. However that isn't my aim at this time. I merely want to have one active node mount the filesystem while the others are on standby.

One thing that needs to be solved for Xen clusters is fencing. When a node of a cluster is misbehaving it needs to be denied access to the hardware in case it recovers some hours later and starts writing to a device that is now being used by another node. AFAIK the only way of doing this is via the xm destroy command. Probably the only way of doing this is to have a cluster node ssh to the dom0 and then run a setuid program that calls xm destroy.

Amaya Rodrigo: My health is back

After five weeks of medical leave, taking so many pills in the morning that it was scary, antibiotics, painkillers that made my sight blurry, pain, weakness, loosing 12 kilos... I am back at work! The dist-upgrade was absolutely wonderful :)

Even though I am feeling pretty well, I still sometimes feel that I am not yet 100% recovered, but my strenght is coming back and I am feelling full with energy and optimism. My slight OCD is also much much better, and and I am more focused, happier, and letting go of old grudges. 

After a nice meal on new year's luch, I even think my (otherwise non-existant) relationship with a good part of my family can be somewhat fixed. At least we were able to treat each other in a respectful manner for many hours, in a relaxed, smily climate. And I have a 15 year old cousin, Mar a, that I had not seen in ten years and that has turned out to be a real swetheart! How much I would like her to get involved with computers! ;)

It is still hard to adjust to the noise at my office, the human company, and I forgot all the root passwords! That's a cool one :)
Thank The Flying Spahetthi Monster (without the meatballs) for encrypted partitions on usb keys with ssh keys, and ssh-agent.

/me loads the old-transition-nmu-machine-gun and looks around.


Also note that Droidy was kind enough to update the TheDebianChoirOfComplaints, with the new performances: Hamburg and St. Petersburg. Both are really worth seeing, and I am working on getting the lyrics for both of them. Volunteers?

Eric Dorland: Digital Cable? Why?

I'm a simple guy. I don't necessarily need the latest technology, especially if it's more annoying than the previous tech. I also don't need a lot of TV channels. In Montr al I just had basic, analog cable. That was just fine, and I have a TV tuner card in my box and I could watch TV from the comfort of my chair.

Now I move to Brooklyn and my only choice for cable is Time Warner. Fine. So I'll just get Internet and super basic analog cable. But they don't offer analog cable anymore. In fact they're completely turning it off come January 15. The replacement is digital cable, which requires some sort of a set top box, which is just another large piece of hardware taking up space and I wouldn't be able to change channels using the computer, let alone PVR type applications. There seems to be a standard called CableCARD to allow you to not have a cable box, but there doesn't seem to be tuner cards out there that work under Linux and take these cards. I find this all really annoying. No wonder people turn to Bittorrent for their TV.

Evan Prodromou: 12 Niv se CCXV

Maj, Amita June and I took a ride up to San Francisco to see our friends Jack and Tricia in China Basin. Jack started wikiHow, and we've become friends over the last year or so as we're both learning about growing big wikis bigger. We had good lunch from Specialties and talked about their recent trip to Oahu. Then we raced back to Mountain View in time to have dinner at Chevys with my brother Andy, sister-in-law Pam, their two daughters, my parents and Pam's mother Midge. A big party, but we managed to get along, even with 3 girls under 4 years old around. Maj had a cranberry margarita bigger than her head, and Amita June ate her complimentary ice-cream cone all by herself. tags:

I support advertising on Wikipedia Mike Linksvayer has a great follow-up on my discussion in Journal/11 Niv se CCXV about advertising in Wikipedia. He notes quite astutely that a $100M/year budget, based on Web advertising, would put the Wikimedia Foundation ahead of almost any other non-profit organization in the world. $100M is a mind-boggling sum of money to leave uncollected. Think that number's gotta be off by a couple of digits? Mike points out that "In 2005 the Mozilla Foundation and Mozilla Corporation combined had revenue from all sources of $52.9M." Could Wikipedia get something on the same order of magnitude? Almost certainly. Among other things, he suggests that contributors to the current Wikimedia fundraising drive add a simple comment to their donations: "I support advertising on Wikipedia." Great idea! tags:

l33t So, I got a notice from Aeroplan, Air Canada's frequent-flier-miles program, that with all the travel I'd done in 2006, I'd almost be eligible for their Elite benefits level. I'd done 24,341 miles of travel last year -- mostly with trips to California, Portland and Copenhagen -- and the elite threshold was 25K. Today I was reviewing my 2006 flying record and realized that I wasn't credited for one leg of one flight to the West Coast, so I called up and got the miles. Starting in March, I'm gonna be in the the l33t crowd at Aeroplan. Rad! tags:

Felipe Augusto van de Wiel: 2 Jan 2007

Happy New Year! Happy 2007!

And a really happy one!
After the cloud of ideas and subjects on the last post, giving the clear idea that I should keep this blog more up-to-date, here is an important note that is missing (including old news that I should had post but didn't, sorry for that). I'm aware that a few people are interested in how the Debian NM process evolves from person to person, on my last update on that topic, I told you that I was recommended to the DAM by my AM. Almost three months later (2006-11-18) Myon (Christoph Berg, Front Desk Member) couldn't find my final report, he pinged my AM and one week later everything was fine again and I got approved to the next step: DAMnation. On the Christmas' evening I got a nice gift from Joerg, DAM approval. Yesterday (2007-01-02) I got the nice e-mail with the subject: New Debian maintainer Felipe Augusto van de Wiel (Thanks to James Troup, aka, elmo). The entire process took me 8 months and 10 days. I would like to say thanks to everybody that helped me pass thru this experience: Otavio Salvador (my advocate and mentor), Christian Perrier and Luk Claes (Mentors and Uploaders), Clément Stenac (my AM), Christoph Berg (Front Desk), Joerg Jaspert and James Troup (DAMs). They are directly involved in my NM process, but they were not alone, thanks for every single person that helped me with tips and hints, that took some time to teach me and all the people behind different projects in Debian (I really start naming everybody but then I realize that it got very large for Planet): Debian Brasil, Debian Volatile (aba, zobel, sgran), Release Team, Debian Women, Debian i18n Task Force and Debian l10n Brazilian Portuguese, Debian Weekly News Team, buildd.net project, Alioth admins and staff, Debian Installer Team, Debian Kernel Team, Debian Mentors, DebConf Team, OFTC Staff, Debian QA Team, Debian Doc Team, Debian WWW Team, Debian Admin Team (DSA)! People, you know who you are, thank you VERY much! You can check my Status Page to see more details about my NM process and more information about the acronyms used on this post. Now, Brazil has 17 Debian Developers (not counting the one that already retired). :-)

2 January 2007

Alexis Sukrieh: etch is ready for the laptop

Yes, I can tell you, if you have a laptop and want to power it with GNU/Linux, dont run too fast towards Ubuntu’s mirrors, give Debian etch 4.0 a try. It rocks baby. I’ve just installed it on an Asus W3 and a Sony Vaio SZ and the result is amazing. Everything works, even the damned suspend-to-ram thing works out-of-the box on the Asus laptop (not to mention it’s the first time I manage to suspend that laptop in that mode). Congratulations to the Debian-Installer team, you’ve made a great job guys: I wanted to have a 100% encrypted partition for my laptop and had nothing to do but telling d-i so. The graphical interface rocks too, maybe a little issue with synaptic touchpads though but that’s not that a problem as you can use the keyboard bindings at any time. That’s why I like Debian, you can raise your voice as much as you like when the release is not out in time, it just does not matter, because when it’s out, you know that quality is there. So be patient and enjoy the pleasure of the sexiest distro ever: Debian “etch” 4.0

MJ Ray: slef-reflections, Year 5

Happy New Year. Time for my site's annual refresher over the next few weeks. According to some quick greps, last year's top 5 topics by comment volume were: debian, business, media, green issues and England (ID cards, civic info, and so on). Is that what visitors would like to see more?

Thijs Kinkhorst: On Cross Site Request Forgeries

Web applications suffer from a lot of security issues. This may be attributed in part to the ease of use of the most popular web scripting language, but I think the most important cause is that it's inherently easier to exploit web applications. They run in a browser that will run JavaScript code that has access to login data when any small piece of information hasn't been explicitly sanitised. While one would not recognise copy-pasting rm -rf / from a web page into a terminal as a security issue, when a web application user clicks a malicious link it is, because these links can be obscured in various ways. A relatively new issue is the Cross Site Request Forgery (CSRF/XSRF). In short: a malicious site has a hidden form that POSTs to the web application. If the user presses some harmless-looking button, it will be submitted to the original web application which then accepts it because the user has the right cookie. There have been lots of web applications that have introduced some kind of shield against CSRF, mostly it boils down to the form having a random string inserted which is checked upon form submission. I do not think that this is sufficient: it will fend off the most simple attacks, but an attacker investing a little more time can use things like AJAX to request the form from the remote website, get the random string out of it and put it into the malicious form. Won't this kind of "protection" only provide a false sense of security? Is there a technique that web application developers can use to to thoroughly prevent CSRF with their app?

Paul Wise: 2 Jan 2007

[RV Heraclitus SE Asia voyage: blog photos] Arrived at Ko Phuket a few days ago, I'm off the ship and at a hotel. In Bintan, we saw an interesting looking resort with plenty of coconut trees, logs and other stuff floating in the harbour, a snake oil merchant (with a live cobra), barges and transformer ferries, pouring rain and bad drainage. We left Bintan, went south for Selat Durian, then north past Singapore Straits, into the infamous Straits of Malacca and north past Malaysia and to the tourist island of Phuket. Along the way, we saw the coals of sunset, massive jellyfish in the dark green water, huge queues of massive ships covering the horizon as we passed the entrance to the Straits of Singapore, lights from Singapore in the distance, the pirate-free Straits of Malacca, where many large cargo and other ships passed us, the fleet of lights/boats that sprung up as if from nowhere some 50 miles off Phukey, the last sunrise on the ship (in a bay near Phuket) and an awesome NYE party on the ship. Leaving the Heraclitus has been hard, I'm gonna miss that black and red ship and the awesome crew who got us the 3000 or so nautical miles from Cairns to Phuket. Now it is time to visit some Thai Linux developers and return to Australia.

Evan Prodromou: 11 Niv se CCXV

What a great day it was in the Bay Area today -- just beautiful. It's Rose Bowl weather, of course -- Nature blesses California on the day of the Rose Bowl, just so people in the rest of the USA say, "Damn those Californians and their great weather!" Still, there's something so rejuvenating every year around the 10th-11th of Niv se. I wonder what it is? Oh, and: no, we don't have the Rose Bowl in northern California. It's just one of the few times of year that San Franciscans are happy to share the state with their southern neighbors. tags:

Fruitcake So, there's a comedy tradition around the holidays that marks the crappiest possible gift you can get for Christmas as a fruitcake. This is stupid; fruitcake is delicious. Candied fruit + nuts + cake + rum = hooray for fruitcake. My parents got a couple of fruitcakes for Christmas, and they tasted great. I've been noshing on them a bit at a time all week. Great stuff! Rumtastic. Anyone who says otherwise is full of malarkey. In conclusion, fruitcake is delicious and Carthage must be destroyed. tags:

New Year's Eve Maj, Amita June and I had a hard New Year's Eve. Our friends Earl and Sue have an NYE party in Walnut Creek every year, and a lot of our friends from Pigdog Journal are there every year. We had planned to have a room at the nearby Embassy Suites, and have friends over before the party to see Amita June (who needs to be asleep by New York midnight, i.e. 9PM PST). But Maj is feeling really sick -- flu-y and nauseous -- and we had to cancel this pre-event. Bad feelings about this; we've missed seeing this group of friends a few times since the baby was born, and some of them have never met her. Eventually, we all managed to go to Earl and Sue's party together, then left early so Amita could get to sleep. A pretty good solution all around. I got to see a lot of old friends, including Sam and Shannon who just announced that she's blogging for two now. (Congrats!) Tjames was there with his ladyfriend Robyn, which was really nice. They made out a lot, which makes me pretty happy. We saw Dan, Johnny, Randy, Dave, and of course Earl and Sue themselves. A really good party. tags:

All is quiet I had a pretty mild shom-pan-yah hangover this morning, so we were fully able to go see friends Zach and Wendy in El Cerrito for brunch. We hit delicious Picante off of Gilman Street, which is a massive Mexican restaurant, near the Berkeley Gourmet Ghetto and showing some of the foodie-ism of the weird East Bay scene. I had a really good plate of chilaquiles, and Maj had some huevos rancheros and made a pretty good dent in them -- the first food she's really eaten in a few days. Amita June got a great quesadilla with queso fresco that tasted really good. Then, everyone was ready for a nap, so we said goodbye and cut the visit short by heading back to Los Altos Hills. tags:

Ads on Wikipedia So, there's been quite a dust-up on Wikimedia Foundation lists about their recent fund-raising drive. The WMF is having its annual fundraising drive (and, if you can, please help with a donation), and the Virgin Group's charity organization, Virgin Unite, set up a matching fund a few days ago so that all donations to the WMF were effectively doubled. All fine so far, right? But a small logo in the donations notice -- seen by non-logged-in users on every page of every WMF site -- was considered by many Wikipedians and other WMF editors as dangerously close to the line on advertising -- or over it. There have been several prominent users who have left the project because of it. I'm not sympathetic with these folks; in fact, I'm in solid opposition. I think that Wikipedia's huge amount of Web traffic is a resource that the Foundation is squandering. Traffic like Wikipedia's is worth tens of millions if not hundreds of millions of dollars in ad revenue per year. That's money that could go to disseminate free (libre and gratis) paperback pocket encyclopedias to millions of schools and millions of children, in their own language, around the world. It's irresponsible to abuse that opportunity. Brion Vibber's defense of the logo on the Wikimedia Foundation's mailing list is really interesting and instructive. tags:

Dirk Eddelbuettel: And another New Year's Day 5k run in Lincoln Park

For the fifth time in a row, I started yet another year with 5k race by participating in the 22th New Year's Day 5k at the lakefront. The race had decent conditions. Chicago is currently having unusually mild weather, which is an extra bonus. It was well over 50 degrees yesterday, but a little cooler around fourty this morning, and unfortunately overcast. And luckily fairly little wind as it can be unplesant at the lake. Following some mild training runs both Saturday and Sunday, I took it relatively easy and finished around 20:15 or 20:20 -- I forgot to stop the Garmin at the finish, and the official results are not yet published. Not a bad time given that I haven't really trained since the last marathon.

1 January 2007

Russell Coker: installing Xen domU on Debian Etch

I have just been installing a Xen domU on Debian Etch. I'll blog about installing dom0 later when I have a test system that I can re-install on (my production Xen machines have the dom0 set up already). The following documents a basic Xen domU (virtual machine) installation that has an IP address in the 10.0.0.0/8 private network address space and masquerades outbound network data. It is as general as possible.

lvcreate -n xen1 -L 2G /dev/vg

Firstly use the above command to create a block device for the domU, this can be a regular file but a LVM block device gives better performance. The above command is for a LV named xen1 on an LVM Volume Group named vg.

mke2fs -j /dev/vg/xen1

Then create the filesystem with the above command.

mount /dev/vg/xen1 /mnt/tmp
mount -o loop /tmp/debian-testing-i386-netinst.iso /mnt/cd
cd /mnt/tmp
debootstrap etch . file:///mnt/cd/
chroot . bin/bash
vi /etc/apt/sources.list
/etc/hosts /etc/hostname
apt-get update
apt-get install libc6-xen
linux-image-xen-686 openssh-server
apt-get dist-upgrade

Then perform the basic Debian install with the above commands. Make sure that you change to the correct directory before running the debootstrap command. The /etc/hosts and /etc/hostname files need to be edited to have the correct contents for the Xen image (the default is an empty /etc/hosts and /etc/hostname has the name of the parent machine). The file /etc/apt/sources.list needs to have the appropriate configuration for the version of Debian you use and for your preferred mirror. libc6-xen is needed to stop a large number of kernel warning messages on boot. It's a little bit of work before you get the virtual machine working on the network so it's best to do these commands (and other package installs) before the following steps. After the above type exit to leave the chroot and run umount /mnt/tmp.

lvcreate -n xen1-swap -L 128M /dev/vg
mkswap /dev/vg/xen1-swap

Create a swap device with the above commands.

auto xenbr0
iface xenbr0 inet static
pre-up brctl addbr xenbr0
post-down brctl delbr xenbr0
post-up iptables -t nat -F
post-up iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/24 -j MASQUERADE
address 10.1.0.1
netmask 255.255.255.0
bridge_fd 0
bridge_hello 0
bridge_stp off

Add the above to /etc/network/interfaces and use the command ifup xenbr0 to enable it. Note that this masquerades all outbound data from the machine that has a source address in the 10.1.0.0/24 range.

net.ipv4.conf.default.forwarding=1

Put the above in /etc/sysctl.conf, run sysctl -p and echo 1 > /proc/sys/net/ipv4/conf/all/forwarding to enable it.

cp /boot/initrd.img-2.6.18-3-xen-686 /boot/xen-initrd-18-3.gz

Set up an initial initrd (actually initramfs) for the domU with a command such as the above. Once the Xen domU is working you can create the initrd from within it which gives a smaller image.

kernel = "/boot/vmlinuz-2.6.18-3-xen-686"
ramdisk = "/boot/xen-initrd-18-3.gz"
memory = 64
name = "xen1"
vif = [ '' ]
disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w' ]
root = "/dev/hda ro"
extra = "2 selinux=1 enforcing=0"

The above is a sample Xen config file that can go in /etc/xen/xen1. Note that this will discover an appropriate bridge device by default, if you only plan to have one bridge then it's quite safe, if you want multiple bridges then things will be a little more complex. Also note that there are two block devices created as /dev/hda and /dev/hdb, obviously if we wanted to have a dozen block devices then we would want to make them separate partitions with a virtual partition table. But in most cases a domU will be a simple install and won't need more than two block devices.

xm create -c xen1

Now start the Xen domU with the above command. The -c option means to take the Xen console (use ^] to detach). After that you can login as root at the Xen console with no password, now is a good time to set the password.

Run the command apt-get install udev, this could not be done in the chroot before as it might mess up the dom0 environment. Edit /etc/inittab and disable gettys on tty2 to tty6, I don't know if it's possible to use them (the default and only option for xen console commands is tty1) and in any case you would not want 6, saving a few getty processes will save some memory.

Now you should have a basically functional Xen domU. Of course a pre-requisite for this is having a machine with a working dom0 installation. But the dom0 part is easier (and I will document it in a future blog post).

Next.

Previous.