Prepare the Master Template
In this part we are going to prepare the Master Template for deployment as a Instant Clone.
Now that the Master Template is created, and activated go ahead and power it back on (if not already) and either login to the VM or open an SSH session (I will be using an SSH session as it is much easier to copy and paste all the commands that we will be running)
Once you have your Shell session open, make yourself root:
#sudo su
Run the following command on one line:
# cd /usr/share/xsessions && mkdir backup && mv *.desktop backup && mv backup/gnome-classic.desktop ./
(Optional but recommended)
Gnome by default shows the last logged in user on the landing screen, you can some times see the last user when you connect to an Instant Clone VM. To just disable this all together run the following:
# echo [org/gnome/login-screen] > /etc/dconf/db/local.d/00-login-screen
# echo disable-user-list=true >> /etc/dconf/db/local.d/00-login-screen
# dconf update
# systemctl restart gdm
Now when you console or connect in, it should look like this:
(Optional but recommended)
Gnome has a initial login screen, I dont feed this is useful in an instant clone environment so lets disable it:
# echo X-GNOME-Autostart-enabled=false >> /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
Check that the entry was added to the file:
# cat /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
Now we need to disable the virtd adapter so we don't have multiple IP's. This requires you to install packages to simply remove it:
# yum install libvirt -y
Now disable and remove the adapter, and check that you only have one nic and a loopback:
# virsh net-destroy default
# virsh net-undefine default
# service libvirtd restart
Next we need to install the packages that will be used to join the VM and Instant clones to the domain, and allow users to have home directories.
# yum install samba samba-client samba-winbind samba-winbind-clients oddjob-mkhomedir tdb-tools -y
Once the packages are installed, we need to set the FQDN t name in the /etc/hosts file, this is a requirement of the View agent. Since my domain is home.lab and the VM is rhel80 I will use the following:
# echo 127.0.0.1 rhel80.home.lab rhel8 >> /etc/hosts
Now you can proceed with either setting up USB redirection (coming soon) or jumping right into installing the horizon agent:
Configure USB redirection (coming soon)
How to play at a roulette wheel without a pay table
ReplyDeleteThe casino doesn't charge 속초 출장마사지 a penny to play a 구미 출장샵 particular game. 안동 출장샵 Instead, you just make 강릉 출장안마 a bet with the 오산 출장안마 dealer to pick one for your lucky number.