User Tools

Site Tools


ovirt_rpm_howto

Linux Template Creation

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

Connect to engine via oVirt shell

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

Adding ActiveDirectory domain

Add:

engine-manage-domains  -provider=ActiveDirectory -action=add -domain='domain.local' -user='admin' -interactive

Setting engine config values

Set:

engine-config -s UserDefinedVMProperties='hostusb=[\w:&]+;snfilter=^.+$' --cver=3.1

Get:

engine-config -g UserDefinedVMProperties

Virt-v2v

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

ovirt_rpm_howto.txt · Last modified: 2013/02/06 10:06 by dreyou