Qemu Solaris

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 22

######### Download qemu from source or git ### Install Git and get qemu from git source

/qemu.git ### or download qemu from source ### http://wiki.qemu.org/Download mkdir qemu_sol ### run the command below

git clone git://git.qemu.org

git clone git://git.qemu.org/qemu.git ### wait for the git to finish downloading

### configure and make cd qemu ./configure --target-list=sparc-softmmu make cd .. ### Get the rom for ss5

mkdir roms cd roms wget http://home.earthlink.net/~reif/ss5.bin cd .. ### Create qemu-ifup script mkdir scripts cd scripts cat > qemu-ifup #!/bin/sh /sbin/ifconfig $1 0.0.0.0 promisc up /usr/sbin/brctl addif br0 $1 ^d chmod +x qemu-ifup cd .. ### read thru this site to make sure u have bridged your lan connection otherw ise the solaris wont have net access. ### I used the following modprobe tun /usr/sbin/brctl addbr br0 /sbin/ifconfig eth0 0.0.0.0 promisc up /usr/sbin/brctl addif br0 eth0 /sbin/dhclient br0 /sbin/iptables -F FORWARD ### also make sure u set the following net.ipv4.ip_forward = 1

####################### ### Create a disk image

mkdir disk cd disk ../qemu/qemu-img create -f qcow2 36G.disk 36G ### Formatting '36G.disk', fmt=qcow2 size=38654705664 encryption=off cluster_s ize=65536 cd .. ### Starting qemu to format the disk ### u might need to run this command as root or if u can set your permissions correctly for the tap interface ./qemu/sparc-softmmu/qemu-system-sparc -m 256 -hda 36G.disk -cdrom Solaris_2.6_S oftware_05_98.img -bios ./ss5.bin -nographic -net nic,vlan=0 -net tap,vlan=0,ifn ame=tap0,script=./qemu-ifup ### wait for the ok prompt ### Below is to boot from the cd into single user mode. This is to format the drive. ok boot disk2:d -vs ### u can remove the -v . thats to add verbose to the output

### wait for the prompt INIT: SINGLE USER MODE # format Searching for disks...WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,840000 0/esp@5,8800000/sd@0,0 (sd0): corrupt label - wrong magic number Vendor 'QEMU', product 'QEMU', 75497472 512 byte blocks done AVAILABLE DISK SELECTIONS: 0. c0t0d0 <drive type unknown> /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0, 0 Specify disk (enter its number): 0

AVAILABLE DRIVE TYPES: 0. Auto configure 1. Quantum ProDrive 80S 2. Quantum ProDrive 105S 3. CDC Wren IV 94171-344 4. SUN0104 5. SUN0207 6. SUN0327 7. SUN0340 8. SUN0424 9. SUN0535 10. SUN0669 11. SUN1.0G

12. SUN1.05 13. SUN1.3G 14. SUN2.1G 15. SUN2.9G 16. other Specify disk type (enter its number): 16 Enter number of data cylinders: 24620 Enter number of alternate cylinders[2]: Enter number of physical cylinders[24622]: Enter number of heads: 27 Enter physical number of heads[default]: Enter number of data sectors/track: 107 Enter number of physical sectors/track[default]: Enter rpm of drive[3600]: Enter format time[default]: Enter cylinder skew[default]: Enter track skew[default]: Enter tracks per zone[default]: Enter alternate tracks[default]: Enter alternate sectors[default]: Enter cache control[default]: Enter prefetch threshold[default]: Enter minimum prefetch[default]: Enter maximum prefetch[default]: Enter disk type name (remember quotes): Qemu36 selecting c0t0d0 [disk formatted] format> label Ready to label disk, continue? y WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0): corrupt label - wrong magic number Vendor 'QEMU', product 'QEMU', 75497472 512 byte blocks <Qemu36 cyl 24620 alt 2 hd 27 sec 107> format> label Ready to label disk, continue? y format>q # reboot ### back at the ok prompt

ok boot disk2:d ### this will boot from cd

################################################################################ ###### Select a Language 0) 1) 2) 3) 4) English German Spanish French Italian

5) Swedish ?0 Select a Locale The locale you select on your desktop after determines how online locale or region (for on this screen you reboot the information is example, time, becomes the default displayed system. Selecting a locale displayed for a specific date, spelling, and monetary value.)

NOTE: The ASCII only option gives you the default 128-character set that was available in previous releases. If you do not need to send/receive international correspondence where you need locale-specific alphabetic characters (like accented or umlaut characters) the ASCII only set is sufficient. Otherwise, you can select an ISO locale which contains a 256-character set. Selecting an ISO locale can cause a minor performance degradation (in many cases, less than 5%). 0) 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) USA - English (ASCII only) Czech Republic Denmark Greece Australia - English (ISO-8859-1) Canada - English (ISO-8859-1) Ireland - English ( 8 bit ) New Zealand - English ( 8 bit ) UK - English (ISO-8859-1) USA - English (ISO-8859-1) Estonia Hungary 12) 13) 14) 15) 16) 17) 18) 19) 20) 21) 22) 23) Lithuania Latvia Netherlands Netherlands/Belgium Norway Poland Portugal Portugal/Brazil Russia Finland Turkey Go Back to Previous Screen

Type a number and press Return or Enter [0]: 9

What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT52 3) DEC VT100 4) Heathkit 19 5) Lear Siegler ADM31 6) PC Console 7) Sun Command Tool 8) Sun Workstation 9) Televideo 910 10) Televideo 925 11) Wyse Model 50 12) X Terminal Emulator (xterms) 13) Other Type the number of your choice and press Return: 1

- The Solaris Installation Program --------------------------------------------The Solaris installation program is divided into a series of short sections

where you'll be prompted to provide information for the installation. At the end of each section, you'll be able to change the selections you've made before continuing. About navigation... - The mouse cannot be used - If your keyboard does not have function keys, or they do not respond, press ESC; the legend at the bottom of the screen will change to show the ESC keys to use for navigation.

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2 - Identify This System --------------------------------------------------------On the next screens, you must identify this system as networked or non-networked, and set the default time zone and date/time. If this system is networked, the software will try to find the information it needs to identify your system; you will be prompted to supply any information it cannot find. > To begin identifying this system, press F2.

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2

- Host Name -------------------------------------------------------------------On this screen you must enter your host name, which identifies this system on the network. The name must be unique within your domain; creating a

duplicate host name will cause problems on the network after you install Solaris. A host name must be at least two characters; it can contain letters, digits, and minus signs (-).

Host name: who-me

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2 - Network Connectivity --------------------------------------------------------Specify Yes if the system is connected to the networkby one of the Solaris or vendor network/communicationEthernet cards that are supported on the Solaris CD.See your hardware documentation for the current listof supported cards. Specify No if the system is connected to anetwork/communication card that is not supported onthe Solaris CD, and follow the instructions listedunder Help. Networked --------[X] Yes [ ] No

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2

- IP Address ------------------------------------------------------------------On this screen you must enter the Internet Protocol (IP) address for this system. It must be unique and follow your site's address conventions, or a system/network failure could result. IP addresses contain four sets of numbers separated by periods (for example

129.200.9.1).

IP address: 192.168.0.50

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2 - Confirm Information ---------------------------------------------------------> Confirm the following information. If it is correct, press F2; to change any information, press F4.

Host name: who-me Networked: Yes IP address: 192.168.0.50

-------------------------------------------------------------------------------Esc-2_Continue Esc-4_Change Esc-6_Help ### press esc and the number 2

- Name Service ----------------------------------------------------------------On this screen you must provide name service information. Select NIS+ or NIS if this system is known to the name server; select Other if your site is using another name service (for example, DCE or DNS); select None if your site is not using a name service, or if it is not yet established. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X].

Name service --------------------[ ] NIS+ [ ] NIS (formerly yp) [ ] Other [X] None

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2 - Confirm Information ---------------------------------------------------------> Confirm the following information. If it is correct, press F2; to change any information, press F4.

Name service: None

-------------------------------------------------------------------------------Esc-2_Continue Esc-4_Change Esc-6_Help ### press esc and the number 2

- Netmask ---------------------------------------------------------------------On this screen you must specify the netmask of your subnet. A default netmask is shown; do not accept the default unless you are sure it is correct for your subnet. A netmask must contain four sets of numbers separated by periods (for example 255.255.255.0).

Netmask: 255.255.255.0

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2

- Time Zone -------------------------------------------------------------------On this screen you must specify your default time zone. You can specify a time zone in three ways: select one of the geographic regions from the list, select other - offset from GMT, or other - specify time zone file. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X].

Regions ---------------------------------[ ] Asia, Western [ ] Australia / New Zealand [ ] Canada [ ] Europe [ ] Mexico [ ] South America [ ] United States [X] other - offset from GMT [ ] other - specify time zone file -------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2 - Offset From GMT -------------------------------------------------------------Specify the number of hours of difference between Greenwich Mean Time (also called Coordinated Universal Time) and your time zone. If you are east of Greenwich, England, enter a positive number 1 through 13; if you are west of Greenwich, England enter a negative number -12 through -1.

