aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Toaster.txt
blob: a0aede2fbf5d6847a5211970e95280535095f679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Running Toaster in VirtualBox
=============================

Toaster is launched via the command in VM:

    $ source toaster start webport=<IPADDR:PORT>

The interaction with Toaster web server is done via a host internet
browser.
The particular steps depend on the actual networking being used
by the VirtualBox.


Bridged Network
===============

Find out your VM network IP address:

    $ ifconfig

IP address is listed under eth0 inet addr.
It should be something like:
   inet addr:192.168.1.18

Launch the Toaster web server in VM:

    $ source toaster start webport=192.168.1.18:8000

Interact with the Toaster web server with your host browser using URL:

    http://192.168.1.18:8000


NAT Network
===========
Find out your VM network IP address:

    $ ifconfig

IP address is listed under eth0 inet addr.
For NAT network it should be something like:
   inet addr:10.0.2.15

When using NAT network, the VM web server can be accessed using
Port Forwarding.

Using the VirtualBox GUI, navigate to:
    Settings->Network->Adapter1

You should set:
    Attached to: NAT

Select "Advanced", click on "Port Forwarding"

This will open a new dialog box "Port Forwarding Rules".
Create a new rule that looks like this:

| Name  | Protocol | Host IP | Host Port | Guest IP | Guest Port |
+-------+----------+---------+-----------+----------+------------+
| Rule1 | TCP      |         | 8000      |          |  8000      |
------------------------------------------------------------------

Now we can launch the Toaster web server in VM:

    $ source toaster start webport=10.0.2.15:8000

Interact with the Toaster web server with your host browser using URL:

    http://127.0.0.1:8000