Support #36761
open
Does hammer cli support rebuild of vms using same hostname & IP but with different OS version
Added by Dushyant khobragade over 1 year ago.
Updated over 1 year ago.
Description
I am trying to build solution in my POC environment where i have to rebuild (in-place) multiple hosts in one go with different OS by keeping same hostname/IP.
I created bash script where i am passing hostname but somehow i can only create new host with new name.
Also, trying to keep same esxi host on which vm will re-build.
If anyone come across such scenario please suggest.
HI, if you run the update action on the host with the new OS it will also rebuild the host.
Leos Stejskal wrote in #note-1:
HI, if you run the update action on the host with the new OS it will also rebuild the host.
Yes, @Leos Stejskal, i can do host update from UI , however it will do one server at a time.
i am looking for something to re-build multiple server with newer version of OS by keeping same IP /hostname/HW config except OS.
I am trying to do via hammer but when i tried to run it just rebuild with same OS (L7) instead of L8.
#host update --name test-vm --hostgroup dev-small-8--compute-profile small --architecture x86_64 --operatingsystem “AlmaLinux 8.8” --provision-method image --image AlmaLinux-8.8v3 --root-password 12345678 --build true --enabled true --managed true
Also available in: Atom
PDF