Project

General

Profile

Actions

Support #36761

open

Does hammer cli support rebuild of vms using same hostname & IP but with different OS version

Added by Dushyant khobragade 9 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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.

Actions #1

Updated by Leos Stejskal 8 months ago

HI, if you run the update action on the host with the new OS it will also rebuild the host.

Actions #2

Updated by Dushyant khobragade 8 months ago

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

Actions

Also available in: Atom PDF