2024-11-25 12:07:18 +08:00
# Oracle Linux
2024-11-25 16:38:52 +08:00
## How to create VM image?
2024-11-26 17:21:50 +08:00
You should download [Oracle Linux image ](https://yum.oracle.com/oracle-linux-templates.html ) to OSS/S3 directly, don't try to build image from ISO manual setup by KVM/VMVare/VirtualBox
2024-11-25 16:38:52 +08:00
## Cloud image requirements
2024-11-25 12:07:18 +08:00
2024-11-26 17:22:30 +08:00
- Kernel:
- Unbreakable Enterprise Kernel (UEK)(√)
- Red Hat Compatible Kernel(RHCK)
2024-11-25 12:07:18 +08:00
- OS disk automaticlly resize
2024-11-25 12:08:52 +08:00
- User can user password or key both for create VM or reset password
2024-11-26 17:20:59 +08:00
- OS start methond on Cloud: UEFI-Preferred
2024-11-26 17:32:30 +08:00
- Logic Disk partition: LVM
2024-11-26 17:20:59 +08:00
- File system type: xfs(√)、[btrfs](https://blogs.oracle.com/linux/post/btrfs-on-oracle-linuxefficiently-backup-and-recover-systems)
2024-11-26 16:03:09 +08:00
- Softwares: cloud-init, agent of Cloud provider, virtio, NVMe
2024-11-25 12:07:18 +08:00
- Other config: https://github.com/Websoft9/mcloud/blob/master/ansible/roles/desktop/tasks/image.yml
2024-11-26 17:20:59 +08:00
- Applicaitons: Desktop or Docker/Podman
2024-11-25 18:05:20 +08:00
- Other repository
```
yum install -y oraclelinux-developer-release-e* oracle-nodejs-release-e* oracle-epel-release-e*; fi
python3 and pip at OracleLinux7?
```
2024-11-25 12:07:18 +08:00
2024-11-25 16:38:52 +08:00
## Upgrade Oracle Linux
2024-11-25 12:07:18 +08:00
2024-11-25 12:08:52 +08:00
You can use [leapp ](https://docs.oracle.com/en/learn/ol-linux-leapp ) to upgrade major version, e.g Oracle Linux8 > Oracle Linux9
2024-11-25 12:27:59 +08:00
2024-11-25 17:59:30 +08:00
## Test your Cloud private image
Some Cloud provider have tools for your image testing:
2024-11-25 12:27:59 +08:00
- [阿里云 sersi ](https://help.aliyun.com/zh/ecs/user-guide/check-whether-an-image-meets-the-import-requirements )