Merge pull request #1827 from rkratky/FR-5513-formatting-language-fixes

Fixes formatting, language and markup in s390x autoinstall
This commit is contained in:
Dan Bungert 2023-10-06 08:26:04 -06:00 committed by GitHub
commit 9621eeca9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 24 deletions

View File

@ -1,13 +1,13 @@
.. _autoinstall-quickstart-s390x: .. _autoinstall-quickstart-s390x:
Autoinstall quick start for s390x Automatic installation quick start for s390x
********************************* ********************************************
The intent of this page is to provide simple instructions to perform an This how-to provides basic instructions to perform an automatic installation
autoinstall in a VM on your machine on s390x. in a virtual machine (VM) on a local machine on the s390x architecture.
This page is just a slightly adapted page of the This how-to is a version of :ref:`autoinstall_quickstart`.
`autoinstall quickstart page<autoinstall_quickstart>` mapped to s390x. adapted for s390x.
Download an ISO Download an ISO
=============== ===============
@ -31,9 +31,9 @@ Mount the ISO
Write your autoinstall config Write your autoinstall config
============================= =============================
This means creating cloud-init config as follows: Create a cloud-init configuration:
.. code-block:: bash .. code-block:: none
mkdir -p ~/www mkdir -p ~/www
cd ~/www cd ~/www
@ -48,14 +48,14 @@ This means creating cloud-init config as follows:
EOF EOF
touch meta-data touch meta-data
The crypted password is just ``ubuntu``. The crypted password is ``ubuntu``.
Serve the cloud-init config over HTTP Serve the cloud-init config over HTTP
===================================== =====================================
Leave this running in one terminal window: Leave this running in one terminal window:
.. code-block:: bash .. code-block:: none
cd ~/www cd ~/www
python3 -m http.server 3003 python3 -m http.server 3003
@ -65,7 +65,7 @@ Create a target disk
Proceed with a second terminal window: Proceed with a second terminal window:
.. code-block:: bash .. code-block:: none
sudo apt install qemu-utils sudo apt install qemu-utils
... ...
@ -85,17 +85,17 @@ Proceed with a second terminal window:
refcount bits: 16 refcount bits: 16
corrupt: false corrupt: false
Run the install! Run the installation
================ ====================
.. code-block:: bash .. code-block:: none
sudo apt install qemu-kvm sudo apt install qemu-kvm
... ...
You may need to add the default user to the ``kvm`` group: <<BR>> Add the default user to the ``kvm`` group:
.. code-block:: bash .. code-block:: none
sudo usermod -a -G kvm ubuntu # re-login to make the changes take effect sudo usermod -a -G kvm ubuntu # re-login to make the changes take effect
@ -106,20 +106,19 @@ You may need to add the default user to the ``kvm`` group: <<BR>>
-initrd ~/iso/boot/initrd.ubuntu \ -initrd ~/iso/boot/initrd.ubuntu \
-append 'autoinstall ds=nocloud-net;s=http://_gateway:3003/ console=ttysclp0' -append 'autoinstall ds=nocloud-net;s=http://_gateway:3003/ console=ttysclp0'
This will boot, download the config from the server (set up in the previous The above commands boot the virtual machine, download the configuration from the server
step) and run the install. (prepared in the previous step) and run the installation.
The installer reboots at the end but the ``-no-reboot`` flag to ``kvm`` means The installer reboots at the end. The ``-no-reboot`` flag to ``kvm`` instructs ``kvm``
that ``kvm`` will exit when this happens. It should take about 5 minutes. to terminate on reboot. The procedure takes approximately 5 minutes.
Boot the installed system Boot the installed system
========================= =========================
.. code-block:: bash .. code-block:: none
kvm -no-reboot -name auto-inst-test -nographic -m 2048 \ kvm -no-reboot -name auto-inst-test -nographic -m 2048 \
-drive file=disk-image.qcow2,format=qcow2,cache=none,if=virtio -drive file=disk-image.qcow2,format=qcow2,cache=none,if=virtio
This will boot into the freshly installed system and you should be able to log This command boots into the installed system. Log in using ``ubuntu`` for both the user
in as ``ubuntu/ubuntu``. name and password.