آرشیو ماهانه: خرداد ۱۳۹۵

  • ۰

بررسی وضعیت NSX Controller

بررسی وضعیت NSX Controller

NSX Controllers provides a control plane to distribute network information to hosts. To achieve a high level of resiliency the NSX Controller is clustered for scale out and HA. NSX controllers can be deployed in a three-node cluster .These virtual appliances provide, maintain and update the state of all network function within the NSX domain. NSX Manager is used to deploy NSX Controllers for managing the control plane activities that take place within the environment.

NSX controllers will form a control cluster. Controller Cluster will require a quorum (majority) in order to avoid any sort of split brain scenario. A quorum is best achieved with an odd number.It is always recommended to deploy the controllers in Odd numbers ( 3 ,5,etc). It provides redundancy incase of failure of other NSX controller.The controller cluster is the control plane component responsible for managing the switching and routing modules in the hypervisors. Below are the few of the commands which can be used to test the status of NSX controller cluster status.

NSX Control Cluster Status:

You can use the below command to verify the current status of Controller Cluster

show control-cluster status

Checking NSX Controller Cluster Status_1Join status: Verify the Controller node is reporting “Join Complete” for Cluster Join status.

Majority status: check if this controller cluster is connected to cluster majority.

Cluster ID: All the Controller Node should have the same Cluster ID.

Configured and Active Status: Verify that the all the Controller roles are enabled and activated.

NSX Control Cluster Connection Status:

Controller Node’s intra-cluster communication connections status can be determined by running the below command:

show control-cluster connections

Controller Cluster majority leader will be listening on port 2878 (you can see “Y” in the “listening” column).The other Controller nodes will have a dash (-) in the “listening” column for Port 2878.

“Open Connections” column shows whether the controller cluster majority leader has any open connections. In a 3-node controller cluster, the controler cluster majority leader should show 2 open connections. It should be the same as the number of other Controller nodes in the Controller Cluster

Checking NSX Controller Cluster Status_2

NSX Control Cluster Role Status:

Execute the below command to get the detailed status about Various role hold by each controller node.

show control-cluster roles

Below is the output from my 3 NSX controller node. Each controller node will be master for different role.

Check NSX Controller cluster roles_1

If a master NSX Controller instance for a role fails, the cluster elects a new master for that role from the available NSX Controller instances. The new master NSX Controller instance for that role reallocates the lost portions of work among the remaining NSX Controller instances.
NSX Controller instances are on the control plane. So an NSX Controller failure does not affect data plane traffic.

NSX Control Cluster History:

Execute the below command to see a history of Controller Cluster-related events on this node including restarts, upgrades, Controller Cluster errors and loss of majority:

show control-cluster history

Check NSX Controller History

We will discuss in detail about various NSX management commands in upcoming posts. I hope this is informative for you. Thanks for Reading!!!. Be Social and share it in social media, if you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

پیکربندی NSX Controller

پیکربندی NSX Controller

The NSX controller is a user space VM that is deployed by the NSX manager. It is one of the core components of NSX and could be termed as the “distributed hive mind” of NSX. It provides a control plane to distribute network information to hosts. To achieve a high level of resiliency the NSX Controller is clustered for scale out and HA.

The NSX controller holds three primary tables. These are a MAC address table, ARP table and a VTEP table. These tables collate VM and host information together for each three tables and replicate this throughout the NSX domain. The benefit of such action is to enable multi-cast free VXLAN on the underlay. Previous versions of vCNS and other VXLAN enabled solutions required multicast enabled on the Top of Rack Switches or the entire physical fabric. This provided a significant administrative overhead and removing this alleviates a lot of complexity.

By maintaining these tables an additional benefit is ARP suppression. ARP suppression will allow for the reduction in ARP requests throughout the environment. This is important when layer two segments stretch across various L3 domains. If a segment requests the IP of a MAC address that isn’t on a local segment the host will have the replicated information in its tables pushed to it by the controller.

NSX Controller Deployment

NSX Controllers are the control-plane of the solution. Deployed in a three-node cluster. these virtual appliances provide, maintain and update the state of all network function within the NSX domain. Built upon clustering technology such as Zookeeper, NSX can take failure well. Clusters can break, destroy or cease working and there will be no impact to an NSX domain as long as 1 instance is running. This is due to the slicing of information across the node cluster of network state information.

Click on + symbol under NSX controller nodes to deploy the first NSX controller node. It is always recommended to deploy the controllers in Odd numbers ( 3 ,5,etc). It provides redundancy incase of failure of other NSX controller.

NSX Controller Deployment-1

Select the options like NSX Manager, Datacenter, Cluster, Datastore, Host and Portgroup to deploy the NSX Controller. Click on Select option for “Connect To” to select the PortGroup.

NSX Controller Deployment-2

