From: Mark Doffman <mark.doffman(a)codethink.co.uk>
The following patch series adds a virtualization stratum to baserock.
This stratum includes KVM, libvirt and virt-manager to allow baserock
systems to act as a virtualizaiton host.
Repo:
git://git.baserock.org/baserock/baserock/morphs
Ref: baserock/markdoffman/virtualization
SHA1: 15b58013289f800d411259b935cb15b6d469af37
Target: master
To test the virtualization features:
Build and run a system containing the virtualization stratum. I have
tested nested virtualization only using baserock running on KVM.
Virtualbox may or may not work. So far x86_64 systems are the only
ones supported.
Once running start libvirtd.
systemctl start libvirtd
I haven't yet added the symlink to run libvirtd by default. If you are
running the baserock host within a libvirt virtual machine the 'default'
network may have failed to start due to conflicting IP addresses.
virsh net-list
Should show the 'default' network up and running. If not:
virsh net-edit default
Change the ip addresses in the 'default' config to something different.
virsh net-start default
Once libvirtd and the default network are installed you may use
virt-install to create a virtual machine within baserock.
virt-install --name br-nested \
--disk path=baserock-current-base-x86_64.img,bus=ide,format=raw \
--memory 1024 --accelerate --nographics --import
Libvirt is compiled with VNC support so it may be possible to access
the screen of the nested virtual machine from your root OS, I haven't
yet tried.
Issues:
* VNC compiled but not tested.
* Libvirt ONLY compiled for qemu/kvm no other guest types supported.
Happy baserock hosted virtualization!
Mark
Mark Doffman (3):
Add virtualization stratum.
Add XZ dependency to libxml2
Update gobject-introspection version.
core.morph | 17 ++++----
foundation.morph | 6 ++-
genivi-foundation.morph | 4 --
virtualization.morph | 103 ++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 117 insertions(+), 13 deletions(-)
create mode 100644 virtualization.morph
--
1.8.4