refactor: set NET before any other configuration

This commit is contained in:
Martin Wimpress 2024-05-14 19:13:37 +01:00 committed by Martin Wimpress
parent c194bad2d4
commit a67386755e
1 changed files with 2 additions and 2 deletions

View File

@ -1060,6 +1060,8 @@ function vm_boot() {
boot=${boot,,} boot=${boot,,}
guest_os=${guest_os,,} guest_os=${guest_os,,}
args=() args=()
# Set the hostname of the VM
NET="user,hostname=${VMNAME}"
configure_cpu configure_cpu
configure_ram configure_ram
@ -1068,8 +1070,6 @@ function vm_boot() {
configure_storage configure_storage
configure_display configure_display
configure_audio configure_audio
# Set the hostname of the VM
NET="user,hostname=${VMNAME}"
configure_ports configure_ports
configure_file_sharing configure_file_sharing
configure_usb configure_usb