https://github.com/kvaps/opennebula-images
OpenNebula Images Generator
https://github.com/kvaps/opennebula-images
Last synced: 4 months ago
JSON representation
OpenNebula Images Generator
- Host: GitHub
- URL: https://github.com/kvaps/opennebula-images
- Owner: kvaps
- License: apache-2.0
- Created: 2019-06-26T10:28:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T10:08:10.000Z (over 2 years ago)
- Last Synced: 2025-08-08T06:33:43.570Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 46.9 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenNebula Images Generator
Generate your own OpenNebula Images automactically
### Preparation
Install `make` and `libguestfs-tools` packages, or use docker:
```bash
docker build -t guestfish .
docker run -ti --rm -v $PWD:/build guestfish
```
### Usage
Just use `make`, example:
```bash
make images/
```
will suggest:
```
alpine-3.10.qcow2 debian-9.qcow2 opensuse-leap-15.qcow2
centos-6.qcow2 devuan-2.qcow2 ubuntu-16.04.qcow2
centos-7.qcow2 fedora-30.qcow2 ubuntu-18.04.qcow2
```
#### Generate appliance manifest for [OpenNebula Static Marketplace](https://github.com/kvaps/opennebula-static-marketplace):
```bash
./mkapp.static images/alpine-3.10.qcow2 "Alpine 3.10" alpine
```
will output:
```yaml
name: "Alpine 3.10"
logo: "/logos/alpine.png"
source: "https://example.org/images/alpine-3.10.qcow2"
import_id: "ac1bc98b-d824-4471-81ae-cc258507db71"
origin_id: "-1"
type: "IMAGE"
publisher: "Somebody"
format: "qcow2"
description: "Alpine 3.10 image for KVM hosts"
version: "5.8.0-1.20190627"
tags: "alpine"
regtime: "1561810835"
size: "500"
md5: "6b06b9f22f1c23cdf976835ba7cdc01d"
image_template: |
DEV_PREFIX= "vd"
DRIVER= "qcow2"
TYPE= "OS"
vm_template: |
CONTEXT = [ NETWORK ="YES",SSH_PUBLIC_KEY ="$USER[SSH_PUBLIC_KEY]"]
CPU = "1"
GRAPHICS = [ LISTEN ="0.0.0.0",TYPE ="vnc"]
MEMORY = "128"
OS = [ ARCH ="x86_64"]
LOGO = "images/logos/alpine.png"
```