WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple

Search Results for: nested esxi

How to automate the creation multiple routable VLANs on single L2 network using VyOS

02.12.2020 by William Lam // 5 Comments

My personal homelab has a very simple network topology, everything is connected to a single flat network. This has served me well over the years, but sometimes it can prevent me from deploying more complex scenarios. Most recently while working with NSX-T and Project Pacific, I had a need for additional VLANs which my home router does not support. There are a number of software solutions that can be used including the popular pfSense, which I have used before.

Over the Winter break, a colleague introduced me to VyOS, which is another popular software firewall and router solution. I had not heard of VyOS before but later realized it was derived from Vyatta, which I had heard of, but development of that solution had stopped and VyOS is now the open source version of that software. Having never played with VyoS before, I thought this might be a good learning opopournity and started to dabble with VyOS over the holiday. At a high level, I have VyOS connected to two networks: Outside network as VyOS refers which is your local LAN and Inside network as VyOS refers which is an is an isolated vSphere Portgroup (VSS/VDS) that is not connected to anything and configured to pass all traffic (4095). From here, you can create multiple VLANs in VyOS which can then be untagged using Virtual Guest Tagging (VGT) by placing a Nested ESXi VM on the same isolated portgroup and then creating the respective portgroups within the Nested ESXi VM mapping to the VyOS VLANs you have created.

One of the nice benefits of this solution is that you can create multiple "Isolated" yet routable networks that can still reach your primary LAN network and still have  to access core infrastructure services running like Active Directory, DNS, etc. which was one of my requirements.  After figuring out how VyOS works and applying that to my specific use case, I thought why not build some basic automation to setup this solution as I probably will forget how I setup everything. Initially I was using the VyOS OVA but later found out it was an extremely out of date there was no public version of the latest VyOS release in OVA form. I decided to use their latest rolling release and apply some vSphere API Automation to not only install VyOS but also fully configure based on template containing VyOS commands. I know the latest version of VyOS now includes a REST API but its a bit of a chicken/egg to enable and not very friendly to use compared to the solution I have built.

[Read more...]

Categories // Automation, PowerCLI, vSphere Tags // VLAN, VyOS

VMware Cloud

VMware Cloud on AWS (VMConAWS)

    • Decoding Services Roles/Permissions from a VMware Cloud Services Platform (CSP) Token
    • VMware Cloud on AWS 1.13 adds support for VMRC vCenter Proxy
    • New SDDC Linking capability for VMware Cloud on AWS
    • Automated Nested Lab Deployment on SDDC Part 1: VMware Cloud on AWS
    • VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs
    • Retrieving network statistics on VMware Cloud on AWS using NSX-T Policy API
    • Custom notification and automation based on host failure in VMware Cloud on AWS
    • Extending VMware Cloud on AWS Notifications using the Notification Gateway API
    • Tanzu Kubernetes Grid (TKG) Demo Appliance for VMC and vSphere
    • VMware Cloud Services Status APIs
    • New vCenter events for vSphere 7, VMware Cloud on AWS 1.10 and vSphere with Kubernetes
    • Sneak peak at deploying Tanzu Kubernetes Grid Plus on vSphere & VMware Cloud on AWS
    • Automating the creation of NSX-T "Disconnected" Segments for DR testing on VMware Cloud on AWS 
    • Simulating the VMware Cloud on AWS API using Stoplight Prism Tool
    • RSS feed for VMware Cloud on AWS and VMware Release Notes
    • ESX 3.x on VMware Cloud on AWS? 
    • Configuring Standalone vRealize Orchestrator with VMware Cloud on AWS
    • Automating HCX Multi-Site Service Mesh configuration using the new HCX PowerCLI cmdlets
    • Automating HCX Add On for VMware Cloud on AWS
    • Forwarding VMC Events to AWS Lambda/CloudWatch using Log Intelligence Webhook
    • Forwarding VMC Events to Slack using Log Intelligence Webhook
    • Connecting to NSX-T Policy API using NSX-T Private IP in VMC
    • Automating VMware Site Recovery (DRaaS) with VMC
    • NSX-T Policy API Explorer, Docs and Sample Updates for VMC
    • Deploying a vCenter Server Appliance (VCSA) in VMC?
    • NSX-T Opaque Networks now supported with Cross vCenter Workload Migration Fling
    • Integrating Github Actions with vSphere and VMware Cloud on AWS
    • ESXTOP and VMware Cloud on AWS
    • vSphere Tag Attach/Detach events now in VMware Cloud on AWS
    • Automating complete HCX deployment and configuration to first cloud migration using PowerCLI
    • Running sk8s (Simple Kubernetes) on VMC with an AWS Elastic Load Balancer
    • Which NSX-T Policy APIs are used in the NSX-T UI in VMC?
    • How to retrieve the NSX-T Overview Info (SDDC Public IP, Appliance & Infra Subnet, etc.) in VMC?
    • Common PowerCLI examples for VM Provisioning in VMware Cloud on AWS
    • Using NSX-T Policy API to retrieve the Routing Table in VMC
    • Changing the default behavior of the NSX-T Distributed Firewall (DFW) in VMC to Deny All
    • Quick Tip – Import OVF/OVA as VM Template using OVFTool 4.3 Update 1
    • New VMC API to rename SDDC
    • How to retrieve the CSP Refresh Token expiry using the CSP API
    • Managing Distributed Firewall Rules in VMC using PowerShell & NSX-T Policy API
    • Learning more about the Nitro platform which will power VMware Cloud on AWS Outposts
    • VMware Cloud on AWS reInvent sessions posted
    • Can a VM in the VMC Compute Network access the SDDC Management Network?
    • Automating Hybrid Cloud Extension (HCX) Manager initial configuration for VMC
    • Quick Tip – How to clear all Hybrid Cloud Extension (HCX) Migrations in the vSphere UI
    • Enhancements to Hybrid Linked Mode (HLM) in VMC using the new vCenter Cloud Gateway
    • Nested ESXi on VMware Cloud on AWS (VMC)
    • Automating new Cloud Motion with vSphere Replication using Hybrid Cloud Extension (HCX) API
    • Automating Hybrid Cloud Extension (HCX) Manager OVA deployment
    • NSX-T Policy PowerShell Community Module for VMC
    • Create vCenter Alarms for monitoring HCX migration events
    • vMotion across different VDS version between onPrem and VMC
    • Getting started with the Hybrid Cloud Extension (HCX) APIs
    • How to unregister Hybrid Cloud Extension (HCX) from your onPrem vCenter Server?
    • Getting started with the new NSX-T Policy API in VMC
    • Using VMC API to answer commonly asked questions about your SDDC
    • Quick Tip – Requirements for using Guest Operation APIs (Invoke-VMScript & Copy-VMGuestFile) in VMC
    • Creating a vSphere Content Library directly on Amazon S3
    • Automation with the VMware Cloud Services Platform (CSP)
    • VMworld US 2018 sessions on VMware Cloud on AWS
    • Resource Pools, Folders & VMC now supported with Cross vCenter vMotion Utility Fling
    • Automating VM Template management using Content Library in VMC
    • Auditing detailed operations within VMware Cloud on AWS using the Activity Log API
    • OVFTool and VMware Cloud on AWS
    • New Adventure
    • Getting started with Hybrid Cloud Extension (HCX) on VMware Cloud on AWS
    • VMware Cloud on AWS – VM Creation Date available in vSphere API
    • VPN Configuration to VMware Cloud on AWS using pfSense
    • VMworld Hackathon Hardware/Software BOM

