From: mike <qiudayu@linux.vnet.ibm.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Stefan Weil <sw@weilnetz.de>,
qemu-devel@nongnu.org, stefanha@redhat.com, aliguori@amazon.com
Subject: Re: [Qemu-devel] [PATCH v2] net/net: Change the default mac address of nic
Date: Fri, 18 Oct 2013 10:54:13 +0800 [thread overview]
Message-ID: <5260A2D5.5000506@linux.vnet.ibm.com> (raw)
In-Reply-To: <20131017123014.GG10774@stefanha-thinkpad.redhat.com>
On 10/17/2013 08:30 PM, Stefan Hajnoczi wrote:
> On Tue, Oct 15, 2013 at 09:33:06PM +0800, mike wrote:
>> On 10/15/2013 08:36 PM, Eric Blake wrote:
>>> On 10/14/2013 11:07 PM, Stefan Weil wrote:
>>>> Is it reasonable to get a random mac address in your guest? I don't
>>>> think so. It would no longer be possible to connect to a guest using
>>>> ssh, restart that guest and connect again with ssh.
>>> Agreed - libvirt ALWAYS passes a MAC to qemu, even if the user did not
>>> specify a MAC to libvirt, precisely because the MAC must be reproducible
>>> rather than random to avoid changing the guest ABI. I don't think this
>>> patch is needed - it's up to management to use qemu correctly.
>> Yes, you are right in this condition. But qemu support Mac address unset.
>> Also we can get the ip address through a lot of different ways, like use
>> monitor to get the mac and then get the ip. So we can login use ssh.
>>
>> But as you mentioned, this patch is not needed, I don't agree with you.
>>
>> First, this patch just fix the Potential issue of this feature. Now libvirt
>> maybe can't triggered this issue, who can promise in future will not.
>>
>> The second is, qemu not only be used by libvirt, lots of developers like
>> to use the command line to boot up the guest. And in the future, we
>> are not sure about other program will use qemu.
>>
>> The third is, when one feature has a issue in qemu,
>> no matter when it is been triggered, should we not fix it?
> NACK
>
> I'm not going to merge this patch:
>
> If you terminate QEMU and launch it again the NIC gets a different MAC
> address. Some guest operating systems are sensitive to this - under
For these users must use -device <nic-model>,mac=XX:XX:XX:XX:XX:XX.
I think no body will boot up the guest, which sensitive to this, without
mac address.
Actually, people use the command line without mac address, mean they mainly
don't care about mac address, so give them random mac address is reasonable
I think.
In my opinion, if we fix this, for qemu side no any issue, we both support
mac address set or unset correctly.
What am I confuse is, *qemu supports mac address unset, why we force
users must set the address when more than one guests*?
This is unreasonable.
> many Linux distros the network interfaces names change due to the MAC
> address change. As a result firewall configuration will break and other
> services may fail to start because they cannot find the interface.
Agree, so this mac address should set in qemu command line as
libvirt does :)
> If you have multiple guests or want control over the MAC address, set it
> explicitly using -device <nic-model>,mac=XX:XX:XX:XX:XX:XX.
Currently, especially for developers, people mainly use qemu
command line directly, and as qemu supports mac address
unset, they may try the simplest command line to boot up
lots of guests, they will confuse about why all this guest use
the same mac address.
Thanks
Mike
> Stefan
>
>
>
next prev parent reply other threads:[~2013-10-18 2:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 4:17 [Qemu-devel] [PATCH v2] net/net: Change the default mac address of nic Mike Qiu
2013-10-15 5:07 ` Stefan Weil
2013-10-15 5:57 ` mike
2013-10-15 6:05 ` Stefan Weil
2013-10-15 8:23 ` mike
2013-10-15 12:36 ` Eric Blake
2013-10-15 13:33 ` mike
2013-10-17 12:30 ` Stefan Hajnoczi
2013-10-18 2:54 ` mike [this message]
2013-10-18 9:00 ` Stefan Hajnoczi
2013-10-18 9:44 ` mike
2013-10-18 10:43 ` Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2013-10-14 7:30 Mike Qiu
2013-10-14 7:32 ` mike
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=5260A2D5.5000506@linux.vnet.ibm.com \
--to=qiudayu@linux.vnet.ibm.com \
--cc=aliguori@amazon.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=stefanha@redhat.com \
--cc=sw@weilnetz.de \
/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).