[QEMU] AIX

Alexandria·2024년 3월 1일

QEMU

목록 보기
3/3
post-thumbnail

1. 설치

qemu를 이용하여 가상 머신을 생성해본다.

우선 OS가 설치될 디스크를 생성해본다.

# qemu-img create -f qcow2 hdisk0.qcow2 40G
Formatting 'disk.qcow2', fmt=qcow2 size=21474836480 cluster_size=65536 lazy_refcounts=off refcount_bits=16

power pc를 에뮬레이터하기 위해 qemu-system-ppc64를 실행한다.

OS를 설치하기 위해 부팅은 cdrom으로부터 진행한다.

# qemu-system-ppc64 -cpu POWER9 -machine pseries -m 2048 -serial stdio -hda hdisk0.qcow2 -cdrom AIX_7.2.iso -prom-env boot-command='boot cdrom:' -vga std -vnc 0.0.0.0:0

실행 후 시스템 콘솔을 정의하라고 나온다. 1입력 후 Enter를 입력한다.

No console specified using screen & keyboard

  Welcome to Open Firmware

  Copyright (c) 2004, 2017 IBM Corporation All rights reserved.
  This program and the accompanying materials are made available
  under the terms of the BSD License available at
  http://www.opensource.org/licenses/bsd-license.php


Trying to load:  from: /vdevice/v-scsi@71000003/disk@8200000000000000: ...   Successfully loaded
AIX
Star
...
 ******* Please define the System Console. *******

Type a 1 and press Enter to use this terminal as the
  system console.
Pour definir ce terminal comme console systeme, appuyez
  sur 1 puis sur Entree.
Taste 1 und anschliessend die Eingabetaste druecken, um
  diese Datenstation als Systemkonsole zu verwenden.
Premere il tasto 1 ed Invio per usare questo terminal
  come console.
Escriba 1 y pulse Intro para utilizar esta terminal como
  consola del sistema.
Escriviu 1 1 i premeu Intro per utilitzar aquest
  terminal com a consola del sistema.
Digite um 1 e pressione Enter para utilizar este terminal
  como console do sistema.

1을 눌러서 영문으로 설치를 진행한다.


>>>  1 Type 1 and press Enter to have English during install.
     2 Entreu 2 i premeu Intro per veure la instal▒laci▒ en catal▒.
     3 Entrez 3 pour effectuer l'installation en fran▒ais.
     4 F▒r Installation in deutscher Sprache 4 eingeben
        und die Eingabetaste dr▒cken.
     5 Immettere 5 e premere Invio per l'installazione in Italiano.
     6 Digite 6 e pressione Enter para usar Portugu▒s na instala▒▒o.
     7 Escriba 7 y pulse Intro para la instalaci▒n en espa▒ol.

>>> Choice [1]: 1

설치 환경을 확인하기 위해 2를 입력한다.

                      Welcome to Base Operating System
                      Installation and Maintenance

Type the number of your choice and press Enter.  Choice is indicated by >>>.

>>> 1 Start Install Now with Default Settings

    2 Change/Show Installation Settings and Install

    3 Start Maintenance Mode for System Recovery

    4 Make Additional Disks Available

    5 Select Storage Adapters

>>> Choice [1]: 2

1번 항목에 hdisk0가 있음을 확인해야 한다. 디스크가 안잡힐 수도 있다.

Enter 혹은 0을 입력하면 디폴트로 진행된다.

                          Installation and Settings

Either type 0 and press Enter to install with current settings, or type the
number of the setting you want to change and press Enter.

    1  System Settings:
         Method of Installation.............New and Complete Overwrite
         Disk Where You Want to Install.....hdisk0

    2  Primary Language Environment Settings (AFTER Install):
         Cultural Convention................English (United States)
         Language ..........................English (United States)
         Keyboard ..........................English (United States)
         Keyboard Type......................Default
    3  Security Model.......................Default
    4  More Options  (Software install options)
    5  Select Edition.......................standard
>>> 0  Install with the current settings listed above.

                       +-----------------------------------------------------
    88  Help ?         |    WARNING: Base Operating System Installation will
    99  Previous Menu  |    destroy or impair recovery of ALL data on the
                       |    destination disk hdisk0.
>>> Choice [0]:

여기서도 hdisk0가 있음을 다시 한번 확인한다.

Enter 혹은 1을 입력하면 디폴트로 진행된다.

                            Overwrite Installation Summary

Disks:  hdisk0
Cultural Convention:  en_US
Language:  en_US
Keyboard:  en_US
Graphics Software:  Yes
System Management Client Software:  Yes
OpenSSH Client Software:  No
OpenSSH Server Software:  No
Enable System Backups to install any system:  Yes
Selected Edition:  standard

Optional Software being installed:




>>> 1   Continue with Install
                       +-----------------------------------------------------
    88  Help ?         |    WARNING: Base Operating System Installation will
    99  Previous Menu  |    destroy or impair recovery of ALL data on the
                       |    destination disk hdisk0.
>>> Choice [1]:

이후 설치 과정을 기다린다.

...
Filesets processed:  635 of 726
System Installation Time: 1 hr 1 mins    Tasks Complete: 83%

installp: APPLYING software for:
        devices.pciex.df1020e214103904.rte 7.2.3.0


Filesets processed:  636 of 726
System Installation Time: 1 hr 1 mins    Tasks Complete: 83%

