Projecte

General

Perfil

Virtualbox » Historial » Versió 5

Pau Escrich, 05-01-2013 01:14

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