Select the Distributed Portgroup to connect to the Controller VM and Click on Ok.

NSX Controller Deployment-3Select New IP Pool from the IP Pool drop-down menu to open the Add IP Pool dialog box and configure the options.

NSX Controller Deployment-4

Specify the Name for the IP Pool, Gateway, Prefix length, Primary DNS, Secondary DNS, DNS Suffix and Static IP Pool for the Controller IP Pool. NSX Controllers will be using the IP address from this static IP Pool range during the deployment.

NSX Controller Deployment-5Enter the Password for the Controller VM administrative account and Click on OK to deploy the first Controller Node.

NSX Controller Deployment-6You will be able to see the status of the NSX Controller Node under NSX Controller nodes.

NSX Controller Deployment-7

Once the deployment Starts, You will be able the See the Controller VM starting Name “NSX_Controller_XXXXXXX”.

NSX Controller Deployment-8

Open the Console of the NSX Controller VM to see the status of the boot up process. Wait untill the booting and customization of NSX controller. It assigns the IP related settings from the assigned IP Pool and configured Controller deployment options.

NSX Controller Deployment-9Once Boot up of NSX Controller is completed. You can see the status of the NSX Controller turned to be “Normal”. Deploy the 2nd Controller once the First Controller status turned to be “Normal”.Follow the Same procedure to deploy the additional NSX Controllers. I have deployed 3 controllers for my environment.

Note – You will notice my controllers are not 1,2, &, 3.  That is because my controllers deployment got failed because of some misconfiguration on IP Pools. After 7 failed deployment, I fixed the issue and later my controller deployment got success. That’s why you can see my controller name as 8,9 & 10.

NSX Controller Deployment-10With the NSX manager installed and controllers deployed, we have a management plane and control plane established. We are ready for the Host preparation. I hope this is informative for you. Thanks for Reading!!!. Be Social and share it in social media, if you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

هماهنگ سازی NSX Manager با vCenter Server

هماهنگ سازی NSX Manager با vCenter Server

In the Previous Post, We have discussed in detail about NSX Manager Overview, Pre-requisites to install NSX and along with NSX LAB Design & NSX Manager deployment. In this post, We are going to Configure the integration between NSX Manager and vCenter Server. Integration of NSX manager with vCenter Server is the important task which we need to perform before deploying NSX components. NSX Manager Creates a management plane for the NSX environment. Once the integration between NSX Manager and vCenter is completed, NSX Manager provides Network and Security plugin which is available with vSphere Web Client to manage the NSX environment. It exposes a RESTful API for consumption by a customer or a cloud management platform. Access the NSX Manager

Access the NSX Manager Admin portal from your web browser

https://<ip or Hostname of NSX Manager>

Login with username “admin” and password “specified during NSX Manager OVF deployment”

NSX integration with vCenter-1

You will be able to see the NSX Manager Virtual Appliance Management home page. Click on “View Summary” to view the summary of NSX service status.

NSX integration with vCenter-2

You will be able to see the status of the NSX Manager Services (vPostgres,RabbitMQ & NSX Management Service, SSH service). Wait until all the service become “Running” status before proceed to next step.

NSX integration with vCenter-3

We need to integrate NSX Manager with your vCenter Lookup Service and vCenter server. Please ensure you have configured similar NTP settings for your NSX Manager and vCenter Server for SSO configuration to work perfectly.

Select the Manage Tab -> NSX Management Service ->Click on the Edit option for Lookup Service.

NSX integration with vCenter-4

Enter the vCenter Lookup service IP address and port number along with the SSO administrator username and password. Click on Ok.

NSX integration with vCenter-5

Click on Edit for vCenter Server Option. Enter the vCenter server IP, administrator username and password. Connecting to a vCenter server enables NSX Management service to display the VMware infrastructure inventory. Click on OK. Ensure HTTPS port 443 is opened between NSX Managenet Service, ESX and vCenter.

NSX integration with vCenter-6

Once both Lookup and vCenter information is provided in NSX Manager,You should be able to see the status as “Connected” with Green light for Lookup service and vCenter Server.NSX integration with vCenter-7

That’s it. We are almost done our job with NSX Manager Management portal. We need to login to vSphere Web Client to play around with NSX.

Login to vCenter Server using vSphere web client. During the first login after the NSX manager integration with vCenter, Web client will take lit bit time to load the inventory. Once you login to Web client, you will be able to see plugin “Networking & Security” in Web client home page.

NSX integration with vCenter-8

Click on Networking & Security option. You will be able to see your NSX Manager information under Installation -> Management tab.

NSX integration with vCenter-9

That’s it. We are done with Configuring the Integration between the NSX Manager and vCenter Server. Let’s take look at deploying NSX Controllers in upcoming Posts. I hope this is informative for you. Thanks for Reading!!!. Be Social and share it in Social media, If you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