installp: APPLYING software for:
        devices.pciex.df1020e214103804.rte 7.2.3.0


Filesets processed:  637 of 726
System Installation Time: 1 hr 1 mins    Tasks Complete: 83%

installp: APPLYING software for:
        devices.pciex.df1020e214103604.rte 7.2.3.0
...

설치 완료가 되었다. 하지만 디스크로 부팅하더라도 에러가 발생한다.

cdrom 부팅 절차 중 유지보수 모드로 들어간다.


Set_Bootlist: Could not set the bootlist to:
hdisk0    .
The boot device must be set in the host KVM.
Press 1 to continue: 1
...
                      Welcome to Base Operating System
                      Installation and Maintenance

Type the number of your choice and press Enter.  Choice is indicated by >>>.

>>> 1 Start Install Now with Default Settings

    2 Change/Show Installation Settings and Install

    3 Start Maintenance Mode for System Recovery

    4 Make Additional Disks Available

    5 Select Storage Adapters

    88  Help ?
    99  Previous Menu

>>> Choice [1]: 3

                    Maintenance

Type the number of your choice and press Enter.

>>> 1 Access a Root Volume Group
    2 Copy a System Dump to Removable Media
    3 Access Advanced Maintenance Functions
    4 Erase Disks
    5 Configure Network Disks (iSCSI)
    6 Select Storage Adapters
    7 Install from a System Backup

    88  Help ?
    99  Previous Menu

>>> Choice [1]: 1

                  Warning:

If you choose to access a root volume group, you will not be able to return
to the Base Operating System Installation menus without rebooting.


Type the number of your choice and press Enter.

    0 Continue

    88  Help ?
>>> 99  Previous Menu

>>> Choice [99]: 0

                           Access a Root Volume Group

Type the number for a volume group to display the logical volume information
and press Enter.

   1)   Volume Group 00000000000000000000018585e4ba97 contains these disks:
          hdisk0  20480        vscsi

   Choice: 1

                           Volume Group Information

 ------------------------------------------------------------------------------
    Volume Group ID 00000000000000000000018585e4ba97 includes the following
    logical volumes:

         hd5         hd6         hd8         hd4         hd2      hd9var
         hd3         hd1     hd10opt   hd11admin    livedump
 ------------------------------------------------------------------------------








Type the number of your choice and press Enter.

   1) Access this Volume Group and start a shell
   2) Access this Volume Group and start a shell before mounting filesystems

  99) Previous Menu

    Choice [99]: 1

쉘이 떨어진다.

디스크로 부팅하기 위해 fsck64를 수정한다.

The current volume is: /dev/hd10opt
Primary superblock is valid.
Filesystems mounted for maintenance work.
# cd /sbin/helpers/jfs2
# cat > fsck64 << end
> #!/bin/ksh
> exit 0
> end
# cat fsck64
#!/bin/ksh
exit 0
# sync ; sync
# halt
....Halt completed....

이후 디스크를 통한 부팅을 시작해본다.

# qemu-system-ppc64 -cpu POWER8 -machine pseries -m 8192 -serial stdio -drive file=hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom AIX_7.2.iso  -prom-env "boot-command=boot disk:" -vga std -vnc 0.0.0.0:0
...
                            Set Terminal Type
The terminal is not properly initialized.  Please enter a terminal type
and press Enter.  Some terminal types are not supported in
non-English languages.

     ibm3101          tvi912          vt330           aixterm
     ibm3151          tvi920          vt340           dtterm
     ibm3161          tvi925          wyse30          xterm
     ibm3162          tvi950          wyse50          lft
     ibm3163          vs100           wyse60          sun
     ibm3164          vt100           wyse100
     ibmpc            vt320           wyse350

                      +-----------------------Messages-----------------------
                      | ERROR:  Undefined terminal type.  Please try again.
    88  Help ?        |
                      | If the next screen is unreadable, press Break (Ctrl-c)
                      | to return to this screen.
>>> Choice []: vt100

라이센스 수용 여부를 묻는다.

방향 키로 커서를 이동 후 Accept에서 Enter를 누른다.

                          Software License Agreements

Move cursor to desired item and press Enter.

  Show Installed License Agreements
  Accept License Agreements

라이센스에서 no위치에서 Tab을 눌러 yes로 변환한 뒤 Enter를 누른다.

                           Accept License Agreements

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                         ts                           [Entry Fields]
  ACCEPT Installed License Agreements                 yes                    +

이후, Esc 누른 후 0을 입력하여 추가 설치를 진행한다.

                             Installation Assistant

Move cursor to desired item and press Enter.

  Set Date and Time
  Set root Password
  Configure Network Communications
  Install Software Applications
  System Workload Partition Software Maintenance
  Using SMIT (information only)
  Tasks Completed - Exit to Login

Tasks Completed를 선택하면 완료된다.

AIX Version 7
Copyright IBM Corporation, 1982, 2018.
Console login: root
root's Password:
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 7.2!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************

#

2. 참고

https://www.jazakallah.info/post/how-to-install-ibm-aix-in-your-laptop

http://gibsonnet.net/blog/cgaix/resource/AIX_QEMU_blog.pdf

https://kwakousys.wordpress.com/2020/09/06/run-aix-7-2-on-x86-with-qemu/

profile
IT 도서관

0개의 댓글