XEN - not able to build a VM

Hello,
i am a XEN newbie. I am not able to create a new VM.

I am using:

andreas@linux-kcr1:~> cat /etc/SuSE-release
openSUSE 11.1 (i586)
VERSION = 11.1

I have already sucessful installed XEN and my System is running with the XEN Kernel als well as with the PAE Kernel.

When running with the PAE Kernel i see all recommenden CPU Flags for virtualisation. See below.

CPU Flags:

andreas@linux-kcr1:~> grep vm /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8_legacy
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8_legacy
*********************************************************************
andreas@linux-kcr1:~> cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping        : 3
cpu MHz         : 1000.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8_legacy
bogomips        : 1999.97
clflush size    : 64
power management: ts fid vid ttp tm stc

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 67
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping        : 3
cpu MHz         : 1000.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8_legacy
bogomips        : 1999.97
clflush size    : 64
power management: ts fid vid ttp tm stc
*********************************************************************

If i try to create a new VM i get following error message that the processors in this computer will not support a complete virtualisation.

Below the german error message text:


Die Prozessoren in diesem Computer unterstützen keine vollständige
Virtualisierung.


This error message is given when I started the PAE Kernel as well when i start the XEN Kernel in the moment i try to create a new VM. I want to create a Windows(64bit) VM. What did i wrong? Can anybody help me?

I saw also that when i look for the CPU flags when running XEN the virtualisation flags for AMD Pacifica are not shown. I thing it is because the System is running already virtualized and therefore is no hardware VM support inside of the running VM.

If you know what to do now or how to analyze the issue please help me :wink:

THX
Andreas

PS: I am not sure if this forum is the correct one. So don’t hesitate to recommend an other forum.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In order to use Xen you must be booted to the Xen kernel. Start there and
try posting the command you are using to create the VM (unless you are
using the GUI, and then describe your exact steps) as well as the veratim
output (English, or a rough translation, would be nice). Also if you are
running this box in a VM you will not be able to create more VMs within it
very easily (if at all). Having your ‘uname -a’ output would be nice to
confirm what you are doing as well.

The command-line way to manipulate VMs is using /usr/sbin/xm and there are
other commands for creating the VM though I do not remember that one offhand.

Good luck.

