Adding docs for SO 21/17321/2
authorSeshu-Kumar-M <seshu.kumar.m@huawei.com>
Thu, 5 Oct 2017 10:35:01 +0000 (16:05 +0530)
committerSeshu Kumar M <seshu.kumar.m@huawei.com>
Fri, 6 Oct 2017 04:51:53 +0000 (04:51 +0000)
IssueId: SO-177

Change-Id: I19b403cb73d250d8679ce062417be376419e1f83
Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
docs/Install_and_Configure_an_Ubuntu_VM.rst [new file with mode: 0644]
docs/index.rst

diff --git a/docs/Install_and_Configure_an_Ubuntu_VM.rst b/docs/Install_and_Configure_an_Ubuntu_VM.rst
new file mode 100644 (file)
index 0000000..02289e1
--- /dev/null
@@ -0,0 +1,93 @@
+.. _open_cli_schema_version_1_0:\r
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.\r
+.. http://creativecommons.org/licenses/by/4.0\r
+.. Copyright 2017 Huawei Technologies Co., Ltd.\r
+\r
+Install and Configure an Ubuntu VM\r
+==================================\r
+\r
+Get Ubuntu\r
+----------\r
+Get the Ubuntu ISO image from ubuntu.com. The recommended version is 16.04.3 LTS (Long Term Support), desktop edition.\r
+\r
+Get VirtualBox and VirtualBox Guest Additions\r
+---------------------------------------------\r
+Make 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:\r
+       http://download.virtualbox.org/virtualbox\r
+*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.\r
+\r
+Create a new VM in VirtualBox for Ubuntu\r
+----------------------------------------\r
+Type: Linux\r
+Version: Ubuntu (64-bit)\r
+At least 2048 MB memory\r
+At least 40 GB VDI\r
+Network: Attached to: NAT\r
+\r
+Create a port-forwarding rule for SSH\r
+-------------------------------------\r
+Create a port-forwarding rule so that you can use PuTTY (or other SSH client) to connect to the VM.\r
+Go to "Network" settings in VirtualBox, add a port forwarding rule:\r
+Name: SSH\r
+Protocol: TCP\r
+Host IP: 127.0.0.1\r
+Host Port: 1022\r
+Guest IP: <leave blank>\r
+Guest Port: 22\r
+\r
+Create Shared Folder\r
+--------------------\r
+This 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.\r
+Go to "Shared Folders" settings in VirtualBox, add a share:\r
+Folder Path: C:\Users\r
+Folder Name: Users\r
+Auto-mount: <checked>\r
+Read-only: <unchecked>\r
+\r
+Install Ubuntu in the VM\r
+------------------------\r
+On the "Storage" panel in VirtualBox, click on "[ optical drive ]" and then "Choose Disk Image".  Select your Ubuntu ISO image.\r
+\r
+After selecting the ISO image, start the VM.\r
+Follow the prompts to install Ubuntu.\r
+\r
+Proxy Configuration (optional)\r
+------------------------------\r
+If you're behind a corporate firewall, configure some proxy settings.  NOTE: your proxy configuration may require username and password credentials, not shown here.\r
+**Ubuntu system proxy setting:**\r
+       System Settings → Network → Network proxy\r
+       (Replace "proxyhost" and port with your actual proxy information)\r
+\r
+**apt proxy setting:**\r
+       Edit /etc/apt/apt.conf and add one line at the top (replace "proxyhost:port" with your actual proxy information):\r
+               Acquire::http::Proxy "http://proxyhost:port";\r
+       Reboot the VM.\r
+       \r
+Install SSH Server\r
+------------------\r
+sudo apt update\r
+sudo apt install openssh-server\r
+\r
+Connect to the VM from your host computer\r
+-----------------------------------------\r
+       The PuTTY SSH client is popular.  A connection to localhost:1022 (or whatever port you have forwarded) will go to the VM.\r
+\r
+Install VirtualBox Guest Additions\r
+----------------------------------\r
+On the "Storage" panel in VirtualBox, click on "[ optical drive ]" and then "Choose Disk Image".  Select your VirtualBox Guest Additions ISO image.\r
+\r
+In a VM terminal window, mount the cdrom:\r
+       sudo mkdir -p /media/cdrom\r
+       sudo mount /dev/cdrom /media/cdrom\r
+Install necessary dependencies:\r
+       sudo apt update\r
+       sudo apt install gcc g++ dkms\r
+Install 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.\r
+       cd /media/cdrom\r
+       sudo ./VBoxLinuxAdditions.run\r
+\r
+Add yourself to the vboxsf user group (replace "userid" with your user ID):\r
+       sudo usermod -a -G vboxsf userid\r
+Reboot the VM.\r
+In a VM terminal window, verify that you can access your home directory on the host computer, which should be mounted under here:\r
+       /media/sf_Users
\ No newline at end of file
index 3ef709c..b540dc2 100644 (file)
@@ -8,5 +8,4 @@ ONAP Service Orchestration Documentation
 .. toctree::\r
    :maxdepth: 1\r
 \r
-       \r
-       ONAP SO Env Setup.pdf
\ No newline at end of file
+   Install_and_Configure_an_Ubuntu_VM.rst\r