Changing the instance operating system wipes all data on your server and installs a new file system. This is important when changing your default operating system while maintaining your instance's IP networking information.
Follow this guide to change the operating system on a Vultr Cloud Compute instance using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Compute.
Click your target Bare Metal instance to open its management page.
Navigate to the Settings tab.
Click Change OS on the left navigation menu.
Click the OS drop-down to select a new operating system and the default RAID configuration.
Click Change OS to apply the new operating system.
Check the confirmation prompt and click Change OS to reinstall the instance with a new operating system.
Send a GET
request to the List Bare Metal Instances endpoint and note the target instance's ID.
$ curl "https://api.vultr.com/v2/bare-metals" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List OS endpoint to view all available operating systems and note the target OS ID.
$ curl "https://api.vultr.com/v2/os" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Bare Metal endpoint with a new os_id
value to change the instance's operating system.
$ curl "https://api.vultr.com/v2/bare-metals/{baremetal-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"os_id" : "<new-instance-os-id>"
}'
List all Bare Metal instances in your Vultr account and note the target instance's ID.
$ vultr-cli bare-metal list
List all available operating systems and note the target OS ID.
$ vultr-cli bare-metal os list <baremetal-id>
Change the target instance's operating system.
$ vultr-cli bare-metal os change <instance-id> --os <os_id>