FIXME
Before creating template.
Clean host ssh keys
rm -f /etc/ssh/*key*
Clean root password and force password change:
passwd -d root
chage -d 0 root
To remove the reference to eth0 remove or move out file /etc/udev/rules.d/70-persistent-net.rules mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old
Install (if not installed)
yum install ovirt-engine-cli
Connect
ovirt-shell -c -I -l https://localhost/api -u admin@internal
List hosts
list hosts
Add:
engine-manage-domains -provider=ActiveDirectory -action=add -domain='domain.local' -user='admin' -interactive
Set:
engine-config -s UserDefinedVMProperties='hostusb=[w:&]+;snfilter=^.+$' --cver=3.1
Get:
engine-config -g UserDefinedVMProperties
Import existing kvm vms into oVirt.
To install (version 0.8.3-5 resides in standart repositories):
yum install virt-v2v
example:
virt-v2v -b ovirtmgmt -i libvirtxml -o rhev -os nfs.domain.local:/ovirt/export vm.xml
nfs.domain.local:/ovirt/export - preconfigured oVirt export domain
vm.xml - libvirt vm xml description