Skip to content

Instantly share code, notes, and snippets.

View VirtualMachineGuestOsIdentifier_vSphere80GA.csv
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
View game-2048-lb.yml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dep-game2048
spec:
replicas: 1
selector:
matchLabels:
run: game2048
View list_ahv_vm_vnic.py
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'
View format_ahv_open-vswitch.sh
#!/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
@gowatana
gowatana / test-vm-01.yml
Last active April 29, 2022 14:29
Nutanix Ansible Collection v1.0 でのテスト VM 作成。
View test-vm-01.yml
---
- 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
@gowatana
gowatana / terraform-centos8-vm.yml
Created December 19, 2021 23:40
Nutanix AHV の Custom Script(Cloud-Init)で Terraform がインストールされた VM を作成する。(CentOS 8)
View terraform-centos8-vm.yml
#cloud-config
disable_root: true
ssh_pwauth: true
package_upgrade: false
users:
- name: nutanix
lock-passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
View nsx-t_dashboard_widget_advent_2021.json
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"
View nutanix-files_syslog-server-01.json
{
"spec": {
"name": "syslog-transfer-01",
"resources": {
"vendor_name": "syslog",
"usage_type": "NOTIFICATION",
"server_info": {
"address": {
"ip": "192.168.11.61",
"port": 514
@gowatana
gowatana / README.md
Last active November 24, 2021 15:55
VMUG vExpert が語る HOL。のサンプル | https://www.youtube.com/watch?v=vsuMcBxZ6-g
View README.md
View deploy_nsxt_edge_lab-edge-21.ps1
$ova_file = "C:\work\nsx-edge-3.1.2.0.0.17884008-le.ova"
$nsx_manager_thumbprint = "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
$ovf_config = Get-OvfConfiguration -Ovf $ova_file
# DeploymentOption
$ovf_config.DeploymentOption.Value = "small"
# NetworkMapping
$ovf_config.NetworkMapping.Network_0.Value = "dvpg-0010-mgmt"