qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Albert Graham <albert.graham@g-b.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] QEMU - macaddr= does not work - HELP
Date: Sun, 11 Nov 2007 01:29:13 +0000	[thread overview]
Message-ID: <47365AE9.8060702@g-b.net> (raw)


I'm trying to get the macaddr= parameter to work (with -net tap), but it does not seem to pass the specified MAC address 
to the underlying virtual NIC (in my case ne2000 pci using)


This would not normally be required for a single instance if QEMU, but I want multiple instances per server as well as 
across multiple machines. Ths MAC is what the DHCP server keys off and I want to control the IP address of the guests 
via DHCP.

I'm using Fedora Core 6 as a HOST and Fedora 8 as guests.

The guest ifcfg-eth0 looks like this:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

Note, the HWADDR= parameter is removed.

I've tested this with 0.8.2 (latest version for Fedora 6) x86

I also compiled the 0.9.0 source and that had the same results  - i.e. it did not work.

The problem is that whatever MAC address is used via the macaddr= parameter, it is ignore and using "info network" via 
the QEMU monitor (CTRL+ALT+2) shows the original hard coded "52:54:00:12:34:56" instead of the one that I specified.

You should note that I am only using a single virtual NIC per guest, and I imagine that using multiple NICs in a guest 
DOES allow you to set the MAC address, but I have not tested this.

I'm pretty sure this is a BUG in the code.

How can I solve this problem ?

Thanks in Advance.

Albert.


ps. Also, the latest kernel-kqemu panics Fedora 8 - just after compressing kernel.. (and as such I do not use kqemu).

             reply	other threads:[~2007-11-11  1:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-11  1:29 Albert Graham [this message]
2007-11-11  1:55 ` [Qemu-devel] QEMU - macaddr= does not work - HELP Albert Graham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47365AE9.8060702@g-b.net \
    --to=albert.graham@g-b.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).