Download the sources and extract it:
tar -xvzf qemu-init-latest.tgz
Change into the folder
qemu-init . Check out the file
conf-build  and change it to your needs. Before qemu-init could be compiled the user and group have to exist. Otherwise
configure  will fail. It is recommended to create user/group with the following options:
$> groupadd kvm $> useradd -g kvm -d /home/qemu -m -s /bin/bash qemud $> usermod -L qemud
The user is locked and doesn't require a password - it will never have to login interactively. As usual all files and folders in the home directory have to be owned by qemud.kvm. Ordinary users have to be in the group kvm to execute qemu-init commands. The commands themselves will run as user qemud - usually, with exceptions.
Furthermore set some install options. Some people may not want that this will be done automatically or an option is not required in general. An option is true if it contains any value. See the comments in
conf-build  for details too.
This defines if the required sudoers file will be installed or not. If this file will not be installed automatically,
qemu-init-sudo-grp  HAVE TO be installed by hand. Otherwise qemu-init will not work properly.
This option adds the bundled public ssh key to
authorized_keys . The file stays untouched if it contains the corresponding key line already. It is required for remote features only, e.g. the VNC Windows client.
To build qemu-init do:
./configure make make install