Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joneskoo/cloud-init-start
Quickly bring up Ubuntu Cloud instances in local KVM with virsh using cloud-init
https://github.com/joneskoo/cloud-init-start
Last synced: 5 days ago
JSON representation
Quickly bring up Ubuntu Cloud instances in local KVM with virsh using cloud-init
- Host: GitHub
- URL: https://github.com/joneskoo/cloud-init-start
- Owner: joneskoo
- License: mit
- Archived: true
- Created: 2014-11-27T23:38:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-06T20:17:16.000Z (almost 10 years ago)
- Last Synced: 2024-08-01T12:36:35.832Z (3 months ago)
- Language: Makefile
- Size: 625 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - joneskoo/cloud-init-start - Quickly bring up Ubuntu Cloud instances in local KVM with virsh using cloud-init (others)
README
cloud-init-start
=================Quickly bring up Ubuntu or FC20 Cloud instances in local
KVM with virsh using cloud-config.Requirements:
* Make
* wget
* cloud-utils (cloud-localds)
* qemu/kvm
* libvirt (virsh)
* virtinst (virt-install)Usage:
.. code-block:: shell
# Define cloud-config data
$ editor myhost01.user-dataThe cloud-config user data looks something like this:
.. code-block:: yaml
#cloud-config
hostname: example
manage_etc_hosts: True
ssh_pwauth: False
ssh_authorized_keys:
- ssh-rsa AAAAB.....
package_upgrade: trueYou can find more examples of what you can do with cloud-config
from the `cloud-init documentation `_.If you saved the cloud-config to file myhost01.example, you can
now launch a virtual machine... code-block:: shell
# Ubuntu 14.04 Trusty
$ make ubuntu-myhost01
OR
# Fedora Core 20
$ make fc20-myhost01The Makefile:
1. downloads the base cloud image (reused for new VMs),
2. creates a root disk image for it, packages the user-data
to an ISO 9660 file, and
3. defines the machine with virt-install so it can be started.You can now start the VM with:
.. code-block:: shell
$ virsh start myhost01
What you do with your VM after this is up to you.