[solved] VM Template of CentOS8 - hostname not set when deployed

Discussion in 'Linux Virtual Machine' started by rhoekstra, Sep 11, 2020.

  1. rhoekstra

    rhoekstra Junior Member

    Messages:
    10
    Hi,

    When I create a CentOS8 VM, and convert it to a template, all seems fine (same as with CentOS7). When I deploy the template to a VM, the deployed vm doesn't have its hostname changed as it was with CentOS7.
    Any suggestion how to fix this?
    Is there any setting I have to do for the hostname to be set correctly?

    To clarify:
    I create a VM called 'template8' and install CentOS8 from DVD. Then I update software and install parallels tools. After that, I shut down the vm, convert it to template and deploy a new vm from the template.
    As the new deployed vm boots up, it still has the hostname of what the template had.
    With CentOS7 the experience was that the hostname got changed to the name, given to the deployed vm.

    Please advice, as I haven't been able to find a clue in the manuals or on this forum. Thanks in advance
     
  2. rhoekstra

    rhoekstra Junior Member

    Messages:
    10
    Okay, some configuration item I overlooked... 'sync-vm-hostname', an advanced feature. Apparently, back in the time I created my Template CentOS 7 VM, it was on, and somehow on this CentOS8 template, the config item was off. turning it on, and all works fine.

    Sadly, the documentation does not mention this, to my knowledge
     

Share This Page