15.4. Updating the machine type to Q35


You must record a machine type for any instance that has no machine type recorded yet. If an instance is missing this value, update the metadata to reflect its current machine type. This might be pc, virt, q35, or whatever machine type was originally used when the instance was created. As an administrator, you can use a nova-manage command to update the machine type of individual instances to q35 after the upgrade is complete.

참고

Red Hat OpenStack Platform (RHOSP) 17 is based on RHEL 9. The pc-i440fx QEMU machine type is deprecated in RHEL 9, therefore the default machine type for x86_64 instances that run on RHEL 9 has changed from pc to q35. Based on this change in RHEL 9, the default value for machine type x86_64 has also changed from pc in RHOSP 16 to q35 in RHOSP 17.

Prerequisites

  • You have not changed the default [libvirt]hw_machine_type to q35. This avoids inadvertently changing the incompatible machine type to the new machine type automatically through a nova-compute restart or instance reboot.

Procedure

  1. Identify the instances that have no machine type recorded in the database:

    $nova-manage libvirt list_unset_machine_type
    1. If you find instances that have no machine type, use the following command to record a machine type for each instance:

      $nova-manage libvirt update_machine_type <instance_uuid> <machine_type>
      • Replace <instance_uuid> with the UUID of the instance.
      • Replace <machine_type> with the machine type originally used when the instance was created.
  2. For each instance, show the machine type of the instance so you know what needs to be updated:

    $nova-manage libvirt get_machine_type <instance_uuid>
  3. For each instance that needs to have its machine type changed to q35, complete the following steps:

    1. Test that the OS within the instance is compatible with the new hardware:

      1. Create a test instance.
      2. Verify that the test instance has a machine type other than q35:

        $nova-manage libvirt get_machine_type <test_instance_uuid>
      3. Stop the test instance:

        $openstack server stop <test_instance_uuid>
      4. Update the machine type of the test instance to q35:

        $nova-manage libvirt update_machine_type <test_instance_uuid> q35 --force
      5. Start the test instance:

        $openstack server start <test_instance_uuid>
      6. Verify that you can log in to the test instance and ensure that it is working as expected.
    2. In a test environment, verify that the OS within the instance can tolerate the change without re-creation:

      1. Stop the instance:

        $openstack server stop <instance_uuid>
      2. Update the machine type and use the --force value:

        $nova-manage libvirt update_machine_type <instance_uuid> q35 --force
      3. Update the disk controller bus and set hw_cdrom_bus to sata:

        $nova-manage image_property set <instance_uuid> --property hw_cdrom_bus=sata
      4. Start the instance:

        $openstack server start <instance_uuid>
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동