LoginSignup
4
4

More than 5 years have passed since last update.

Powで動いているアプリをVirtualBox上のOSのブラウザから開けるようにする

Posted at

Powのdefaultリンクを利用してアクセスできるようにします。VirtualBoxで動いているOSはWindowsXPであるとします。

1. VirtualBoxのネットワーク設定

VirtualBoxのネットワーク設定を「NAT」にする。

2. シンボリックリンクの設定

~/.powにアクセスしたいアプリのルートパスへのシンボリックリンクを「default」という名前で作成する。

ln -s ~/dev/xxx/myapp ~/.pow/default

3. WindowsXP側のDefault GatewayのIPアドレスを調べる

> ipconfig

Ethernet adapter ローカル エリア接続:

    . . . (中略) . . .
    Default Gateway . . . . . . . . . . : 10.0.2.2  

4. WindowsXP側のhostsにDefault GatewayのIPを追加

\windows\system32\drivers\etc\hosts
10.0.2.2     outer

5. WindowsXP側のブラウザからアクセスする

http://outer/と指定するとdefaultに指定したアプリが立ち上がります。

求)

普通にhttp://myapp.devみたいな感じでアクセスするにはどうすればいいんだろうか。。

4
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4