From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: Dexuan Cui <decui@microsoft.com>
Cc: "gregkh\@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"driverdev-devel\@linuxdriverproject.org"
<driverdev-devel@linuxdriverproject.org>,
"olaf\@aepfle.de" <olaf@aepfle.de>,
"apw\@canonical.com" <apw@canonical.com>,
"jasowang\@redhat.com" <jasowang@redhat.com>,
KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>
Subject: Re: [PATCH] tools: hv: kvp_daemon: make IPv6-only-injection work
Date: Wed, 10 Dec 2014 10:07:38 +0100 [thread overview]
Message-ID: <87ppbrhnz9.fsf@vitty.brq.redhat.com> (raw)
In-Reply-To: <F792CF86EFE20D4AB8064279AFBA51C613E9B80F@SIXPRD3002MB028.064d.mgd.msft.net> (Dexuan Cui's message of "Wed, 10 Dec 2014 07:36:16 +0000")
Dexuan Cui <decui@microsoft.com> writes:
> Thanks,
> -- Dexuan
>
>> -----Original Message-----
>> From: Dexuan Cui
>> Sent: Wednesday, December 10, 2014 15:34 PM
>> To: 'Vitaly Kuznetsov'
>> Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev-
>> devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
>> jasowang@redhat.com; KY Srinivasan; Haiyang Zhang
>> Subject: RE: [PATCH] tools: hv: kvp_daemon: make IPv6-only-injection work
>>
>> > -----Original Message-----
>> > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com]
>> > Sent: Tuesday, December 9, 2014 21:06 PM
>> > To: Dexuan Cui
>> > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev-
>> > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
>> > jasowang@redhat.com; KY Srinivasan; Haiyang Zhang
>> > Subject: Re: [PATCH] tools: hv: kvp_daemon: make IPv6-only-injection work
>> > ......
>> > > + * Here "dhcp_enabled" is only for IPv4 according to Hyper-V host
>> > team.
>> > > + *
>> > > + * In the case the host only injects 1 IPv6 address:
>> > > + * new_val->dhcp_enabled is true, but we can't pass
>> > BOOTPROTO=dhcp to
>> > > + * the script hv_set_ifconfig, because in some distros (like RHEL7)
>> > > + * BOOTPROTO=dhcp has a special meaning in the config file (e.g.,
>> > > + * /etc/sysconfig/network-scripts/ifcfg-eth0): the network init
>> > program
>> > > + * ignores any static IP addr information once there is
>> > > + * BOOTPROTO=dhcp; as a result, IPv6-only injection can't work.
>> > > + *
>> > > + * In the case of IPv6-only injection, BOOTPROTO=dhcp doesn't affect
>> > > + * Ubuntu because it's ignored by the Ubuntu version of
>> > > + * hv_set_ifconfig and it doesn't seem to have special meaning in
>> > > + * Ubuntu.
>> > > + */
>> >
>> > I just checked and adding "IPV6ADDR=something" when
>> "BOOTPROTO=dhcp"
>> > works for me with both RHEL7 and Fedora21.
>> It doesn't work in my side. :-(
>> Running 'ifup eth0' shows some errors(I use "set -x")
>> ...
>> + /sbin/dhclient -H localhost -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf
>> /var/run/dhclient-eth0.pid eth0
>> grep: /etc/sysconfig/network-scripts/ifcfg-eth0: Permission dinied.
> BTW, I run with root, and
> 'chown 777 /etc/sysconfig/network-scripts/ifcfg-eth0" doesn't help.
>
s,chown,chmod, :-) But it won't help in case of SELinux mislabeling.
> Thanks,
> -- Dexuan
--
Vitaly
next prev parent reply other threads:[~2014-12-10 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 12:01 [PATCH] tools: hv: kvp_daemon: make IPv6-only-injection work Dexuan Cui
2014-12-09 13:05 ` Vitaly Kuznetsov
2014-12-10 7:34 ` Dexuan Cui
2014-12-10 9:06 ` Vitaly Kuznetsov
2014-12-10 7:36 ` Dexuan Cui
2014-12-10 9:07 ` Vitaly Kuznetsov [this message]
2014-12-10 10:02 ` Dexuan Cui
2014-12-10 18:42 ` KY Srinivasan
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=87ppbrhnz9.fsf@vitty.brq.redhat.com \
--to=vkuznets@redhat.com \
--cc=apw@canonical.com \
--cc=decui@microsoft.com \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=haiyangz@microsoft.com \
--cc=jasowang@redhat.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.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