Hello,

I looked into this, and as far as I can tell, this is for redhat-based kvm, not 
vmware.  Am I missing something?

Here is what I get when I try and load ptp_kvm:

modprobe ptp_kvm
modprobe: ERROR: could not insert 'ptp_kvm': No such device


From: Hussamuddin Nasir <na...@netlab.uky.edu>
Sent: Friday, November 5, 2021 05:53
To: Brooks, Jason <jason.bro...@allstream.com>; 
linuxptp-users@lists.sourceforge.net
Subject: [External]Re: [Linuxptp-users] running ptp4l under vmware

CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


You have to use the ptp_kvm linux module for this. See

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/chap-kvm_guest_timing_management#sect-KVM_guest_timing_management-Host-guest-time-sync<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_enterprise_linux%2F7%2Fhtml%2Fvirtualization_deployment_and_administration_guide%2Fchap-kvm_guest_timing_management%23sect-KVM_guest_timing_management-Host-guest-time-sync&data=04%7C01%7CJason.Brooks%40Allstream.com%7Cbb6b20b093e0432d06bb08d9a05b24e8%7Cd0484f44efdf4959a2734163a45cd363%7C0%7C0%7C637717135604662108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hYKnZIA09NLEQy00rKUanxgll6ofXXdXb7xye2QxFZg%3D&reserved=0>

--

cheers,



Hussam

(Hussamuddin Nasir)



Netlab & GENI Operations Team



-------------------------------------------------------------------

Laboratory for Adv. Networking  Phone  : (859)218-0059

James F Hardymon Building       Fax    : (859)323-3740

301 Rose Street, Rm 237         E-mail : 
na...@netlab.uky.edu<mailto:na...@netlab.uky.edu>

Lexington, KY 40506-0495        Web    : 
http://www.netlab.uky.edu<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.netlab.uky.edu%2F&data=04%7C01%7CJason.Brooks%40Allstream.com%7Cbb6b20b093e0432d06bb08d9a05b24e8%7Cd0484f44efdf4959a2734163a45cd363%7C0%7C0%7C637717135604672065%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=d5oj5KkVppHMPdNbVfxjkS%2B67S1NnQW2%2FHsw9bzPJbw%3D&reserved=0>



                        University of Kentucky

                        **********************

-------------------------------------------------------------------
On 11/4/21 15:47, Brooks, Jason wrote:
Hello,

I am trying to build a proof-of-concept systems that will listen for ptp and 
then serve ntp, but I seem to have a problem: the clock on the system does not 
seem to get set by ptp, and therefore the clock drifts.  I have a test system 
that uses multiple internet ntp sources and this one: this one's offset keeps 
growing.

I don't see any sign in /var/log/messages that the clock is trying to be slewed 
or stepped.

This is a centos 7 system running under vmware 6.7 (no precision clock 
available).  It is using the ethernet device "e1000" to allow the ethernet 
software timestamping for both transmit and receive.  There is no /dev/ptp 
device so phc2sys is not running.

There are two grandmaster ptp feeds coming into this system.

Upgrading to vmware 7 is not in the cards at the moment, but I might get to 
play with sr-iov.

I am running ptp4l as: "/usr/sbin/ptp4l -f /etc/ptp4l.conf -i ens34 -l 5 -S"

Ptp4l is configured with the following values altered in the /etc/ptp4l.conf:
               domainNumber == 44
               slaveOnly             == 1

ntpd is running with a minimal config:
server 127.127.1.0
fudge 127.127.1.0 stratum 0

pmc "GET time_status_np" shows that ptp4l is synced with the grand master
sending: GET TIME_STATUS_NP
        005056.fffe.be1c0f-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP
                master_offset              0
                ingress_time               1636054977549001043
                cumulativeScaledRateOffset +0.000000000
                scaledLastGmPhaseChange    0
                gmTimeBaseIndicator        0
                lastGmPhaseChange          0x0000'0000000000000000.0000
                gmPresent                  true
                gmIdentity                 0080ea.fffe.842b60

pmc -u -b 0 -f /etc/ptp4l.conf "GET current_data_set"
sending: GET CURRENT_DATA_SET
       005056.fffe.be1c0f-0 seq 0 RESPONSE MANAGEMENT CURRENT_DATA_SET
                stepsRemoved     1
                offsetFromMaster 0.0
                meanPathDelay    0.0








Jason Brooks
Senior Cloud Infrastructure Engineer
Infrastructure and Engineering Services
Allstream

[id:image001.jpg@01D2AD47.F9210620]<http://www.allstream.com/>


NOTICE - CONFIDENTIAL INFORMATION This communication is the property of 
Allstream and may contain confidential or privileged information. If you have 
received this communication in error, please promptly notify the sender by 
reply e-mail, do not disseminate, distribute, copy or use the information 
contained in this communication, and destroy all copies of the communication 
and any attachments.
AVIS - RENSEIGNEMENTS CONFIDENTIELS Cette communication est la propriété 
d'Allstream et peut contenir des renseignements confidentiels ou privilégiés. 
Si vous avez reçu cette communication par erreur, veuillez informer rapidement 
l'expéditeur en répondant par courriel, ne pas diffuser, distribuer, copier ou 
utiliser les renseignements contenus dans la présente communication, et 
détruire toutes les copies de la communication et ses pièces jointes.



_______________________________________________

Linuxptp-users mailing list

Linuxptp-users@lists.sourceforge.net<mailto:Linuxptp-users@lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/linuxptp-users<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Flinuxptp-users&data=04%7C01%7CJason.Brooks%40Allstream.com%7Cbb6b20b093e0432d06bb08d9a05b24e8%7Cd0484f44efdf4959a2734163a45cd363%7C0%7C0%7C637717135604682019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vbdlZlPnb0IbUCiPgwkPv1EwsjVLNdJxNxlT494PLU8%3D&reserved=0>
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to