AndreasHezel wrote:
> Hello,
> i am a XEN newbie. I am not able to create a new VM.
>
> I am using:
>
> Code:
> --------------------
> andreas@linux-kcr1:~> cat /etc/SuSE-release
> openSUSE 11.1 (i586)
> VERSION = 11.1
> --------------------
>
>
> I have already sucessful installed XEN and my System is running with
> the XEN Kernel als well as with the PAE Kernel.
>
> When running with the PAE Kernel i see all recommenden CPU Flags for
> virtualisation. See below.
>
> CPU Flags:
>
> Code:
> --------------------
> andreas@linux-kcr1:~> grep vm /proc/cpuinfo
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
> extapic cr8_legacy
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
> extapic cr8_legacy
> *********************************************************************
> andreas@linux-kcr1:~> cat /proc/cpuinfo
> processor : 0
> vendor_id : AuthenticAMD
> cpu family : 15
> model : 67
> model name : AMD Athlon™ 64 X2 Dual Core Processor 5200+
> stepping : 3
> cpu MHz : 1000.000
> cache size : 1024 KB
> physical id : 0
> siblings : 2
> core id : 0
> cpu cores : 2
> apicid : 0
> initial apicid : 0
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 1
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
> extapic cr8_legacy
> bogomips : 1999.97
> clflush size : 64
> power management: ts fid vid ttp tm stc
>
> processor : 1
> vendor_id : AuthenticAMD
> cpu family : 15
> model : 67
> model name : AMD Athlon™ 64 X2 Dual Core Processor 5200+
> stepping : 3
> cpu MHz : 1000.000
> cache size : 1024 KB
> physical id : 0
> siblings : 2
> core id : 1
> cpu cores : 2
> apicid : 1
> initial apicid : 1
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 1
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
> extapic cr8_legacy
> bogomips : 1999.97
> clflush size : 64
> power management: ts fid vid ttp tm stc
> *********************************************************************
>
> --------------------
>
>
> If i try to create a new VM i get following error message that the
> processors in this computer will not support a complete virtualisation.
>
> Below the german error message text:
> *********************************************************************
> Die Prozessoren in diesem Computer unterstützen keine vollständige
> Virtualisierung.
> *********************************************************************
>
> This error message is given when I started the PAE Kernel as well when
> i start the XEN Kernel in the moment i try to create a new VM. I want to
> create a Windows(64bit) VM. What did i wrong? Can anybody help me?
>
> I saw also that when i look for the CPU flags when running XEN the
> virtualisation flags for AMD Pacifica are not shown. I thing it is
> because the System is running already virtualized and therefore is no
> hardware VM support inside of the running VM.
>
> If you know what to do now or how to analyze the issue please help me
> :wink:
>
> THX
> Andreas
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJKks59AAoJEF+XTK08PnB5y3kP/jz6rCB0o/nSSlK6u+uJiqcU
XQJ6b18PXgZFyXOYX8qVWN68xsPEQxYFj6qj7DnfGLTuwON8VOs978JLvNCcAW/b
+TCx6zUaFyY+PLPAgba7a7UqK2B4dvxHJSqDAF2iB9d6Vk/V/AS+Q2wxJW1X5QRS
1qApE9QybQvAMsBb2LgDPgIETsjwao5gy3MaImcECVqcoe+1AyOZ3U4G5mCKXmXO
0Iw3T3Vpta8DldzZuG7H8B3aFyai1hqp9jaMMJkpmMoTjoKljCH0pRtZ5boSKf6S
R9w4Ny25v5WWc33Iy/K7IX6sAxEJeLICK8lZsTF1iN03PQ+rCJyp7it9+8daKNsU
wJ/GL4SDxhF1v5ThOpcl6vkg4S00+pUKEB95R+dI/RFwYnK2YBftHJ1dHUth1opo
bWihLVbxn1/GPUSDtBiM5aj/6pe+nUuNL8H9HvHQJFYmJ7nen1lbz3dNlR4RTWrw
DcN4CZTHjvGc8iskQnICVJzNvuPC2NgruLOTs8nRcduIT/WijNtmwnnovPaqLB9L
L/Do2d4LE4/ZaNkqIaKuWfoGY/NWRXbyatoVI+274HyBotl11AgbZOE2+jfWemND
6JaKt7Hushx8oCcdB4O3JNJgmkaGePqQN99WFn4zkc/WTi4oHDvjdnCf4ORcWfMz
pRtX3rPwFZJVeSIRrkOb
=ND1T
-----END PGP SIGNATURE-----

THX for your information.
Now at first lets print the kernel information:

Linux linux-kcr1 2.6.27.29-0.1-xen #1 SMP 2009-08-15 17:53:59 +0200 i686 athlon i386 GNU/Linux

Like you can see i started the XEN kernel. The first times i used the YAST to create a machine. But i think it is better to discuss here when i use the command line.

So I used following configuration:

# Windows7 XEN config file
# win7.conf

import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 1024

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "xenwin7"
vif =  'type=ioemu, bridge=xenbr0' ]
acpi = 1
apic = 1
disk =  'file:/home/andreas/xen/xenwin7.img,hda,w', 'file:/home/andreas/xen/win7dvd.iso,hdc:cdrom,r' ]

device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d) 
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=0
vnc=1
vncconsole=1
vncpasswd=''

serial='pty'
usbdevice='tablet'

I created a 10GB file due dd from /dev/zero/.


linux-kcr1:/home/andreas/xen # xm create win7.conf
Using config file "./win7.conf".
Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?

So I am back to my old problem. Under the virtualized XEN Kernel i get the error message that my CPU doesn’t support SVM and if i look to the CPU flags running my XEN Kernel that is true.

If i try to create the machine with the PAE Kernel i get the error message that i should use a XEN Kernel.

How can i rund the XEN Kernel without using virtualisation?

THX a lot
Andreas