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

Change the boot disk to be first in boot order for ubuntu 23.04 desktop after deploy_vm #473

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions linux/deploy_vm/deploy_vm_from_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,22 @@

# Remove serial port
- include_tasks: ../utils/shutdown.yml

- name: "Change CD/DVD to client device and set disk as first boot device for Ubuntu"
block:
- name: "Change VM's CD/DVD Drive 1 to client device"
include_tasks: ../../common/vm_configure_cdrom.yml
vars:
cdrom_state: present
cdrom_type: client
cdrom_controller_num: "{{ vm_cdroms[0].controller_number | int }}"
cdrom_unit_num: "{{ vm_cdroms[0].unit_number | int }}"

# Disconnect OS image from Ubuntu Linux VM and change to client device
- name: "Change VM's CD/DVD Drive 1 to client device"
include_tasks: ../../common/vm_configure_cdrom.yml
vars:
cdrom_state: present
cdrom_type: client
cdrom_controller_num: "{{ vm_cdroms[0].controller_number | int }}"
cdrom_unit_num: "{{ vm_cdroms[0].unit_number | int }}"
- name: "Change the boot disk to be first in boot order"
include_tasks: ../../common/vm_set_boot_options.yml
vars:
boot_order_list:
- disk
when: guest_os_ansible_distribution == "Ubuntu"

- name: "Download serial output file before removing serial port"
Expand Down