Page 1 of 1

qemu network on windows

Posted: Sun Jun 30, 2013 6:26 pm
by tsdnz
Hi All, I have my os running using BareMetal and Pure64
The network is showing a Mac Address, but I cannot get any packets received.
I am guessing I need to set up qemu, but I cannot find what I need.
My IP is 192.168.x.x/16
dns is 192.168.1.1
What qemu settings do I need to get it so I can send packets to the os?
I am running in Windows 7 64 bit.

Alistair,

Re: qemu network on windows

Posted: Mon Jul 01, 2013 1:25 am
by Nable
I'm sorry if that sounds rude but why didn't you read qemu docs? They are really easy, even examples are given.
http://wiki.qemu.org/download/qemu-doc. ... 05fnetwork
If you don't understand some exact moments, then you can ask about them but I'm not sure that this is a correct place for it.

Re: qemu network on windows

Posted: Mon Jul 01, 2013 1:52 am
by iansjack
BareMetal OS doesn't support TCP (so won't support IP) as I read the documentation, so IP address and DNS server are irrelevant. How exactly are you trying to send packets to the OS, and what are you doing to detect them? Presumably you have set the networking up in qemu if you say the network is "showing a MAC address". But what exactly do you mean by that - where and how is a MAC address showing?

Re: qemu network on windows

Posted: Mon Jul 01, 2013 5:40 am
by tsdnz
Hi, I have talked with Ian @ BareMetal.
He uses VirtualBox, so I set it up for VirtualBox and it works fine.

Currently using UDP Broadcast, the C# console code is below.

Code: Select all

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;

namespace TestEthernet
{
    class Program
    {
        static void Main(string[] args)
        {
            UdpClient udp = new UdpClient();

            int GroupPort = 15000;



            //IPEndPoint groupEP = new IPEndPoint(IPAddress.Parse("192.168.98.98"), GroupPort);
            IPEndPoint groupEP = new IPEndPoint(IPAddress.Broadcast, GroupPort);



            string str4 = "Is anyone out there?";

            byte[] sendBytes4 = Encoding.ASCII.GetBytes(str4);


            for (int i = 0; i <= 10000; )
                udp.Send(sendBytes4, sendBytes4.Length, groupEP);


            byte[] receiveBytes = udp.Receive(ref groupEP);

            string returnData = Encoding.ASCII.GetString(receiveBytes);

        }
    }
}

Re: qemu network on windows

Posted: Mon Jul 01, 2013 8:39 am
by Mikemk
I have an unfinished Java program for network uses/testing. It currently only supports HTTP requests to and from it's own computer (including virtual machines). If you like, i can send you a copy.

EDIT: Sorry, forgot Ill be gone for a week.

Re: qemu network on windows

Posted: Mon Jul 01, 2013 1:50 pm
by tsdnz
That would be great m12, thanks.

Re: qemu network on windows

Posted: Fri Jul 05, 2013 1:51 pm
by Mikemk
Im back. When I can get to my computer, Ill upload.

Re: qemu network on windows

Posted: Sat Jul 06, 2013 2:42 pm
by Mikemk