Creating a Virtual Machine with OPAL-RT Linux Version 1.5

Similar documents
Simulink S-Function for RT-LAB Document 1b Creation of a S-Function From C Code and Protection of the Source Code Version 1.2

Quick Start Guide for OP4200 Thank you for choosing RT-LAB as your real-time simulation platform.

Quick Start Guide. Thank you for choosing RT-LAB as your real-time simulation platform.

OP7361 DATASHEET. 8X SFP Carrier.

OP5332 USER GUIDE Isolated Digital to Analog Converter Module

OP7816 DATASHEET Optically Isolated 16 Digital Inputs Signal Conditioning Module

OP /32 Digital Inputs User Guide.

Preparation of a Cluster Node with Ubuntu

The Python Mini-Degree Development Environment Guide

Installation of the DigitalSystemsVM virtual machine

Tutorial for virtual machine creation and installation of Linux C4Sys iso file in Windows.

Sun VirtualBox Installation Tutorial

C HYPERSIM Acceptance Test Plan

Getting Started with ESX Server 3i Installable Update 2 and later for ESX Server 3i version 3.5 Installable and VirtualCenter 2.5

Your Own Virtual Playground. CS 1585 :: Doug McGeehan

Clearswift Gateway Installation & Getting Started Guide. Version 4.1 Document Revision 1.4

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

How to Install Oracle VM VirtualBox and Create a Virtual Machine

Operating Systems Lab 1. Class topic: Installation of the operating system. Install Ubuntu on Oracle VirtualBox

Installation and Setup Guide

Click on the VM IMAGES drop-down menu and select VirtualBox Images

to arrive at the system information display. In MacOS X use the menus

WA2592 Applied Data Science and Big Data Analytics. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

XD10004: How to Install VMware ESX Server 3.5 on VMware Workstation 6.5 as a VM

Installation of OEL5.4 in windows machine (64 bit)

WA2393 Data Science for Solution Architects. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Getting Started with ESX Server 3i Embedded ESX Server 3i version 3.5 Embedded and VirtualCenter 2.5

WA2503 Hadoop Programming on the. Hortonworks Data Platform. Lab Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

How to Install ESX 4.0 on Workstation as a VM

Installation of the DigitalSystemsVM virtual machine

Installing VirtualBox and Ubuntu

Practical Exercises of Computer system security course

1. Download the latest version of the Kali Linux 64 bit ISO image:

VIRTUAL MACHINES. By Seth Lemanek

Quick Installation Guide for RHV/Ovirt

ISO Installation Guide. Version 1.2 December 2015

Documentation. OTRS Appliance Installation Guide. Build Date:

Getting Started with ESXi Embedded

Intel Server RAID Controller U2-1 Integration Guide For Microsoft* Windows NT* 4.0

Setting-up WAN Emulation using WAN-Bridge Live-CD v1.10

Gnostice StarDocs On-Premises API Virtual Appliance

1. Download the files VFE2.03GTM.ova and CPRSSetupV1.0.6.exe from the following site:

Comparative Bacterial Genomics

Installation and Setup Guide

alcasar_documentation Documentation

Setting Up U P D AT E D 1 / 3 / 1 6

CTEC1863/2018F Bonus Lab Page 1 of 5

Acronis Backup & Recovery 11.5

How to Install ESXi 4.0 on Workstation as a VM

Parallels Containers for Windows 6.0

Installation Guide for Beginners

Clearswift SECURE Gateway Installation & Getting Started Guide. Version 4.3 Document Revision 1.0

How to Use This Lab Manual

NMRProcFlow Installation Guide

Step-by-step guide for the libradtran virtual machine. A) Installation

VIRTUAL CENTRAL LOCK

