Installing and configuring QEMU

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(first release of the outline)
 
(finito of the outline)
Line 44: Line 44:
 
     turkuaz foto # modprobe kqemu     
 
     turkuaz foto # modprobe kqemu     
 
     turkuaz foto #
 
     turkuaz foto #
 
--MuST 07:05, 14 July 2006 (EET)
 
 
  
  
Line 95: Line 92:
 
You may want to look http://www.qemu.org/qemu-doc.html for all of the arguments.
 
You may want to look http://www.qemu.org/qemu-doc.html for all of the arguments.
  
Başka bir örnek (1.1 alfa ekranının monitöre sığması için):
+
Another example (For fitting a monitor):
  
 
     jnmbk@dell $ qemu -m 512 -soundhw all -localtime -hda pardus.img -cdrom /media/sda5/indirilen/pardus-1.1-alpha.iso -boot d -std-vga
 
     jnmbk@dell $ qemu -m 512 -soundhw all -localtime -hda pardus.img -cdrom /media/sda5/indirilen/pardus-1.1-alpha.iso -boot d -std-vga
Line 101: Line 98:
  
  
Qemu, iso dosyanızı bir cd'ye yakmadan da, kurulum yapmanıza olanak sağlar. İso dosyanızın nerede olduğunu göstermeniz yeterli
+
Qemu has a feature to mount the ISO files to install an OS:
  
 
     foto@turkuaz ~ $ qemu -soundhw all -localtime -hda /home/foto/pardus.img -cdrom /home/foto/pardus-1.0.iso -boot d
 
     foto@turkuaz ~ $ qemu -soundhw all -localtime -hda /home/foto/pardus.img -cdrom /home/foto/pardus-1.0.iso -boot d
  
Bundan sonraki işlemlerde, gerçek bir sabit diske nasıl işletim sistemi kuruyorsanız yine aynısını yapmalısınız.
 
 
 
 
Not: Qemu penceresi içine fare ile tıkladığınızda artık fareyi sanal sisteminizde kullanabilirsiniz. Fareyi sanal işletim sisteminden kurtarmak için klavyeden Ctrl+Alt tuşlarını kullanabilirsiniz. Sanal işletim sisteminizi tam ekran kullanmak için klavyeden Ctrl+Alt+F tuşlarını kullabilir ve yine tam ekrandan çıkmak için yine aynı Ctrl+Alt+Ftuşlarını kullanabilirsiniz.
 
--MuST 06:05, 14 Temmuz 2006 (EET)
 
 
 
 
Not: Kurmak istediğiniz işletim sistemi iki ve daha fazla kurulum CD sine sahip ise birinci kurulum CD si bittiğinde sizden ikinci CD yi isteyecektir. İkinci CD yi takın ve Qemu ekranında iken klavyede CTRL+ALT+2 tuşları ile Qemu monitör'e geçin, şu komutu çalıştırın,
 
  
    change cdrom /dev/cdrom
 
  
ve tekrar kurulum ekranına dönmek için klavyeden CTRL+ALT+1 tuşlarını kullanın ve kuruluma devam edin.
+
Note: You can use your mouse with clicking the Qemu window. In order to free your mouse, press Ctrl + Alt buttons at the same time. Use Ctrl + Alt + F to use full screen and use the same combination to exit from full screen.
(Kurulum bittikten sonra da sanal işletim sisteminizi kullanırken cdrom'a ihtiyaç duyduğunuzda yine aynı işlemi yapmalısınız.)
+
  change cdrom /dev/cdrom
--MuST 06:15, 14 Temmuz 2006 (EET)
+
  
  
Line 133: Line 118:
  
  
Yay! (^_^)
+
Yay!
Retrieved from "http://www.pardus-wiki.org/index.php/NASIL:Qemu_Kurulumu_ve_Kullan%C4%B1m%C4%B1"
+

Revision as of 19:35, 19 May 2008

Contents

Installing an another OS with QEMU on Pardus

This document explains how to install and run QEMU with KVM support on Pardus.


Installation

Pardus->Programs->System->Konsole .

   foto@turkuaz ~ $ sudo pisi it qemu kqemu
   

This command will install qemu and it's kernel-based virtualization module kqemu. Attention::


Statement: QEMU speed up module. This program is used only at non-profit usage, for other situations, you have to see the License files.


You must add kqemu module to /etc/modules.autoload.d/kernel-2.6 in order to install it at every startup.

   foto@turkuaz ~ $ su    
   Password:    
   turkuaz foto # echo kqemu >> /etc/modules.autoload.d/kernel-2.6    
   turkuaz foto #

/etc/modules.autoload.d/kernel-2.6 file must like below;

     1 |     # /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
     2 |     #
     3 |     # Note that this file is for 2.6 kernels.
     4 |     #
     5 |     # Add the names of modules that you'd like to load when the system
     6 |     # starts into this file, one per line.  Comments begin with # and
     7 |     # are ignored.  Read man modules.autoload for additional details.
     8 |     # For example:
     9 |     # 3c59x
    10 |     kqemu


Note: If you do not want to load kqemu module every startup, you don't have to load it at /etc/modules.autoload.d/kernel-2.6. But this will guide you to load kqemu module every startup. You must enter the commands below to load the module if you did not load it into etc/modules.autoload.d/kernel-2.6

   foto@turkuaz ~ $ su    
   Password:    
   turkuaz foto # modprobe kqemu    
   turkuaz foto #


Usage

Creating Virtual Disk

Create a virtual disk with the command below. You can change the size of the disk. This command will create a 5G sized disk.

   foto@turkuaz ~ $ qemu-img create pardus.img 5G
   Formating 'pardus.img', fmt=raw, size=5242880 kB
   foto@turkuaz ~ $ ls
     pardus.img
   foto@turkuaz ~ $

pardus.img is ready for a new OS.


Installation of a New OS

Insert the CD of the OS that you want to install. You have not to mount the device. Write the commands below.

   foto@turkuaz ~ $ qemu -soundhw all -localtime -hda /home/foto/pardus.img -cdrom /dev/cdrom -boot d

The command is that; It will install all sound drivers, will use local time, will use /home/foto/pardus.img for the disk usage, will use /dev/cdrom to use CDROM device and will boot the OS with CDROM.

The explanation of the argument in the command;

-hda argument gets the *.img

-cdrom argument gets the device which has the installation CD

-boot argument gets the boot device (a) floppy disk, (c) Harddisk, (d) CDROM

-localtime argument gets the local time usage

-m argument gets the size of the RAM which we will use with the new virtual OS

-soundhw arguments install the sound drivers

You may want to look http://www.qemu.org/qemu-doc.html for all of the arguments.

Another example (For fitting a monitor):

   jnmbk@dell $ qemu -m 512 -soundhw all -localtime -hda pardus.img -cdrom /media/sda5/indirilen/pardus-1.1-alpha.iso -boot d -std-vga


Qemu has a feature to mount the ISO files to install an OS:

   foto@turkuaz ~ $ qemu -soundhw all -localtime -hda /home/foto/pardus.img -cdrom /home/foto/pardus-1.0.iso -boot d


Note: You can use your mouse with clicking the Qemu window. In order to free your mouse, press Ctrl + Alt buttons at the same time. Use Ctrl + Alt + F to use full screen and use the same combination to exit from full screen.

  change cdrom /dev/cdrom



Running The New Virtual OS

After the installation, eject the CD that is in you CDROM . Now, let's start our new and shiny virtual operating system.

   foto@turkuaz ~ $ qemu -soundhw all -localtime -hda /home/foto/pardus.img


Yay!

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox