if has error "CreateContainerError":
yum install apparmor-parser apparmor-utils
k8s dashboard
kubectl create serviceaccount k8s-admin -n kube-system
kubectl create clusterrolebinding k8s-admin --clusterrole=cluster-admin --serviceaccount=kube-system:k8s-admin
kubectl -n kube-system create token k8s-admin
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-networkd
systemctl restart systemd-resolved
Attach ISO image to VM, run the following commands:
software-packages install --staged
software-packages install --iso
shutdown reboot -r "patch reboot"
Full Text:
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vcenter.upgrade.doc/GUID-5FCA78EC-8637-43A4-8B28-24624E4D5EBA.html
Virtual Machine Preparation (Windows)
Windows does not automatically zero deleted blocks. Microsoft provides a tool that can zero blocks after while deleting a file or zero out the entire free space. This is required to reclaim space back from the virtual disk.
- Download SDelete (http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx)
- run sdelete.exe -z [Drive]
Virtual Machine Preparation (Linux)
Linux does not zero deleted blocks too. There are various tools available to create zeroed blocks. The best known tool is dd which should be available on all systems.
- Identify free space with df
- Fill the free space with dd
vma:/mnt/data # df -h
vma:/mnt/data # dd bs=1M count=8192 if=/dev/zero of=zero
This will zero 8GB of the available 8.2GB (1MB Blocksize * 8192 = 8GB). Please note that you virtual disk file (VMDK) will grow to the full size during the process.
Shrink VMDK File
- Power off the Virtual Machine, or disconnect the virtual Disk you want to shrink
- Connect to the ESXi Host with SSH
- Navigate to the Virtual Machine Folder
- Verify disk usage with du
- Run vmkfstools -K [disk]
- Verify disk usage with du
root@esx3:/vmfs/volumes/ds1/vma $ du -h vma_1-flat.vmdk
7.9G vma_1-flat.vmdk
root@esx3:/vmfs/volumes/ds1/vma $ vmkfstools -K vma_1.vmdk
vmfsDisk: 1, rdmDisk: 0, blockSize: 1048576
Hole Punching: 25% done.
root@esx3:/vmfs/volumes/ds1/vma $ du -h vma_1-flat.vmdk
1.9G vma_1-flat.vmdk
Сервер A - исходная установка ESXi, Сервер B - новая установка ESXi. Оба экземпляра должны быть одинаковой версии и ревизии.
1. На серверах включить доступ по протоколу SSH
2. Сохранить конфигурацию на Сервере A
vim-cmd hostsvc/firmware/sync_config
при неисправности носителя (USB flash drive) будет возвращена ошибка
vim-cmd hostsvc/firmware/backup_config
будет возвращена ссылка на скачивание сохраненной конфигурации вида
https://*/downloads/521ee70b-5937-5bdf-223f-c8acb7bbcd1c/configBundle-*.tgz
3. Сохранить текущую конфигурацию на Сервере B.
4. Перевести Сервер B в режим обслуживания
vim-cmd hostsvc/maintenance_mode_enter
5. Скопировать исходную конфигурацию на Сервер B, файл разместить по адресу /tmp/cofigBundle.tgz. Для копирования можно воспользоваться WinSCP.
6. Распаковать содержимое архиваcd /tmp/
tar zxvf configBundle.tgz
7.В файле Manifest.txt заменить значение UUID на идентификатор из файла Manifest.txt в конфигурации Сервера A. Для редактирования файла можно воспользоваться WinSCP, либо редактором vi.
8. Удалить файл /tmp/configBundle.tgz
rm ./configBundle.tgz
9. Собрать новый файл конфигурации
tar zcvf configBundle.tgz Manifest.txt state.tgz
10. Восстановить конфигурацию
vim-cmd hostsvc/firmware/restore_config /tmp/configBundle.tgz
После применения конфигурации сервер автоматически перезагрузится.
esxcli software sources profile list -d /vmfs/volumes/<storage>/VMware-ESXi-6.5.0-4564106-depot.zip
esxcli software profile update -d /vmfs/volumes/<storage>/VMware-ESXi-6.5.0-4564106-depot.zip -p ESXi-6.5.0-4564106-standard
1. Ошибка "Failed to connect to the Connection Server", код 404 при обращении к broker/xml.
Необходимо в файл install_directory\VMware\VMware View\Server\sslgateway\conf\locked.properties добавить исключения:
portalHost=<public_site_domain>
balancedHost=<public_site_domain>
https://pubs.vmware.com/horizon-7-view/index.jsp#com.vmware.horizon-view.installation.doc/GUID-FE26A9DE-E344-42EC-A1EE-E1389299B793.html
https://pubs.vmware.com/horizon-7-view/index.jsp#com.vmware.horizon-view.installation.doc/GUID-BFF2E726-A5EB-4105-A0EA-F3D718C5880E.html
2. Ошибка "couldn't resolve proxy name"
Disable the secure tunnel for View Connection Server. In View Administrator, go to the Edit View Connection Server Settings dialog box
and deselect the check box called "Use secure tunnel connection to machine". By default, the securetunnel is enabled on the Access Point appliance.
Disable the PCoIP secure gateway for View Connection Server. In View Administrator, go to the Edit
View Connection Server Settings dialog box and deselect the check box called "Use PCoIP Secure Gateway for PCoIP connections to machine". By default, the PCoIP secure gateway is enabled on the Access Point appliance.
Disable the Blast secure gateway for View Connection Server. In View Administrator, go to the Edit View Connection Server Settings dialog box and deselect the check box called
"Use Blast Secure Gateway for HTML Access to machine". By default, the Blast secure gateway is enabled on the Access Point appliance.
https://pubs.vmware.com/horizon-62-view/topic/com.vmware.ICbase/PDF/access-point-20-deploy-config-guide.pdf
(страница 16)