Quick Start Guide. KVM Hypervisor. Server Mode (Single-Interface Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

Install and Configure FindIT Network Manager and FindIT Network Probe on Microsoft Hyper-V Manager

Building a virtual network Maher Saad, Chestnut Residence, University of Toronto

VRX VIRTUAL REPLICATION ACCELERATOR

Steps to install Xubuntu on a Virtual Machine

HP LeftHand SAN Solutions

Quick Start Guide. KVM Hypervisor. Bridge Mode (In-Line Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

Quick Start Guide. KVM Hypervisor. Router Mode (Out-of-Path Deployment) Before You Begin SUMMARY OF TASKS VIRTUAL APPLIANCE

Resizing Virtual Appliances (Debian) in VirtualBox for Windows Shutdown your Virtual Box Machin before you start the following steps

VIRTUALIZATION MANAGER SINGLE SERVER EDITION GETTING STARTED GUIDE

CCNA Discovery Server Live CD v2.0

INSTALLATION. Security of Information and Communication Systems

The Ip address / Name value should be: srvvcenter-cis

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

3 INSTALLING WINDOWS XP PROFESSIONAL

AKIPS Network Monitor Installation, Configuration & Upgrade Guide Version 17. AKIPS Pty Ltd

Network Connection Manager Edition

The Ip address / Name value should be: srvvcenter-cis

Citrix Synchronizer Quick Start Guide

How to setup a basic proveos system

Evolution 2.0 & Affiniti AOS 1.5 Network Share Direct Connect

Installing the CGDS - Substation Workbench Server Software

ViCAR Linux VM. For Microsoft Windows 7. Using Oracle VirtualBox and OpenSuSE Leap 42.2

Optional Lab. Identifying the Requirements. Configuring Windows 7 with virtualization. Installing Windows Server 2008 on a virtual machine

Installation Guide: VirtualBox, Windows 10, and Microsoft Visio (Mac OS)

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Quick Start Guide for Vmware. Version 2.5 Vmware vsphere Instance

DesktopPlayer for Windows

Written by: Mickey Nguyen

Collaboration Management Suite. Installation manual

Fedora Core: Made Simple

WHITE PAPER Citrix Branch Repeater VPX and XenServer How to set up a self contained Branch Repeater VPX demo environment with WAN emulation.

Installing VMware vsphere 5.1 Components

About the XenClient Enterprise Solution

Silk Performance Manager Installation and Setup Help

SANS Institute - Operations Essentials. Operating System Installation Guidelines. Windows XP Professional Installation. Creating Boot Disks

OpenFlow Configuration Lab

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

NMRProcFlow Installation Guide

Install ISE on a VMware Virtual Machine

Reference Pulse Generator Module User Guide

Avigilon Control Center Virtual Matrix User Guide

About XenClient Synchronizer

Red Hat Network Satellite 5.0.0: Virtualization Step by Step

Transcription:

Creating a Virtual Machine with OPAL-RT Linux Version 1.5 www.opal-rt.com

1751 Richardson, suite 2525 Montréal (Québec) Canada H3K 1G6 www.opal-rt.com 2017 All rights reserved Printed in Canada

Contents REVISION HISTORY... 4 INTRODUCTION... 5 REQUIRED MATERIAL... 6 CREATION OF THE VIRTUAL MACHINE... 7 INSTALLATION OF RT-LAB TARGET COMPONENTS... 20 OPTION A: USING FTP AND COMMAND LINE INSTRUCTIONS... 20 OPTION B: USING THE RT-LAB USER INTERFACE ON THE WINDOWS HOST COMPUTER... 21 LICENSE... 24 COMPILER... 24 APPENDIX 1: USING THE VIRTUAL MACHINE ON A STAND-ALONE COMPUTER... 25 APPENDIX 2: CHANGING THE KEYBOARD LAYOUT... 30

REVISION HISTORY Version Date Responsible Comment 1.0 2017-03-23 Daniel O Brien Initial version 1.1 2017-03-27 Vithuran Vilvarajah Add on the GCC compiler 1.2 2017-07-12 Daniel O Brien Minor typos 1.3 2017-08-02 Yahia Bouzid 1.4 2017-09-06 Daniel O Brien 1.5 2017-09-20 Daniel O Brien Added configuration for Host-Only adapter (stand alone mode) APPENDIX 1 Added APPENDIX 2 for changing keyboard layout. Added requirement for 20 GB of free disk space. Updated RPM to v11.1.4.59. Made the RT-LAB target components, the License and the Compiler sections clearer for non-rt-lab users (i.e. users who only wish to compile an S- Function for a third-party integrator). Minimum of 10 GB of free disk space is required. - 4 -

INTRODUCTION This document presents a procedure to create a virtual machine containing OPAL-RT Linux. This allows the user to emulate on a Windows PC the operating system normally installed on an OPAL-RT simulator. With a virtual machine, the user will be able to do the following: - Build a model for RT-LAB (OPAL-RT license required) - Load a model without any I/Os with RT-LAB (OPAL-RT license required) - Compile the source code of a S-Function in order to hide intellectual property - 5 -

REQUIRED MATERIAL Windows host PC o 20 GB of free disk space is recommended (minimum of 10 GB of free disk space is required) Oracle VM VirtualBox software o Download and install from: https://www.virtualbox.org/ Latest ISO image of OPAL-RT Linux operating system o Available here: ftp://client:opal102@ftp.opal-rt.com/redhat o Example: rhel_custom_16.4.3.iso Latest RPM file for installing RT-LAB target components o Available here: ftp://client:opal102@ftp.opal-rt.com/redhat o Example: rtlab-redhawk-v11.1.4.59.rpm - 6 -

CREATION OF THE VIRTUAL MACHINE 1. Open Oracle VM VirtualBox and click on New. 2. Enter a name for your virtual machine, select Linux as the type and select Red Hat (32- bit) as the version. Click Next. - 7 -

3. Enter the amount of memory (RAM) that you want to dedicate to your virtual machine. It is recommended to reserve 2048 MB. Click Next. 4. Select Create a virtual hard disk now. Click Create. - 8 -

5. Select VDI (VirtualBox Disk Image). Click Next. 6. Select Fixed size. Click Next. - 9 -

7. Select the folder where to store the virtual hard disk file. Also, enter the size of the hard disk that you want to dedicate to your virtual machine. It is recommended to reserve 20 GB. Minimally, 10 GB of free disk space is required. Click Create. 8. Once the creation of the virtual hard disk is finished, the virtual machine will be available in the VirtualBox manager. 9. Right-click on the virtual machine, and click Settings. - 10 -

10. In the Storage category, attach the ISO image of OPAL-RT Linux under Controller: IDE. 11. In the System category, move the Optical device to the top of the Boot Order. - 11 -

12. In the Network category, make sure Enable Network Adapter is checked, and select Bridged Adapter. Note: this setting is recommended if you plan to use the virtual machine while your computer is connected to a local network, and its IP address is automatically set by a DHCP server. If you need to use the Virtual machine while the computer is not connected to the local network, please refer to APPENDIX 1. 13. Click OK. 14. Start the virtual machine. - 12 -

15. Click Yes when the following warning appears. 16. Follow the instructions in order to install the operating system. The default options are correct. - 13 -

17. Power off the virtual machine, once the installation process is finished. Note: By default, VirtualBox is configured to capture the mouse inside the virtual machine once you click inside. Press the right Ctrl key in order to uncapture the mouse from the virtual machine. 18. Again, right-click on the virtual machine, and click Settings. - 14 -

19. In the System category, move the Hard Disk device to the top of the Boot Order. 20. Click OK. 21. Start the virtual machine - 15 -

22. Log in with the following credentials: Username: root Password: redhat Note: By default, the keyboard has a QWERTY layout. For an AZERTY keyboard layout, you must therefore type redhqt for the password. If you want to change the keyboard layout permanently, please refer to APPENDIX 2. - 16 -

23. (Optional) If you want to change the IP configuration of the virtual machine, go to the menu System/Administration/Network. Then, select the device you which to configure, and click Edit. It is recommended to keep the option Automatically obtain IP address setting with: dhcp. However, it is possible to configure a static IP address. Please consult your IT department if you are uncertain of the desired IP configuration. Click OK (bottom right button) when the configuration is finished. You will have to deactivate and activate the device for the change to take effect. Note: if you plan to use the computer in stand-alone mode (no connection to the local network), please refer to APPENDIX 1. - 17 -

- 18 -

24. To determine the IP address of the virtual machine, right-click on the desktop, and click Open Terminal. Then, type the command ifconfig. The IP address will be shown next to inet addr. 25. Your virtual machine is ready. - 19 -

INSTALLATION OF RT-LAB TARGET COMPONENTS In order to install the RT-LAB target components on the virtual machine, there are 2 options. A. Using FTP and command line instructions B. Using the RT-LAB user interface on the Windows host computer These 2 options are equivalent. You may choose the one that is the most convenient. For example, if you are compiling the source code of a S-Function in order to hide intellectual property, option A is preferable. OPTION A: USING FTP AND COMMAND LINE INSTRUCTIONS 1. Open a My Computer window. Enter ftp://ntuser@xxx.xxx.xxx.xxx/ in the address bar. Note that xxx.xxx.xxx.xxx is the virtual machine s IP address 2. Enter ntuser in the password field. 3. You are now connected by FTP to the virtual machine. 4. Copy the RT-LAB RPM file rtlab-redhawk-[version_number].rpm. Note that [version_number] is the RT-LAB version number (ex: rtlab-redhawkv11.1.4.59.rpm). 5. In the virtual machine, right-click on the desktop, and click Open Terminal. 6. Type the following commands to install RT-LAB: cd /home/ntuser - 20 -

rpm ivh --force rtlab-redhawk-[version_number].rpm OPTION B: USING THE RT-LAB USER INTERFACE ON THE WINDOWS HOST COMPUTER 1. Launch RT-LAB on the Windows host computer. Click on Go to the workbench, if you are in the Welcome page. - 21 -

2. In the Project Explorer, right-click on Targets. Then, click New / New Target. 3. Enter a name and the IP address of the Virtual Machine. Click Finish. - 22 -

4. Right-click on the newly added target, and click Install / RT-LAB. - 23 -

LICENSE This section is only necessary if you plan to use RT-LAB to compile or load a model on your virtual machine. Please consult the following knowledge base article for instructions on how to request a license. http://www.opal-rt.com/kmp/index.php?/article/aa-01022/8/howto/how-to-request-and- Install-a-License-for-RT-LAB-11.x.html COMPILER This section is only necessary if you plan to use RT-LAB to compile a model on your virtual machine. RT-LAB is compatible with both Intel and GCC compilers on its OPAL-RT Linux (x86-based) platform. For the Intel compiler, please follow the instructions on this knowledge base article on how to request and install it: http://www.opal-rt.com/kmp/index.php?/article/aa-01092/8/howto/how-to-request-and- Install-an-Intel-Compiler-License-on-your-target.html The GCC compiler is installed as a standard on the OPAL-RT Linux distribution. In order to use it, you need to set the RTLAB_INTEL_COMPILER environment variable in RT-LAB, under the Variables tab of your model, to 0. - 24 -

APPENDIX 1: USING THE VIRTUAL MACHINE ON A STAND-ALONE COMPUTER In case you need to use the host PC in standalone mode (no connection to a real network, typically with a laptop during a travel), you will need to configure the virtual machine in Host- Only mode. 1. First, check if a virtual network adapter called VirtualBox Host-Only Network has been created in the Network Connections section of the Control Panel. 2. If it does not exist, you can create it from VirtualBox. In the menu File/Preferences, select Network and go to tab Host-only Networks. Then click on the topmost button to the right (with a green plus symbol). A new host-only network will be created and added to the list, as depicted in the previous step. - 25 -

3. When you double-click on the adapter (e.g. VirtualBox Host-Only Ethernet Adapter #2 in the picture above), you ll have access to the IP settings. VirtualBox assigns an IP address by default. Please check that this address in not in conflict with any other address in your local network. 4. Once the Host-Only Ethernet Adapter has been set, click on the virtual machine and then click Settings. In the Network category, in the field Attached to, select Host-only Adapter. The Name shall be the same as the VirtualBox Ethernet Adapter configured above (e.g. VirtualBox Host-only Ethernet Adapter #2 in this example). - 26 -

5. The last steps will configure the IP Address in the virtual target. Start the virtual machine. 6. Log in with the following credentials: Username: root Password: redhat Note: By default, the keyboard has a QWERTY layout. For an AZERTY keyboard layout, you must therefore type redhqt for the password. If you want to change the keyboard layout permanently, please refer to APPENDIX 2. - 27 -

7. Go to the menu System/Administration/Network 8. Click on the Edit button 9. Set a static IP address according to address chose in step 3. For example Address: 192.168.169.100 Subnet mask: 255.255.255.0-28 -

Note: This address must be different from the one specified on the VirtualBox Host-Only Ethernet Adapter, but located in the same subnet. 10. Click Deactivate, then Activate in order to reload the newly configured network configuration. - 29 -

APPENDIX 2: CHANGING THE KEYBOARD LAYOUT 1. Go to the menu System/Preferences/Keyboard. 2. In the Layouts tab, click Add. - 30 -

3. Choose the desired layout and click on the checkbox to make it your default keyboard layout. - 31 -

Technical Services www.opal-rt.com/support CONTACT Opal-RT Corporate Headquarters 1751 Richardson, Suite 2525 Montréal, Québec, Canada H3K 1G6 Tel.: 514-935-2323 Toll free: 1-877-935-2323 Note: While every effort has been made to ensure accuracy in this publication, no responsibility can be accepted for errors or omissions. Data may change, as well as legislation, and you are strongly advised to obtain copies of the most recently issued regulations, standards, and guidelines. This publication is not intended to form the basis of a contract.