Closed dcasota closed 1 year ago
With the early 5.0 Photon OS beta bits and using disk2vhd and the ventoy tool, I've build a vhd from the iso. The create-azimage-PhotonOS script , described above in 1), has been updated. Unfortunately there is no progress on redirecting the photon-os-installer ui to the Azure serial console. The screenshot of boot diagnostics of the vm shows the EULA screen of photon-os-installer though.
Are the injected serial console params in grub.cfg, isolinux.cfg and menu.cfg okay?
In /boot/grub2/grub.cfg. "serial --unit=0 --speed=115200" added. In /isolinux/isolinux.cfg, "serial 0 115200" added. In /isolinux/menu.cfg on the line beginning with "append initrd=", " console=ttyS0,115200" appended.
Hi @dcasota , Thanks for raising the issue.
Could you please share the logs in /var/log/installer.log ? We have taken a note of UI issue and password typing and correcting issue on Azure serial console .
Hi @jaankit,
Yes, I will share the logs as soon as possible. trace-details.txt
@jaankit can you give a working example of the new syntax? Actually, photon-installer fails.
root@ph4 [ /photon ]# /photon-os-installer/dist/photon-installer -i azure -c /photon/stage/common/data/packages_azure_expanded.json -r /photon/stage/RPMS/ -o /photon/stage/common/data/build_install_options_all.json
Traceback (most recent call last):
File "photon-installer.py", line 39, in <module>
File "installer.py", line 105, in __init__
if os.path.exists(self.working_directory) and os.path.isdir(self.working_directory) and working_directory == '/mnt/photon-root':
File "genericpath.py", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
[2720617] Failed to execute script 'photon-installer' due to unhandled exception!
Remark: previously, the iso build make in /photon
successfully ended with a /photon/stage/photon-4.0-3f406caab.iso
in 15 hours, on an azure standard E8s v3. This was by far the fasted build make because the last phase with mkisofs terminated much more faster.
lab to make Photon-OS-installer versatile on Azure isn't maintained for the moment. -> close ticket
@jaankit can you give a working example of the new syntax? Actually, photon-installer fails.
Please have a look at https://github.com/vmware/photon-os-installer/tree/master/docker#create-an-azure-image https://github.com/vmware/photon-os-installer/tree/master/examples/azure
replace "poi-debug" with "projects.packages.broadcom.com/photon/installer:ob-23999758" if you don't want to build your own container image.
Describe the bug
On an Azure V2 virtual machine with Photon OS 4.0, photon-os-installer launches successfully, but quits the ui with
Oops, Installer got interrupted.
right in the partitioning phase.Reproduction steps
Oops, Installer got interrupted.
The disk which should be partitioned during the setup is /dev/sdb. The fdisk output after the error above:
Unfortunately there is no log output.
fyi On Azure serial console, during photon-os-installer-ui step of password dialog, typing and correcting the password does not work. The workaround is to take a step back and forward again.
Expected behavior
Photon-os-installer installs Photon OS successfully. In case of an issue, photon-os-installer provides debug information.
Additional context
No response