[Crossfire-wiki] [Crossfire DokuWiki] page changed: user:kbulgrien

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Sep 2 16:11:05 CDT 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/09/02 16:11
User        : 
Edit Summary: Incremental save ... setting up the virtual host.

@@ -1,4 +1,25 @@
+ This page contains information how to use **qemu** to test **crossfire** on a virtual host.
+ 
+ Before beginning, see [[user:kbulgrien#Mandriva qemu setup for Crossfire testing|Mandriva qemu setup for Crossfire testing]] for instructions on setting up the virtual host.
+ 
+ =======Virtual host workspace setup======
+ 
+ First, launch a terminal by clicking the **Terminal Program** icon on the **Start Bar**.  It is the icon that looks like a monitor.  Size and/or configure the terminal to taste as it will be used heavily.  The prompt will look like:
+ 
+   [tux at localhost ~]$ 
+ 
+ Next, set up a work area for the crossfire sources.
+ 
+   $ cd ~
+   $ mkdir svn
+   $ cd svn
+ 
+ This example will presume the use of //trunk// and //branch/1.x// sources.  Feel free to deviate from these instructions to reduce the size of the workspace and the amount of data that must be downloaded.
+ 
+   $ svn co https://
+ 
+ 
  =======Mandriva qemu setup for Crossfire testing======
  
  =====What packages are there?=====
  
@@ -68,8 +89,127 @@
  =====Verification=====
  
    $ sudo lsmod | grep qemu
    kqemu                 163368  0
+ 
+ =====OS Setup=====
+ 
+ Operating system images may be found at [[http://www.oszoo.org/wiki/index.php/Main_Page|oszoo.org]].
+ 
+ This example uses [[http://www.oszoo.org/wiki/index.php/Mandriva-one-2007-qemu-image.zip|Mandriva-One-2007]].
+ 
+ Download the .zip file... for purposes of this example to /home/<username>/Download/mandriva-one-2007-qemu-image.zip
+ 
+   $ cd ~
+   $ mkdir qemu
+   $ cd qemu
+   $ unzip ~/Download/mandriva-one-2007-qemu-image.zip
+   Archive:  /home/krb/Download/mandriva-one-2007-qemu-image.zip
+      creating: mandriva-one-2007-qemu-image/
+     inflating: mandriva-one-2007-qemu-image/mandriva-one-2007.qcow.img
+     inflating: mandriva-one-2007-qemu-image/mandriva-one-screen-shot.gif
+     inflating: mandriva-one-2007-qemu-image/README.txt
+   $ cd mandriva-one-2007-qemu-image
+ 
+ NOTE: If you are not using an x86_64 system, the qemu command will vary based on your system.
+ 
+   $ ls -l /usr/bin/qemu*
+   lrwxrwxrwx 1 root root      18 Sep  2 11:20 /usr/bin/qemu -> qemu-system-x86_64*
+   -rwxr-xr-x 1 root root  355832 Apr 18 09:40 /usr/bin/qemu-arm*
+   -rwxr-xr-x 1 root root  359552 Apr 18 09:40 /usr/bin/qemu-armeb*
+   -rwxr-xr-x 1 root root  513648 Apr 18 09:40 /usr/bin/qemu-i386*
+   -rwxr-xr-x 1 root root  123872 Apr 18 09:40 /usr/bin/qemu-img*
+   -rwxr-xr-x 1 root root   58646 Aug 14  2006 /usr/bin/qemu-launcher*
+   -rwxr-xr-x 1 root root  454416 Apr 18 09:40 /usr/bin/qemu-ppc*
+   -rwxr-xr-x 1 root root  487968 Apr 18 09:40 /usr/bin/qemu-sparc*
+   -rwxr-xr-x 1 root root  744880 Apr 18 09:40 /usr/bin/qemu-system-arm*
+   -rwxr-xr-x 1 root root 1209152 Apr 18 09:40 /usr/bin/qemu-system-i386*
+   -rwxr-xr-x 1 root root 1094848 Apr 18 09:40 /usr/bin/qemu-system-mips*
+   -rwxr-xr-x 1 root root  995632 Apr 18 09:40 /usr/bin/qemu-system-ppc*
+   -rwxr-xr-x 1 root root  871688 Apr 18 09:40 /usr/bin/qemu-system-sparc*
+   -rwxr-xr-x 1 root root 1366240 Apr 18 09:40 /usr/bin/qemu-system-x86_64*
+ 
+ NOTE: The following echo command will create a launch script to start up the virtual system.  Please note that the //-m 1024// option allocates 1Gb of RAM to the virtual system.  If the host system does not have that much free RAM, you must lower the number accordingly.
+ 
+   $ echo qemu-system-x86_64 -L . -hda mandriva-one-2007.qcow.img -m 1024 -boot c >launch.sh
+   $ cp /usr/share/qemu/*.bin .
+   $ bash launch.sh
+ 
+ A QEMU/KQEMU window appears with a Mandriva boot menu.  Select **linux-nonfb** and press //Enter//.  The virtual system will boot up and eventually present you with a KDE desktop.  You are auto-logged in as a user named ''tux''.
+ 
+ If you click inside that window, your mouse pointer will be trapped inside the window until you press //Ctrl-Alt//, so keep this in mind whenever you wish to switch back and forth between the host and the virtual system.
+ 
+ A **Mandriva Linux** window will pop up.  Uncheck the **Open this window on startup** box, and press the **Close** button.
+ 
+ On a 3.6 Ghz CoreDuo system with 1Gb of RAM, the virtual system runs very fast, and it is very difficult to use the keyboard because keys repeat.  The first thing to do, then, is to turn off key repeat.  Start the **KDE Control Center** by clicking **Star | System | Control Center**.  Navigate to **Peripherals | Keyboard** and uncheck the **Enable keyboard repeat** check box.  Click the **Apply** button, and close the **KDE Control Center** with **File | Quit**.
+ 
+ =====About your virtual system=====
+ 
+ * The ''tux'' and ''root'' account passwords are both ''qemuisgreat''.
+ * The system's IP address is ''10.0.2.15''.
+ * The host system's IP address is ''10.0.2.2''.
+ * The virtual system has access the internet if you host system has access.
+ 
+ =====About your host system=====
+ 
+ This example makes certain presumptions about your host system set up.  Among them are:
+ 
+ * It is possible to //ssh// into your user account on the host system from **localhost**, and, that //scp// is installed.
+ * Your host system has internet access.
+ 
+ =====About your skills=====
+ 
+ This example does presume some things about your skills.
+ 
+ * You can use the **vi** editor, or can figure out how to find and use a different text editor on your own.
+ * You are reasonably comfortable with using a BASH command-line when directed about what to type.
+ 
+ =====Setting up the tool chain=====
+ 
+ ====Give your user sudo priveleges====
+ 
+ First, you will need ''root'' access from time to time, so set that up first...
+ 
+   $ su -l root -c urpmi\ sudo
+   Password:
+   
+   ftp://ftp.u-strasbg.fr...
+   installing sudo...
+   Preparing...
+         1/1: sudo...
+ 
+ The password for ''root'' (and ''tux'') is given above.
+ 
+ Remember, the password was documented above in [[user:kbulgrien#About your virtual system|About your virtual system]].
+ 
+   $ su -l root -c visudo
+ 
+ Uncomment the following line by removing the leading ''#'' and space character.  Save your changes.  You are in the //vi// editor.  Use the arrow keys to move down to the first character of the line that reads ''# %wheel  ALL=(ALL)       ALL''.  Press ''xx<Esc>:wq''.  Teaching you how to use ''vi'' is outside of the scope of this tutorial, so from here on, you are on your own.
+ 
+   $ su -l root -c usermod\ -G\ wheel\ tux
+ 
+ ====Set up a toolchain====
+ 
+   $ sudo urpmi subversion
+   To satisfy dependencies, the following packages are going to be installed:
+   libapr-util1...
+   libapr1...
+   libsvn0...
+   subversion...
+   Proceed with the installation of the 4 packages?  (4 MB) (Y/n) y
+   ...
+   $ sudo urpmi gcc autoconf2.5 automake
+   To satisfy dependencies, the following packages are going to be installed:
+   autoconf2.1...
+   autoconf2.5...
+   automake1.8...
+   binutils...
+   gcc...
+   glibc-devel...
+   libbinutils2...
+   m4...
+   Proceed with the installation of the 8 packages? (30 MB) (Y/n) y
+   ...
  
  ======qemu packages======
  
  The following Mandriva packages are available via urpmi.


IP-Address  : 66.137.82.229
Old Revision: http://wiki.metalforge.net/doku.php/user:kbulgrien?rev=1188752019
New Revision: http://wiki.metalforge.net/doku.php/user:kbulgrien

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list