Virtualbox » Historial » Versió 3
Pau Escrich, 05-01-2013 01:13
1 | 1 | Pau Escrich | h1. Virtualbox |
---|---|---|---|
2 | |||
3 | It is possible to emulate qMp with Virtual Box. |
||
4 | |||
5 | 3 | Pau Escrich | h3. Storage |
6 | To make the things easy it is better to add |
||
7 | |||
8 | 2 | Pau Escrich | h3. Network Configuration |
9 | 1 | Pau Escrich | |
10 | First of all we create a virtual tun/tap device in the host machine. |
||
11 | 3 | Pau Escrich | |
12 | <pre> |
||
13 | 1 | Pau Escrich | ip tuntap add mode tap dev vbox |
14 | ip link set vbox up |
||
15 | ip addr add 172.30.22.10/24 dev vbox |
||
16 | 3 | Pau Escrich | </pre> |
17 | 1 | Pau Escrich | |
18 | 3 | Pau Escrich | In VB machine configuration at least one network interface must be added. |
19 | 1 | Pau Escrich | It should be configured as bridged interface to our new "vbox" network device. |
20 | The driver "PCnet-PCI II" works fine. |
||
21 | |||
22 | |||
23 | h3. Serial |
||
24 | 3 | Pau Escrich | |
25 | A serial port is needed because OpenWRT expects it. So it should be added in the VB machine configuration. |
||
26 | |||
27 | It is possible to use it to connect with the qMp node from the host machine (useful for debug), but it is NOT NEEDED. |
||
28 | To do so you should configure the VB serial as host pipe. |
||
29 | Check the option "create pipe" and add the path "/tmp/vboxs0". |
||
30 | Then in the host machine execute: |
||
31 | <pre> |
||
32 | socat UNIX-CONNECT:/tmp/vboxS0 TCP-LISTEN:7777 & |
||
33 | netcat localhost 7777 |
||
34 | </pre> |
||
35 | |||
36 | And you will get serial! |