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
orrasa-x-ee
-
Actions: Edit Disk..
:- A Virtual Hard Drive Wizard comes up:
-
Expand
Virtual Hard disk size to 25+ Gb
-
- A Virtual Hard Drive Wizard comes up:
- 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
- Change name of VM to something like:
-
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
- VM boots into gparted:
-
Go back to Start > Hyper-V Manager:
- Settings…
- Hardware: Firmware --> Change boot order, so it boots from Hard Drive
- Settings…
-
Now connect & then start VM
- The OS will be installed:
- Make sure to chose a username & password &
Require my password to log in
- Make sure to chose a username & password &
- Verify that indeed the disk has been enlarged, using
$ df /dev/sda1
- The OS will be installed:
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