Hours offset: 2

-------------------------------------------------------------------------------Esc-2_Continue Esc-5_Cancel Esc-6_Help ### press esc and the number 2

- Date and Time ---------------------------------------------------------------> Accept the default date and time or enter new values. Date and time: 02/07/12 06:36 Year Month Day Hour Minute (4 digits) (1-12) (1-31) (0-23) (0-59) : : : : : 2012 2012 07 06 36

-------------------------------------------------------------------------------Esc-2_Continue Esc-6_Help ### press esc and the number 2

- Confirm Information ---------------------------------------------------------> Confirm the following information. If it is correct, press F2; to change any information, press F4.

System part of a subnet: Netmask: Time zone: Date and time:

Yes 255.255.255.0 GMT+2 02/07/12 06:36:00

-------------------------------------------------------------------------------Esc-2_Continue Esc-4_Change Esc-6_Help ### press esc and the number 2 System identification is completed.

- Solaris Interactive You'll be using the system. The initial Solaris software is

Installation --------------------------------------------initial option for installing Solaris software on the option overwrites the system's disks when the new installed.

On the following screens, you can accept the defaults or you can customize how Solaris software will be installed by: Allocating space for diskless clients or AutoClient systems Selecting the type of Solaris software to install Selecting disks to hold software you've selected Specifying how file systems are laid out on the disks

After completing these tasks, a summary of your selections (called a profile) will be displayed.

-------------------------------------------------------------------------------Esc-2_Continue Esc-5_Exit Esc-6_Help ### press esc and the number 2 - Allocate Client Services? ---------------------------------------------------Do you want to allocate space for diskless clients and/or AutoClient systems?

-------------------------------------------------------------------------------Esc-2_Continue Esc-3_Go Back Esc-4_Allocate Esc-5_Exit Esc-6_Help ### press esc and the number 2

- Select Languages ------------------------------------------------------------Select the languages you want for displaying the user interface after Solaris software is installed. English is automatically installed by default. [ [ [ [ [ ] ] ] ] ] French German Italian Spanish Swedish

-----Esc-2_Continue

Esc-3_Go Back

Esc-5_Exit

Esc-6_Help----------------

### press esc and the number 2

- Select Software -------------------------------------------------------------Select the Solaris software to install on the system. NOTE: After selecting a software group, you can add or remove software by customizing it. However, this requires understanding of software dependencies and how Solaris software is packaged. [ ] [ ] [ ] [ ] [X] Entire Distribution plus OEM support .. Entire Distribution ................... Developer System Support .............. End User System Support ............... Core System Support ................... 720.00 701.00 632.00 373.00 181.00 MB MB MB MB MB (F4 to Customize)

-------------------------------------------------------------------------------Esc-2_Continue Esc-3_Go Back Esc-4_Customize Esc-5_Exit Esc-6_Help ### press esc and the number 2

- Select Disks ----------------------------------------------------------------On this screen you must select the disks for installing Solaris software. Start by looking at the Suggested Minimum field; this value is the approximate space needed to install the software you've selected. Keep selecting disks until the Total Selected value exceeds the Suggested Minimum value. Disk Device (Size) Available Space ============================================= [X] c0t0d0 (34730 MB) 34730 MB (F4 to edit) Total Selected: 0 MB Suggested Minimum: 34735 MB

-----Esc-2_Continue

Esc-3_Go Back

Esc-4_Edit

Esc-5_Exit

Esc-6_Help--

### press esc and the number 2

- Preserve Data? --------------------------------------------------------------Do you want to preserve existing data? At least one of the disks you've selected for installing Solaris software has file systems or unnamed slices that you may want to save.

-------------------------------------------------------------------------------Esc-2_Continue Esc-3_Go Back Esc-4_Preserve Esc-5_Exit Esc-6_Help ### press esc and the number 2

- Automatically Layout File Systems? ------------------------------------------Do you want to use auto-layout to automatically layout file systems? Manually laying out file systems requires advanced system administration skills.

-------------------------------------------------------------------------------Esc-2_Auto Layout Esc-3_Go Back Esc-4_Manual Layout Esc-5_Exit Esc-6_Help ### press esc and the number 4

- File System and Disk Layout -------------------------------------------------The summary below is your current file system and disk layout, based on the information you've supplied. NOTE: If you choose to customize, you should understand file systems, their intended purpose on the disk, and how changing them may affect the operation of the system. File system/Mount point Disk/Slice Size ============================================================= overlap c0t0d0s2 34730 MB

