summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/images/build-appliance-image
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2016-12-30 13:35:32 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-16 18:05:12 +0000
commit4028407326f18c9059d6227de150100962656310 (patch)
treef5842911abfea0d8d5d2ed38c673e30c1164d643 /meta/recipes-core/images/build-appliance-image
parentb138a8bba504734f6c2660442f71a8ecc17b8f7c (diff)
downloadpoky-4028407326f18c9059d6227de150100962656310.tar.gz
build-appliance-image: support for Toaster
Various changes needed to enable to run Toaster in the Build Appliance: 1. Pre-install packages as specified by the file "bitbake/toaster-requirements.txt" 2. Include pip3 in the image 3. Include tzdata in the image (needed by django) 4. Bump SRCREV to a commit with proper settings.py (ALLOWED_HOSTS) for Django 1.8.16 5. Added README_VirtualBox_Toaster.txt to provide steps for configuring VirtualBox network adapters (NAT or Bridged) and steps to launch Toaster [YOCTO#10767] (From OE-Core rev: dffbac64bbf86c91247ba7373b3b5bd6af24103f) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/images/build-appliance-image')
-rw-r--r--meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt b/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt
new file mode 100644
index 0000000000..a0aede2fbf
--- /dev/null
+++ b/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt
@@ -0,0 +1,78 @@
1
2Running Toaster in VirtualBox
3=============================
4
5Toaster is launched via the command in VM:
6
7 $ source toaster start webport=<IPADDR:PORT>
8
9The interaction with Toaster web server is done via a host internet
10browser.
11The particular steps depend on the actual networking being used
12by the VirtualBox.
13
14
15Bridged Network
16===============
17
18Find out your VM network IP address:
19
20 $ ifconfig
21
22IP address is listed under eth0 inet addr.
23It should be something like:
24 inet addr:192.168.1.18
25
26Launch the Toaster web server in VM:
27
28 $ source toaster start webport=192.168.1.18:8000
29
30Interact with the Toaster web server with your host browser using URL:
31
32 http://192.168.1.18:8000
33
34
35NAT Network
36===========
37Find out your VM network IP address:
38
39 $ ifconfig
40
41IP address is listed under eth0 inet addr.
42For NAT network it should be something like:
43 inet addr:10.0.2.15
44
45When using NAT network, the VM web server can be accessed using
46Port Forwarding.
47
48Using the VirtualBox GUI, navigate to:
49 Settings->Network->Adapter1
50
51You should set:
52 Attached to: NAT
53
54Select "Advanced", click on "Port Forwarding"
55
56This will open a new dialog box "Port Forwarding Rules".
57Create a new rule that looks like this:
58
59| Name | Protocol | Host IP | Host Port | Guest IP | Guest Port |
60+-------+----------+---------+-----------+----------+------------+
61| Rule1 | TCP | | 8000 | | 8000 |
62------------------------------------------------------------------
63
64Now we can launch the Toaster web server in VM:
65
66 $ source toaster start webport=10.0.2.15:8000
67
68Interact with the Toaster web server with your host browser using URL:
69
70 http://127.0.0.1:8000
71
72
73
74
75
76
77
78