Comments (2)
There probably many ways it could be done. One example would be to take an argument of a json file with the distro definition and parse it using jq
(available in most debian-based and rpm-based distros).
For this file:
{
"centos8": {
"qcow": "CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2",
"os_variant": "centos8",
"image_url": "https://cloud.centos.org/centos/8/x86_64/images",
"disk_format": "qcow2",
"login_user": "centos"
}
}
You could read the settings like this:
$ cat distros.json | jq .centos8.qcow
"CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2"
I've made this gist with all "distro variables" read using jq:
https://gist.github.com/seocam/e0e6ff8e4b2b26884cda1ca046ec5921
from kvm-install-vm.
Would you be able to walk me through how you would implement this feature?
from kvm-install-vm.
Related Issues (20)
- Share a directory from host machine to vm HOT 2
- No need to remove cloud-init HOT 4
- No static network options? HOT 5
- License? HOT 4
- possible CoreOS? HOT 3
- ubuntu1804 cannot boot HOT 8
- cloud-init user-data example
- Amazon Linux 2 doesn't boot if disk resized HOT 1
- Network config alternative HOT 3
- cloud init custom user-data script not picked up HOT 4
- How to get root on created instance HOT 1
- "kvm-install-vm delete" doesn't work if the VM has snapshots
- Debian 10 cloud-init not properly intializing HOT 20
- missing function detach-disk
- Unused var SOURCE in attach-disk
- Could not create domain with virt-install HOT 2
- Adding Rocky Linux HOT 4
- How to add Bridge1 Network Adaptor to Existing VM
- start created vm upon reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kvm-install-vm.