For example, here you can find a very exhaustive documentation on installing Qemu and Kqemu (the Kqemu part is the really interesting one).
One interesting part it doesn’t explain is the "-localtime" switch (although it is correctly used in the examples). This switch tells Qemu to set the clock of the virtual machine to the local time rather than the UTC (also known as GMT) time. This is important because Windows and Linux have two different philosophies regarding the meaning of the BIOS (battery powered) clock: Linux thinks that it represents the UTC/GMT time and uses the specified time-zone to calculate the local time from it whenever needed, while Windows (and DOS) thinks that it should represent the local time and uses the time-zone to calculate the GMT time whenever needed (this is why dual-booting is problematic unless both OS’s use a network service to synchronize their time and/or you tweak Linux to set the BIOS clock to the local time). In conclusion: if you are running a Windows/DOS guest with Qemu from Linux, don’t forget to specify the "-localtime" switch.
And the last tip: Qemu recently moved from CVS to SVN. The new checkout command to obtain the source code is:
svn checkout http://svn.savannah.gnu.org/svn/qemu/
or if you are interested just in the trunk (not the branches and tags:
svn checkout http://svn.savannah.gnu.org/svn/qemu/trunk/
In case you don’t have Subversion installed (which is the case by default on Ubuntu) and you are running a Debian based system, it can be resolved with:
sudo apt-get install subversion
Update: changed sv to savannah to be correct (sv seems to deliver a 301 which svn doesn’t seem to handle)
]]>Lately I started to dive into open-source development, specifically Qemu. Since I’m relatively new, here are some commands I found useful:
cvs -z3 -d:pserver:[email protected]:/sources/qemu co qemu – to check out the source code from a CVS repository, the Qemu source code in this case. Unfortunately CVS by default (without SSH tunneling, etc) uses a rather strange port (2401), which is firewalled at most places.
cvs diff -u vl.c vl.h > ../dump_traffic_to_pcap.patch – to create a so called patch
(a list of differences between the files on your hard drive and the ones in CVS) file which can later be applied to the source code by the maintainer(s) of the project if s/he so chooses. This command must be issued from within the directory where the project was checked out, so that it can pick up the settings of the checkout.
Some tips I picked up until now (again, I’m by no means an expert):
tofrodospackage if you are using Ubuntu)
separate computer only for browsing. The rules would be:
Following these rules you get a more secure and more convenient system than using a separate PC with something like DeepFreeze, but you loose the ability to stay logged on sites (because you loose all your cookies, history and cache).
]]>