[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Cannot run vm



Nikola wrote:
Igor Chubin wrote:
On Do, Dez 13, 2007 at 02:29:29 +0100, Nikola wrote:
Hi,

I am trying to run xen on debian etch.
I have followed this steps http://mark.foster.cc/wiki/index.php/Debian_Sarge_on_Xen but when i try
to create domain-u it fails with

---------------------------------------------------------------------------------------------------------------
Using config file "/etc/xen/vm01.cfg".
Error: (22, 'Invalid argument')
---------------------------------------------------------------------------------------------------------------


Hello Nikola,
I suppose that you try to run non Xenified kernel
in PV domain. Of course this is impossible.
You must use Xenified kernel in the domain 0 as well as in U domains.

May be I'm wrong and you use xenified kernel, then, make sure, that your kernels
for dom0 and domU, both are PAE enabled
(or both are non-PAE).

You can not run PV domain with PAE kernel
on PAE host (or vice versa).

If it will not help, please show your config files.


This is all my Debian setup:

------------ grub/menu.lst ------------
title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-5-xen-686
root            (hd0,1)
kernel          /boot/xen-3.0.3-1-i386-pae.gz
module /boot/vmlinuz-2.6.18-5-xen-686 root=/dev/sda2 ro console=tty0
module          /boot/initrd.img-2.6.18-5-xen-686
savedefault

title           Debian GNU/Linux, kernel 2.6.18-5-686
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.18-5-686 root=/dev/sda2 ro
initrd          /boot/initrd.img-2.6.18-5-686
savedefault

title           Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode)
root            (hd0,1)
kernel         /boot/vmlinuz-2.6.18-5-686 root=/dev/sda2 ro single
initrd          /boot/initrd.img-2.6.18-5-686
---------------------------------------


------------ in-console ------------
# dpkg -l |grep xen

ii linux-image-2.6.18-5-xen-686 2.6.18.dfsg.1-13etch4 Linux 2.6.18 image on i686 ii linux-modules-2.6.18-5-xen-686 2.6.18.dfsg.1-13etch4 Linux 2.6.18 modules on i686 rc xen-hypervisor-3.0.3-1-i386 3.0.3-0-4 The Xen Hypervisor on i386 ii xen-hypervisor-3.0.3-1-i386-pae 3.0.3-0-4 The Xen Hypervisor on i386 with pae ii xen-linux-system-2.6.18-5-xen-686 2.6.18.dfsg.1-13etch4 XEN system with Linux 2.6.18 image on i686 ii xen-tools 2.8-2 Tools to manage debian XEN virtual servers ii xen-utils-3.0.3-1 3.0.3-0-4 XEN administrative tools ii xen-utils-common 3.0.3-0-2 XEN administrative tools - common files
------------------------------------


------------------- in-console -----------------------
# ls /boot -alh
total 13M
drwxr-xr-x  3 root root 4.0K 2007-12-13 14:52 .
drwxr-xr-x 23 root root 4.0K 2007-12-13 01:20 ..
-rw-r--r--  1 root root  70K 2007-10-03 01:31 config-2.6.18-5-686
-rw-r--r--  1 root root  66K 2007-10-03 07:12 config-2.6.18-5-xen-686
drwxr-xr-x  2 root root 4.0K 2007-12-13 15:03 grub
-rw-r--r--  1 root root 4.3M 2007-12-07 22:35 initrd.img-2.6.18-5-686
-rw-r--r--  1 root root 4.4M 2007-12-07 22:40 initrd.img-2.6.18-5-xen-686
-rw-r--r--  1 root root 706K 2007-10-03 06:49 System.map-2.6.18-5-686
-rw-r--r--  1 root root 716K 2007-10-03 07:12 System.map-2.6.18-5-xen-686
-rw-r--r--  1 root root 1.3M 2007-10-03 06:49 vmlinuz-2.6.18-5-686
-rw-r--r--  1 root root 1.2M 2007-10-03 07:11 vmlinuz-2.6.18-5-xen-686
-rw-r--r--  1 root root 254K 2007-10-23 03:24 xen-3.0.3-1-i386-pae.gz
------------------------------------------------------


-------------- vm01_neo.cfg ------------------
kernel = "/boot/xen-3.0.3-1-i386-pae.gz"

Use kernel = "/boot/vmlinuz-2.6.18-5-xen-686".

You may also have to use a ramdisk = to satisfy any module requirements while the guest is starting up.

--Sadique

memory = 64
name = "vm01"
disk = [ 'file:/xen_vm/domains/vm01/diskimage,sda1,w','file:/xen_vm/domains/vm01/swapimage,sda2,w' ]
root = "/dev/sda1 ro"
------------------------------------------------


after running: xm create vn01_neo.cfg -c

Using config file "vm01_neo.cfg".
Error: (22, 'Invalid argument')



------------ xend.log ------------
VmError: (22, 'Invalid argument')
[2007-12-13 14:54:16 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=2 [2007-12-13 14:54:16 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(2) [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.create(['vm', ['name', 'vm01'], ['memory', 64], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen-3.0.3-1-i386-pae.gz'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/diskimage'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/swapimage'], ['dev', 'sda2'], ['mode', 'w']]]]) [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) parseConfig: config is ['vm', ['name', 'vm01'], ['memory', 64], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen-3.0.3-1-i386-pae.gz'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/diskimage'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/swapimage'], ['dev', 'sda2'], ['mode', 'w']]]] [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/boot/xen-3.0.3-1-i386-pae.gz'], ['root', '/dev/sda1 ro']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 'vm01', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/diskimage'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'file:/xen_vm/domains/vm01/swapimage'], ['dev', 'sda2'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': None} [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.construct: None [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.initDomain: 3 1.0 [2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) Balloon: 66492 KiB free; need 65536; done. [2007-12-13 14:55:50 xend 3028] INFO (__init__:1072) buildDomain os=linux dom=3 vcpus=1
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) dom            = 3
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) image = /boot/xen-3.0.3-1-i386-pae.gz
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) store_evtchn   = 1
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) console_evtchn = 2
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) cmdline = root=/dev/sda1 ro
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) ramdisk        =
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) vcpus          = 1
[2007-12-13 14:55:50 xend 3028] DEBUG (__init__:1072) features       =
[2007-12-13 14:55:50 xend.XendDomainInfo 3028] ERROR (__init__:1072) Domain construction failed
Traceback (most recent call last):
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py", line 195, in create
   vm.initDomain()
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py", line 1363, in initDomain
   raise VmError(str(exn))
VmError: (22, 'Invalid argument')
[2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=3 [2007-12-13 14:55:50 xend.XendDomainInfo 3028] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(3)
----------------------------------


Please advise.
tnx.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.