طراحی NSX Lab و راه اندازی NSX Manager

طراحی NSX Lab و راه اندازی NSX Manager

NSX manager provides a centralized management plane across your datacenter. It provides the management UI and API for NSX. Upon installation, the NSX Manager injects a plugin into the vSphere Web Client for consumption within the web management platform. Along with providing management APIs and a UI for administrators, the NSX Manager component installs a variety of VIBs to the host when initiating host preparation. These VIBs are VXLAN, Distributed Routing, Distributed Firewall and a user world agent. The benefit of leveraging a VMware solution is that access to the kernel is much easier to obtain. With that VMware provide the distributed firewall function and distributed routing function in kernel. This provides extremely in kernel function processing without the inadequacies of traditional user space or physical firewall network architectures.

NSX LAB Design:

Below is My NSX Lab Design which i am going to use for this Installation Series of  posts.

NSX-Lab-Design - VMwareArena-1

VMwareArena’s  NSX Lab Topology:

4 ESXi Hosts:

2 Hosts for Management Cluster Running Infrastructure Virtual Machines (Esxi-01 & ESXi-02):

VM’s Running : NSX Manager, NSX Controllers,vCenter Server(vCSA), Distributed Router VM, NSX Edge VM.

2 Hosts for Compute Cluster (ESXi-comp1 & ESXi-comp2) for Running 3-Tier application VM’s:

VM’s Running: Web-Svr-1.Web-Svr-2, App-svr-1 & DB-svr-1

1 Windows Server:

Windows Server running the below roles:

  • Windows Domain Controller
  • Router (Routing & remote Access)
  • Microsoft ISCSI storage

 4 NSX Logical Switches:

  • Web-Tier
  • App-Tier
  • DB-Tier
  • Transit-Network

1 Logical Router (LDR-001)

DLR (Distributed Logical Router):NSX Logical Router Connect all 4 Logical Switches (Web-Tier, App-Tier, DB-Tier & Transit-Network). Logical Router Provides routing between the VM connect to these 4 Logical Switches.

1 NSX Edge

NSX Edge Provides routing between 4 Logical Switches to Physical network(HQ Uplink) via Logical Router

Deploying NSX Manager:

Select the option “Deploy OVF Template” from your ESXi host. You will get OVF configuration options only when you use vSphere Web Client to deploy the NSX Manger OVF. Browse towards your NSX Manager OVF File and Click on Next NSX Manager Deployment -1Select the checkbox “Accept extra Configuration options” to configure additional OVF configuration options.  Click on Next

NSX Manager Deployment -2

Accept the License Agreement and click on Next.Specify the Name for your NSX Manger VM and Select the folder or datacenter location to deploy the virtual machine.

NSX Manager Deployment -3

Select the datastore to deploy the NSX Manager Virtual Machine and click on Next

NSX Manager Deployment -4

Select the port group to connect the NSX Manager VM and click on Next.

NSX Manager Deployment -5

Specify the password for CLI admin and CLI privileged Mode for NSX Manager virtual machine. Click on Show next to specify other options.NSX Manager Deployment -6

