Projecte

General

Perfil

Virtualbox » Historial » Versió 6

Pau Escrich, 05-01-2013 01:23

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