Hello everyone, i am trying to implement cloudbase-init to my Windows vms on Proxmox. I have patched the Promox to generate data into the metadata folder where it sucessfully gets the password and the hostnam.
I am trying to push cloudbase to get the username
from the metadata. I've looked into the baseopenstackservice.py
to see which variable it looks for in the metadata;
def get_admin_username(self):
return self._get_meta_data().get('meta', {}).get('admin_username')
Well my patch successfully creates the json file with admin_username
variable as intended with the information i gave him throught proxmox ui.
This part of the createuser.py
file seems to get the admin_username
or the username
from the conf file;
def execute(self, service, shared_data):
user_name = service.get_admin_username() or CONF.username
But cloudbase_sysprep allways use the username
from the conf file and when i tried to remove it, it used the default username
which is admin
.
Cloudbase gets the password and all the other data from the same file so it doesnt seem like a access issue and i also dont have any errors on the logs while booting.
I will be releasing the patch in the proxmox forum when i finish.