-------------------------------------------------------------------------------Esc-2_Continue Esc-3_Go Back Esc-4_Customize Esc-5_Exit Esc-6_Help ### press esc and the number 4

- Customize Disk: c0t0d0 ------------------------------------------------------Entry: / Recommended: 23 MB Minimum: 20 MB =====================================Size (MB)================================== Slice Mount Point 0 / 1000 1 / 1000 2 overlap 32731 3 swap 16384 4 0 5 0 6 /usr 2000 7 /home 14344 =========================Capacity:==== 14344 MB=============================== Allocated: 20384 MB Rounding Error: 2 MB Free: 34728 MB

Esc-2_OK Esc-4_Options ### press esc and the number 2 Esc-5_Cancel Esc-6_Help

- File System and Disk Layout -------------------------------------------------The summary below is your current file system and disk layout, based on the information you've supplied. NOTE: If you choose to customize, you should understand file systems, their intended purpose on the disk, and how changing them may affect the operation of the system. 3 File system/Mount point of another sli Disk/Sliceup more spaceSize ============================================================= / c0t0d0s0 1000 MB /var c0t0d0s1 1000 MB overlap c0t0d0s2 32731 MB

swap /usr /home

c0t0d0s3 c0t0d0s6 c0t0d0s7

16384 MB 2000 MB 14344 MB

Esc-2_OK Esc-2_Continue

Esc-3_Go Back

Esc-4_Customize

Esc-5_Exit

Esc-6_Help

### press esc and the number 2

- Mount Remote File Systems? --------------------------------------------------Do you want to mount software from a remote file server? This may be necessary if you had to remove software because of disk space problems.

-------------------------------------------------------------------------------Esc-2_Continue Esc-3_Go Back Esc-4_Remote Mounts Esc-5_Exit Esc-6_Help ### press esc and the number 2

- Profile ---------------------------------------------------------------------The information shown below is your profile for installing Solaris software. It reflects the choices you've made on previous screens. ============================================================================ Installation Option: Boot Device: Client Services: Software: Initial c0t0d0s0 None Solaris 2.6, Core System Support c0t0d0s0 1000 MB c0t0d0s1 1000 MB

File System and Disk Layout: / /var

swap /usr /home

c0t0d0s3 16384 MB c0t0d0s6 2000 MB c0t0d0s7 14344 MB

-----Esc-2_Continue

Esc-4_Change

Esc-5_Exit

Esc-6_Help-----------------

### press esc and the number 2 - Warning ----------------------------------------------------------------------

The following disk configuration condition(s) have been detected. Errors must be fixed to ensure a successful installation. Warnings can be ignored without causing the installation to fail. WARNING: CHANGING DEFAULT BOOT DEVICE You have either explicitly changed the default boot device, or accepted the default to "Reconfigure EEPROM". In either case, the system's EEPROM will be changed so it will always boot Solaris from the device that you've specified. If this is not what you had in mind, go back to the disk selection screens and change the "Reconfigure EEPROM" setting.

-------------------------------------------------------------------------------Esc-2_OK Esc-5_Cancel ### press esc and the number 2

- Reboot After Installation? --------------------------------------------------After Solaris software is installed, the system must be rebooted. You can choose to have the system automatically reboot, or you can choose to manually reboot the system if you want to run scripts or do other customizations before the reboot. You can manually reboot a system by using the reboot(1M) command.

[ ] Auto Reboot [X] Manual Reboot

-----Esc-2_Begin Installation ### press esc and the number 2

Esc-5_Cancel-----------------------------------

Preparing system for Solaris install Configuring disk (c0t0d0) - Creating Solaris disk label (VTOC) Creating and checking UFS file systems - Creating / (c0t0d0s0) - Creating /var (c0t0d0s1)

Solaris Initial Install MBytes Installed: MBytes Remaining: 1.02 35.30

2854

Solaris, (Usr)

/ | 0 | 20 | 40 | 60 | 80 | 100

Solaris 2.6 software installation succeeded Customizing system files - Mount points table (/etc/vfstab) - Network host addresses (/etc/hosts) Customizing system devices - Physical devices (/devices) fdintr: nobody sleeping (c0 0 0) NOTICE: SBus clock frequency out of range. - Logical devices (/dev)

