Comprehensive data protection for all workloads
Post Reply
MikeOCE35
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2021 6:51 am
Full Name: Michael
Contact:

Unattended Silent Install Issues.

Post by MikeOCE35 »

Hi,

Trying to install Veeam B&R Server + Console etc.

I have followed this article - https://helpcenter.veeam.com/docs/backu ... ml?ver=110

but i am getting errors with the Veeam Backup & Replication console not being able to connect, looked into it further and it seems because the actual server component didn't install.
When i try to run the MSI manually so i can see what's going on exactly, its stating that it is unable to find a SQL Instance to log into.

Which is essentially this command:
msiexec.exe /qn /i "C:\Install\Server.x64.msi" ACCEPTEULA="1" ACCEPT_THIRDPARTY_LICENSES="1"

Am i missing something? the silent mode install article doesn't really mention any other pre-requisite setup for configuring the SQL database separately etc.

If i run the full .exe suite setup i have no issues.

Thanks!
Egor Yakovlev
Veeam Software
Posts: 2537
Liked: 683 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Unattended Silent Install Issues.

Post by Egor Yakovlev »

Hi Michael.

It is worth logging msiexec installation with key "/L*v C:\temp\InstallationLog.txt" to find exact reason why it fails.
As for the database, if not set explicitly, Veeam assumes there is an existing instance localhost\VEEAMSQL2012(or 2016 for OS 2012+), so yes, you need to either setup SQL in advance with said name, or preinstall it via script on the flight.

Here is part of the code I use for my deployments($logdir is a path to logging folder, $source is a path to installation ISO, $licensefile has a path to Veeam .lic file):

Code: Select all

    # SQL Express
    Write-Host "`n     Microsoft SQL Server 2016 Express..." -ForegroundColor Yellow
    Write-Host "     Unpacking setup..." -ForegroundColor Green
    Start-Process -PSPath '$source:\Redistr\x64\SqlExpress\2016SP2\SQLEXPR_x64_ENU.exe' -ArgumentList '/x:"C:\SQLEXPR_x64_ENU" /Q' -wait | Out-Null
    Write-Host "     Installing..." -ForegroundColor Green
    Start-Process -FilePath "C:\SQLEXPR_x64_ENU\Setup.exe" -Argumentlist '/q /ACTION=Install /FEATURES=SQLEngine,SNAC_SDK /INSTANCENAME=VEEAMSQL2016 /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQLSYSADMINACCOUNTS="demo\userA" "demo\userB" "NT AUTHORITY\SYSTEM" /ADDCURRENTUSERASSQLADMIN /IACCEPTSQLSERVERLICENSETERMS /TCPENABLED=1 /UPDATEENABLED="False"' -NoNewWindow -Wait | Out-Null

    # Backup Catalog
    Write-Host "`n     Veeam Backup Catalog..." -ForegroundColor Yellow
    $MSIArguments = @(
        "/qn"
        "/i"
        "$source\Catalog\VeeamBackupCatalog64.msi"
        "ACCEPT_THIRDPARTY_LICENSES=1"
        "ACCEPTEULA=1"
        "/L*v"
        "$logdir\01_Catalog.txt"
    )
    Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow | Out-Null
    if (Select-String -path "$logdir\01_Catalog.txt" -pattern "Installation success or error status: 0.") { Write-Host "     OK" -ForegroundColor Green }
    else { Write-Host "     FAILED" -ForegroundColor Red }

    # Backup Console
    Write-Host "`n     Veeam Backup Console..." -ForegroundColor Yellow
    $MSIArguments = @(
        "/i"
        "$source\Backup\Shell.x64.msi"
        "/qn"
        "/L*v"
        "$logdir\02_Console.txt"
        "ACCEPTEULA=YES"
        "ACCEPT_THIRDPARTY_LICENSES=1"
    )
    Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow | Out-Null
    if (Select-String -path "$logdir\02_Console.txt" -pattern "Installation success or error status: 0.") { Write-Host "     OK" -ForegroundColor Green }
    else { Write-Host "     FAILED" -ForegroundColor Red }

    # Backup Server
    Write-Host "`n     Veeam Backup Server..." -ForegroundColor Yellow
    $MSIArguments = @(
        "/i"
        "$source\Backup\Server.x64.msi"
        "/qn"
        "/L*v"
        "$logdir\03_Backup.txt"
        "ACCEPTEULA=YES"
        "VBR_SERVICE_USER=demo\userB"
        "VBR_SERVICE_PASSWORD=Y0uRP@ssw0rd"
        "ACCEPT_THIRDPARTY_LICENSES=1"
        "VBR_LICENSE_FILE=$licensefile"
        "VBR_SQLSERVER_SERVER=$env:COMPUTERNAME\VEEAMSQL2016"
    )
    Start-Process "msiexec.exe" -ArgumentList $MSIArguments -Wait -NoNewWindow | Out-Null
    if (Select-String -path "$logdir\03_Backup.txt" -pattern "Installation success or error status: 0.") { Write-Host "     OK" -ForegroundColor Green }
    else { Write-Host "     FAILED" -ForegroundColor Red }
p.s. Script is far from being perfect: SQL Server can be installed without unpacking exe and password for service account should be kept securely, but that is just fine for one time or for disposable labs deployment.

/Cheers!
MikeOCE35
Novice
Posts: 4
Liked: never
Joined: Aug 27, 2021 6:51 am
Full Name: Michael
Contact:

Re: Unattended Silent Install Issues.

Post by MikeOCE35 »

Thank you Egor.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 114 guests