All kinds of everything....

Aodh ó Mealcaoin (Hugh Mulqueen) Aodh Ó Mealcaoin (Hugh Mulqueen)

Friday, May 3, 2013

How to run and install qemu on a fedora 17 host and an ARM debian virtual-client

Today I'm going to try to install the small Debian installation disk on a Fedora 17 host.

First the prerequists:
1. Install qemu using yum:
sudo yum install qemu

Output should be as follows:


Resolving Dependencies
--> Running transaction check
---> Package qemu.x86_64 2:1.0.1-3.fc17 will be installed
--> Processing Dependency: qemu-user = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-x86 = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-sh4 = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-mips = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-m68k = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-cris = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-system-arm = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Processing Dependency: qemu-img = 2:1.0.1-3.fc17 for package: 2:qemu-1.0.1-3.fc17.x86_64
--> Running transaction check
---> Package qemu-img.x86_64 2:1.0.1-2.fc17 will be updated
---> Package qemu-img.x86_64 2:1.0.1-3.fc17 will be an update
---> Package qemu-system-arm.x86_64 2:1.0.1-3.fc17 will be installed
--> Processing Dependency: qemu-common = 2:1.0.1-3.fc17 for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.3)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.2)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.1)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.6.0)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.10.1)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.10.0)(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
--> Processing Dependency: libspice-server.so.1()(64bit) for package: 2:qemu-system-arm-1.0.1-3.fc17.x86_64
---> Package qemu-system-cris.x86_64 2:1.0.1-3.fc17 will be installed
---> Package qemu-system-m68k.x86_64 2:1.0.1-3.fc17 will be installed
---> Package qemu-system-mips.x86_64 2:1.0.1-3.fc17 will be installed
---> Package qemu-system-sh4.x86_64 2:1.0.1-3.fc17 will be installed
---> Package qemu-system-x86.x86_64 2:1.0.1-3.fc17 will be installed
--> Processing Dependency: vgabios >= 0.6c-2 for package: 2:qemu-system-x86-1.0.1-3.fc17.x86_64
--> Processing Dependency: seabios-bin >= 0.6.0-2 for package: 2:qemu-system-x86-1.0.1-3.fc17.x86_64
--> Processing Dependency: sgabios-bin for package: 2:qemu-system-x86-1.0.1-3.fc17.x86_64
--> Processing Dependency: ipxe-roms-qemu for package: 2:qemu-system-x86-1.0.1-3.fc17.x86_64
---> Package qemu-user.x86_64 2:1.0.1-3.fc17 will be installed
--> Running transaction check
---> Package ipxe-roms-qemu.noarch 0:20120328-1.gitaac9718.fc17 will be installed
---> Package qemu-common.x86_64 2:1.0.1-2.fc17 will be updated
---> Package qemu-common.x86_64 2:1.0.1-3.fc17 will be an update
---> Package seabios-bin.noarch 0:1.7.1-1.fc17 will be installed
---> Package sgabios-bin.noarch 0:0-0.20110622SVN.fc17 will be installed
---> Package spice-server.x86_64 0:0.10.1-5.fc17 will be installed
---> Package vgabios.noarch 0:0.6c-4.fc17 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================
 Package                                       Arch                                Version                                                    Repository                            Size
=========================================================================================================================================================================================
Installing:
 qemu                                          x86_64                              2:1.0.1-3.fc17                                             updates                               30 k
Installing for dependencies:
 ipxe-roms-qemu                                noarch                              20120328-1.gitaac9718.fc17                                 fedora                               262 k
 qemu-system-arm                               x86_64                              2:1.0.1-3.fc17                                             updates                              1.3 M
 qemu-system-cris                              x86_64                              2:1.0.1-3.fc17                                             updates                              756 k
 qemu-system-m68k                              x86_64                              2:1.0.1-3.fc17                                             updates                              928 k
 qemu-system-mips                              x86_64                              2:1.0.1-3.fc17                                             updates                              4.3 M
 qemu-system-sh4                               x86_64                              2:1.0.1-3.fc17                                             updates                              1.8 M
 qemu-system-x86                               x86_64                              2:1.0.1-3.fc17                                             updates                              3.4 M
 qemu-user                                     x86_64                              2:1.0.1-3.fc17                                             updates                              4.1 M
 seabios-bin                                   noarch                              1.7.1-1.fc17                                               updates                               68 k
 sgabios-bin                                   noarch                              0-0.20110622SVN.fc17                                       fedora                               6.4 k
 spice-server                                  x86_64                              0.10.1-5.fc17                                              updates                              285 k
 vgabios                                       noarch                              0.6c-4.fc17                                                fedora                                41 k
Updating for dependencies:
 qemu-common                                   x86_64                              2:1.0.1-3.fc17                                             updates                              321 k
 qemu-img                                      x86_64                              2:1.0.1-3.fc17                                             updates                              234 k

Transaction Summary
=========================================================================================================================================================================================
Install  1 Package  (+12 Dependent packages)
Upgrade             (  2 Dependent packages)

Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
(1/15): ipxe-roms-qemu-20120328-1.gitaac9718.fc17.noarch.rpm                                                                                                      | 262 kB     00:08    
(2/15): qemu-1.0.1-3.fc17.x86_64.rpm                                                                                                                              |  30 kB     00:01    
(3/15): qemu-common-1.0.1-3.fc17.x86_64.rpm                                                                                                                       | 321 kB     00:06    
(4/15): qemu-img-1.0.1-3.fc17.x86_64.rpm                                                                                                                          | 234 kB     00:04    
(5/15): qemu-system-arm-1.0.1-3.fc17.x86_64.rpm                                                                                                                   | 1.3 MB     00:19    
(6/15): qemu-system-cris-1.0.1-3.fc17.x86_64.rpm                                                                                                                  | 756 kB     00:15    
(7/15): qemu-system-m68k-1.0.1-3.fc17.x86_64.rpm                                                                                                                  | 928 kB     00:19    
(8/15): qemu-system-mips-1.0.1-3.fc17.x86_64.rpm                                                                                                                  | 4.3 MB     00:31    
(9/15): qemu-system-sh4-1.0.1-3.fc17.x86_64.rpm                                                                                                                   | 1.8 MB     00:21    
(10/15): qemu-system-x86-1.0.1-3.fc17.x86_64.rpm                                                                                                                  | 3.4 MB     00:46    
(11/15): qemu-user-1.0.1-3.fc17.x86_64.rpm                                                                                                                        | 4.1 MB     00:48    
(12/15): seabios-bin-1.7.1-1.fc17.noarch.rpm                                                                                                                      |  68 kB     00:02    
(13/15): sgabios-bin-0-0.20110622SVN.fc17.noarch.rpm                                                                                                              | 6.4 kB     00:01    
(14/15): spice-server-0.10.1-5.fc17.x86_64.rpm                                                                                                                    | 285 kB     00:03    
(15/15): vgabios-0.6c-4.fc17.noarch.rpm                                                                                                                           |  41 kB     00:01    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                     78 kB/s |  18 MB     03:52    
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : 2:qemu-common-1.0.1-3.fc17.x86_64                                                                                                                                    1/17
  Installing : spice-server-0.10.1-5.fc17.x86_64                                                                                                                                    2/17
  Installing : 2:qemu-system-arm-1.0.1-3.fc17.x86_64                                                                                                                                3/17
  Installing : 2:qemu-system-m68k-1.0.1-3.fc17.x86_64                                                                                                                               4/17
  Installing : 2:qemu-system-mips-1.0.1-3.fc17.x86_64                                                                                                                               5/17
  Installing : 2:qemu-system-cris-1.0.1-3.fc17.x86_64                                                                                                                               6/17
  Installing : 2:qemu-system-sh4-1.0.1-3.fc17.x86_64                                                                                                                                7/17
  Installing : 2:qemu-user-1.0.1-3.fc17.x86_64                                                                                                                                      8/17
  Installing : sgabios-bin-0-0.20110622SVN.fc17.noarch                                                                                                                              9/17
  Installing : seabios-bin-1.7.1-1.fc17.noarch                                                                                                                                     10/17
  Installing : vgabios-0.6c-4.fc17.noarch                                                                                                                                          11/17
  Installing : ipxe-roms-qemu-20120328-1.gitaac9718.fc17.noarch                                                                                                                    12/17
  Installing : 2:qemu-system-x86-1.0.1-3.fc17.x86_64                                                                                                                               13/17
  Updating   : 2:qemu-img-1.0.1-3.fc17.x86_64                                                                                                                                      14/17
  Installing : 2:qemu-1.0.1-3.fc17.x86_64                                                                                                                                          15/17
  Cleanup    : 2:qemu-common-1.0.1-2.fc17.x86_64                                                                                                                                   16/17
  Cleanup    : 2:qemu-img-1.0.1-2.fc17.x86_64                                                                                                                                      17/17
  Verifying  : 2:qemu-img-1.0.1-3.fc17.x86_64                                                                                                                                       1/17
  Verifying  : 2:qemu-1.0.1-3.fc17.x86_64                                                                                                                                           2/17
  Verifying  : ipxe-roms-qemu-20120328-1.gitaac9718.fc17.noarch                                                                                                                     3/17
  Verifying  : spice-server-0.10.1-5.fc17.x86_64                                                                                                                                    4/17
  Verifying  : vgabios-0.6c-4.fc17.noarch                                                                                                                                           5/17
  Verifying  : 2:qemu-common-1.0.1-3.fc17.x86_64                                                                                                                                    6/17
  Verifying  : 2:qemu-system-arm-1.0.1-3.fc17.x86_64                                                                                                                                7/17
  Verifying  : 2:qemu-system-m68k-1.0.1-3.fc17.x86_64                                                                                                                               8/17
  Verifying  : seabios-bin-1.7.1-1.fc17.noarch                                                                                                                                      9/17
  Verifying  : 2:qemu-system-mips-1.0.1-3.fc17.x86_64                                                                                                                              10/17
  Verifying  : 2:qemu-system-x86-1.0.1-3.fc17.x86_64                                                                                                                               11/17
  Verifying  : sgabios-bin-0-0.20110622SVN.fc17.noarch                                                                                                                             12/17
  Verifying  : 2:qemu-system-cris-1.0.1-3.fc17.x86_64                                                                                                                              13/17
  Verifying  : 2:qemu-user-1.0.1-3.fc17.x86_64                                                                                                                                     14/17
  Verifying  : 2:qemu-system-sh4-1.0.1-3.fc17.x86_64                                                                                                                               15/17
  Verifying  : 2:qemu-common-1.0.1-2.fc17.x86_64                                                                                                                                   16/17
  Verifying  : 2:qemu-img-1.0.1-2.fc17.x86_64                                                                                                                                      17/17

Installed:
  qemu.x86_64 2:1.0.1-3.fc17                                                                                                                                                            

Dependency Installed:
  ipxe-roms-qemu.noarch 0:20120328-1.gitaac9718.fc17    qemu-system-arm.x86_64 2:1.0.1-3.fc17        qemu-system-cris.x86_64 2:1.0.1-3.fc17    qemu-system-m68k.x86_64 2:1.0.1-3.fc17  
  qemu-system-mips.x86_64 2:1.0.1-3.fc17                qemu-system-sh4.x86_64 2:1.0.1-3.fc17        qemu-system-x86.x86_64 2:1.0.1-3.fc17     qemu-user.x86_64 2:1.0.1-3.fc17         
  seabios-bin.noarch 0:1.7.1-1.fc17                     sgabios-bin.noarch 0:0-0.20110622SVN.fc17    spice-server.x86_64 0:0.10.1-5.fc17       vgabios.noarch 0:0.6c-4.fc17            

Dependency Updated:
  qemu-common.x86_64 2:1.0.1-3.fc17                                                            qemu-img.x86_64 2:1.0.1-3.fc17                                                          

Complete!
2. Second download the ARM image from the debian site:
wget http://hammurabi.acc.umu.se/debian-cd/6.0.6/armel/iso-cd/debian-6.0.6-armel-netinst.iso
PLEASE NOTE, this is correct of 7th of February 2013.


3. Start the .iso file with:
qemu -boot d -cdrom .iso -hda linux.img

4. Anymore directions you can follow some other link. Sorry for making you do this but go ahead and call me back if you want to!

No comments: