Installation and configuration of zvmguestconfigure on the Linux server
To use the user data, the Linux server must be configured to run a service that retrieves the user data that is passed from the IBM® Cloud Infrastructure Center and then takes actions based on the contents of that data. This service is also known as an activation engine (AE).
For a Linux server that is deployed by the IBM Cloud Infrastructure Center, zvmguestconfigure must be installed and started as the pre-AE before any other underlying AE because it can process the request files that are transmitted by the IBM Cloud Infrastructure Center to the reader of the Linux server as a class X file.
The IBM Cloud Infrastructure Center supports initiating changes to Linux server while it is shut down or the z/VM® userid of the Linux server is logged off. The changes to Linux server are implemented by using zvmguestconfigure that is run when Linux is started the next time.
Follow the upcoming steps to install the zvmguestconfigure.
Installing and Configuring zvmguestconfigure on RHEL8.x and RHEL9.x
Installing and configuring zvmguestconfigure on UBUNTU 20.04 and UBUNTU 22.04
Installing and configuring zvmguestconfigure on RHEL7.9
Ssh to the compute node. Copy the following files to your Linux server.
scp /var/lib/zvmsdk/zvmguestconfigure* root@<Linux_ip>:/root/Note: The <Linux_ip> is the IP address of your Linux server.
Ssh to the Linux server. Move the
zvmguestconfigurescript to the/usr/bin/folder and make it executable:mv zvmguestconfigure /usr/bin/ chmod +x /usr/bin/zvmguestconfigureMove the
zvmguestconfigure.servicefile to/lib/systemd/systemand make sure it has correct file permissions:mv zvmguestconfigure.service /lib/systemd/system chmod 664 /lib/systemd/system/zvmguestconfigure.serviceEnable the
zvmguestconfigureservice by the command:systemctl enable zvmguestconfigure.serviceStart the
zvmguestconfigureservice by the command:systemctl start zvmguestconfigure.serviceThe zvmguestconfigure service is a one-shot type service, so it is normal for the service to be in
inactivestatus. You need to make sure that the exit status is (code=exited, status=0/SUCCESS) in the output of the following command:systemctl status zvmguestconfigure.service
Installing and Configuring zvmguestconfigure on RHEL8.x and RHEL9.x
The
taris not installed in RHEL8.x by default, so ssh to the Linux server and install it manually to ensure that zvmguestconfigure service can work normally:yum install tarThe
s390utilsis not installed in RHEL9.0 by default. If you choose Software Selection as Minimal when you install the operating system of RHEL9.x and it is necessary for the zvmguestconfigure. Install by running the following command:yum install s390utilsSsh to the compute node. Copy the following files to your Linux server.
scp /var/lib/zvmsdk/zvmguestconfigure* root@<Linux_ip>:/root/Note: The <Linux_ip> is the IP address of your Linux server.
Ssh to the Linux server. Move the
zvmguestconfigurescript to the/usr/bin/folder and make it executable:mv zvmguestconfigure /usr/bin/ chmod +x /usr/bin/zvmguestconfigureRestore zvmguestconfigure file default SELinux security contexts:
restorecon -v /usr/bin/zvmguestconfigureMove the
zvmguestconfigure.servicefile to/etc/systemd/system/and make sure that it has correct file permissions:mv zvmguestconfigure.service /etc/systemd/system/ chmod 664 /etc/systemd/system/zvmguestconfigure.serviceRestore zvmguestconfigure.service file default SELinux security contexts:
restorecon -v /etc/systemd/system/zvmguestconfigure.serviceNotify systemd that a new zvmguestconfigure.service file exists and enables the
zvmguestconfigureservice by running the following commands:systemctl daemon-reload systemctl enable zvmguestconfigure.serviceStart the
zvmguestconfigureservice by the command:systemctl start zvmguestconfigure.serviceThe zvmguestconfigure service is a one-shot type service, so it is normal for the service to be in
inactivestatus. You need to make sure that the exit status is (code=exited, status=0/SUCCESS) in the output of the following command:systemctl status zvmguestconfigure.service
Installing and configuring zvmguestconfigure on UBUNTU 20.04 and UBUNTU 22.04
ssh to the compute node. Copy the following files to your Linux server.
scp /var/lib/zvmsdk/zvmguestconfigure* root@<Linux_ip>:/root/Note: The <Linux_ip> is the IP address of your Linux server.
ssh to the Linux server. Move the
zvmguestconfigurescript to the/usr/bin/folder and make it executable:mv zvmguestconfigure /usr/bin/ chmod +x /usr/bin/zvmguestconfigureMove the
zvmguestconfigure.service.ubuntufile to/lib/systemd/system, then rename it and make sure that it has correct file permissions:mv zvmguestconfigure.service.ubuntu /lib/systemd/system/zvmguestconfigure.service chmod 664 /lib/systemd/system/zvmguestconfigure.serviceEnable the
zvmguestconfigureservice by the command:systemctl enable zvmguestconfigure.serviceStart the
zvmguestconfigureservice by the command:systemctl start zvmguestconfigure.serviceThe zvmguestconfigure service is a one-shot type service, so it is normal for the service to be in
inactivestatus. You need to make sure that the exit status is (code=exited, status=0/SUCCESS) in the output of the following command:systemctl status zvmguestconfigure.serviceInstall dependent package "openvswitch-switch":
sudo apt install openvswitch-switchNote: For detailed information, refer to Ubuntu 20.04 upgraded snapshot/2204 image deployment failed.
Installing and configuring zvmguestconfigure on SELS 15
Ssh to the compute node. Copy the following files to your Linux server.
scp /var/lib/zvmsdk/zvmguestconfigure* root@<Linux_ip>:/root/Note: The <Linux_ip> is the IP address of your Linux server.
Ssh to the Linux server. Move the
zvmguestconfigurescript to the/usr/bin/folder and make it executable:mv zvmguestconfigure /usr/bin/ chmod +x /usr/bin/zvmguestconfigureMove the
zvmguestconfigure.servicefile to/usr/lib/systemd/system:mv zvmguestconfigure.service /usr/lib/systemd/systemEnable the
zvmguestconfigureservice by the command:systemctl enable zvmguestconfigure.serviceStart the
zvmguestconfigureservice by the command:systemctl start zvmguestconfigure.serviceThe zvmguestconfigure service is a one-shot type service, so it is normal for the service to be in
inactivestatus. You need to make sure that the exit status is (code=exited, status=0/SUCCESS) in the output of the following command:systemctl status zvmguestconfigure.service