blob: 5771a10e843abb9f38073dd9946a8fc73602652e [file] [log] [blame]
seshukm613e4482017-10-11 10:17:45 +05301.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright 2017 Huawei Technologies Co., Ltd.
4
Seshu-Kumar-Mbf2b9e12017-10-11 16:33:41 +08005Install and Configure Service Orchestrator
6==========================================
seshukm613e4482017-10-11 10:17:45 +05307
8Get Ubuntu
9----------
10Get the Ubuntu ISO image from ubuntu.com. The recommended version is 16.04.3 LTS (Long Term Support), desktop edition.
11
12Get VirtualBox and VirtualBox Guest Additions
13---------------------------------------------
14Make sure you have the VirtualBox Guest Additions ISO for your version of VirtualBox. I'm using VirtualBox 5.1.28. Save the Guest Additions ISO on your host computer along with the Ubuntu ISO. Get the Guest Additions ISO from here:
15 http://download.virtualbox.org/virtualbox
16*NOTE*: Guest Additions versions prior to 5.1 will not work with Ubuntu 16.04.3. If you have an earlier version of VirtualBox, you should upgrade to the latest 5.1 version.
17
18Create a new VM in VirtualBox for Ubuntu
19----------------------------------------
20Type: Linux
21Version: Ubuntu (64-bit)
22At least 2048 MB memory
23At least 40 GB VDI
24Network: Attached to: NAT
25
26Create a port-forwarding rule for SSH
27-------------------------------------
28Create a port-forwarding rule so that you can use PuTTY (or other SSH client) to connect to the VM.
29Go to "Network" settings in VirtualBox, add a port forwarding rule:
30Name: SSH
31Protocol: TCP
32Host IP: 127.0.0.1
33Host Port: 1022
34Guest IP: <leave blank>
35Guest Port: 22
36
37Create Shared Folder
38--------------------
39This is oriented to Windows users. If you're using a MAC or a Linux host computer, the details may be different. You can share any folder on the host computer with the Ubuntu VM. On Windows, a practical choice is to share the C:\Users folder, so that your Windows home directory will be accessible from the Ubuntu VM.
40Go to "Shared Folders" settings in VirtualBox, add a share:
41Folder Path: C:\Users
42Folder Name: Users
43Auto-mount: <checked>
44Read-only: <unchecked>
45
46Install Ubuntu in the VM
47------------------------
48On the "Storage" panel in VirtualBox, click on "[ optical drive ]" and then "Choose Disk Image". Select your Ubuntu ISO image.
49
50After selecting the ISO image, start the VM.
51Follow the prompts to install Ubuntu.
52
53Proxy Configuration (optional)
54------------------------------
55If you're behind a corporate firewall, configure some proxy settings. NOTE: your proxy configuration may require username and password credentials, not shown here.
56**Ubuntu system proxy setting:**
57 System Settings → Network → Network proxy
58 (Replace "proxyhost" and port with your actual proxy information)
59
60**apt proxy setting:**
61 Edit /etc/apt/apt.conf and add one line at the top (replace "proxyhost:port" with your actual proxy information):
62 Acquire::http::Proxy "http://proxyhost:port";
63 Reboot the VM.
64
65Install SSH Server
66------------------
67sudo apt update
68sudo apt install openssh-server
69
70Connect to the VM from your host computer
71-----------------------------------------
72 The PuTTY SSH client is popular. A connection to localhost:1022 (or whatever port you have forwarded) will go to the VM.
73
74Install VirtualBox Guest Additions
75----------------------------------
76On the "Storage" panel in VirtualBox, click on "[ optical drive ]" and then "Choose Disk Image". Select your VirtualBox Guest Additions ISO image.
77
78In a VM terminal window, mount the cdrom:
79 sudo mkdir -p /media/cdrom
80 sudo mount /dev/cdrom /media/cdrom
81Install necessary dependencies:
82 sudo apt update
83 sudo apt install gcc g++ dkms
84Install the guest additions. NOTE: look for errors in the command output! If you see an error that says you are missing kernel headers, the most likely cause is that you are using a VirtualBox version that is too old. The error message is misleading.
85 cd /media/cdrom
86 sudo ./VBoxLinuxAdditions.run
87
88Add yourself to the vboxsf user group (replace "userid" with your user ID):
89 sudo usermod -a -G vboxsf userid
90Reboot the VM.
91In a VM terminal window, verify that you can access your home directory on the host computer, which should be mounted under here:
92 /media/sf_Users
93
94Further Reading
95----------------------------------------
96https://wiki.onap.org/display/DW/Development+Environment