KVM configuration help

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

KVM configuration help

Postby msdobrescu » Wed Sep 28, 2011 19:59

Hello,

I have a disk with two partitions, first is Sabayon, next a Windows 7.
I need to start the windows 7 under KVM.
I have installed kvm, libvirt, but I can't configure and make work them.
I have a config like here: http://forums.gentoo.org/viewtopic-t-81 ... art-0.html

libvirtd throws the error:

Code: Select all
/etc/init.d/libvirtd restart
 * Starting libvirtd ...
21:28:01.090: 22235: info : libvirt version: 0.9.4
21:28:01.090: 22235: error : remoteConfigGetAuth:745 : remoteReadConfigFile: /etc/libvirt/libvirtd.conf: auth_tcp: unsupported auth sasl
 * start-stop-daemon: failed to start `/usr/sbin/libvirtd'                                                                                                 [ !! ]
 * ERROR: libvirtd failed to start


I guess I should config sasl2, but when I try to add the users to the sasl2 database, I get:

Code: Select all
saslpasswd2: generic failure


Do I have to configure sasl2 first? How?

I couldn't find a step by step prerequisites and kvm setup.
Is there anybody there that knows how to do this?

Thank you.
User avatar
msdobrescu
Advanced Hen
 
Posts: 271
Joined: Sun Aug 21, 2011 8:48

Re: KVM configuration help

Postby HolgiB » Thu Oct 20, 2011 18:39

Hi there,

not shure how libvirt is really involved with your case since it is only used to control the VM but not mandatory to launch kvm. Under Linux launching a VM can be as simple as
qemu-kvm -m 2048 -hda yourhddfile.qcow2 -cdrom youriso.iso -boot d

This would start a KVM machine with 2 GB RAM, a virtual HDD (you have previously to create with qemu-img) and a iso located on your drive. Then the iso (= virtual cdrom) will be booted. This would be the typical command needed to start a VM with an Linux ISO attached to set up a Linux VM.

Try in the first place if kvm works at all prior doing anything with the libvirt stuff.
The corresponding kernel modules (kvm / kvm-amd or kvm-intel) must be loaded in the first place though.

Just a warning:
In general it is not a good idea to boot into a working partition of a Windows. This can completely screw up your system. If you require to access file on NTFS then use NTFS-3G.

KVM is able to use a physical HDD like this:
qemu-kvm .. -drive file=/dev/hdb1,media=disk

hdb1 could be your Windows partition.

HTH,
-H.
My Sabayon Box:
Sabayon x64, XFCE
Intel Core2 Duo Processor E4500 (2x2.2GHz)
3GB DDR2 RAM
ATI HD4670
Open your source, open your mind
User avatar
HolgiB
Young Hen
 
Posts: 31
Joined: Mon Aug 01, 2011 19:18


Return to Virtual Managers

Who is online

Users browsing this forum: dunsurfin and 1 guest