It is currently Sat Aug 30, 2014 12:28 pm


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Qemu Console console access via real IP (127.0.0.1 is OK)
PostPosted: Thu Oct 18, 2012 6:54 pm 
Offline

Joined: Thu Oct 18, 2012 6:38 pm
Posts: 21
Hi all

I am using Ubuntu with GNS3 the latest release.
Qemu is 0.11
I have installed Brezular's image (microcore with network utils) and I am trying to access the console of my qemu machines from another workstation.
I was expecting that telnet to 192.168.3.34 3001 would work but it is not.
I have tested different Qemuwrapper settings but I can not start the qemu nodes at all.
If I use 127.0.0.1 and local console (telnet 127.0.0.1 3001) on the server everything is fine

Could anybody tell me what to change for the following so I can access my hosts from remote:

IP/Host binding :
Enable Qemu Manager:
Use Qemu Manager when importing:
Send Qemu paths to external qemuwrapper:
External Qemu wrapper:
Restered external Qemu wrpapper:



With all the above checked and using 192.168.3.34 I get QEMU1: error from server 192.168.3.34:10525: 209-unable to start instance 'QEMU1'
"

For some reasons GNS does not start qemuwrapper


If I start qemuwrapper from command line and after that I start GNS3 then I get this


root@Dynamips:/home/minime# /usr/bin/python /opt/GNS3/qemuwrapper/qemuwrapper.py --listen 192.168.3.34 --port 10525 --no-path-check
Qemu Emulator Wrapper (version 0.8.3)
Copyright (c) 2007-2011 Thomas Pani & Jeremy Grossmann

Qemu TCP control server started (port 10525).
Listening on 192.168.3.34
Connection from ('192.168.3.34', 44878)
Shutdown in progress...
Shutdown completed.
!! QEMU1.console = 3001
!! QEMU1.nics = 2
!! QEMU1.image = /Arhiva/linux-microcore-3.8.2 with network utils.img
!! QEMU1.ram = 48
Formatting '/home/minime/QEMU1/FLASH', fmt=qcow2 size=104857600 backing_file='/Arhiva/linux-microcore-3.8.2 with network utils.img' encryption=off cluster_size=0
qemu-img returned with 0
Formatting '/home/minime/QEMU1/SWAP', fmt=qcow2 size=1073741824 encryption=off cluster_size=0
qemu-img returned with 0
Unable to execute qemu-system-i386 -help
Starting Qemu => qemu-system-i386 -name QEMU1 -m 48 "/home/minime/QEMU1/FLASH" -hdb "/home/minime/QEMU1/SWAP" -serial telnet:192.168.3.34:3001,server,nowait
/bin/sh: qemu-system-i386: not found
Qemu has exited with return code 127


and this error in GNS3
QEMU1: error from server 192.168.3.34:10525: 209-unable to start instance 'QEMU1'


Thanks
PF




Last edited by PF4GNS on Thu Oct 18, 2012 7:25 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Qemu Console console access via real IP (127.0.0.1 is OK
PostPosted: Thu Oct 18, 2012 7:24 pm 
Offline

Joined: Thu Oct 18, 2012 6:38 pm
Posts: 21
After more playing with this, when I start the wrapper manually as above and I disable Qemu Manger (everything else checked) I get this

root@Dynamips:/home/minime# /usr/bin/python /opt/GNS3/qemuwrapper/qemuwrapper.py --listen 192.168.3.34 --port 10525 --no-path-check
Qemu Emulator Wrapper (version 0.8.3)
Copyright (c) 2007-2011 Thomas Pani & Jeremy Grossmann

Qemu TCP control server started (port 10525).
Listening on 192.168.3.34
Connection from ('192.168.3.34', 46596)
Shutdown in progress...
Shutdown completed.
Qemu path is now /usr/local/bin/qemu
Qemu-img path is now /usr/local/bin/qemu-img
Working directory is now /tmp
!! QEMU1.console = 3001
!! QEMU1.nics = 2
!! QEMU1.image = /Arhiva/linux-microcore-3.8.2 with network utils.img
!! QEMU1.ram = 48
Deleting old flash file: /tmp/QEMU1/FLASH
Deleting old swap file: /tmp/QEMU1/SWAP
Formatting '/tmp/QEMU1/FLASH', fmt=qcow2 size=104857600 backing_file='/Arhiva/linux-microcore-3.8.2 with network utils.img' encryption=off cluster_size=0
/usr/local/bin/qemu-img returned with 0
Formatting '/tmp/QEMU1/SWAP', fmt=qcow2 size=1073741824 encryption=off cluster_size=0
/usr/local/bin/qemu-img returned with 0
Starting Qemu => /usr/local/bin/qemu -name QEMU1 -m 48 "/tmp/QEMU1/FLASH" -hdb "/tmp/QEMU1/SWAP" -net nic,vlan=0,macaddr=00:00:ab:1f:75:00,model=rtl8139 -net nic,vlan=1,macaddr=00:00:ab:58:14:01,model=rtl8139 -serial telnet:192.168.3.34:3001,server,nowait
Warning: vlan 0 is not connected to host network
Warning: vlan 1 is not connected to host network
init kbd.
Could not open SDL display
Qemu has successfully started with pid 5604
Renicing to 19
5604: old priority 0, new priority 19


Checking the active processes does not show qemu running
Trying to telnet to port 3001 fails (localy or from remote)
the GUI of the server is dead (blank screen) ..I can still use ssh to connect to the Unix server


Top
 Profile  
 
 Post subject: Re: Qemu Console console access via real IP (127.0.0.1 is OK
PostPosted: Thu Oct 18, 2012 9:19 pm 
Offline

Joined: Thu Oct 18, 2012 6:38 pm
Posts: 21
Ok I solved this

Check all the options above and change the IP to whatever your server IP is (192.168.3.34 in my case)
Whit all the options checked GNS3 will pass (should pass) Qemuwrapper the path to qemu and qemu-img

For some reasons that does not happen and qemuwrapper tries to use de default paths
Open qemuwrapper.py and locate the line " QEMU_PATH = "qemu" # we still use Qemu 0.11.0 on Windows"
Make the following lines reflect the location of your Qemu and Qemu-img as I did below:


if platform.system() == 'Windows':
QEMU_PATH = "qemu" # we still use Qemu 0.11.0 on Windows
else:
QEMU_PATH = "/usr/local/bin/qemu"
QEMU_IMG_PATH = "/usr/local/bin/qemu-img"




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO