How to configure NTP between Virtual Machines without using Vsphere Client

I have a group of 8 virtual servers of 5.5 ESXi without an Internet connection. There are virtual machines on each of these 8 virtual servers.

I did one of these 5.5 virtual ESXi host a NTP server by editing the file /etc/ntp.conf with below configuration and

started the ntpd daemon. He began to take the time to its local clock, here's the output of ntpq Pei

IP server 10.108.190.14

ip address of the client 10.108.190.15

Server /etc/ntp.conf

> > driftfile/var/lib/ntp/drift

> > server 127.127.1.0 maxpoll 4

> > fondant 127.127.1.0 stratum 10

| ntpq Pei

|   refid distance st t when poll reach delay offset jitter

| ==============================================================
| * LOCAL (0). LIUX. 10 l 2 64 377 0.000 0.000 0.001

Then I edited the file /etc/ntp.conf on customers with below configuration but the customer would not synchronize with the server. He

wouldn t get response from the server. Here is the output of ntpq Pei

Customer /etc/ntp.conf

> > driftfile/var/lib/ntp/drift

> > server 10.108.190.14 iburst

| ntpq Pei

|      refid distance st t when poll reach delay offset jitter

| ==================================================================
| 10.108.190.14 INIT. 16 u

Now, when I configure NPT Client/Server on virtual machines through the Configuration Option under Option Configuration time

in Vsphere Client everything works fine and the client and the server to synchronize with each other. I checked the file /etc/ntp.conf on both the client

and the server and it has a couple of restrict 127.0.0.1 and restrict the lines added by default kod nomodify etc.

So why NPT Server featured when enabled via Vsphere Client works very well, but it does not work when it is configured manually

in the virtual servers directly.

I was connected to a vCenter Server Appliance through the VSphere Client and enabled the synchronization of time of the NPT.

I really need to know how to configure the NTP server without using the Vsphere Client so that I can automate the

task by writing a python script that would connect to each virtual server and NTP Client/Server configuration.

Any help in this issue deeply appreciated!

Thank you!

You can configure the ntp server without using viclient.

Take a look @ http://kb.vmware.com/selfservice/documentLinkInt.do?micrositeID=&popup=true&languageId=&externalID=1003063

Hope this helps

-Assane

Tags: VMware

