How to install the macos sonoma in Sosumi on Ubuntu

I have downloaded the new update of the operating system sosumi now iam facing the issue that when it restart during the installation of the sosumi when i boot the system again in sosumi where the macos is installed on a disk named Ahmad so when i reboot it it forgets everything about the installation of sosumi and start the installation from the very beginning again now i donot know how to fix this issue kindly tell me plz iam so worried iam not able to open the version of Xcode that is in Apple store that require the macos sosumi and by default the sosumi installed the macos operating system version 10.15.0 something which is old