Just a quick post about how to run UCS (Core Edition in my case) with KVM on gentoo.
First off I go with the assumption that
If any of the above are not yet set up: https://wiki.gentoo.org/wiki/QEMU
First download the Virtualbox Image from https://www.univention.de/download/ .
Further for the kvm name I use ucs-dc
next we convert the image to qcow2:
qemu-img convert -f vmdk -O qcow2 UCS-DC/UCS-DC-virtualbox-disk1.vmdk UCS-DC_disk1.qcow2
create your init script link:
cd /etc/init.d; ln -s qemu kvm.ucs-dc
Check / change the following:
run it with
connect with your favourite VNC client and set up your UCS Server.
One thing I did on the fileserver instance (I run 3 UCS kvms at the moment - DC, Backup-DC and File Server):
I created a LVM Volume for the file share on the Host, and mapped it to the KVM - here's the config line:
OTHER_ARGS="-drive format=raw,file=/dev/mapper/<your volume devide>,if=virtio,aio=native,cache.direct=on"
works great for me, and I will also add another one for other shares later I think. but this way if i really have any VM problems my files are just on the lvm device and i can get to it easily (also there are lvm snapshots,.. that could be useful eventually)Share on Twitter Share on Facebook