Projecte

General

Perfil

Virtualbox » Historial » Revisió 6

Revisió 5 (Pau Escrich, 05-01-2013 01:14) → Revisió 6/18 (Pau Escrich, 05-01-2013 01:23)

h1. Virtualbox 

 It is possible to emulate qMp with Virtual Box. 

 First of all open your virtualbox (VB) and create a new machine (type linux 2.6). 
 If you are using the VB wizard, do not select any storage device, we will do it latter. 

 


 h3. Storage 

 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 
 and select the qMp vdi image file. 

 add  

 h3. Network Configuration 

 First of all we create a virtual tun/tap device in the host machine. 

 <pre>  
 ip tuntap add mode tap dev vbox  
 ip link set vbox up 
 ip addr add 172.30.22.10/24 dev vbox 
 </pre> 

 In VB machine configuration at least one network interface must be added. 
 It should be configured as bridged interface to our new "vbox" network device. 
 The driver "PCnet-PCI II" works fine. 


 h3. Serial 

 A serial port is needed because OpenWRT expects it. So it should be added in the VB machine configuration. 

 It is possible to use it to connect with the qMp node from the host machine (useful for debug), but it is NOT NEEDED. 
 To do so you should configure the VB serial as host pipe. 
 Check the option "create pipe" and add the path "/tmp/vboxS0". 
 Then in the host machine execute: 
 <pre> 
 socat UNIX-CONNECT:/tmp/vboxS0 TCP-LISTEN:7777 & 
 netcat localhost 7777 
 </pre> 

 And you will get serial!