https://github.com/labring/sealvm
Virtual machine orchestography tool to facilitate the development and test integration of sealos
https://github.com/labring/sealvm
Last synced: 10 months ago
JSON representation
Virtual machine orchestography tool to facilitate the development and test integration of sealos
- Host: GitHub
- URL: https://github.com/labring/sealvm
- Owner: labring
- License: apache-2.0
- Created: 2022-11-06T02:59:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T13:25:06.000Z (almost 3 years ago)
- Last Synced: 2025-06-11T14:59:32.669Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 239 KB
- Stars: 6
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README-v0.0.MD
- License: LICENSE
Awesome Lists containing this project
README
### how to using it in your project
- install vm tools
```shell
sealvm install
```
- init vms
```shell
sealvm run --nodes=1
```
- init vms add dev
```shell
sealvm run --nodes=1 --dev --dev-mounts /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos:/root/go/src/github.com/labring/sealos
```
- reset vms
```shell
sealvm reset
```
- install gcc
```shell
sealvm exec -r golang "sudo apt-get update"
sealvm exec -r golang "sudo apt-get install -y make gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu"
```
- install golang
```shell
sealvm exec -r golang "bash golang-init"
sealvm exec -r golang "source /etc/profile.d/golang.sh && echo \$PATH"
sealvm exec -r golang "git config --global --add safe.directory /root/go/src/github.com/labring/sealos"
sealvm exec -r golang "cd /root/go/src/github.com/labring/sealos && source /etc/profile.d/golang.sh && make build"
```
- sync time
```shell
sealvm exec -r golang "sudo apt-get update"
sealvm exec -r golang "sudo apt-get install -y ntpdate"
sealvm exec -r golang "sudo ntpdate -s ntp1.aliyun.com"
```
- install k8s
```shell
sealvm exec -r golang "scp -o \"StrictHostKeyChecking no\" /root/go/src/github.com/labring/sealos/bin/linux_arm64/sealos root@192.168.64.55:/usr/bin/"
sealvm exec --hostnames default-node-0 "sealos version"
sealvm exec --hostnames default-node-0 "sealos run labring/kubernetes:v1.25.0 --single"
```