Commit Graph
160 Commits
Author SHA1 Message Date
屈轩 ccd731874c fix: support risc-v (#23699) 2025-11-19 17:13:57 +08:00
JinyuZhao 07d1cecf99 feat: Cloudpods basic service image RISC-V support (#23446)
This patch enables cloudpos basic service image to be built on RISC-V
platforms and support build script to work on RISC-V platforms.

Signed-off-by: Jinyu Zhao <1813479822@qq.com>
2025-10-31 19:04:15 +08:00
happy-gameandwanyaoqi 0bed60eae7 [OSPP]feature:Automated installation using kickstart (#23094)
* feat(region, climc): Add kickstart parameters and metadata

- Add kickstart parameters and metadata support
- Add kickstart CLI options and management commands
- Set kickstart metadata in PostCreate
- Add related kickstart metadata fields

* feat(host): Implement automated VM installation

- Mounts the installation ISO to a unique temp path, reusing existing mounts.
- Extracts kernel (`vmlinuz`, `initrd`) to configure QEMU boot.
- Injects kernel parameters to trigger the autoinstall.
- Add kickstart configuration validation.

Modified `guestLauncher` script to handle kernel parameters with spaces
that were previously truncated by the Python script.

* feat(host): Implement Kickstart monitoring

- Automatically updates the VM status upon
receiving `KICKSTART_SUCCESS` or `KICKSTART_FAILED` signals.
- On success, cleans up temporary mount points
and restarts the server via the Region API.

* feat(region): add kickstart type metadata

Adds the `VM_METADATA_KICKSTART_TYPE` to distinguish between
kickstart configurations passed by URL or by direct content.

* feat(host): Handle kickstart installing and timeout

- Set status to 'installing' upon successful kickstart boot
- Handle KICKSTART_INSTALLING serial message for status updates
- Add timeout handling for kickstart status monitoring

* feat(host): provide Kickstart config via content

Embed the provided config content as a file in a
labeled ISO (mkisofs), then mount the ISO during
the Kickstart installation to supply the config.

* refactor(host): Enhance the kickstart installation

- Integrates kickstart status directly into the VM status, replacing metadata.
- Unifies locations for kickstart logs and temporary files.
- Uses regex for more robust status matching.
- Moves helper functions to `kickstart_helper.go`.
- Fixes an incorrect kickstart configuration filename.
- Adjusts kickstart logging.

* feat(region, host): add kickstart support for openEuler

* refactor(host): extract kickstart cleanup function

* feat(region, climc): add kickstart-complete cli

Add this command to manually update the kickstart status and
reboot VM if needed. This is mainly used by users to manually
update the kickstart status when kickstart status detection is abnormal.

* refactor(region): reduce code duplication in Kickstart validation

- unify two validateKickstartConfig functions
- extract determineKickstartType function for type determination

* fix(region, host): fix kickstart auto-reboot

- Adjusted the timing of setting the status to
`kickstart_pending` to avoid incorrect reboot checks
- Skip setting kickstart if the status is already
`kickstart_completed` to prevent unnecessary reboots
- Added cleanup of kickstart files upon VM deletion

* fix: kickstart misc fix

* feat(host): download kickstart config from URL

- download content when passing config via URL
- unified boot parameters

* feat(host): copy kickstart kernel files

* feat(host): ensure kickstart completion signal in config

---------

Co-authored-by: wanyaoqi <d3lx.yq@gmail.com>
2025-10-29 14:54:00 +08:00
屈轩 ff404302cb fix(mcp): add dockerfile for mcp server (#23618) 2025-10-28 15:23:11 +08:00
cwz_eikoh 897a6fc61f [OSPP]feature: Auto deploy llm and dify (#23282)
* feat(llm): add llm-create

* fix(llm): fix llm-create, add llm-list & llm-show

* fix(llm): format file names

* fear(llm): add exec stream

* fear(llm): init llm model cache

* fix(llm): move llm model cache to LocalImageCache

* feat(llm): auto clean model cache

* fix(llm): auto clean tmp model cache

* feat(dify): init dify-create

* fix(dify): change dify default registry

* feat: support create model with gguf file

* feat(llm): support more modelfile option for gguf file

* feat(dify): init user customize dify parameters

* feat: update llm as a service in climc

* fix: delete llm from region service

* feat: init llm service (with error)

* fix: resolve errors (task cant callback yet)

* feat: add PerformRequestHostActionByOtherService for container

* fix: make llm service usable

* feat: delete llm and dify after guest deleted

* feat(llm): add llm-image

* feat(llm): add llm-model

* feat: mv old llm to ollama

* feat(llm): init llm-batch-create(can not run)

* fix(llm): make llm-create usable

* fix(llm): add pull-model step

* feat(llm): add list and delete

* fix(llm): ollama pull official model don't rely on host & region's code any more

* feat(llm): add dify-model

* fix: remove llm's code in host & compute

* fix: remove remain code in compute

* feat(llm): Abstract out and reuse the llm_model logic

* feat(llm): abstract llm_base from llm

* fix(llm): make dify usable

* feat(llm): add sync_dify_images.sh

* fix(llm): format import

* feat(llm): support start & stop for llm and dify

* feat(llm): add model-update

* fix(llm): gendocgo
2025-10-24 13:29:31 +08:00
wanyaoqi 87c5ba8734 fix(host-deployer): update host-deployer-base to 1.4.11 (#23414) 2025-09-28 17:26:12 +08:00
屈轩 eb82b9d9ca fix: upgrade go 1.24 (#23241) 2025-09-05 18:26:33 +08:00
wanyaoqi bc5582ca84 feat(region,host,host-deployer): support set uefi boot order (#22527) 2025-05-30 10:30:53 +08:00
屈轩 6606f94ba2 fix: update file repo docker script (#22388) 2025-04-09 17:26:58 +08:00
屈轩 a034fd3d5b fix(ansbileserver): update docker file (#22381) 2025-04-09 10:54:21 +08:00
wanyaoqi 88cd7551e5 fix(host): update host-base to v0.7.0 (#22085)
* fix(host): update host-base to v0.7.0

* fix(cronjob): init timezone, timer set location
2025-02-15 00:02:32 +08:00
wanyaoqi 3f3d7e5d0b fix(host,host-image): use nbd export images (#21738) 2025-02-10 14:16:05 +08:00
wanyaoqi 151c1783bc fix(host-deployer): update host-deployer-base to 1.4.9 (#21404) 2024-10-12 14:14:18 +08:00
Zexi Li d07594faa4 feat(region,host): commit container to image repository (#21284) 2024-09-24 10:02:44 +08:00
Jian QiuandQiu Jian 7491bbbab0 fix: host build image use go 1.21 (#21263)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2024-09-19 03:20:01 +08:00
Zexi Li 4d8ecb6e12 optimized(apigateway): use ssh for climc pod cloud shell (#21186) 2024-09-09 16:03:18 +08:00
wanyaoqi ac9e28d02e fix(host-deployer): update host-deployer-docker base (#21178) 2024-09-06 11:25:56 +08:00
wanyaoqi e569326b83 feat(regin,host,host-deployer): qga deploy and fsdriver (#20864)
- host-deployer add deploy qga support
- host add qga partition fsdriver
- qga set network use fsdriver
- hostpinger sync qga status
2024-07-25 11:50:05 +08:00
f3b9f25607 feature: support adb shell (#20245)
* feature: support adb shell

* fix(build): add kubectl into Dockerfile.kubectl

---------

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
Co-authored-by: Zexi Li <zexi.li@icloud.com>
2024-05-14 20:23:30 +08:00
wanyaoqi 8908ac38b3 fix(ansibleserver): update file repo (#19772) 2024-03-26 09:48:17 +08:00
wanyaoqi 710d5ac2cc fix(region,host): rescue mode update initramfs, vnc login no passwd (#19478) 2024-02-10 16:29:05 +08:00
Zexi Li a24d76232d feat(dhcprelay): add Dockerfile (#19376) 2024-01-31 15:22:55 +08:00
wanyaoqi b78db4e029 fix(host-deployer): add growpart resize partitions (#19252) 2024-01-15 12:14:51 +08:00
Zexi Li 5a02dfc7c0 feat(baremetal-agent): support using tftp to download kernel and initrd (#19064) 2023-12-21 00:50:48 +08:00
Zhang Dongliang d4ecbd8774 fix(docker): update dockerfile for ansible-base 2023-12-19 13:08:27 +08:00
wanyaoqi 8293f86901 fix(host-deployer): udpate yunionos, reduce yunionos memsize 2023-12-15 11:41:41 +08:00
屈轩 51e2d49bb5 fix: guacd docker file mkdir required dir (#18912) 2023-12-06 17:03:24 +08:00
wanyaoqi c3743b57f3 fix(host-deployer): update base image and fix return errors 2023-12-04 01:54:58 +08:00
wanyaoqiandboironic@gmail.com b58cd52d30 Automated cherry pick of #18822: Automated cherry pick of #18821: Feat/deploy guest (#18823)
* feat(region): add guest rescue api && download initrd from baremetal tftp server && add baremetal agent ip finder & update pic address & support ip kernel config.

* feat(host-deployer): use qemu-kvm as default deploy dirver

---------

Co-authored-by: boironic@gmail.com <boironic@gmail.com>
2023-11-30 16:50:18 +08:00
屈轩 eb0faaec97 feat(webconsole): support rdp (#18755) 2023-11-28 10:47:04 +08:00
Qiu Jian 8f249b8a71 feature: SUSE guest support 2023-10-02 00:33:18 +08:00
wanyaoqi 1e7a23b47e chore: update host-deployer base image 2023-09-12 22:37:01 +08:00
Zexi Li 1fd974e78f fix(baremetal-agent): update base image 2023-08-12 18:48:22 +08:00
Zexi Li 0aeaf6370d fix(webconsole,climc): cloud shell within docker compose environment 2023-08-01 00:26:05 +08:00
Zexi Li e0c47dd5df feat(apimap): fetch vpcagent net topo info from DB (#17038) 2023-05-15 14:48:24 +08:00
mhf ee72b8862f fix(region): fixModelarts 2023-04-13 16:23:51 +08:00
wanyaoqi a6705c4452 fix(region,host): host health misc fix
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-13 09:41:27 +08:00
wanyaoqi 53e3c18a06 chore: update host and lbagent base image (#16147)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2023-03-07 01:37:51 +08:00
Zexi Li 06dfb5bbcb fix(baremetal): update baremetal base image to support ice module (#16018) 2023-02-21 19:03:34 +08:00
Zexi Li c9c380bf86 fix(build): lbagent-base image 2023-02-13 21:41:33 +08:00
Qiu Jian d34a04f896 fix: lbagent containerize issues 2023-02-08 10:49:05 +08:00
Zexi Li a3844d4b28 fix(baremetal): update base image to v0.3.9 (#15598)
ref: https://github.com/yunionio/yunionos/pull/27
2022-12-20 20:40:06 +08:00
wanyaoqi d68fd533e4 fix(host-deployer): os arch and uefi detect (#15351) 2022-11-13 18:18:01 +08:00
wanyaoqi a4e9f86c2a feat(region,host): deploy telegraf (#14915)
Support deploy telegraf on server deploy.
Add start telegraf on guest reboot crontab in guest os.
2022-09-06 00:13:20 +08:00
Zexi Li 7d7e04a454 fix(ansibleserver): update base image to v1.1.1 2022-07-19 11:27:25 +08:00
Zexi Li 1bec4ec045 update baremetal base image 2022-07-17 13:41:01 +08:00
Zexi Li d5fbca1e4f feat(baremetal): update base image to support lvm (#14650) 2022-07-16 12:26:35 +08:00
Zexi Li 787f2e8dcf fix(host): use alpine-build:3.16.0-go-1.18.2-0 2022-06-30 14:22:47 +08:00
Rain Zhengandrain c708e4ac11 Windows monitor agent (#14062)
* feat: add pywinrm to ansibleserver-base

* feat(devtool,ansibleserver): support install monitor agent to windows

* feat: modify Dockerfil.file-repo

Co-authored-by: rain <mac@Rains-MBP.lan>
2022-04-29 00:38:24 +08:00
Zexi Li ab25e87431 feat(build): add onecloud-base:v3.15.4-0 image build file 2022-04-08 01:07:42 +08:00