Skip to contentSkip to conversation

Vista Networking

Qemu-devel Brian Wheeler 5 participants 7 messages Jun 22, 2006 – Jun 23, 2006

lore
Share & tools
lore
#0 lore raw

Has anyone gotten this to work? I'm probably missing something obvious. Here's the command line I'm using (on linux with a CVS from today):

qemu -hda disk0.img -net nic,model=rtl8139 -net user -m 512 -soundhw sb16

Vista is installed and I manually set the IP to 10.0.2.15 and the gateway to 10.0.2.2. I set the DNS to 10.0.2.3. I can't get any response from the DNS or anything beyond the firewall.

Did I mess up something or is there a bug in user-space networking?

Thanks!
Brian

#1 lore raw
Quoted 5 lines · Brian Wheeler

Has anyone gotten this to work? I'm probably missing something obvious. Here's the command line I'm using (on linux with a CVS from today):

qemu -hda disk0.img -net nic,model=rtl8139 -net user -m 512 -soundhw sb16

Could be a bug in the rtl8139 emulation. I couldn't get it to work with the Realtek drivers.

Paul

#2 lore raw
Quoted 4 lines · Paul Brook
Quoted 2 lines

qemu -hda disk0.img -net nic,model=rtl8139 -net user -m 512 -soundhw sb16

Could be a bug in the rtl8139 emulation. I couldn't get it to work with the Realtek drivers.

Unofortunately rtl8139 is the only NIC supported by vista, among those provided by QEMU. I obtained the best results connecting qemu to a tap (via vde) and putting a dhcpd listening to that interface: it takes the IP, it does ping (to anywhere), it doesn't do anything else. And obviously, winxp with the same interface works perfectly.

Signature · 1 line
MG55: Mattia Gentilini & 55 Virtual Machines
#3 lore raw

[Qemu-devel] Asking about IDE to develop Qemu

In reply to Brian Wheeler

Hi all,
I'm working a project which develops Qemu running on MinGW/MSys but I don't know which IDE I should use to develop, to test, to debug Qemu source code:
1. I should use VC++ on Windows: in this case, I must configure VC++ to use mingw-gcc (in place of the default compiler of VC++. In my opinion, this default compiler will generate binary code for Win32, not for MSys) to compile Qemu source code and also to use the tools of MinGW/MSys.
2. OR: I should develop Qemu on Linux and use KDevelop IDE. And I can do all with KDevelop: develop, test, debug Qemu. And if I want Qemu running on MinGW/MSys, I must transfer the souce code, which were already developped with KDevelop, to Windows installed MinGW/MSys and recompile this source code on MinGW/MSys
3. OR: other solutions which you use recently to develop, to test and debug Qemu souce code.
Thank you so much for your supports.
Thanh

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#4 lore raw

Re: [Qemu-devel] Asking about IDE to develop Qemu

Quoted 5 lines

2. OR: I should develop Qemu on Linux and use KDevelop IDE. And I can do all with KDevelop: develop, test, debug Qemu. And if I want Qemu running on MinGW/MSys, I must transfer the souce code, which were already developped with KDevelop, to Windows installed MinGW/MSys and recompile this source code on MinGW/MSys

Or you could use a cross compiler. qemu cross-builds fine.

Which IDE (if any) you want to use is entirely up to personal preference. Any decent IDE should allow you to use the existing makefiles to do the actual compilation.

Paul

#6 lore raw

Re: [Qemu-devel] Asking about IDE to develop Qemu

Hi all,
I made a new project using Eclipse (and CDT) on Windows based on Qemu 0.8.1 source code. But I had the problem "config-host.h: no such file or directory" in vl.h:

  #ifdef QEMU_TOOL
  
  /* we use QEMU_TOOL in the command line tools which do not depend on
     the target CPU type */
  #include "config-host.h" //the problem arrives from this line
  #include <setjmp.h>
  #include "osdep.h"
  #include "bswap.h"
  
  #else
  
  #include "cpu.h"
  #include "gdbstub.h"
  
  #endif /* !defined(QEMU_TOOL) */ 

And I find that if I run the ./configure command (on Msys) before importing Qemu source code into Eclipse project, the "configure script" will generate this "config-host.h" file. So I want to ask you the questions below:
1. Do I must run the command: ./configure before importing Qemu source code into Eclipse project? If not, which steps I lacked or what I must do to fix this problem (the problem "config-host.h")
2. What does the preprocessor-option QEMU_TOOL means?
3. In file qemu-img.c, line 130, Eclipse alarms an error "syntax error before QEMU_VERSION", so I try to add "QEMU_VERSION=0.8.1" into Project->Properties->C/C++ Include paths & Symbols; but the error is still there. What can I do to fix this problem? Best regards,
Thanh

Quoted 3 lines · Tieu Ma Dau

Hi all,
I'm working a project which develops Qemu running on MinGW/MSys but I don't know which IDE I should use to develop, to test, to debug Qemu source code:

http://www.eclipse.org: generic IDE in java
http://www.eclipse.org/cdt: what will make eclipse become a full C/C++ IDE

--
Christian

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.