Virtual Machine (VM) Setup
Step-by-Step Instruction
- 
Log in your Remote Desktop. 
- 
If you see the Welcome to Brown message, click OK. 
- 
Open your terminal and folder. - 
You should see six icons on the bottom. Your terminal is the 'black screen' icon, and your folder is the 'blank folder' icon. 
 
- 
- 
In your folder window, go to /depot/tdm-COMPANY/etc- 
Replace COMPANY with your company name. 
 
- 
- 
You should see two different folders, vm_scriptsandmy_images- 
If the vm_imagesfolder doesn’t exist, make a new folder and go to Create Your Own Image.
- 
If the vm_scriptsfolder doesn’t exist, go to Shortcut to Set Up VM.
 
- 
- 
In your my_imagesfolder, you should see aqcow2file.- 
If not, go to Create Your Own Image. 
 
- 
- 
In your vm_scriptsfolder, you should see three files.- 
1_create_cluster_copy.sh
- 
2_grab_a_node.sh
- 
3_build_a_vm.sh
 
- 
- 
Open 1_create_cluster_copy.shto check if the path to the image is correct.- 
Example: /depot/tdm-COMPANY/etc/my_images/img1.qcow2
 with COMPANY being your company name
 
- 
- 
Open 3_build_a_vm.shto check two things.- 
The path to your qcow2file is correct.- 
Example: /depot/tdm-COMPANY/etc/my_images/img1.qcow2
 with COMPANY being your company name
 
- 
- 
The path to mount is correct. - 
Example: /depot/tdm-COMPANY
 with COMPANY being your company name
 
- 
 
- 
- 
Run 2_grab_a_node.shThere are two ways to do it.- 
Run the command, '/depot/tdm-COMPANY/etc/vm_scripts/2_grab_a_node.sh'- 
with single quotation marks, COMPANY being your company name 
 
- 
- 
Drag 2_grab_a_node.shinto your terminal and hit ENTER.
 
- 
- 
Run 3_build_a_vm.shThere are two ways to do it.- 
Run the command, '/depot/tdm-COMPANY/etc/vm_scripts/3_build_a_vm.sh'- 
with single quotation marks, COMPANY being your company name 
 
- 
- 
Drag 3_build_a_vm.shinto your terminal and hit ENTER.
 
- 
- 
Once the mounting filesystem is selected, the Windows VM will automatically appear. - 
If the window is too large or small to view, go to viewtab to modify.
- 
If the VM window appears and then disappears, email The Data Mine. It’s likely be a permission issue that can be fixed. 
 
- 
- 
The Windows VM will have the associated depotlocation mounted. If you openFile Explorerand select theqemuentry in the menu, you will see thedepotloation.- 
This is the same depotlocation that your team use for the Juypter notebooks. If you have data from the VM in this location, it will be avaliable in the Jupyter notebooks for further analysis.
 
- 
- 
Once you’re done with the VM, don’t click the exit[x] button.- 
Go to the start menu in the bottom right corner. 
- 
Click the power icon and select Shut Down. LeaveOther (unplanned)entry.
- 
Select Continueon the pop-up that appears.
 
- 
- 
Close any remaining terminals in the Remote Desktop session and log out. - 
Type exitin the terminal windows and hit ENTER until they dispear.
- 
Select Log Outin the upper-right corner.
 
- 
Create Your Own Image
There are two approaches to build a qcow2 file. Important to note that it will take a while to copy the VM image. Expect about 10 minutes wait.
Approach 1: Change the Path
- 
Open 1_create_cluster_copy.sh- 
If 1_create_cluster_copy.shdoesn’t exist, jump to Approach 2.
 
- 
- 
Change the path right after the cdcommand to
 /scratch/brown/kamstut/tdm/bin/vm_image/helmer_vm/windows-base.qcow2
- 
Save the file. 
- 
Run 1_create_cluster_copy.shThere are two ways to do it.- 
Run the command, '/depot/tdm-COMPANY/etc/vm_scripts/1_create_cluster_copy.sh'- 
with single quotation marks, COMPANY being your company name 
 
- 
- 
Drag 1_create_cluster_copy.shinto your terminal and hit ENTER.
 
- 
- 
Congratulations, you just created a qcow2file.- 
You can find it in /scratch/brown/USERNAMEwith USERNAME being your username
 
- 
- 
Feel free to move it to /depot/tdm-COMPANY/etc/my_imagesand procceed to Step 7 in Step-by-Step Instruction.- 
If you want to leave it in your scratch, you need to update the PATH in3_build_a_vm.sh. See Step 9 in Step-by-Step Instruction.- 
Use this path instead: /scratch/brown/$USERID/windows-base.qcow2
 
- 
 
- 
Approach 2: Through Application
- 
Select Applicationon the top-right.
- 
Select Cluster Softwareand thenWindows 10.
- 
Select New Base Windows 2016 Serverand then click OK.
- 
You can use your scratchpath for your VM image or any path you want to implement your image.- 
scratchis not persistent storage. If you want to keep your image for a longer term, be sure to save it in a different location.
 
- 
- 
Select OK. At this point, your VM image will be generated. 
- 
Select /depot/tdm-COMPANYwhenMount Selectionscreen appears.
- 
The VM window will appear. - 
See Step 12 - 15 in Step-by-Step Instruction for additional information. 
 
- 
Shortcut to Set Up VM
This assumes that you already have a qcow2 file. If not, please see Approach 2.
- 
Select Applicationon the top-right.
- 
Select Cluster Softwareand thenWindows 10.
- 
Select Saved ImageinImage Selectionwindow and then click OK.
- 
Select the qcow2file location you want to use and then click OK.
- 
Select /depot/tdm-COMPANYwhenMount Selectionscreen appears.
- 
The VM window will appear. - 
See Step 12 - 15 in Step-by-Step Instruction for additional information. 
 
- 
Tableau Installation
A Tableau account allows 2 people to log in at the same time, so one Purdue email address can be used for 2 people. These 2 people can use the same qcow2 file. You are more than welcome to use your own Purdue email address for yourself. This is an approach to 'sacrifice' less Purdue emails to set up free Tableau accounts.
Tableau will be upset if 3 or more people try to use the same account.
Suppose four people (MaryAnne, DavKev) want to use Tableau at the same time. Here’s a way to get around.
- 
Duplicate the qcow2file in/depot/tdm-COMPANY/etc/my_images- 
Now, you should have two different files. For example, - 
/depot/tdm-COMPANY/etc/my_images/img1.qcow2
- 
/depot/tdm-COMPANY/etc/my_images/img2.qcow2
 
- 
 
- 
- 
Duplicate 3_build_a_vm.sh- 
Now, you should have two different files. For example, - 
/depot/tdm-COMPANY/etc/my_images/run_image_MaryAnne.sh
- 
/depot/tdm-COMPANY/etc/my_images/run_image_DavKev.sh
 
- 
 
- 
- 
Modify the PATHs in each file above to use right qcow2and mount/depot/tdm-COMPANY- 
run_image_MaryAnne.shshould loadimg1.qcow2and mount/depot/tdm-COMPANY
- 
run_image_DavKev.shshould loadimg2.qcow2and mount/depot/tdm-COMPANY
 
- 
- 
MaryAnne run 2_grab_a_node.shand thenrun_image_MaryAnne.sh
- 
Either Mary or Anne uses their Tableau credentials. The image will remember the Tableau account information. 
- 
Repeat (4,5) but use DavKev’s 
- 
No need to re-login. A qcow2file will remember and be ready to use for the next user.- 
If MaryAnne get on run_image_DavKev, they are techincally logged in as DavKev.
- 
Suppose six people want to use Tableau at the same time, three different qcow2files need to be created and repeat this procedure thrice.
 
- 
Power BI Installation
This section will provide an overview of how to install Power BI on a Windows VM. The instruction assumes that the VM is already set up.
Install
- 
Open a browser and navigate to the Microsoft Power BI downloads website - 
Google "Microsoft Power BI download" 
- 
Select the second link for "Downloads | Microsoft Power BI" 
- 
Select "Advanced download options" 
 
- 
- 
Select "Download" and choose the PBIDesktopSetup_x64.exeoption. Select "Next".
- 
If prompted, choose the "Save File" option on the download screen. 
- 
Once the file has completed downloading, navigate to "Downloads" and run the PBIDesktopSetup_x64.exefile.- 
Run the file with the default settings. 
 
- 
Access Data
Note: You need some of the information that makes up the DB connection string from your company. Otherwise, you won’t be able to connect.
Once Power BI is installed, you can connect it to any data source. Microsoft has many built-in data connectors. Everything from standard CSVs to Hadoop!
Just for a demo, "SQL" is used.
- 
Open a Power BI session and navigate to "Get data" and then "More…" 
- 
In the search bar, type "SQL" and select the entry for "SQL Server database". Select "Connect". 
- 
Fill in the "Server" and "Database" names based on the information provided by your company. Click OK. - 
You can leave the setting to "Import" and no "Advanced options" are required. 
 
- 
- 
In the authentication options, select "Microsoft accout" and then sign in with your Purdue account. 
- 
Once the authentication is completed, select "Connect". If the connection is succesful, the tables from the DB will appear. - 
You only need to do this set up once for each data source. Once you have successfully connected, you can reconnect using the "Recent Sources" option in "Home" in Power BI. It will log in to the same source with the same credentials. 
 
-