Installing boot information - Installing boot blocks (c0t0d0s0) - Updating system firmware for automatic rebooting WARNING: Could not update system for automatic rebooting Installation log location - /a/var/sadm/system/logs/install_log (before reboot) - /var/sadm/system/logs/install_log (after reboot) Installation complete Executing SolStart postinstall phase... Executing finish script "patch_finish"... Checking installed packages and patches... None of the packages included in patch 105570-01 are installed on this system. Patchadd is terminating. Checking installed packages and patches... None of the packages included in patch 105633-05 are installed on this system. Patchadd is terminating. Checking installed packages and patches... Executing prepatch script... Verifying sufficient filesystem capacity (dry run method)... Installing patch packages... Patch number 105654-03 has been successfully installed. See /a/var/sadm/patch/105654-03/log for details Patch packages installed: SUNWcsr Checking installed packages and patches... Executing prepatch script... Verifying sufficient filesystem capacity (dry run method)... Installing patch packages... Patch number 105924-03 has been successfully installed. See /a/var/sadm/patch/105924-03/log for details Patch packages installed: SUNWcsr Checking installed packages and patches... None of the packages included in patch 106040-03 are installed on this system. Patchadd is terminating. Finish script patch_finish execution completed. Executing JumpStart postinstall phase...

The begin script log 'begin.log' is located in /var/sadm/system/logs after reboot. The finish script log 'finish.log' is located in /var/sadm/system/logs after reboot. #

cat >> /a/etc/system set scsi_options=0x58 ^d cd /a/etc/rc2.d/ mv mv mv mv mv S71rpc s71rpc S73nfs.client s73nfs.client S74autofs s74autofs S74syslog s74syslog S88sendmail s88sendmail

reboot ### at the boot prompt boot from disk0:

ok boot disk0: Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0: File and args: SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: who-me Configuring the /devices directory fdintr: nobody sleeping (c0 0 0) NOTICE: SBus clock frequency out of range. Configuring the /dev directory The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t0d0s7: is clean. starting routing daemon. Setting netmask of le0 to 255.255.255.0 Setting default interface for multicast: add net 224.0.0.0: gateway who-me The system is ready. who-me console login: ### Ive installed the following packages on the system ### u can download them at ftp://ftp.sunfreeware.com/pub/freeware/sparc/2.6/ bash-4.1-sol26-sparc-local.gz libgcc-3.4.6-sol26-sparc-local.gz prngd-0.9.25-sol26-sparc-local.gz coreutils-7.1-sol26-sparc-local.gz libiconv-1.13.1-sol26-sparc-local.gz python-2.6.2-sol26-sparc-local.gz

egd-0.8-sol26-sparc-local.gz libintl-3.4.0-sol26-sparc-local.gz python-3.1.2-sol26-sparc-local.gz findutils-4.4.2-sol26-sparc-local.gz mc-4.6.1-sol26-sparc-local.gz slang-2.1.4-sol26-sparc-local.gz gcc-3.4.6-sol26-sparc-local.gz md5-6142000-sol26-sparc-local.gz tcp_wrappers-7.6-sol26-sparc-local.gz gettext-0.17-sol26-sparc-local.gz ncurses-5.7-sol26-sparc-local.gz top-3.6.1-sol26-sparc-local.gz glib-2.14.1-sol26-sparc-local.gz openssh-5.1p1-sol26-sparc-local.gz vim-7.3-sol26-sparc-local.gz gtk+-1.2.10-sol26-sparc-local.gz openssl-1.0.0a-sol26-sparc-local.gz zlib-1.2.5-sol26-sparc-local.gz gzip-1.4-sol26-sparc-local.gz perl-5.8.8-sol26-sparc-local.gz ### to install the packages\ gunzip the files on a linux pc first seeing as there is no gunzip installed yet ### ### once the gunzip is finished u can upload the files to the server easiest is to use nfs.

mkdir /home/solaris cat >> /etc/dfs/dfstab share -F nfs /home/solaris ^d /etc/init.d/rpc stop /etc/init.d/rpc start starting rpc services: rpcbind keyserv done. /etc/init.d/nfs.server stop /etc/init.d/nfs.server start ### on your local pc mount the nfs share.

mount -t nfs 192.168.0.50:/home/solaris solaris ### copy the packages over to the server. ### install the package with pkgadd -d "package_name"

### Hope this document helps to install solaris on qemu ### feel free to donate https://www.paypal.com/cgi-bin/webscr?cmd=_donations &business=4EPYFHLNMBUGY&lc=ZA&item_name=jb44&currency_code=USD&bn=PP%2dDonations BF%3abtn_donateCC_LG%2egif%3aNonHosted ### Thanks

You might also like