OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Nov 28, 2020 5:09 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: qemu network on windows
PostPosted: Sun Jun 30, 2013 6:26 pm 
Offline
Member
Member

Joined: Sun Jun 16, 2013 4:09 am
Posts: 333
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,


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Mon Jul 01, 2013 1:25 am 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
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.


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Mon Jul 01, 2013 1:52 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3994
Location: Chichester, UK
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?


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Mon Jul 01, 2013 5:40 am 
Offline
Member
Member

Joined: Sun Jun 16, 2013 4:09 am
Posts: 333
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:
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);

        }
    }
}


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Mon Jul 01, 2013 8:39 am 
Offline
Member
Member

Joined: Sat Oct 22, 2011 12:27 pm
Posts: 409
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.

_________________
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Mon Jul 01, 2013 1:50 pm 
Offline
Member
Member

Joined: Sun Jun 16, 2013 4:09 am
Posts: 333
That would be great m12, thanks.


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Fri Jul 05, 2013 1:51 pm 
Offline
Member
Member

Joined: Sat Oct 22, 2011 12:27 pm
Posts: 409
Im back. When I can get to my computer, Ill upload.

_________________
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.


Top
 Profile  
 
 Post subject: Re: qemu network on windows
PostPosted: Sat Jul 06, 2013 2:42 pm 
Offline
Member
Member

Joined: Sat Oct 22, 2011 12:27 pm
Posts: 409
viewtopic.php?f=2&t=26884

_________________
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 12 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 © 2000, 2002, 2005, 2007 phpBB Group