Hi,
I'm trying to get my leela-zero instructions work for Microsoft Azure
this is the script i'm using in cloud-init :
#!/bin/bash PKG_OK=$(dpkg-query -W --showformat='${Status}\n' glances|grep "install ok installed") echo Checking for glanceslib: $PKG_OK if [ "" == "$PKG_OK" ]; then echo "No glanceslib. Setting up glanceslib and all other leela-zero packages." sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo add-apt-repository -y ppa:graphics-drivers/ppa && sudo apt-get update && sudo apt-get -y install nvidia-driver-410 linux-headers-generic nvidia-opencl-dev && sudo apt-get -y install clinfo cmake git libboost-all-dev libopenblas-dev zlib1g-dev build-essential qtbase5-dev qttools5-dev qttools5-dev-tools libboost-dev libboost-program-options-dev opencl-headers ocl-icd-libopencl1 ocl-icd-opencl-dev qt5-default qt5-qmake curl && git clone https://github.com/gcp/leela-zero && cd leela-zero && git submodule update --init --recursive && mkdir build && cd build && cmake .. && cmake --build . && cd ../autogtp && cp ../build/autogtp/autogtp . && cp ../build/leelaz . && sudo apt-get -y install glances zip && sudo apt-get clean && sudo reboot else sudo -i && cd /leela-zero/autogtp && ./autogtp -g 2 fi
Basically what it does is install all needed packages at first boot, then run ./autogtp at second boot (leela-zero contributing tool)
It works flawlessly with google cloud, but on azure i got this ssh login prompt after reboot :
https://imgur.com/a/cojQF9o
I'm using ssh public key generated by puttygen during vm machine creation, with a nc-v2 instance
This login prompt makes my script stuck unable to complete (run ./autogtp)
After this first issue is solved,
I have many other questions by the way, including :
2) how can you create low priority VMs as stated here :
https://azure.microsoft.com/en-us/blog/low-priority-scale-sets/
i couldnt find this option in VM machine creation or instance templates no matter where i looked
3) how can you use the equivalent of managed instance groups of google cloud here on azure with low priority ? (the group will automatically create and start vm machines in all regions that have an nc-v2 hardware available, then delete it when it is preempted)
Big thanks for any help, as i'm getting quite desperate of making it run successfully
4) will the working script in cloud-init run with no time limit ? (it is a tool to contribute for leela-zero)