After installing the system, through the Internet, etc. first installation ISO file copy over, the virtual machine can be used to hang a virtual drive, then cd into the directory, perform the following naming to install the core services:
Setup.exe / qs / ACTION = Install / FEATURES = SQLEngine, Replication / INSTANCENAME = MSSQLSERVER / SQLSVCACCOUNT = "computer name \ Username" / SQLSVCPASSWORD = "windows login password" / SQLSYSADMINACCOUNTS = "computer name \ Username" / AGTSVCACCOUNT = "NT AUTHORITY \ Network Service" / TCPENABLED = 1 / IACCEPTSQLSERVERLICENSETERMS / SECURITYMODE = SQL / SAPWD = sa password
After installation, the port open for connection management tools:
netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN