AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Cloud-init offline installation

    Posted 9 days ago

    Hello everyone,

    In order to create an Lpar template for PowerVC, we tried to install cloud-init offline using AIX 7.3 Toolbox but it fails due to python rpm dependencies issue which themselves have many dependencies .

    After installing dnf, we were able to list dnf repolist as shown bellow:

    bash-5.2# /opt/freeware/bin/dnf repolist

    repo id repo name

    AIX_Toolbox AIX generic repository

    AIX_Toolbox_73 AIX 7.3 specific repository

    AIX_Toolbox_noarch AIX noarch repository

    But whenever we try the dnf update command it fails with the bellow error:

    bash-5.2# /opt/freeware/bin/dnf update

    AIX generic repository 0.0 B/s | 0 B 00:00

    Traceback (most recent call last):

    File "/opt/freeware/bin/dnf", line 59, in <module>

    main.user_main(sys.argv[1:], exit_code=True)

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/main.py", line 208, in user_main

    errcode = main(args)

    ^^^^^^^^^^

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/main.py", line 67, in main

    return _main(base, args, cli_class, option_parser_class)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/main.py", line 106, in _main

    return cli_run(cli, base)

    ^^^^^^^^^^^^^^^^^^

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/main.py", line 122, in cli_run

    cli.run()

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/cli.py", line 1098, in run

    self._process_demands()

    File "/opt/freeware/lib/python3.12/site-packages/dnf/cli/cli.py", line 787, in _process_demands

    self.base.fill_sack(

    File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 413, in fill_sack

    self._add_repo_to_sack(r)

    File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 141, in _add_repo_to_sack

    repo.load()

    File "/opt/freeware/lib/python3.12/site-packages/dnf/repo.py", line 574, in load

    ret = self._repo.load()

    ^^^^^^^^^^^^^^^^^

    File "/opt/freeware/lib64/python3.12/site-packages/libdnf/repo.py", line 467, in load

    return _repo.Repo_load(self)

    ^^^^^^^^^^^^^^^^^^^^^

    libdnf._error.Error: Failed to download metadata for repo 'AIX_Toolbox': repomd.xml parser error: Parse error at line: 1 (Extra content at the end of the document

    )

    Any help please, thanks!



    ------------------------------
    Maha BEN DAOUD
    ------------------------------


  • 2.  RE: Cloud-init offline installation

    Posted 7 days ago

    Try configuring and using a local repo from the AIX Toolbox ISO media. https://community.ibm.com/community/user/blogs/sangamesh-mallayya1/2022/02/09/creating-local-repo-with-dnf-and-aix-toolbox-media



    ------------------------------
    Chris Gibson
    ------------------------------