How to do offline installation in windows machine

I am having server where internet access is limited(firewall restriction). In that case how to process with installation. Is there any binary available for offline installation where no internet access required? I guess building from source also require internet. Any help will be appreciated.

Thanks in advance!!

Hi @anupk,

We do not have a binary available for offline installation.

One approach is to first use a Windows 10 computer with access to the internet, and use Hyper-V on that computer to build an Ubuntu VM into which you deploy Rasa X (CE or EE). You can then export that VM, move it to your server, and import it there.

Would this be an option for you? (If yes, let me know, and I can provide some further details how to create such a VM on Windows 10)

What version of Windows are you running on your server?

Our server version is Windows 8. Except VM what other option we have. We want to make it as low priority option. You can send details to explore options. Can we able be download source code and make distribution in server.

Correction and additional comments : VDI : VDI environment where internet available OS version Windows 10 enterprise

DEV : Dev server where internet not available OS version Window 2012 R2. I need to install Rasa here.

Just a thought , Can it be possible to create venv for rasa on VDI then pack it and copy the virtual environmnet to DEV server? Platform same but OS is different. Not sure wheather it will work not. If possible give some guidance. Thanks again!!

Can you please provide some guidance @Arjaan. Thanks in advance!!

Hi @anupk,

Below I wrote down the exact steps, like a recipe, to deploy Rasa X to an Ubuntu VM that you build on Windows 10 with Hyper-V. This recipe should work for you in exactly the same way, since you have a Windows 10 machine with internet access.

Then, you can export this virtual machine from Windows 10 to your Windows 2012 R2 server. I did not test it out, but found instructions in this blog post.

What is Hyper-V

See: Introduction to Hyper-V on Windows 10

Enable Hyper-V & DISM (docs)

First enable Hyper-V using Powershell as Administrator:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Reboot after installation

Also enable Deployment Image Servicing and Management (DISM) tool, using Powershell as Administrator

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

Reboot after installation

Create Ubuntu 18.04 VM (docs)

Start > Hyper-V Quick Create: Select Ubuntu 18.04.3 LTS

The default root partition is only 11Gb… That is not enough!

Before connecting: Resize disk for Ubuntu Hyper-V Quick Create Image

  • References:

  • Prerequisite:

    • You will need to download the GParted live CD ISO file so that you can use it later, you can get this here.
  • Before connecting to your Ubuntu VM: Start > Hyper-V Manager

    • Change name of VM to something like: rasa-x-ce or rasa-x-ee
    • Actions: Edit Disk..:
      • A Virtual Hard Drive Wizard comes up:
        • Expand Virtual Hard disk size to 25+ Gb
    • Settings…
      • Hardware: SCSI Control --> Add DVD Drive --> point to the gparted iso file
      • Hardware: Firmware --> Change boot order, so it boots from DVD Drive
      • Turn off checkpoints
  • Now connect & then start VM:

    • VM boots into gparted:
      • Click on FIX when GPT error comes up
      • Resize /dev/sda1 to use all of the disk, by right-click -> Resize/Move & Apply
      • Shut down VM
  • Go back to Start > Hyper-V Manager:

    • Settings…
      • Hardware: Firmware --> Change boot order, so it boots from Hard Drive
  • Now connect & then start VM

    • The OS will be installed:
      • Make sure to chose a username & password & Require my password to log in
    • Verify that indeed the disk has been enlarged, using $ df /dev/sda1

Install required utilities

Connect to the Ubuntu VM, login and issue these commands to install some required utilities:

$ sudo apt-get update
$ sudo apt-get install curl python3-distutils python-testresources

# Install docker 
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
$ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent  software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88  # verify this works
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update    
$ sudo apt-get install docker-ce docker-ce-cli containerd.io

# Install docker-compose
# https://docs.docker.com/compose/install/
# NOTE: Change 1.25.0 to latest version
$ sudo curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose

# Verify this works, with python above 3.6
$ python3 --version && docker -v && docker-compose -v

Deploy Rasa X CE or Rasa X EE (docs)

Start & connect to the Ubuntu VM & you can deploy Rasa X CE or Rasa X EE by simply using the Quick Installation method.

Access Rasa X

Once all the docker containers are up & running, access Rasa X with:

# First find IP + port of Rasa X 
$ sudo docker ps -a  
# => PORT of rasa-x:  5002/tcp

$ sudo docker inspect <CONTAINER ID of rasa-x>
# => eg. "IPAddress": "172.21.0.6"

# Then, on your VM, open your browser to log into rasa-x, as admin user, and do further configurations: 
# eg. 172.21.0.6:5002
1 Like

Thanks for the details. Can you please let me know list of websites/repository url if I need to open firewall at server.

@Arjaan if possible please let me know the details about above query. Thanks again!!

Additionally if you can answer for below query that will be helpful :

After executing below steps. I am getting error like “setuptools update failed because of httpconnection error”. Setuptools already installed in my machine. Do we still httpconnection or internet connection require in order to proceed with the setup?

$ git clone https://github.com/RasaHQ/rasa.git $ cd rasa $ pip install -r requirements.txt $ pip install -e .

Or Am I missing something? Please guide me.