Posts

Showing posts from November, 2013

Trending Topics

VMware on AWS - How to restore NSX DFW firewall rules to previous state

Image
Customers who uses NSX day-in, day-out would like to have a point-in time restore functionality of DFW firewall rules. Many customer have a large footprints in VMC and make changes to DFW quite often. This feature was missing for long time and we could see its included in recent versions . Let's see how DFW configuration roll back works  NSX DFW configuration has versioning, and it is stored in the NSX Manager.  Every time when someone update DFW configuration, NSX creates one more version but keep storing the previous ones. You can rollback for previous config but reapplying it once again.  You can find the options under Networking & Security tab , > Security > Distributed Firewall . In the right side we see an Actions drop down. Choose View to get to the below screen.  Let’s go through the use case:  1. Original state- default config with no custom rules:  a. There are no saved configurations during last 30 days: In my existing test setup, with the current setting

VMware: Deploy VMs from Template using PowerCLI

Syntax : 1..<N> | Foreach {  New-VM -vmhost <ESX_HOST> -Name <VM_NAME> -Template <TEMPLATE> -Datastore <DATASTORE> [-OtherOptions]  }  Where: <N> is the number of VMs you need to deploy. <ESX_HOST> is the host where you will deploy your VMs <TEMPLATE> is the template from which your VMs will be created <DATASTORE> is the datastore that will contain your VMs [-OtherOptions] are additional options that can be used in conjunction with New-VM command. As you can see it's really basic, but New-VM cmdlet is really powerful and it has a lot of options. To go through all on New-VM options: Get-Help New-VM -Detailed Here's how I used it today for deploying 6 VMs that will be Oracle RAC nodes. Open a text editor and paste this code in it saving file with .ps1 extension. 1..2 | Foreach {  New-VM -vmhost esx1.testdomain.com -Name RAC$_ -Template OL6 -Datastore datastore1  }  3..4 | Foreach {  New-VM -vmhost esx