Azure VMware Solution (AVS)

  • Automated Nested Lab Deployment on SDDC Part 2: Azure VMware Solution
  • VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs

Google Cloud VMware Engine (GVCVE)

  • Automated Nested Lab Deployment on SDDC Part 3: Google VMware Cloud Engine
  • VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs

Oracle Cloud VMware Solution (OCVS)

  • Automated Nested Lab Deployment on SDDC Part 4: Oracle Cloud VMware Solution
  • VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs

Automated Pivotal Container Service (PKS) Lab Deployment 

06.12.2018 by William Lam // 3 Comments

While working on my Getting started with VMware Pivotal Container Service (PKS) blog series awhile back, one of the things I was also working on was some automation to help build out the required infrastructure NSX-T (Manager, Controller & Edge), Nested ESXi hosts configured with VSAN for the Compute vSphere Cluster and Pivotal Ops Manager. This was not only useful for my own learning purposes, but that I could easily rebuild my lab if I had messed something up and allowed me to focus more on the PKS solution rather than standing up the infrastructure itself.

To be honest, I had about 95% of the script done but I was not able to figure out one of the NSX-T APIs and I got busy and had left the script on the back burner. This past weekend while cleaning out some of my PKS research documents, I came across the script and funny enough, in about 30minutes I was able to solve the problem which I was stuck for weeks prior. I just finished putting the final touches on the script along with adding some documentation. Simliar to my other vGhetto Lab Automation scripts, I have created a Github repo vGhetto Automated PKS Lab Deployment

UPDATE (06/19/18) - I have just updated the script to also include the deployment and configuration of the PKS components (Ops Manager, BOSH Director, Harbor & Stemcell). The script by default will now configure everything end-2-end and you will have a fully functional PKS environment that you can start playing around with. For complete details, please see the Github repo which has the updated requirements and documentation. Below is a screenshot of the PKS deployment and configuration which requires the use of the Ops Manager CLI (OM).


The script will deploy the following components which will be placed inside of a vApp as shown in the screenshot below:

  • NSX-T Manager
  • NSX-T Controller x 3 (though you technically only need one for lab/poc purposes)
  • NSX-T Edge
  • Nested ESXi VMs x 3 (VSAN will be configured)
  • Ops Manager


The script follows my PKS blog series and automates Part 3 (NSX-T) and the start of Part 4 (Ops Manager deploy), please refer to these individual blog posts for more information. The goal of the script is to enable folks to jump right into the PKS configuration workflows and not have to worry about setting up the actual infrastructure that is needed for PKS. Once the script has finished, you can jump right into Ops Manager and start your PKS journey.

Here is a sample execution of the script which took ~29 minutes to complete.


The full requirements for using the script be found on the Github repo and below are the software versions that I had used to deploy and configure PKS:

  • Pivotal Ops Manager for vSphere - 2.1-build.318
  • VMware Harbor Container Registry 1.4.2
  • Pivotal Container Service 1.0.4
  • Stemcell 3668.42 

Categories // Automation, Cloud Native, Home Lab, Kubernetes, NSX, PowerCLI Tags // BOSH, Kubernetes, NSX-T, Pivotal, PKS, PowerCLI

  • « Previous Page
  • 1
  • …
  • 46
  • 47
  • 48
  • 49
  • 50
  • …
  • 68
  • Next Page »

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Ultimate Lab Resource for VCF 9.0 06/25/2025
  • VMware Cloud Foundation (VCF) on ASUS NUC 15 Pro (Cyber Canyon) 06/25/2025
  • VMware Cloud Foundation (VCF) on Minisforum MS-A2 06/25/2025
  • VCF 9.0 Offline Depot using Synology 06/25/2025
  • Deploying VCF 9.0 on a single ESXi host? 06/24/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...