New Question
0

Windows Instance and Networking Setup [closed]

asked 2017-06-21 06:42:14 +0200

Nebukazar gravatar image

updated 2017-06-21 06:44:09 +0200

Hi,

We're currently using OpenStack Ocata across our hyperv failover cluster. So far, everything seems to be working properly.

The only issue (if we may call it an issue..) is our windows guest (mostly win2016 with cloudbase's cloud-init version 0.9.12.dev16) are taking minutes before getting their networking configuration. Usually, our linux guests will get networking configuration within a minute or two; but windows guests are taking from 6-7 minutes and sometimes up to 15 minutes before getting their network info.

Is there a way to speed up the process ? I guess its because cloud-init is trying every possible config before mounting the config drive ?

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Nebukazar
close date 2017-06-23 23:30:23.356352

1 answer

Sort by » oldest newest most voted
0

answered 2017-06-21 09:08:27 +0200

avladu gravatar image

Hello,

Have you used a specific tools to create the image? From my experience, your issue might be the IP persisted across reboots. Before shutting down the machine, after you have syspreped it, you need to run:

ipconfig /release

Also, to force the usage of config drive before http, you can set in cloudbase-init.conf:

metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService,cloudbaseinit.metadata.services.httpservice.HttpService

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

Thanks! I've been using the following to generate our win2016 images: https://cloudbase.it/windows-server-2016-openstack-images/ Is there a way to modify the cloud-init's config while generating the image ?

Nebukazar gravatar imageNebukazar ( 2017-06-21 20:01:37 +0200 )edit

You can add the code to change the cloudbase-init config here: https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/UnattendResources/Logon.ps1#L214 . You can use the Set-IniFileValue command, which is already available at that moment.

avladu gravatar imageavladu ( 2017-06-22 13:38:31 +0200 )edit

So basically, this should be the code being used for modifying the metadata_services key ? Set-IniFileValue "metadata_services", "DEFAULT", "cloudbaseinit.metadata.services.configdrive.ConfigDriveService[...]", "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init-unattend.conf"

Nebukazar gravatar imageNebukazar ( 2017-06-22 18:44:56 +0200 )edit
avladu gravatar imageavladu ( 2017-06-23 07:53:03 +0200 )edit

Thanks a lot !

Nebukazar gravatar imageNebukazar ( 2017-06-23 23:30:32 +0200 )edit

Question Tools

Stats

Asked: 2017-06-21 06:42:14 +0200

Seen: 1,037 times

Last updated: Jun 21 '17