Linux VM KVP IP can't be shown on Hyper-V Manager after querying its KVP/IP information on Hyper-V host several times

Hello
[Sorry for asking the same question in the wrong place/forum of "Hyper-V"]
I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) and (generation 2) CentOS 7 VM (Linux
kernel 3.10.0-123) with Hyper-V KVP daemon installed,
and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.
However, after querying its IP (KVP) for several times, its IP can’t
be queried or shown on Hyper-V Manager anymore (Windows VM is ok without this problem).
And here is the vmIntegrationService status of my CentOS 7 VM for the references.
PS C:\Users\Administrator> (Get-VM -name G2_CentOS7).vmIntegrationService
VMName     Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription
G2_CentOS7 Time Synchronization    True    OK
G2_CentOS7 Heartbeat               True    OK
G2_CentOS7 Key-Value Pair Exchange True    OK                       The protocol version of the component installed ...
G2_CentOS7 Shutdown                True    OK
G2_CentOS7 VSS                     True    No Contact
G2_CentOS7 Guest Service Interface False   OK
I attached a simple KVP query Powershell script as
the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.
$VMName = $args[0]
write-host "$VMName"
filter Import-CimXml
$CimXml = [Xml]$_
$CimObj = New-Object -TypeName System.Object
foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
$CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
$CimObj
$CimObj = $null
for ($i=1 ; $i -le 10000 ; $i++) {
$a = Get-Date
write-host "$i - Time: " $a.ToLocalTime()
$vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
$vm.ElementName
$vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
$vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
Actually, if your CentOS VM (has LIS) installed with KVP daemon running well,
my test script will show more than 4 keys (include NetworkAddressIPv4 or NetworkAddressIPv6 keys).
However, while the KVP daemon becomes problematic, it will only show a few keys
(ex. 4~6 keys) and at this moment, Hyper-V Manager also can't show IP address of it anymore and you may need to reboot the CentOS VM to recover it.
For example (KVP in 252 time is good, but KVP in 253 and 254 times become problematic)
252 - Time:  8/26/2014 7:19:42 PM
G2_CentOS7
localhost                                                   FullyQualifiedDomainName
3.1                                                         IntegrationServicesVersion
10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
fe80::215:5dff:fe91:b902                                    NetworkAddressIPv6
3.10.0-123.el7.x86_64                                       OSBuildNumber
0                                                           OSDistributionData
0                                                           OSDistributionName
199168                                                      OSKernelVersion
7                                                           OSMajorVersion
                                                            OSMinorVersion
CentOS Linux                                                OSName
129                                                         OSPlatformId
3.10.0                                                      OSVersion
x86_64                                                      ProcessorArchitecture
253 - Time:  8/26/2014 7:19:42 PM
G2_CentOS7
localhost                                                   FullyQualifiedDomainName
3.1                                                         IntegrationServicesVersion
10.1.145.190;192.168.122.1                                  NetworkAddressIPv4
0                                                           OSDistributionData
0                                                           OSDistributionName
199168                                                      OSKernelVersion
129                                                         OSPlatformId
254 - Time:  8/26/2014 7:19:44 PM
G2_CentOS7
0                                                           OSDistributionData
0                                                           OSDistributionName
199168                                                      OSKernelVersion
129                                                         OSPlatformId
I
found the following patches and gave them a try, but the
problem still remains after applying these patches and the (generation 2) Ubuntu 14.04 with Linux kernel 3.13 also has this problem.
 - Patch "Drivers:
hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree
 - Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code
But (generation 1) Ubuntu 14.04 VM with Linux kernel 3.17 doesn't encounter this problem after querying its KVP/IP information on Hyper-V host several times.
Does anyone know what changes between Linux kernel 3.13 and 3.17 fix this issue?
Thanks,
Paul

Hi Dexuan and Mike,
Thanks for your help!
I did the patch with rpmbuild on CentOS 6.5 (with kernel 2.6.32-431).
However, the second patch cannot patch on CentOS6.5 since there is no target_cpu in such version.
So we are patching that with the following similar patch but this issue still occurs. (also replace ko in initrd)
https://lists.ubuntu.com/archives/kernel-team/2014-August/047725.html
Can you tell me if any patch I could miss or any suggestion?
Thanks for your time.

Similar Messages

  • Please can u help transferal of ALL my photos from sony xperiaz1 to macbook pro. I've tried several times but lots r still missing altho' still on mob. In hope - thanks!

    Please can u help transferal of ALL my photos from sony xperiaz1 to macbook pro. I've tried several times but lots r still missing altho' still on mob. In hope - thanks!

    I have tried all the above and nothing seems to work. Any other suggestions?

  • Can't connect to the Hyper-V manager after upgrading to Windows Hyper-V 2012 R2

    I have some Hyper-V server based on the free version (Windows Hyper-V 2012). I want to upgrade to the new version (Windows Hyper-V 2012 R2). So I begin to test it with
    an already working server (aka I was able to totally manager the server remotely without problem) and so upgrade it to the R2.
    After the upgrade, remote management and Hyper-V manager does not work anymore. So I redo my usual configuration steps (enable remote management, open firewall, uses
    latest hvremote.wsf, etc.). I was able to regain access to Computer Manager but not the Hyper-V manager which still can't connect at all. I can't access the Task Scheduler too without having a lot of XML error like "The task XML contains a value which
    is incorrectly formatted or out of range" (see below for screenshot).
    Is there a new step to do to be able to manage Hyper-V 2012 R2 from a Windows 7 computer?
    It's not a network problem as I can access RDP and MMC Computer Manager.
    To be sure the problem is coming from the R2, I have taken an old computer, install Windows Hyper-V 2012, do my usual configuration step, and
    tada: it works perfectly. I can access the Hyper-V manager from my client.
    Technical details:
    - Client is a Windows 7 SP1 x64 English member of a domain with latest RSAT (Windows6.1-KB958830-x64-RefreshPkg.msu).
    - Servers are in a workgroup (not a domain's member). And no, I can't add them to the same domain as the client.

    HI,
    Can we upgrade HyperV 2012 to hyper v 2012 R2.
    Thanks
    Atul

  • I dowloaded a book to itunes and i can played but when I dowloaded to mi i pod nano 6 the file is wrong i tryed several times and do the same thing :( what can i do?

    I dowloaded a book to itunes and i can play it BUT when I downloaded to my ipod it get the wrong file! I tryed deveral times and keep doing the same thing, how can i fix it? I apreciate your help.

    You may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad and restore/resync your content to it.
    If you do it via a different computer that it's not normally synced to then (from here) :
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.

  • Why can't I download my updates...it doesn't accept my password...changed it several times no luck

    Why can't I download my updates....it says my password is wrong...changed it several times with still no luck. What's wrong? When I login to my apple ID it works..whist am I doing wrong?

    Have you tried logging out of your account by tapping on it in Settings > Store and then logging back in ?
    If that doesn't work then you could try closing the App Store app completely and seeing if you can download updates when you re-open it : from the home screen (i.e. not with the App Store 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the App Store app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Another option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I can't display a document in solution manager after installing Sapgui 7.10

    After Installation of  SAPGUI 7.10 i can't display any documents  in solution manager!
    A failure message occurs "Document cannot be displayed" Message ID: SOLAR_DOC021!
    Does anybody have an idea ?

    Hello,
    i have got an answer from SAP (see below) but i havn't installed the Patch in this moment !
    Hinweis : 1023083
    Zusammenfassung
    Symptom
    Das Aufrufen der Registerierung mit den entsprechenden Funktionen über CL_GUI_FRONTEND_SERVICES ist nicht möglich.
    Weitere Begriffe
    SAP GUI, SAPGUI, Registrierung, CL_GUI_FRONTEND_SERVICES
    REGISTRY_DELETE_KEY
    REGISTRY_DELETE_VALUE
    REGISTRY_GET_DWORD_VALUE
    REGISTRY_GET_VALUE
    REGISTRY_SET_DWORD_VALUE
    REGISTRY_SET_VALUE
    Ursache und Voraussetzungen
    Falsche Handhabung der Daten im GUI.
    Lösung
    Auf dem SAP Service Marketplace steht ein Patch zur Verfügung.
    Die URL lautet:
    http://service.sap.com/patches
    Sie finden das Patch im Verzeichnis GUI 7.10. Die Patch-Nummer lautet
    >= 1.
    Informationen zum Herunterladen und Einspielen des Patch finden Sie in
    Hinweis 96885.
    Informationen zum voraussichtlichen Freigabedatum des Patch finden Sie
    in Hinweis 578944.
    Kopfdaten
    Freigabestatus:     Für Kunden freigegeben
    FREIGEGEBEN AM:     09.02.2007  10:26:18
    PRIORITÄT:     Korrektur mit mittlerer Priorität
    KATEGORIE:     Programmfehler
    HAUPTKOMPONENTE:     BC-FES-GUI Grafische Benutzungsoberfläche
    Releases
    Software
    komponente
    Release
    Von
    Release
    bis
    Release
    Und
    folgende
    BC-FES-GUI
    7.10
    7.10
    7.10

  • My iPad ran out of battery completely.  After charging all night, it is 100%, but my apps won't start.  I can access email, Safari, etc.....just not game apps.  I have restarted it several times.  Thanks!

    My iPad ran out of battery completely.  After charging all night, it is 100% however I cannot get my apps to work.  I can access Safari, email, etc., but cannot get game apps, etc.  I have restarted it a couple of times.  Any help?  Thanks!

    Try downloading any free app from thee store and then re-try your apps - the free app can then be deleted.
    If that doesn't work then try closing all your open/recently used apps completely : from the home screen (i.e.not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can I arrange addons in the addons manager according to its installation order instead of alphabetical order?

    Just curious.
    I think if that is possible, it would probably be easier to diagnose problematic addons by disable the latest ones until you reach the one that cause problems.
    Is there a function? and if so how do I do it?

    Install this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/

  • How can I get a detail block to requery after a database change?

    Hi, I have a master/detail form. When the status of the master record changes, I need to update a date in one of the detail records. If I use SQL to update the detail row in the database in the ON-CHANGE trigger of the master block, how can I get the detail block to requery to show the change? When I try doing a go_block from any of the ...UPDATE triggers, it says it is restricted.

    wjpenfold,
    Do you have a "Relationship" defined between your Master and Detail blocks? If so, you simply need to requery your master block and the detail block will automatically be requeried. If you can't use a relationship, then you can use can create a timer in the trigger that updates the database and then in the When-Timer-Expired (WTE) trigger you can go to the detail block and execute a query. For example:
    /* Sample On-Change trigger */
    DECLARE
       timer_id  TIMER;
    BEGIN
    ....your code here that performs the update....
       /* Now create an instance of a timer */
       timer_id := Create_Timer ('upd_detail',1,NO_REPEAT);
    END;
    /* Sample Form Level When-Timer-Expired trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       -- Find the timer first
       timer_id := FIND_TIMER('upd_detail');
       IF NOT ID_NULL(timer_id) THEN
          GO_BLOCK('DETAIL_BLOCK');
          Execute_Query;
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Failure code 28 several times. What can I do ?

    My I-touch felt down (1m high), no damage visable but it did not start. I tried to re-install. After starting this process I got the failur code 28 several times. What can I do ?

    Error 23, 28, 29: These errors may indicate a hardware issue with your device. Follow the steps in this article. Also attempt to restore while connected with the white USB Dock Connector cable that shipped with your device, on a known good computer and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value, (00 499901 064000 0), can also confirm a hardware issue. Out-of-date or incorrectly configured security software can also cause these errors.
    Above from:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • JPopup menu can't be shown in linux 7.3

    I attach a jpopup menu to a textarea. It pops up properly in Windows environment. But it can't be shown in linux 7.3. Anyone knows why? Any work around for it? Thanks.

    It doesn't show when it's supposed to show. The mouse action and trigger action can all be captured. There is no error thrown.

  • The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    If you are saying, that you published the book to  the iBooks review team and cannot be seem in the store.
    Use your iTunes Connect account > Manage your Books to check on its status. It takes time so you need to allow a few days.
    If its a problems viewing on your iPad Follow  the above advice and another option is is export your  book, open iBooks on your  Mac and drag the  book into  iBooks.
    You can iTunes > add to libray and sync to your iPad.

  • Can not use any remote desktop like VNC after installing Oracle Linux 6.3

    Hi
    I just installed OL 6.3 on a HP Proliant ML380 g7. Now I want to connect to the server using any Remote Desktop tools but I can not!
    I've activated system>pref>Remote Desktop
    But I can not access any of servers from:
    - a Mac using, Mac server sharing screen, VNC viewer or Microsoft Remote connection which is in a same subnet
    - Other Server Using KRDC, Remote Desktop Viewer, terminal server client or tiger VNC viewer
    Also I tried to connect to servers after activating krfb
    but it always says no rout to server/ server not found/ connection closed
    and remote desktop viewer can not find any host when I try to use option "find"
    Please Advise
    Thank you in advance

    Make sure to enable "require a password..." in the Remote Desktop Preference on the Linux system. Some clients won't work unless this is set. Unfortunately the Remote Desktop Preferences panel on the Linux side does not show you the port it is listening on, but you can get it by clicking on the IP or name that it shows as a link. The first user or vnc server is usually listening on port 5900, then 5901, and so on.
    Your problem is probably the firewall on your Linux system. You can disable the firewall on the Linux system:
    service iptables stop
    However, probably a better idea, simply tunnel the connection through SSH as following:
    On the Mac, open the Terminal application from the Applications/Utilities folder. Then type the following:
    <pre>
    ssh -L local_port:localhost:remote_port -N -f -l username server_address
    </pre>
    local_port = port on your Mac that does not conflict with any of your own screen-sharing or other services, e.g. 5555
    remote_port = vnc server port on your Linux system
    username = user for which you have enabled remote desktop sharing
    server_address = ip address or FQDN of your Linux system.
    For instance:
    <pre>
    ssh -L 5555:localhost:5900 -N -f -l root 10.0.1.2
    </pre>
    The trick is now to connect to a local port on your Mac, instead using the address of your Linux server. The communication will be encrypted using ssh going over tcp port 22, which is normally enabled in the firewall.
    The Mac screen sharing application is working fine. On your Mac, select "Go>Connect to Server" from the Finder menu and type:
    vnc://localhost:5555

  • [IDCS2,Win] Chinese Traditional can not be shown correctly.

    I add a line:
    kWildFS, k_zhTW, kSDKDefStringsResourceID + index_zhTW
    in kStringTableRsrcType, and add a fr file, the contents are:
    resource StringTable (kSDKDefStringsResourceID + index_zhTW)
    k_zhTW, // Locale Id
    kEuropeanWinToMacEncodingConverter, // Character encoding converter (irp) I made this WinToMac as we have a bias to generate on Win...
    kSampleString, "選擇分類",
    // other strings ...
    but the string can not be shown correctly in IDCS2 Chinese Traditional edition. Do you known what's wrong?

    I found my Chinese Traditional string became "選擇分類", after posted. please note this is a Chinese Traditional string.

  • I attempted several times to update Camera Raw Ver 6.7 to my PS 5 and PS 6 but failure notice was prompt even after 100% message was shown. Can you tell me the reason?

    I attempted several times to update Camera Raw Ver 6.7 to my PS 5 and PS 6 but failure notice was prompt even after 100% complete  message was shown. Can you tell me the reason?
    BR,

    Without proper system information and other technical details like the actual error messages nobody can tell you much.
    Mylenium

Maybe you are looking for