Specify the Network properties (Hostname, IPv4 address, Netmask Default gateway, DNS and NTP settings. Click on Next.

NSX Manager Deployment -7

Specify the NTP server list and enable SSH also. Kindly ensure you have valid NTP servers configured in your environment to provide time synchronization for all the servers. Time sync is one of the Important requirement.NSX Manager Deployment -8

Review the Settings configured and Click on Finish to start the NSX Manger OVF Deployment.

NSX Manager Deployment -9

You can Monitor the Progress of NSX Manager OVF template from Recent tasks.

NSX Manager Deployment -10

Once “Deploy OVF Template” task completed successfully. You can see the VM “NSX Manager” deployed under the selected Cluster. Power On the Virtual Machine.

NSX Manager Deployment -11

Once OVF deployment is completed, Access the NSX Manager Admin portal from your web browser

https://<ip or Hostname of NSX Manager>

NSX Manager Deployment -12

That’s it. We are done with deploying NSX Manager. Let’s discuss about configuring NSX Manager and NSX Manager Integration with vCenter Server in upcoming Posts. I hope this is informative for you. Thanks for Reading!!. Be Social and share it in social media, if you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

بررسی NSX و نصب پیش نیازها

بررسی NSX و نصب پیش نیازها

It’s been long time, i am thinking to post about  VMware NSX .Let’s start from this post. I am so impressed with VMware NSX. Let’s discuss in detail about Step by step procedure how to deploy and configure Various NSX Components in  along with the tips to troubleshoot the issues related the NSX deployment.

NSX -Overview

VMware NSX is a software networking and security virtualization platform from VMware that delivers the operational model of a virtual machine for the network. Virtual networks reproduce the Layer2 – Layer7 network model in software, allowing complex multi-tier network topologies to be created and provisioned programmatically in seconds. NSX also provides a new model for network security. Security profiles are distributed to and enforced by virtual ports and move with virtual machines. NSX supports VMware’s software-defined data center strategy. By extending the virtualization capabilities of abstraction, pooling and automation across all data center resources and services, the software-defined data center architecture simplifies and speeds the provisioning and management of compute, storage and networking resources through policy-driven automation. By virtualizing the network, NSX delivers a new operational model for networking that breaks through current physical network barriers and enables data center operators to achieve better speed and agility with reduced costs.

NSX-Overview

NSX includes a library of logical networking services – logical switches, logical routers, logical firewalls, logical load balancers, logical VPN, and distributed security. You can create custom combinations of these services in isolated software-based virtual networks that support existing applications without modification, or deliver unique requirements for new application workloads. Virtual networks are programmatically provisioned and managed independent of networking hardware. This decoupling from hardware introduces agility, speed, and operational efficiency that can transform datacenter operations.

Logical Switching: Layer 2 over Layer 3,decoupled from the physical network
Logical Routing: Routing between virtual networks without exiting the software container
Logical Firewall: Distributed firewall, kernel integrated, high performance
Logical Load Balancer: Application load balancing in software
Logical Virtual Private Network (VPN): Site-to-site and remote access VPN in software
VMware NSX API™: REST API for integration into any cloud management platform like vCAC, Openstack,etc.

NSX Core components:

There are 2 Major components that make up this solution to provide the final piece in VMware’s SDDC vision. NSX Manager and NSX Controller.

NSX Manager

The NSX manager is one of the touch points for the NSX for vSphere solution. NSX manager provides a centralized management plane across your datacenter. It provides the management UI and API for NSX. Upon installation, the NSX Manager injects a plugin into the vSphere Web Client for consumption within the web management platform. Along with providing management APIs and a UI for administrators, the NSX Manager component installs a variety of VIBs to the host when initiating host preparation. These VIBs are VXLAN, Distributed Routing, Distributed Firewall and a user world agent. The benefit of leveraging a VMware solution is that access to the kernel is much easier to obtain. With that VMware provide the distributed firewall function and distributed routing function in kernel. This provides extremely in kernel function processing without the inadequacies of traditional user space or physical firewall network architectures.

NSX Controller

The NSX controller is a user space VM that is deployed by the NSX manager. It is one of the core components of NSX and could be termed as the “distributed hive mind” of NSX. It provides a control plane to distribute network information to hosts. To achieve a high level of resiliency the NSX Controller is clustered for scale out and HA. Will discuss about NSX Controller in detail in Upcoming posts.

Basic Pre-requisites for Installing NSX:

Kindly ensure you have prepared your environment with all the Pre-requite before installing NSX.  Below are few items you need to have before proceed with NSX installation:

  1.  A properly configured vCenter Server with at least 2 cluster. I have 3 Cluster (1 Management Cluster & 2 Compute Cluster)
  2.  For NSX, vSphere Web Client is must. You cannot Manage NSX components from vSphere Client.
  3. You will need to be using Distributed Virtual Switches (DvSwitch) NOT Standard vSwitches.
  4. For NSX 6.1 , Prerequisite is to have VMware vCenter Server 5.5 or later
  5. VMware ESX 5.0 or later for each server. If you are NOT running vSphere 5.5, you will need to have your physical switches configured for Multicast. Unicast Supports from vSphere 5.5.
  6. Properly Configured DNS and NTP server is required. Ensure all the components ESXi, vCenter and NSX Manager are in sync time with configured NTP servers.
  7. if you added ESX hosts by name to the vSphere inventory, ensure that DNS servers have been configured on the NSX Manager and name resolution is working. Otherwise, NSX Manager cannot resolve the IP addresses.
  8.  Ensure you have all the required System Resources (CPU and Memory) available in your cluster to deploy various NSX Components like NSX Manager, Controller,etc.
  9.  Ensure you have Configured the your Distributed Switch with MTU more than 1600.

Take a look at the VMware Page to understand System Requirements for NSX.

NSX Installation Steps Sequence:

The components of the NSX platform are configured in the following order:

NSX Installation - Order of TasksGraphic Thanks to VMware.com

  1. Deploy NSX Manager from OVF
  2. Register NSX Manager with the vCenter Server providing IP address and credentials and the NSX Manager instance connects to the vCenter Server system. The NSX Managerinstance enables the NSX components in the VMware vSphere Web Client.
  3. The vSphere Web Client is used to deploy the NSX Controller instances through NSX Manager.
  4. After NSX Controller instances are deployed, hosts are prepared by using NSX Manager to install the VIBs on the ESXi hosts in the cluster.
  5. After the components are installed and deployed, you define the logical networking components, such as adding distributed routers and creating firewall policies.

We are going to Discuss in detail about each step discussed above in this NSX Installation Series. I hope you will enjoy these posts. Thanks for Reading!!!. Be Social and share it in social media, if you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

نصب و راه اندازی NSX VIBS بر روی هاست ESXi

نصب و راه اندازی NSX VIBS بر روی هاست ESXi

Job of vSphere Administrators is not so limited to GUI. You should be always available with troubleshoot your issues from command line or CLI.This also applies, when you are dealing with VMware NSX. We have already discussed about Preparing your vSphere CLuster and Host by installing NSX VIBS from Network & Security plugin from vSphere Web Client. It always a situation that the installation of NSX VIB’s may fail due to some reason and we as vSphere admin should have to troubleshoot and fix the installation issues. I have faced one of the issue when i prepare my cluster/ ESXi host for NSX. Let’s take a detailed look at setp by step procedure to manually install NSX VIBs on the ESXi host.

Download NSX VIBs from the below URL:

https://<NSx-Mgr-IP>/bin/vdn/vibs/5.5/vxlan.zip

If you extract the downloaded “vxlan.zip”. Below are contents of the vxlan.zip.  It Contains the 3 VIB files

  1. esx-vxlan
  2. esx-vsip
  3. esx-dvfilter-switch-security

One VIB enables the layer 2 VXLAN functionality, another VIB enables the distributed router, and the final VIB enables the distributed firewall.

Install NSX VIBs on ESXi Host_1

Extract the vxlan.zip file and Copy the folder into the Shared Datastore or on the local folder of the ESXi host using WinScp. I have copied the folder into my ESXi host in /tmp directory. Let’s install the NSX VIBs one by one in the ESXi host.

Install NSX VIBs on ESXi Host_2

Install the “esx-vxlan” vib on the ESxi host using the below command:

 esxcli software vib install –no-sig-check -v /tmp/vxlan/vib20/esx-vxlan/VMware_bootbank_esx-vxlan_5.5.0-0.0.2107100.vib

Install NSX VIBs on ESXi Host_3

Install the “esx-vsip” vib on the ESXi host using the below command:

esxcli software vib install –no-sig-check -v /tmp/vxlan/vib20/esx-vsip/VMware_bootbank_esx-vsip_5.5.0-0.0.2107100.vib

Install NSX VIBs on ESXi Host_4

Install the “esx-dvfilter-switch-security” vib on the ESXi host using the below command:

esxcli software vib install –no-sig-check -v /tmp/vxlan/vib20/esx-dvfilter-switch-security/VMware_bootbank_esx-dvfilter-switch-security_5.5.0-0.0.2107100.vib

Install NSX VIBs on ESXi Host_5

That’s it. We are done with manually installing NSX VIBs on ESXi host. This operations don’t require reboot of the ESXi host. Even this can be done when active workloads are running on the ESXi host. I hope this is informative for you. Thanks for reading. Be Social and share it in social media, if you feel worth sharing it.

Other VMware NSX Related Posts:

VMware NSX Installation Part 1 – NSX Overview & Installation Prerequistes

VMware NSX Installation Part 2 – NSX Lab Design & Deploying NSX Manager

VMware NSX Installation Part 3 – Integrating NSX Manager with vCenter Server

VMware NSX Installation Part 4 – Deploying NSX Controller

VMware NSX Installation Part 5 – Checking NSX Controller Status

VMware NSX Installation Part 6 – Preparing Cluster and Hosts for NSX

VMware NSX Installation Part 7 – Verify NSX VIBs Installation from ESXi hosts

VMware NSX Installation Part 8 – Configuring VXLAN on the ESXi Hosts

VMware NSX Installation Part 9 -Create Segment ID and Transport Zones

VMware NSX Installation Part 10 – Create NSX Logical Switch

VMware NSX Installation Part 11 – Creating Distributed Logical Router

VMware NSX – Backup & Restore VMware NSX Manager Data

VMware NSX – Unable to Delete/Remove NSX Logical Switch

VMware NSX – How to Manually Install NSX VIBS on ESXi Host

VMware NSX – How to Manually Remove NSX VIBs from ESXi Host?

How to Remove NSX (Network & Security) Extension from vSphere Web Client


  • ۰

نصب ویندوز بر روی سیستم عامل Mac

نصب ویندوز بر روی سیستم عامل Mac

Here’s how to install and run Windows 10 (or Windows 8, for that matter) on a Mac. We’ll cover the two main methods, Boot Camp and VMWare. and explain the differences and pros and cons of each one.

One of the key benefits of buying and running an Apple Mac or MacBook is that you can have the best of all worlds. Ever since Apple’s transition to Intel processors in 2006 the Apple Mac has been the only device on which you can run OS X and Windows, and their supporting applications. You can run Windows on any Mac bought since 2006. (You can run Windows on older Macs too, in fact, but for the sake of simplicity this piece focuses on post-Intel Apple Macs.)

How to install Windows on Mac: Boot Camp or VMWare?

There are a few ways to run Windows on a Mac, all of which will require you to purchase a Windows licence. The simplest way is to boot into Windows at startup and use your Mac as a Windows PC throughout your computing session. This is easy to do because the required feature – Boot Camp – is built into OS X. It also offers the best performance because your Mac’s hardware is dedicated only to running the Windows OS.

The other option is to use virtualisation software. This is marginally more complicated to do and requires a third-party application such as Parallels Desktop for Mac or VMware Fusion. It means you can switch rapidly from Mac to Windows, but it does mean that your Mac’s processor, memory and so on are having to run two OSes simultaneously. It can make for slower performance.

We’re going to plump for the second option first. Let’s look at using VMware Fusion to run Windows on a Mac.

Read next: How to maximise, minimise, open, close and zoom windows in Mac OS X

How to install Windows on Mac: How to use VMware Fusion to run Windows on Mac

VMware Fusion 6

Here we’ll show you how to use VMware Fusion to run Windows and OS X on your Mac. The process is broadly similar for Parallels. In both cases you’ll need a Windows licence key and installation media, so follow the steps outlined at the beginning of our longer, separate Boot Camp walkthrough.

First you need to downoad VMware Fusion from the VMware website. It costs £35 but, happily, there’s a free trial.

Once you’ve downloaded it the VMware Fusion disk image will be saved to your default download directory. Find it, and double click the VMware .dmg file, to mount it.

Double-click the VMware Fusion icon to launch the Installation Assistant and follow the instructions to install VMware Fusion.

Once it is installed, launch VMware Fusion on your Mac. The Virtual Machine Library window will launch, from which you can create a virtual machine. Now you can use VMware Fusion’s Windows Easy Install feature to automatically install Windows and VMware Tools in your virtual machine.

From the Virtual Machine Library window, click the New button or choose File, New. The New Virtual Machine Assistant launches.

Click Continue to go through to the Operating System panel. Now you can select an operating system and version for your virtual machine. In the Name panel, enter the name for the virtual machine in the Save as field.

In the Virtual Hard Disk panel, set the maximum size for the virtual hard disk. You need to set aside enough space that your virtual machine will work well, but not impinge on the original OS X install. Go in to the Advanced Disk Options section if you want to allocate all possible disk space, or one of several other more high-end features.

In the Windows Easy Install panel, select Use Easy Install. Enter your Name, Password (optional) and the Windows Product key. The product key is the long series of letters and numbers on the Windows DVD box or sent to you via email when you downloaded Windows. ‘Name’ should just be the name to which your Windows software is registered, not your Windows username. ‘Password’ will be your Windows administrator account password.

Now you’ll go to the Finish dialog. Leave selected the option ‘Start virtual machine and install operating system now’. Input your Windows 8 installation media and select the option ‘Use operating system installation disc’ if it is on DVD, or ‘Use operating system installation disc image file’ if it is a USB stick. In the case of the latter you’ll have to browse to the image file.

Now click Finish and put on the kettle. VMware Fusion will install Windows. This will take up to 45 minutes, and once it is done you can boot to Windows at any time by going to VMware Fusion from within OS X.

VMware Fusion 6

How to install Windows on Mac: How to use Boot Camp to run Windows on your Mac

If you’d rather not delve into the complexities of virtualisation software, Boot Camp is your friend.

Here’s a simplified summary of the process required to install Windows on your Mac using Boot Camp. But for a more detailed walkthrough of this method, we strongly recommend that you read our separate article, How to run Windows 10 on Mac using Boot Camp.

1. Download the Windows 10 Disc Image. Choose 64-bit download.

2. Make sure OS X, your Mac firmware, and Boot Camp Assistant are up to date.

3. Boot Camp will take the Windows ISO file and create a boot disk that can be used to install Windows on your Mac.

4. Once you have the Windows 10 ISO downloaded, open the Boot Camp assistant. Tick the following boxes: Create a Windows 10 install disk; and Install Windows 10. Insert a USB drive and select the Windows 10 .iso file via the Boot Camp Assistant.

5. Boot Camp will copy the Windows 10 iso and all the Boot Camp drivers needed to run Windows to the USB stick.

6. Partition your hard drive. Click Install. Windows 10 will start to install.

7. Enter your product key and select your Windows Boot Camp partition to install Window on.

8. Follow the installation process. Once installed the Mac will boot into Windows 10.

9. Install the Boot Camp drivers on the USB stick. Locate them and run setup.exe to install them.

Read next: What to do if your Mac doesn’t finish installing an update

How to install Windows on Mac: Can I run Mac OS X on a Windows PC?

What about the opposite scenario? Is it possible to run Mac OS X on a PC?

In a word: no. It is one of those ironies that although Microsoft is famed for its aggresive commercial practices, Apple is responsible for this particular impasse. Although you can run Windows on any X86 computer, Apple makes its own OS X software available only on Mac software. Overtly the reasoning is laudable: OS X is designed to run on Apple’s own hardware, and the experience wouldn’t be as good on any old computer. This is one reason why you will never run an underpowered Mac.

But it is also fair to say that Apple creates software in order to sell hardware. The excellence of OS X is a killer app when it comes to selling Macs, and it doesn’t want to share. So if you want to experience the best of all worlds, you need to run Windows on your Mac.


  • ۰

تبدیل فرمت VMDK به VHD

تبدیل فرمت VMDK به VHD

Microsoft Windows Virtual PC, VMware and VirtualBox are the three big names in the virtualization world. Most likely, you have heard all these names. Majority of Windows users prefer to use VMware Player and VirtualBox as both these software offer advanced virtualization solutions for free.

Many of us use virtualization software to test drive a new version of Windows and test application for compatibility issues before installing the same on a productive machine. By default, VMware saves virtual machines in .VMDK format and Microsoft Virtual PC uses .VHD format.

At times you might want to use virtual machines created in VMware in Microsoft Virtual PC as well. As you know, Microsoft Virtual PC supports only .VHD format. So if you have a virtual machine in .VMDK format, you need to convert it to .VHD to be able to use it with Virtual PC.

Users who are looking for a free tool to convert VMDK virtual machines to VHD can now use a free tool named VMDK2VHD.

VMWare to VHD Converter

Here is a small tool that helps you quickly convert VMDK format virtual hard drive image to VHD format. VMDK2VHD converter is a tiny tool for XP, Vista and Windows 7 to convert VMDK virtual hard drive to VHD format. The tool doesn’t require an installation. It’s a standalone tool.

Even though converting VMDK to VHD is fairly simple with this tool, we have provided detailed instructions for your convenience.

How to convert VMDK virtual hard drive to VHD format:

Step 1: Download VMDK to VHD zip file and extract the contents to see VMDK Converter folder.

Step 2: Open up the folder, run VMDK2VHD file and then select the VMware virtual hard disk (.VMDK file).

convert VMDK to VHD format

Step 3: Select the destination folder by hitting Save as button and finally hit convert button to start converting your VMDK image to VHD.

Convert VMDK to VHD format in windows

VMWare to VHD Converter

VMDK to VHD converter for windows

VMDK to VHD Converter

Step 4: It will take a few minutes to complete the conversion. Once done, you can use it with Microsoft VPC.

Step 5: Close the tool and start using the newly converted VHD virtual machine. Good luck!


  • ۰

نحوه افزایش اندازه دیسک در VirtualBox

نحوه افزایش اندازه دیسک در VirtualBox

Oracle VM VirtualBox is one of the best and widely used free virtualization software. While there are a couple of virtual machine software around and some of them even offer a few features that aren’t available in VirtualBox, this free virtualization software from Oracle is beats it competitors when it comes to overall performance, stability, and total number of features.

easily increase virtualbox disk size

While creating a new virtual machine, VirtualBox allows you configure the size of the virtual machine and also some other settings. However, once a virtual hard drive is created, you can’t easily alter its size. One of the downsides of VirtualBox is that it doesn’t allow you easily resize a virtual drive even via its settings.

How to increase VirtualBox disk size in Windows

As of now, there is neither a software nor an easier way to increase VirtualBox’s disk size in Windows. However, you can use Command Prompt to increase the VirtualBox disk size. Follow the given below instructions to increase the disk size of VirtualBox in Windows.

NOTE: We suggest you create a backup of your existing virtual drive (create a copy of that virtual drive) before trying to increase its size. Also note that the drive where VirtualBox disk is located must have enough free space in order to increase the disk space of VirtualBox.

Step 1: Open Command Prompt. To do this, open Run dialog box by simultaneously pressing Windows logo and R keys, type CMD in the box, and then press Enter key. Alternatively, you can type CMD in Start menu search box (Windows 7/Vista) or in Start screen (Windows 8 and above) and press enter key to open Command Prompt.

Step 2: In the Command Prompt, type the following command and press enter key.

cd C:\Program Files\Oracle\VirtualBox\

increase virtualbox disk size in Windows

In the above command, replace “C” with your Windows installation drive’s drive letter.

Step 3: Next, find out the exact location of the virtual hard drive that you wish to increase. Usually, it’s located in VirtualBox folder located under Documents. But if you have saved the virtual machine in some other location because of space constraints, you’ll need to find out the exact location.

increase virtualbox disk size in Windows Step2

To find out the path to the virtual machine, open VirtualBox, select the virtual machine that you would like to extend, click Settings, click Storage, and then select the virtual drive to see the exact location on the right-side (see screenshot).

Step 4: Finally, in the Command Prompt, enter the following command and press Enter key.

vboxmanage modifyhd –resize 30000 “S:\VirtualBox\Windows 8.1 Preview.vdi”

In the above command, replace 30000 with the new size of VirtualBox’s disk in MBs and replace“S:\VirtualBox\Windows 8.1 Preview.vdi” with the exact path to the disk with quotation marks.

increase virtualbox disk size

You have just added a few MBs or GBs to your VirtualBox’s disk. But in order to use that disk space, you need to follow the next few steps as well.

Step 5: Open VirtualBox software and run the virtual machine that you would like to extend.

Step 6: In the virtual operating system, open Run dialog box by pressing Windows and R keys, typeDiskmgmt.msc in the box and then press Enter key to open Disk Management. Alternatively, you can right-click on Computer (This PC in Windows 8.1), click Manage and then click Disk Management to open the same.

increase virtualbox disk size in Windows Step33

Step 7: Here, the newly added space will appear as unallocated space. Right-click on your VirtualBox disk, click Extend Volume to open Extend Volume wizard.

increase virtualbox disk size in Windows Step4

Step 8: Click Next, select the amount of space you would like to add (use default settings to use all unallocated space), click Next button again and finally, click Finish button to extend VirtualBox’s disk size.

increase virtualbox disk size in Windows Step5

That’s it. Good luck! How to boot from USB in VirtualBox guide might also interest you.


  • ۰

بکاپ گرفتن و انتقال یک ماشین مجازی در VirtualBox

بکاپ گرفتن و انتقال یک ماشین مجازی در VirtualBox

Need to move a virtual machine, only to find that copying and pasting doesn’t work?  Perhaps you just want to know what to backup?  Take a look at this quick guide on the process to get a better understanding of VirtualBox

First things first: be sure that your virtual machine is shut down and powered off.  Next, make sure you get rid of any snapshots you have.  There isn’t a fool-proof and safe way to do this without getting rid of them, unfortunately.  Select your virtual machine and click on the “Snapshots” tab.

delete snapshots

Select your snapshot and click the delete button.  Be prepared to wait a while as VirtualBox merges differences with your machine’s current state.  The machine’s state won’t actually change, though, so don’t worry.  Now that the prep stuff is out of the way, we can start the moving process.

Once that’s done, go to File > Virtual Media Manager.  You’ll see a list of media that you’ve used or have attached to your machines.

release media

Select which virtual machine you want to move, then click on the “Release” icon above.  In my case, I’ll be moving W7.vdi from my home directory to another hard drive.

Once you have it released, close VirtualBox go to its default settings directory, /home/user/.VirtualBox/

virtualbox_dir

You can copy your .vdi file from inside the HardDisks directory if you want to just back it up, or you can move it.  Be patient, as this can take a while depending on your configuration.

Meanwhile, let’s edit the VirtualBox.xml file to our liking.  This is the step most people don’t really know much about, but it’s pretty vital in making sure things work smoothly.  Open it up in gedit.

gedit xml

Scroll down a bit and you’ll get to the parts we need to edit.

If you’re changing the location of your virtual machines, find the xml tags for “MachineEntry” and change the source path.  If you’re changing the location of your virtual disk images, find the xml tags for “HardDisk” and change the location there.  As you can see, each machine is tied to a disk image by its UUID, which should not be changed.  If you’re moving virtual machines to a new computer, be sure to copy these this file over and replace the previous configuration file.

In my particular case, I just wanted to move the disk image to a more spacious drive, so I left the other things intact.

gedit vbox version

If you’re changing hosts between Windows and Linux, be sure to change the version declaration at the top of the file to say “windows” instead of “linux” as well.

Once you’ve moved the .vdi file, fire up VirtualBox and go to File > Virtual Media Manager.

vbox Media Manager

Click on the old .vdi file and click remove.  Now, click “Add,” navigate to its new location, and click “Open.”  Click “OK.”

Now that the new .vdi is added to VirtualBox’s list, we have to attach it to your virtual machine.  At the main screen select it, go to “Settings,” and click on the “Storage” panel.

add hd

Under the appropriate IDE controller, click the “Add Attachment” button.  You’ll see a hard disk get added automatically, but it probably won’t be the correct one.

Click it and on right side, under “Hard Disk,” choose the correct .vdi file.  Click “OK.”

change vdi

If you followed all the steps and you edited the VirtualBox.xml correctly you should be able to start up the machine without any problems!  There are a few hairy areas, so if things aren’t working, be sure you’re using the correct paths and you’ve edited only the relevant areas of VirtualBox.xml.

The overall process is a bit more intricate than just copying and pasting, but it’s still relatively quick and painless.  Share your backup stories about VirtualBox in the comments!


آخرین دیدگاه‌ها

    دسته‌ها