Skip to content

Ulexus/docker-qemu-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qemu-bootstrap

A bootstrap script to pull in the ulexus/qemu docker image, and export it to the host filesystem.

This is a means of working around the packet storm problem of running kvm within a container whose image is housed on rbd and whose network is attached to a host bridge. Instead of using docker for execution, use systemd-nspawn.

This is customized for internal use, so it is probably not fit for public consumption.

new vm notes

  1. rbd -p vms create --size <sizeinMB> vm9
  2. Create all the necessary etcd keys:
  • /kvm/9/ram - RAM to allocate, in MB
  • /kvm/9/mac - MAC address
  • /kvm/9/rbd - RBD to use (e.g. vms/vm9)
  • /kvm/9/spice_port - Port on which SPICE server should bind (5900 + vm instance)
  1. Bootstrap the image for installation
  2. ssh cc3
  3. sudo -i
  4. export INSTANCE=9
  5. export BRIDGE_IF=public
  6. /opt/bin/qemu_wrapper.sh -cdrom rbd:isos/ubuntu-14.04.1
  7. Install OS
  8. Halt the OS
  9. Start with fleet: fleetctl start kvm@9

About

Qemu Boostrap script for using ulexus/qemu with CoreOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages