This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019 | |
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes. | |
# This function pulls out the common ID used for most of the VMware registry entries along with the ID | |
# associated with the MSI for VMware Tools. | |
function Get-VMwareToolsInstallerID { | |
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) { | |
If ($item.GetValue('ProductName') -eq 'VMware Tools') { | |
return @{ | |
reg_id = $item.PSChildName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VMの構成ファイルだけ別データストアに移動するスクリプト | |
# | |
# PowerCLIを使用して、個々のディスクを別々のデータストアに移行する方法 | |
# https://communities.vmware.com/t5/-/-/m-p/3014244 | |
# 配置指定 | |
$vm_name = "test-vm01" | |
$target_ds_name_vmdk = "vsanDatastore" # VMDKのデータストア名 | |
$target_ds_name_vmx = "ds-nfs-repo-01" # 構成ファイル移動先のデータストア名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME(GuestId) | DESCRIPTION(GuestFullName) | Since | |
---|---|---|---|
amazonlinux2_64Guest | Amazon Linux 2 (64 bit) | vSphere API 6.7.1 | |
asianux3_64Guest | Asianux Server 3 (64 bit) | vSphere API 4.0 | |
asianux3Guest | Asianux Server 3 | vSphere API 4.0 | |
asianux4_64Guest | Asianux Server 4 (64 bit) | vSphere API 4.0 | |
asianux4Guest | Asianux Server 4 | vSphere API 4.0 | |
asianux5_64Guest | Asianux Server 5 (64 bit) | vSphere API 6.0 | |
asianux7_64Guest | Asianux Server 7 (64 bit) | vSphere API 6.5 | |
asianux8_64Guest | MIRACLE LINUX 8 (64-bit) | vSphere API 6.7 | |
centos6_64Guest | CentOS 6 (64-bit) | vSphere API 6.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: dep-game2048 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: game2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
import requests | |
args = sys.argv | |
conf_file = args[1] | |
if len(args) == 3: | |
output_format = args[2] | |
else: | |
output_format = 'list' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# auther: gowatana | |
# usage: | |
# AHV# bash ./format_ahv_open-vswitch.sh | |
# or | |
# AHV# ovs-vsctl show > output.txt | |
# # bash ./format_ahv_open-vswitch.sh output.txt | |
OVS_FORMAT_FILE=./ovs-vsctl_show_formatted.txt | |
BRIDGE_NAME_1=br0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Create VM Playbook | |
hosts: localhost | |
gather_facts: false | |
collections: | |
- nutanix.ncp | |
tasks: | |
- name: Create VM | |
ntnx_vms: | |
nutanix_host: lab-nxce-01.go-lab.jp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
disable_root: true | |
ssh_pwauth: true | |
package_upgrade: false | |
users: | |
- name: nutanix | |
lock-passwd: false | |
sudo: ALL=(ALL) NOPASSWD:ALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << 'EOF' > nsx-t_dashboard_widget_advent_2021.json | |
{ | |
"resource_type": "LabelValueConfiguration", | |
"display_name": "Japan vExperts Advent Calendar 2021", | |
"datasources": [ | |
{ | |
"urls": [ | |
{ | |
"alias": "dummy", | |
"url": "api/v1/cluster" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"spec": { | |
"name": "syslog-transfer-01", | |
"resources": { | |
"vendor_name": "syslog", | |
"usage_type": "NOTIFICATION", | |
"server_info": { | |
"address": { | |
"ip": "192.168.11.61", | |
"port": 514 |
NewerOlder