Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Fix Debian 12 auto installation failure #474

Merged
merged 10 commits into from
Jun 26, 2023

Conversation

keirazhang
Copy link
Contributor

Debian 12.0 ISO images doesn't have open-vm-tools builtin. So it needs to install open-vm-tools from online repo. In this fix,

  1. Added some debug messages in preseed late_command
  2. If the Debian ISO image have open-vm-tools builtin, install open-vm-tools from CDROM; otherwise, install it from online repo.
  3. Install testing required packages during OS installation.

Test results

  - 'Guest os distribution: Debian 10 i386'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian10Guest'
  - 'Guestinfo guest id: debian10Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 10 (32-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''32'' distroAddlVersion=''10
    (buster)'' distroName=''Debian GNU/Linux'' distroVersion=''10'' familyName=''Linux''
    kernelVersion=''4.19.0-21-686-pae'' prettyName=''Debian GNU/Linux 10 (buster)'''
  - 'Results: Total (30), Passed (23), Skipped (7)'
  - ' * deploy_vm_bios_paravirtual_vmxnet3..............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic.....................................Not Supported'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware......................................Not Applicable'
  - ' * secureboot_enable_disable...............................Not Applicable'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp......................................Not Supported'
  - ' * gosc_cloudinit_staticip..................................Not Supported'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove...................................Not Supported'
  - ' * ovt_verify_uninstall............................................Passed'

  - 'Guest os distribution: Debian 10 x86_64'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian10_64Guest'
  - 'Guestinfo guest id: debian10_64Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 10 (64-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''64'' distroAddlVersion=''10
    (buster)'' distroName=''Debian GNU/Linux'' distroVersion=''10'' familyName=''Linux''
    kernelVersion=''4.19.0-21-amd64'' prettyName=''Debian GNU/Linux 10 (buster)'''
  - 'Results: Total (30), Passed (25), Skipped (5)'
  - ' * deploy_vm_efi_paravirtual_vmxnet3...............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic............................................Passed'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware..............................................Passed'
  - ' * secureboot_enable_disable................................Not Supported'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp......................................Not Supported'
  - ' * gosc_cloudinit_staticip..................................Not Supported'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove...................................Not Supported'
  - ' * ovt_verify_uninstall............................................Passed'

  - 'Guest os distribution: Debian 11 x86_64'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian11_64Guest'
  - 'Guestinfo guest id: debian11_64Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 11 (64-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''64'' distroAddlVersion=''11
    (bullseye)'' distroName=''Debian GNU/Linux'' distroVersion=''11'' familyName=''Linux''
    kernelVersion=''5.10.0-22-amd64'' prettyName=''Debian GNU/Linux 11 (bullseye)'''
  - 'Results: Total (30), Passed (27), Skipped (3)'
  - ' * deploy_vm_efi_paravirtual_vmxnet3...............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic............................................Passed'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware..............................................Passed'
  - ' * secureboot_enable_disable.......................................Passed'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp......................................Not Supported'
  - ' * gosc_cloudinit_staticip..................................Not Supported'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove..........................................Passed'
  - ' * ovt_verify_uninstall............................................Passed'

  - 'Guest os distribution: Debian 11 i386'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian11Guest'
  - 'Guestinfo guest id: debian11Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 11 (32-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''32'' distroAddlVersion=''11
    (bullseye)'' distroName=''Debian GNU/Linux'' distroVersion=''11'' familyName=''Linux''
    kernelVersion=''5.10.0-22-686-pae'' prettyName=''Debian GNU/Linux 11 (bullseye)'''
  - 'Results: Total (30), Passed (23), Skipped (7)'
  - ' * deploy_vm_bios_paravirtual_vmxnet3..............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic.....................................Not Supported'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware......................................Not Applicable'
  - ' * secureboot_enable_disable...............................Not Applicable'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp......................................Not Supported'
  - ' * gosc_cloudinit_staticip..................................Not Supported'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove...................................Not Supported'
  - ' * ovt_verify_uninstall............................................Passed'

  - 'Guest os distribution: Debian 12.0 x86_64'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian12_64Guest'
  - 'Guestinfo guest id: debian12_64Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 12 (64-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''64'' distroAddlVersion=''12
    (bookworm)'' distroName=''Debian GNU/Linux'' distroVersion=''12'' familyName=''Linux''
    kernelVersion=''6.1.0-9-amd64'' prettyName=''Debian GNU/Linux 12 (bookworm)'''
  - 'Results: Total (30), Passed (27), Skipped (1), Failed (2)'
  - ' * deploy_vm_efi_paravirtual_vmxnet3...............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic............................................Passed'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware..............................................Passed'
  - ' * secureboot_enable_disable.......................................Passed'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp.............................................Failed'
  - ' * gosc_cloudinit_staticip.........................................Failed'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove..........................................Passed'
  - ' * ovt_verify_uninstall............................................Passed'

  - 'Guest os distribution: Debian 12.0 i386'
  - 'Hardware version: vmx-20'
  - 'Config guest id: debian12Guest'
  - 'Guestinfo guest id: debian12Guest'
  - 'Guestinfo guest full name: Debian GNU/Linux 12 (32-bit)'
  - 'Guestinfo guest family: linuxGuest'
  - 'Guestinfo detailed data: architecture=''X86'' bitness=''32'' distroAddlVersion=''12
    (bookworm)'' distroName=''Debian GNU/Linux'' distroVersion=''12'' familyName=''Linux''
    kernelVersion=''6.1.0-9-686-pae'' prettyName=''Debian GNU/Linux 12 (bookworm)'''
  - 'Results: Total (30), Passed (23), Skipped (5), Failed (2)'
  - ' * deploy_vm_bios_paravirtual_vmxnet3..............................Passed'
  - ' * check_inbox_driver..............................................Passed'
  - ' * ovt_verify_install..............................................Passed'
  - ' * ovt_verify_status...............................................Passed'
  - ' * vgauth_check_service............................................Passed'
  - ' * check_ip_address................................................Passed'
  - ' * check_os_fullname...............................................Passed'
  - ' * stat_balloon....................................................Passed'
  - ' * stat_hosttime...................................................Passed'
  - ' * device_list.....................................................Passed'
  - ' * check_quiesce_snapshot_custom_script............................Passed'
  - ' * memory_hot_add_basic.....................................Not Supported'
  - ' * cpu_hot_add_basic...............................................Passed'
  - ' * cpu_multicores_per_socket.......................................Passed'
  - ' * check_efi_firmware......................................Not Applicable'
  - ' * secureboot_enable_disable...............................Not Applicable'
  - ' * e1000e_network_device_ops.......................................Passed'
  - ' * vmxnet3_network_device_ops......................................Passed'
  - ' * pvrdma_network_device_ops................................Not Supported'
  - ' * gosc_perl_dhcp..................................................Passed'
  - ' * gosc_perl_staticip..............................................Passed'
  - ' * gosc_cloudinit_dhcp.............................................Failed'
  - ' * gosc_cloudinit_staticip.........................................Failed'
  - ' * paravirtual_vhba_device_ops.....................................Passed'
  - ' * lsilogic_vhba_device_ops........................................Passed'
  - ' * lsilogicsas_vhba_device_ops.....................................Passed'
  - ' * sata_vhba_device_ops............................................Passed'
  - ' * nvme_vhba_device_ops............................................Passed'
  - ' * nvdimm_cold_add_remove...................................Not Supported'
  - ' * ovt_verify_uninstall............................................Passed'

@keirazhang keirazhang added this to the v3.0 milestone Jun 15, 2023
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
Signed-off-by: Qi Zhang <qiz@vmware.com>
linux/deploy_vm/deploy_vm_from_iso.yml Outdated Show resolved Hide resolved
linux/deploy_vm/deploy_vm_from_iso.yml Show resolved Hide resolved
linux/deploy_vm/deploy_vm_from_iso.yml Show resolved Hide resolved
linux/deploy_vm/deploy_vm_from_iso.yml Show resolved Hide resolved
linux/deploy_vm/deploy_vm_from_iso.yml Outdated Show resolved Hide resolved
linux/deploy_vm/deploy_vm_from_iso.yml Show resolved Hide resolved
Signed-off-by: Qi Zhang <qiz@vmware.com>
Copy link
Collaborator

@123lzxm 123lzxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@keirazhang keirazhang merged commit 9850b06 into vmware:main Jun 26, 2023
@keirazhang keirazhang deleted the fix_debian12 branch August 15, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants