Personal tools
You are here: Home Members kaeru's Home Kaeru's Blog Ubuntu under Qemu
Document Actions

Ubuntu under Qemu

About to start printing 25,000 Ubuntu installation copies of Ubuntu for distribution in developing countries. Family PC is on Ubuntu, and a lot of people also now on Ubuntu Breezy. In order to give better support, I need an accessible copy around, so I decided to give the FOSS QEMU emulator/virtual computer a go on my FreeBSD notebook.

QEMU

http://fabrice.bellard.free.fr/qemu/

Installing QEMU is a snap on FreeBSD.

cd /usr/ports/emulators/qemu
make install clean

Next I needed to create a disk image (I love these).

qemu-img create ubuntu.img 4G

I don't think I saw examples in the docs. A quick google got me what I needed which was to boot and install from an iso file to the qemu virtual PC.  I can't stress how important a few commonly used examples are. FreeBSD man pages almost always include them. After seeing examples, the command line options (which are well documented) become much easier to understand.

qemu -cdrom install.iso -hda ubuntu.img -boot d

And we're off...

Ubuntu Boot Up Screen

The initial boot up screen of Ubuntu 5.10 from CD.

Ubuntu LVM Install Screen

LVM installation. This is something, I'm interested in looking more into when I can find some time (hah!).
Installation takes forever (a few hours). My notebook's Pentium-M 1.4Ghz just doesn't have enough juice under emulation mode. Linux users (and FreeBSD support experimental) have access to a virtualization module which brings QEMU closer to VMWare and Xen in terms of performance. A faster machine say a Pentium 2.8Ghz or the fastest AMD CPUs would probably make emulation mode more usable.

Ubuntu Gnome under QEMU hosted by FreeBSD

Suprisingly, once the desktop is loaded it is quite usable. Only animated graphics is slow, but this may not hold true if using full screen mode. At this stage it is good enough for me to use synaptic and terminal to help troubleshoot. Though not fast enough to try other things yet. There are a lot more options such as networking and sound, and probably performance. Those will have to wait until the weekend I guess. Too much work to do this week.


Tuesday, October 11, 2005 in FOSSFreeBSD  | Permalink |  Comments (3)
del.icio.us   Digg    

Multiple cd-roms

Posted by Khairil Yusof at 2005-12-05 07:34 AM
For distro's with multiple cds, you can go into monitor mode and change CDs http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

Thanks to platypus for pointing this out.

kqemu and samba on FreeBSD

Posted by Khairil Yusof at 2005-12-05 07:36 AM
When installing qemu on FreeBSD you would also probably want to pass on these make options:

WITH_KQEMU=1
WITH_SAMBA=1

KQEMU

Posted by Khairil Yusof at 2005-12-16 08:41 PM
after compiling WITH_KQEMU=yes, don't forget to load the kernel module

# kldload kqemu

or add it in /boot/loader.conf to start automatically each time

kqemu_load="YES"
Kaeru's Blog
« July 2008 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Categories:
FOSS (97)
FreeBSD (34)
IOSN (13)
Life (52)
Palm (8)
Python (4)
SME (2)
The Knowledge Worker (2)
Zope (3)

Blog feeds

  • Blog RSS Button
  • Blog RDF Button

Other sites

  • Free and Open Source Software Foundation Malaysia Web Button

My Profile

  • View Khairil Yusof's profile on LinkedIn

No to OOXML

 

Powered by Plone Section 508 WCAG Valid CSS Usable in any browser IOSN

Copyright respective authors. Unless otherwise specified, content licensed under Creative Commons Attribution License.

Legal Disclaimer