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

Shrink VHD size


@@@@@  Backup original VHD first @@@@

a) Perform defragmention of the guest VM
b) First, shrink partition size
c) Then ,shrink VHD size by using VHDResizer.

You can use VHDResizer tool . To get this tool, goto http://vmtoolkit.com/files/folders/converters/entry87.aspx but on Windows Server 2003, there is no option to shrink volume. The VHDResizer cannot shrink the VHD if the partition is still intact with original size.


1. Attach Win2k3 VHD by using Parent host (Hyper V), go to Start > Administrative Tool > Computer Management > Storage > Disk Management > Right click Attach VHD



2. Right click the partition (Disk 4) and select Shrink Volume.





3. Enter the amount of space to shrink.




4. Once you have shrink the partition, right click the VHD Disk and select Detach VHD.



5. Open VHDResizer, enter destination VHD and specify the new size.
Original size is 50GB
Resize to : 31 GB





6. Wait until the process complete. Below is the snapshot of result.



7. Use Hyper V manager snap in to use the new disk (TestExpand2.vhd).

Popular posts from this blog

What is a Sysvol?

HOW TO EDIT THE BCD REGISTRY FILE

AD LDS – Syncronizing AD LDS with Active Directory