You are not logged in.

#1 2009-03-10 08:00:25

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

Could not create virtual machine in virt-manager with kvm

I installed the following packages:

libvirt 0.6.1-1 (modified PKGBUILD from AUR)
kvm 84-1
qemu 0.10.0-1
virtinst 0.400.3-1 (modified PKGBUILD from AUR)
virtviewer 0.0.3-2
virt-manager 0.7.0-1(modified PKGBUILD from AUR)

And my current user belongs to the following groups:

disk lp audio optical storage power locate hal camera kvm libvirt tinh

Here is a part of my rc.conf

...
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(e100 mii iwl3945 kvm kvm-intel)
...
DAEMONS=(syslog-ng @hal @network @dnsmasq @oss @cups @fuse @libvirtd !netfs !crond)

List of loaded kernel modules:

modprobe -l | grep kvm
/lib/modules/2.6.28-ARCH/kernel/arch/x86/kvm/kvm.ko
/lib/modules/2.6.28-ARCH/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/2.6.28-ARCH/kernel/arch/x86/kvm/kvm-intel.ko

My CPU does support Intel VT.

[tinh@tinh-laptop ~]$ egrep '^flags.*(vmx|svm)' /proc/cpuinfo
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts pni monitor vmx est tm2 xtpr pdcm
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts pni monitor vmx est tm2 xtpr pdcm
[tinh@tinh-laptop ~]$

My kernel version is:

uname -a
Linux tinh-laptop 2.6.28-ARCH #1 SMP PREEMPT Sun Feb 22 11:03:50 UTC 2009 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz GenuineIntel GNU/Linux

I also attached a screenshot of virt-manager.

Any helps are welcomed.
Thanks

Last edited by tinhtruong (2009-03-10 08:10:50)

Offline

#2 2009-03-10 17:59:44

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: Could not create virtual machine in virt-manager with kvm

Maybe the command line shows some errors.Try something like

/usr/bin/kvm -M pc -monitor pty -boot d -hda /dev/vg01/opsi -cdrom /root/debian-500-i386-netinst.iso -net nic,macaddr=00:16:3e:49:da:10,vlan=0 -net tap,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc :0

-hda is where you want to install the machine. Here it's a logical volume, but you can also use an image.
-cdrom is the installation medium
you can probably omit -vnc :0. I used it because I install machines on servers without gui.

Offline

#3 2009-04-23 12:23:33

gluni
Member
Registered: 2009-01-29
Posts: 12

Re: Could not create virtual machine in virt-manager with kvm

Hi there,

i had the same problems. For me it helped to create a "storage group" as found in the details of ur host connection.
My list of storage groups was empty before.
Also i had to stop the dnsmask daemon (or remove it from rc.conf) to create a new machine using the dialog.

Hope it helps someone.

Offline

Board footer

Powered by FluxBB