Installing and configuring QEMU

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
m (Turkish page link)
Line 1: Line 1:
 +
=[http://ozoqemuvo.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
== Installing an another OS with QEMU on Pardus ==
 
== Installing an another OS with QEMU on Pardus ==
 
This document explains how to install and run QEMU with KVM support on Pardus.
 
This document explains how to install and run QEMU with KVM support on Pardus.
Line 7: Line 8:
  
  
Pardus->Programs->System->Konsole .
+
Pardus->Programs->System->Konsole .
  
 
     foto@turkuaz ~ $ sudo pisi it qemu kqemu
 
     foto@turkuaz ~ $ sudo pisi it qemu kqemu
Line 21: Line 22:
 
     foto@turkuaz ~ $ su     
 
     foto@turkuaz ~ $ su     
 
     Password:     
 
     Password:     
     turkuaz foto # echo kqemu >> /etc/modules.autoload.d/kernel-2.6     
+
     turkuaz foto # echo kqemu >> /etc/modules.autoload.d/kernel-2.6     
 
     turkuaz foto #
 
     turkuaz foto #
  

Revision as of 02:58, 24 November 2010

Contents

This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page

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
In other languages