The best way to see if and how a solution works is to test it. The proof of the pudding is in 
the eating they say. For this I have created a small testlab. While building it I ran into a little problem. 
But it had to be solved to continue. For testing but also for live production I want to join my VCSA in a 
Windows domain. Since the hacking with WannaCry, caused by an SMB1 vulnerability, this is only allowed 
with the use of SMB2. The default installation of VCSA does not have SMB2 support in it so it fails.
I think this isn't just in my testlab so more people are bound to run into this.
This is why i wrote this post.
When I was setting up my test lab, I was trying to join my VCSA to the domain. 
First with the GUI and later on through SSH on the CLI. With the CLI it was more clear 
what the problem was.  
I had below error:



Looking through diverse postings I ran into a VMware knowledge article about enabling SMB2 on 
the VCSA. (https://kb.vmware.com/s/article/2150832)
But when I ran the command:
/opt/likewise/bin/lwregshell set_value 
'[HKEY_THIS_MACHINE\Services\lwio\Parameters\Drivers\rdr]' Smb2Enabled 1
it gave me a invalid syntax.
See below:


This means the value I am trying to set is not in the registry.
Just to be sure I ran  
/opt/likewise/bin/lwregshell list_values 
'[HKEY_THIS_MACHINE\Services\lwio\Parameters\Drivers\rdr]'
and indeed it wasn't there.



So in stead of setting it you have to add it
/opt/likewise/bin/lwregshell add_value 
'[HKEY_THIS_MACHINE\Services\lwio\Parameters\Drivers\rdr]' Smb2Enabled REG_DWORD 1
Now the value is there and set to 1



Hope this helps anyone setting up SMB2 on the VCSA
Hans van der Stek

Author Hans van der Stek

Since I left school I was interested in how things work and learning how to work with them. From communicating through old military phones to the first home computers of that time. I worked in a lot of IT surroundings for over 30 years. After installing home computers, servers, server rooms and data centers I finally discovered Virtualization and I soon realized it was the future. The possibility of creating a small working datacenter on a single laptop amazed me and passionated me deeply. You still need hardware to land on but everything else is controlled by software. I have two passions, creating new environments and help companies who have difficulties with their environment. I don’t stop until the customer is fully satisfied.

More posts by Hans van der Stek
26 July 2019