CentOS 6.9 command line upgrade to x2openEuler 22.03 SP4 fails with error

cat: /etc/os-release: No such file or directory

[ INFO ] - [upgrade] - [target_os_check] - Download URL list is [‘file:///mnt/iso/Packages/openEuler-release-22.03LTS_SP3-56.oe2203sp3.x86_64.rpm’]
[ WARNING ] - [upgrade] - [target_os_check] - Failed to download release package openEuler-release-22.03LTS_SP3-56.oe2203sp3.x86_64.rpm
[ INFO ] - [upgrade] - [target_os_check] - Target OS info is: ,oe2203sp3,0-2
[ ERROR ] - [upgrade] - [target_os_check] - The target OS is not in the whitelist
[ ERROR ] - [upgrade] - [target_os_check] - Pre-upgrade failed
[ ERROR ] - [upgrade_entrance] - [upgrade] - Pre-upgrade failed

Upgrade parameter repo file path: Local source created by mounting SP4 ISO image

Refer to this solution: How to handle the system not in the whitelist during x2opneEuler upgrade - Migration - openEuler Forum

Additionally, it is not recommended to use a local repo source; instead, set up the repo source on another machine via HTTP.

Thanks! It’s resolved. You can use either a network source or access the local source via HTTP.

Additionally, I’d like to ask: when using x2openEuler via the web interface, there are hardware requirements—more than 16G of free memory. What are the hardware requirements for using x2openEuler via the command line to upgrade the local system? I tested on a 64G 30-core c6.9 virtual machine with 35G of free memory, but an OOM occurred when create_rollback_initrd was triggered.

The web interface requires a large amount of memory when using x2openEuler because, as a server, it may need to manage dozens or even hundreds of servers awaiting upgrade simultaneously, which consumes significant resources. However, if the number of concurrent operations is low, less memory is needed.
As for the command line, the official documentation currently does not provide instructions for command-line upgrades, but it should work as long as the system runs properly.

1 Like