Similar Questions

  • API to create a Virtual Machine without using a model

    I see the GUI documentation how to create a virtual machine without a model, but I can't find the actions of the API how to build the virtual machine based on custom settings (CPU, memory, OS, etc.), there are a only of the shares how instantiate OVF or vAppTemplate. Could you please tell is possible to generate/create the VM without model or OVF by API?

    I see. Thanks for the background.

    Based on my notes there is no such API. Other applications were similar to this one and the solution suggested in this case is to programmatically create an OVF (describing the configuration of the VM to instantiate) and import it into the vDC. The end result is the same (i.e. an empty VM configured by entries) the difference is how it gets instantiate (created from zero Vs described in the OVF and imported).

  • How can I migrate a virtual machine without vcentre?

    Afternoon,

    I need to migrate our vcentre server to another host which is located in another cluster, in order to configure CVS.

    IM struggling to find the cli commands through PuTTY.

    Can someone point me in the right direction please?

    Thank you

    If you need storage move ot, you can use something like FastSCP - details here:

    http://www.get-virtual.info/2011/01/20/essential-tools-FastSCP/

    FastSCP do you want to allow to exclude the VMDK and other files from one host to another (if you have no storage of netwroked)

    You need the new ESX host is now click the properties of host and find the data store that you have copied thte VM at.

    Choose 'Browse the data store' and search the .vmx file that you moved with the files of the virtual machine.

    Right-click on the *.vmx file and select "Import" - follow the instructions of the wizard.

    Good luck :-)

  • Virtual machines removed by Vsphere Client always in stock VSphereWebClient

    Hello together,

    When I tried on a new system (host 2, 1 iSCII-SAN, Vmware Essentials 5.5) somethings with new virtual machines

    and after I created one, it worked but we have seen, wrong operating system.

    We therefore decided to stop this machine and delete the San.

    This work we don with VSphere Client and evrything seems OK.

    This morning we started the first time that our VSpherWebClient and we still see this machine in the inventory list.

    We couldn t do something remove our something else, because in WebClient, there is no editable function

    and in the VSpehre customer isn´t of the current machine.

    Someone has an idea?

    concerning

    Hi Tim,.

    Thanks for all communications, it was useful for me.

    Now, I did the solution my way:

    I use the unit of Service VCenter and (after duplicate the original files in a folder on the data store)

    I started the default configuration wizard.

    After the process, I realized all the network settings are correct

    and all the things that now works correct.

    But it was only for my situation with a Datacenter without existing VMs and a lot of information in the

    inventory.

    I m is not sure this solution: a virtual machine on the data store a safe way for VCENTER Server.

    Maybe for Cluster HA or DSR it wise, but I think it's very important to have backups from the

    settings and inventory.

    Anyway, our system is running, and now that we can begin to move our VM´s.

    best regards and thank you

    Rolf

  • How to configure WPA on Aironet 1300 without using RADIUS

    I'm trying to put in place a couple of Aironet 1300 s. I want to use WPA, but I do not have a radius server. Is it possible to configure then 1300 s to use WPA with a password and not a RADIUS server? Thank you.

    Yes it is possible.  According to the Radio, you call the encryption method to use:

    algorithms for encryption tkip encryption mode

    then under the ssid:

    SSID dot11 Test

    open authentication of the

    authentication for wpa key management

    WPA - psk ascii 0 cisco1234

    Both encryption and keys match on both sides and a root bridge and the other nonroot they should meet perfectly

  • Gwetting a list of all virtual machines and used space


    I apologize for my very basic question.

    I need to make a file (better if an Excel file) with a list of all virtual machines in a simple 5.x vSphere infrastructure including 2 VMare ESXi 5.x servers and the disk space used (allocated, used) of each virtual computer.

    The easiest way seems to list the virtual machines from the vSphere client and export the list as a .xls file.

    It seems simple, but when I look at the file I see a lot of missing VMs or a large number of missing values for several virtual machines (just the Runts).

    Is this a problem with my vSphere client?

    I tried to create a PowerCli script using the "Get - VM|" Select-object Name"command, but my limited skills will let me extract the value of the used space.»

    Can someone please provide a sample of PowerCli I can just copy and use?

    Is there another way to get the information I need?

    Concerning

    Marius

    .

    Not knowing that if you have configured a cluster or just stand-alone hosts, here is one simple line...

    Get-VMHost-name | get - vm | select name, usedspaceGB

    From there, you can make formatting, get total usage etc.

  • How to start a virtual machine without vmx file

    Hello, I have a virtual machine that I want to start up using 10.0.0 on Ubuntu 14.04 32-bit workstation but I don't have multiple vmdk files and a file on me vmxf and apparently, that's all that is in the software. How do I run something like that?

    Hello
    You cannot start a virtual machine without a vmx file.
    If you do not have a vmx file - fly a.
    For example this one:
    -----------------------------------

    . Encoding = "windows-1252".

    config.version = '8 '.

    virtualHW.version = '8 '.

    scsi0. Present = 'TRUE '.

    scsi0.virtualDev = "free".

    memsize = "2048".

    scsi0:0. Present = 'false '.

    scsi0:0. FileName = "set-path-to-bootdisk-and-then-set-.present-to-true-to-activate".

    ethernet0. Present = 'TRUE '.

    ethernet0.virtualDev = "e1000".

    displayName = "minimal-vm.

    guestOS = "windows7-64.

    virtualHW.productCompatibility = "hosted".

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

    That cuts into a file and store it as a *.vmx.
    Then launch the new VM with
    VMware /path-to-vmx/name.vmx or
    vmplayer /path-to-vmx/name.vmx
    Other users may also recommend to simply launch the user interface and follow the file > New menu...
    and then order the new virtual machine to the card by selecting your existing virtual disks.

  • How to get the configuration of the virtual machine, please give me some ideas

    How to get the configuration of the virtual machine, please give me some ideas

    Hello

    Take a look at

    For the General operations of VM

    https://docs.google.com/viewer?a=v&q=cache:F3tEld7LNv0J:communities.vmware.com/servlet/JiveServlet/downloadBody/11301-102-1-10681/GettingStartedGuide.pdf+accessing+virtual+machine+configuration+settings+,+vsphere+sdk&hl=en&gl=uk&pid=bl&srcid=ADGEESgXQlnYzxO10t-E1uHDiz3o1zBBt4ojDZDbzAmHPO3Odcl2HhLlbrSODQjtDPccHMBK7NZ3F_N6xEJqEl29ZD_l-ZUxgSzSirW6qO47dH-bR9E4mfivkf3Ip30jTbBMKQm-7rwR&sig=AHIEtbQaMKQ21DFCex0Wi6NQtHQmEvQvng

    For the settings advanced VM:

    http://blogs.VMware.com/vSphere/2012/03/Acessing-virtual-machine-advanced-settings.html

    Other general settings of the SDK:

    http://vSphere-land.com/vSphere-links/scripting-links-2.html

    Many tx

  • No ping between virtual machines

    Hello

    I use VMWARE 7 program... I installed two virtual machines (windows server 2008 and windows 7)... I have attached two pic for each other... .my problem is... There is no rattling between these two machines... I disabled the firewall in both entities... How you can help me in this...

    My respects

    Post edited by: a.p. - changed the subject of the "Greetings" to "no ping between virtual machines.

    I do a bit of practice for MCITP study... In windows server 2008, I use Bridge and in the Windows NAT using 07:00

    Well, I guess you should start your trip MCITP become familiar with the IP configuration and routing

    Addresses that you configured do not work that way. Assuming that the physical - bridged - network (if connected) is 192.168.100.x, you may be able to access the Windows Server 2008, but you will never be able to access the virtual from Windows 7 computer with the NAT configuration, because NAT is running on another network (vmnet8 - 192.168.201.x). Depending on the need or not to be able to access the outside world of the virtual machine, you should consider is instituted two virtual machines with an IP address in the range of vmnet1 (Host-Only - 192.168.80.x) or vmnet8 (NAT - 192.168.201.x). In the case of NAT, configure the virtual machine for DHCP or use IP addresses between x.x.x.3 and x.x.x.127.

    André

  • virtual machines without port group

    You can manage the virtual machine without having to configure the virtual machine port group?

    The virtual machine port group, it's how the virtual machine connects to a network then Yes, that it is necessary if you want to have your VM to communicate on your network computers tother / with who in minde not you won't be able to manage the virtual machine through the VLAN withour groups of ports VM

  • Disable copying files between virtual machines

    When I go to several virtual desktops using VMware View 4, I am able to copy files between virtual machines. Virtual machines are located in various isolated networks. It is a security problem in my organization and how do I disable this feature? I am not able to find any related configuration in sight connection to the server. Thank you!

    I assume you are using RDP as the Protocol currently, correct?

    In this case, you will need to implement some GPO:s in the workstations to avoid copy and paste.

    Look in the 'Extras' folder on the view connection server, there are a number of ADM files that you can implement to restrict all sorts of things.

    Best regards

    Linjo

    If you find this information useful, please give points to "correct" or "useful".

  • Networking between virtual machines on different hosts

    Hello

    I need some advice on the basic approach to networking between virtual machines, each running on a different host machine.

    Consider the following configuration:

    I have a few processes that are running in a Machine virtual Ubuntu. Call this guest1.  I guest1 race inside a real computer running Windows XP SP3 and VMware Workstation 7.x; Call this host 1.

    I have a copy of this virtual machine that I put on another machine.  Call this Guest2.  I have Guest2 running on a separate physical computer, also runs Windows XP SP3 and VMware Workstation 7.x; Call this host 2.

    Now, I would like to guest1 and 2 comments to make networking with eachother.  I wish they were able to ping, SSH, etc., among others.

    This is where I am stuck. I tried setting the virtual machines to use the bridged network mode.  I tried to connect my router on each computer and manually assigning IP addresses to each host and each virtual computer.  When I do this, guest1 can Host1 and Host2 ping, but cannot ping Guest2 and vice versa.

    What is the right way to do this kind of network?  This seems like an obvious application, if you want to perform simulations on multiple virtual machines residing on different computers on the network.

    I apologize if this is the answer elsewhere, I had to dig and was not able to find the solution.

    Thanks in advance!

    Charles

    Guests must be on the same subnet, like 'real' hardware machines.

    1 when you copied the VM and then started, what did answer you the question of copy/move? (this determines if a new MAC address is applied)

    2 view each guest and ' ipconfig/all' results 'ifconfig - a' by the hosts.

    Lou

  • List of parameters of configuration of a virtual machine

    I would like to be able to retrieve the list of the configuration of a virtual machine settings, specifically those under Options > advanced > General > Configuration settings when you go to change the settings of a virtual machine.  I found this article in the powershell community - http://communities.vmware.com/docs/DOC-18653 (parameters to retrieve and set Advanced Configuration (VMX) VM).  I run the script according to the example of the first connection to vCenter with vSphere PowerCLI and then execution of Get - VM vm - name | Get-VMAdvancedConfiguration.  It seems to be working and gives no errors, but returns nothing.  I know that this virtual machine parameters according to the Configuration settings also so I know it's not the script I'm looking for, or I am doing something wrong.  Is there a way to retrieve this information through powershell.  I would like to provide this information to the Auditors.

    Which is caused by the Select-Object, you used on the first line.

    I'm not sure how you want to display the results, but it's just a way to do

    $vms = Get-VM -Location Clusternameforeach ($vm in $vms){
      $vm.ExtensionData.Config.ExtraConfig |  Select @{N="VM";E={$vm.Name}},Key,Value}
    
  • Can I change the RAM available on a virtual machine without having to reboot?

    I would like to know if there is an option to change the RAM available on a virtual machine without restarting the virtual machine. I saw this old news item that says that it is

    possible (http://news.cnet.com/8301-1001_3-10044031-92.html), but I don't know how to do it. Any suggestions?

    Thanks in advance.

    Arne post, called PowerCLI: toggle the function add Hot VMs, shows how.

  • How can I suspend a Virtual Machine?

    I want to suspend a virtual machine without taking a snapshot. Please help how I can do this.

    Take a look at this KB, it maybe for v3.5 but should work for v4 also.  http://KB.VMware.com/kb/1006671

Maybe you are looking for