Skip to content

Commit c73174f

Browse files
committed
add KVM install
1 parent 52aa7eb commit c73174f

2 files changed

+21
-17
lines changed

modules/installation-full-ibm-z-kvm-user-infra-machines-iso.adoc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,26 @@ The file names contain the {product-title} version number. They resemble the fol
4040
The Ignition files are generated by the {product-title} installer.
4141
====
4242
. Create the new KVM guest nodes using the {op-system-base} kernel, initramfs, and Ignition files, the new disk image, and adjusted parm line arguments.
43-
** For `--location`, specify the location of the kernel/initrd on the HTTP or HTTPS server.
44-
** For `coreos.inst.ignition_url=`, specify the Ignition file for the machine role. Use `bootstrap.ign`, `master.ign`, or `worker.ign`. Only HTTP and HTTPS protocols are supported.
45-
** For `coreos.live.rootfs_url=`, specify the matching rootfs artifact for the kernel and initramfs you are booting. Only HTTP and HTTPS protocols are supported.
4643
+
4744
[source,terminal]
4845
----
4946
$ virt-install \
5047
--connect qemu:///system \
51-
--name {vm_name} \
52-
--vcpus {vcpus} \
53-
--memory {memory_mb} \
54-
--disk {vm_name}.qcow2,size={image_size| default(10,true)} \
55-
--network network={virt_network_parm} \
48+
--name <vm_name> \
49+
--memory <memory_mb> \
50+
--vcpus <vcpus> \
51+
--location <media_location>,kernel=<rhcos_kernel>,initrd=<rhcos_initrd> \ / <1>
52+
--disk <vm_name>.qcow2,size=<image_size>| default(10,true) \
53+
--network network=<virt_network_parm> \
5654
--boot hd \
57-
--location {media_location},kernel={rhcos_kernel},initrd={rhcos_initrd} \
58-
--extra-args "rd.neednet=1 coreos.inst.install_dev=/dev/vda coreos.live.rootfs_url={rhcos_liveos} ip={ip}::{default_gateway}:{subnet_mask_length}:{vm_name}:enc1:none:{MTU} nameserver={dns} coreos.inst.ignition_url={rhcos_ign}" \
55+
--extra-args "rd.neednet=1" \
56+
--extra-args "coreos.inst.install_dev=/dev/<block_device>" \
57+
--extra-args "coreos.inst.ignition_url=http://<http_server>/bootstrap.ign" \// <2>
58+
--extra-args "coreos.live.rootfs_url=http://<http_server>/rhcos-<version>-live-rootfs.<architecture>.img" \// <3>
59+
--extra-args "ip=<ip>::<gateway>:<netmask>:<hostname>::none nameserver=<dns>" \
5960
--noautoconsole \
6061
--wait
6162
----
63+
<1> For the `--location` parameter, specify the location of the kernel/initrd on the HTTP or HTTPS server.
64+
<2> Specify the location of the Ignition config file. Use `bootstrap.ign`, `master.ign`, or `worker.ign`. Only HTTP and HTTPS protocols are supported.
65+
<3> Specify the location of the `rootfs` artifact for the `kernel` and `initramfs` you are booting. Only HTTP and HTTPS protocols are supported.

modules/installation-ibm-z-kvm-user-infra-machines-iso.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ $ qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/{source_rhcos_qem
4848
----
4949
$ virt-install --noautoconsole \
5050
--connect qemu:///system \
51-
--name {vm_name} \
52-
--memory {memory} \
53-
--vcpus {vcpus} \
54-
--disk {disk} \
51+
--name <vm_name> \
52+
--memory <memory_mb> \
53+
--vcpus <vcpus> \
54+
--disk <disk> \
5555
--launchSecurity type="s390-pv" \ <1>
5656
--import \
57-
--network network={network},mac={mac} \
58-
--disk path={ign_file},format=raw,readonly=on,serial=ignition,startup_policy=optional <2>
57+
--network network=<virt_network_parm>,mac=<mac_address> \
58+
--disk path=<ign_file>,format=raw,readonly=on,serial=ignition,startup_policy=optional <2>
5959
----
6060
<1> If {ibm-name} Secure Execution is enabled, add the `launchSecurity type="s390-pv"` parameter.
61-
<2> If {ibm-name} Secure Execution is enabled, replace `serial=ignition` with `serial=ignition_crypted`.
61+
<2> If {ibm-name} Secure Execution is enabled, replace `serial=ignition` with `serial=ignition_crypted`.

0 commit comments

Comments
 (0)