4.2. Configuring Single Sign-On for Virtual Machines Configuring single sign-on, also known as password delegation, allows you to automatically log in to a virtual machine using the credentials you use to log in to the VM Portal. Single sign-on can be used on both Red Hat Enterprise Linux and Windows virtual machines. Note Single sign-on is not supported for virtual machines running Red Hat Enterprise Linux 8.0. Important If single sign-on to the VM Portal is enabled, single sign-on to virtual machines will not be possible. With single sign-on to the VM Portal enabled, the VM Portal does not need to accept a password, thus the password cannot be delegated to sign in to virtual machines. 4.2.1. Configuring Single Sign-On for Red Hat Enterprise Linux Virtual Machines Using IPA (IdM) To configure single sign-on for Red Hat Enterprise Linux virtual machines using GNOME and KDE graphical desktop environments and IPA (IdM) servers, you must install the ovirt-guest-agent package on the virtual machine and install the packages associated with your window manager. Important The following procedure assumes that you have a working IPA configuration and that the IPA domain is already joined to the Manager. You must also ensure that the clocks on the Manager, the virtual machine and the system on which IPA (IdM) is hosted are synchronized using NTP. Configuring Single Sign-On for Red Hat Enterprise Linux Virtual Machines Log in to the Red Hat Enterprise Linux virtual machine. Enable the repository: For Red Hat Enterprise Linux 6: For Red Hat Enterprise Linux 7: Download and install the guest agent, single sign-on, and IPA packages: Run the following command and follow the prompts to configure ipa-client and join the virtual machine to the domain: Note In environments that use DNS obfuscation, this command should be: For Red Hat Enterprise Linux 7.2 and later: Note Red Hat Enterprise Linux 7.2 has a new version of the System Security Services Daemon (SSSD), which introduces configuration that is incompatible with the Red Hat Virtualization Manager guest agent single sign-on implementation. This command ensures that single sign-on works. Fetch the details of an IPA user: Record the IPA user's UID and GID: Create a home directory for the IPA user: Assign ownership of the directory to the IPA user: Log in to the VM Portal using the user name and password of a user configured to use single sign-on and connect to the console of the virtual machine. You will be logged in automatically. 4.2.2. Configuring Single Sign-On for Red Hat Enterprise Linux Virtual Machines Using Active Directory To configure single sign-on for Red Hat Enterprise Linux virtual machines using GNOME and KDE graphical desktop environments and Active Directory, you must install the ovirt-guest-agent package on the virtual machine, install the packages associated with your window manager and join the virtual machine to the domain. Important The following procedure assumes that you have a working Active Directory configuration and that the Active Directory domain is already joined to the Manager. You must also ensure that the clocks on the Manager, the virtual machine and the system on which Active Directory is hosted are synchronized using NTP. Configuring Single Sign-On for Red Hat Enterprise Linux Virtual Machines Log in to the Red Hat Enterprise Linux virtual machine. Enable the Red Hat Virtualization Agent repository: For Red Hat Enterprise Linux 6 For Red Hat Enterprise Linux 7 Download and install the guest agent packages: Install the single sign-on packages: Install the Samba client packages: On the virtual machine, modify the /etc/samba/smb.conf file to contain the following, replacing DOMAIN with the short domain name and REALM.LOCAL with the Active Directory realm: Join the virtual machine to the domain: Start the winbind service and ensure it starts on boot: For Red Hat Enterprise Linux 6 For Red Hat Enterprise Linux 7 Verify that the system can communicate with Active Directory: Verify that a trust relationship has been created: Verify that you can list users: Verify that you can list groups: Configure the NSS and PAM stack: Open the Authentication Configuration window: Select the Use Winbind check box, select and press Enter . Select the OK button and press Enter . Log in to the VM Portal using the user name and password of a user configured to use single sign-on and connect to the console of the virtual machine. You will be logged in automatically. 4.2.3. Configuring Single Sign-On for Windows Virtual Machines To configure single sign-on for Windows virtual machines, the Windows guest agent must be installed on the guest virtual machine. The RHEV Guest Tools ISO file provides this agent. If the RHEV-toolsSetup.iso image is not available in your ISO domain, contact your system administrator. Configuring Single Sign-On for Windows Virtual Machines Select the Windows virtual machine. Ensure the machine is powered up. Click Change CD . Select RHEV-toolsSetup.iso from the list of images. Click OK . Click Console and log in to the virtual machine. On the virtual machine, locate the CD drive to access the contents of the guest tools ISO file and launch RHEV-ToolsSetup.exe . After the tools have been installed, you will be prompted to restart the machine to apply the changes. Log in to the VM Portal using the user name and password of a user configured to use single sign-on and connect to the console of the virtual machine. You will be logged in automatically. 4.2.4. Disabling Single Sign-on for Virtual Machines The following procedure explains how to disable single sign-on for a virtual machine. Disabling Single Sign-On for Virtual Machines Select a virtual machine and click Edit . Click the Console tab. Select the Disable Single Sign On check box. Click OK .

Commands:
subscription-manager repos --enable=rhel-6-server-rhv-4-agent-rpms
subscription-manager repos --enable=rhel-7-server-rh-common-rpms
yum install ovirt-guest-agent-common ovirt-guest-agent-pam-module ovirt-guest-agent-gdm-plugin ipa-client
ipa-client-install --permit --mkhomedir
ipa-client-install --domain= FQDN --server== FQDN
authconfig --enablenis --update
getent passwd ipa-user
ipa-user :*:936600010:936600001::/home/ ipa-user :/bin/sh
mkdir /home/ ipa-user
chown 936600010:936600001 /home/ ipa-user
subscription-manager repos --enable=rhel-6-server-rhv-4-agent-rpms
subscription-manager repos --enable=rhel-7-server-rh-common-rpms
yum install ovirt-guest-agent-common
yum install ovirt-guest-agent-gdm-plugin
yum install samba-client samba-winbind samba-winbind-clients
[global] workgroup = DOMAIN realm = REALM.LOCAL log level = 2 syslog = 0 server string = Linux File Server security = ads log file = /var/log/samba/%m max log size = 50 printcap name = cups printing = cups winbind enum users = Yes winbind enum groups = Yes winbind use default domain = true winbind separator = idmap uid = 1000000-2000000 idmap gid = 1000000-2000000 template shell = /bin/bash
net ads join -U user_name
service winbind start chkconfig winbind on
systemctl start winbind.service systemctl enable winbind.service
wbinfo -t
wbinfo -u
wbinfo -g
authconfig-tui