Discussion:
XEN 3.4.2 /proc/xen/balloon doesn't exist
gabor
2010-01-17 22:29:30 UTC
Permalink
I am new to XEN. Try to move from vmware and Virtualbox (I use both now).

Unfortunately, Debian Squeeze no longer support xen (out of the box no dom0)

So I am trying to make it myself.

I have installed xen 3.4.2 from source, did make world and installed.

Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.

I can boot xen, with grub (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.

Here I got stuck trying to create a hvm instance for installation of OS.

***@rasnew:/etc/xen# xm create -c /etc/xen/test1.cfg
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'

Here is the error I can not figure out. I did search for this and the
common theme you have not enough memory. I am not sure how come ... see
xm info.... it says 6427 MB free

I actually do not have that file, maybe the balloon driver is not
working ?? I checked it is enable in the kernel config:
***@rasnew:/etc/xen# cat /usr/src/linux-2.6-xen/.config|grep CONFIG_XEN*

CONFIG_XEN=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=32
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_DEBUG_FS=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_DOM0_PCI=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_NETCHANNEL2=y
CONFIG_XEN_NETDEV2_BACKEND=y
CONFIG_XEN_NETDEV2_FRONTEND=y
CONFIG_XEN_NETDEV2_BYPASSABLE=y
CONFIG_XEN_NETDEV2_BYPASS_ENDPOINT=y
CONFIG_XEN_NETDEV2_AUTOMATIC_BYPASS=y
CONFIG_XEN_KBDDEV_FRONTEND=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
# CONFIG_XEN_BLKDEV_TAP is not set
CONFIG_XEN_NETDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
# CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
# CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
# CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set
# CONFIG_XEN_PCIDEV_BE_DEBUG is not set
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_S3=y

But then there is no file /proc/xen/balloon

***@rasnew:/etc/xen# ls -lsa /proc/xen
total 0
0 drwxr-xr-x 2 root root 0 2010-01-15 11:37 .
0 dr-xr-xr-x 102 root root 0 2010-01-15 11:33 ..
0 -r--r--r-- 1 root root 0 2010-01-15 11:37 capabilities
0 -rw------- 1 root root 0 2010-01-15 11:37 privcmd
0 -rw------- 1 root root 0 2010-01-15 11:37 xenbus
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_kva
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_port





Here is the dom0 info

***@rasnew:/etc/xen# xm info
host : rasnew
release : 2.6.31.6
version : #1 SMP Wed Jan 13 17:26:21 EST 2010
machine : i686
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2992
hw_caps :
bfebfbff:20100000:00000000:00000140:0408e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 7519
free_memory : 6427
node_to_cpu : node0:0-1
node_to_memory : node0:6427
xen_major : 3
xen_minor : 4
xen_extra : .2
xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xf5800000
xen_changeset : unavailable
cc_compiler : gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
cc_compile_by : root
cc_compile_domain : nyo.unep.org
cc_compile_date : Thu Jan 14 15:41:02 EST 2010
xend_config_format : 4

Here is the current Domai 0 info...

***@rasnew:/etc/xen# xm list -l
(domain
(domid 0)
(bootloader )
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_reboot restart)
(on_poweroff destroy)
(maxmem 4194303)
(memory 1024)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 292.008824927)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)



Can anyone help me on this ... let me know what other information or
config file I should post...

Regards,

Gabor
Gabor Szilagyi
2010-01-15 19:50:33 UTC
Permalink
I am new to XEN. Try to move from vmware and Virtualbox (I use both now).

Unfortunately, Debian Squeeze no longer support xen (out of the box no dom0)

So I am trying to make it myself.

I have installed xen 3.4.2 from source, did make world and installed.

Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.

I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.

Here I got stuck trying to create a hvm instance for installation of OS.

***@rasnew:/etc/xen# xm create -c /etc/xen/test1.cfg
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'

Here is the error I can not figure out. I did search for this and the
common theme you have not enough memory. I am not sure how come ... see
xm info.... it says 6427 MB free

I actually do not have that file, maybe the balloon driver is not
working ?? I checke it is enable in the kernel config:
***@rasnew:/etc/xen# cat /usr/src/linux-2.6-xen/.config|grep CONFIG_XEN*
CONFIG_XEN=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=32
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_DEBUG_FS=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_DOM0_PCI=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_NETCHANNEL2=y
CONFIG_XEN_NETDEV2_BACKEND=y
CONFIG_XEN_NETDEV2_FRONTEND=y
CONFIG_XEN_NETDEV2_BYPASSABLE=y
CONFIG_XEN_NETDEV2_BYPASS_ENDPOINT=y
CONFIG_XEN_NETDEV2_AUTOMATIC_BYPASS=y
CONFIG_XEN_KBDDEV_FRONTEND=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
# CONFIG_XEN_BLKDEV_TAP is not set
CONFIG_XEN_NETDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
# CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
# CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
# CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set
# CONFIG_XEN_PCIDEV_BE_DEBUG is not set
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_S3=y

But then there is no file /proc/xen/balloon

***@rasnew:/etc/xen# ls -lsa /proc/xen
total 0
0 drwxr-xr-x 2 root root 0 2010-01-15 11:37 .
0 dr-xr-xr-x 102 root root 0 2010-01-15 11:33 ..
0 -r--r--r-- 1 root root 0 2010-01-15 11:37 capabilities
0 -rw------- 1 root root 0 2010-01-15 11:37 privcmd
0 -rw------- 1 root root 0 2010-01-15 11:37 xenbus
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_kva
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_port





Here is the dom0 info

***@rasnew:/etc/xen# xm info
host : rasnew
release : 2.6.31.6
version : #1 SMP Wed Jan 13 17:26:21 EST 2010
machine : i686
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2992
hw_caps :
bfebfbff:20100000:00000000:00000140:0408e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 7519
free_memory : 6427
node_to_cpu : node0:0-1
node_to_memory : node0:6427
xen_major : 3
xen_minor : 4
xen_extra : .2
xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xf5800000
xen_changeset : unavailable
cc_compiler : gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
cc_compile_by : root
cc_compile_domain : nyo.unep.org
cc_compile_date : Thu Jan 14 15:41:02 EST 2010
xend_config_format : 4

Here is the current Domai 0 info...

***@rasnew:/etc/xen# xm list -l
(domain
(domid 0)
(bootloader )
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_reboot restart)
(on_poweroff destroy)
(maxmem 4194303)
(memory 1024)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 292.008824927)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)



Can anyone help me on this ... let me know what other information or
config file I should post...

Regards,

Gabor
Pasi Kärkkäinen
2010-01-22 07:40:12 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am new to XEN. Try to move from vmware and Virtualbox (I use both now).
Unfortunately, Debian Squeeze no longer support xen (out of the box no dom0)
Afaik Debian guys are working on it.. dom0 kernel should appear before Squeeze.
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
For GRUB2 see:
http://wiki.xensource.com/xenwiki/XenCommonProblems
Here I got stuck trying to create a hvm instance for installation of OS.
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'
Did you mount /proc/xen ? You need to have xenfs mounted.

See:
http://wiki.xensource.com/xenwiki/XenParavirtOps

For more information about mounting /proc/xen.

-- Pasi
Gabor Szilagyi
2010-01-26 16:49:43 UTC
Permalink
Post by Pasi Kärkkäinen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am new to XEN. Try to move from vmware and Virtualbox (I use both now).
Unfortunately, Debian Squeeze no longer support xen (out of the box no dom0)
Afaik Debian guys are working on it.. dom0 kernel should appear before Squeeze.
Hi Pasi,

Thanks for the comments.

That would be great...
Post by Pasi Kärkkäinen
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
Yes I am pretty sure.. I can boot it on the bare hardware not problem
Post by Pasi Kärkkäinen
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
http://wiki.xensource.com/xenwiki/XenCommonProblems
Well, I have looked at this and went a head re-install Debian Squeeze
with grub2 ...

Now, I can not even boot xen-3.4.2.gz which I built again from source....

I tried the debian package (squeeze has 3.4.2 as well) I can not boot
even the hypervisor (and can not downgrade grub2 to the old grub)...

I can see that booting xen with the new grub gives a lot of people grief.

I tried all the suggestions like dummy=dummy, double the file name on
booth multiboot and module lines I also compiled the command line into
the dom0 kernel (the 2.6.31.6 from the Jeremy tree). I know that command
line is OK since I can boot it again on the bare hardware no problem....

I am not sure what I am doing wrong
Post by Pasi Kärkkäinen
Here I got stuck trying to create a hvm instance for installation of OS.
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'
Did you mount /proc/xen ? You need to have xenfs mounted.
No, /proc/xen was there (see my earlier post) except the
/proc/xen/ballon file was not there (five others were there)
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenParavirtOps
I can probably recite this already nothing there solved my problem. I
really like to know if anyone can actually boot the hypervisor built
from source with kernel on Debian Squeeze with grub2 .... the kernel
included in the source 2.6.18 doesn't support my ethernet card and
pretty old even udev is too old for some stuff (OK I can run everything
in domU if I ever can create one :-))

I am not new to linux (started 1997) this maybe the first project I will
have to give up on ... virtbox and vmware just worked but I would prefer
Post by Pasi Kärkkäinen
For more information about mounting /proc/xen.
-- Pasi
Pasi Kärkkäinen
2010-01-26 16:53:34 UTC
Permalink
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
Yes I am pretty sure.. I can boot it on the bare hardware not problem
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
http://wiki.xensource.com/xenwiki/XenCommonProblems
Well, I have looked at this and went a head re-install Debian Squeeze
with grub2 ...
Now, I can not even boot xen-3.4.2.gz which I built again from source....
Uhm.. what error do you get?

Can you set up a serial console to log the full boot process?

See:
http://wiki.xensource.com/xenwiki/XenSerialConsole
Post by Gabor Szilagyi
I tried the debian package (squeeze has 3.4.2 as well) I can not boot
even the hypervisor (and can not downgrade grub2 to the old grub)...
I can see that booting xen with the new grub gives a lot of people grief.
Yeah, grub2 has been pretty problematic..
Post by Gabor Szilagyi
I tried all the suggestions like dummy=dummy, double the file name on
booth multiboot and module lines I also compiled the command line into
the dom0 kernel (the 2.6.31.6 from the Jeremy tree). I know that command
line is OK since I can boot it again on the bare hardware no problem....
I am not sure what I am doing wrong
We need more information about what exactly fails.. if you cannot set up
a serial console, you could always record a video of the boot process..
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
Here I got stuck trying to create a hvm instance for installation of OS.
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'
Did you mount /proc/xen ? You need to have xenfs mounted.
No, /proc/xen was there (see my earlier post) except the
/proc/xen/ballon file was not there (five others were there)
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenParavirtOps
I can probably recite this already nothing there solved my problem. I
really like to know if anyone can actually boot the hypervisor built
from source with kernel on Debian Squeeze with grub2 .... the kernel
included in the source 2.6.18 doesn't support my ethernet card and
pretty old even udev is too old for some stuff (OK I can run everything
in domU if I ever can create one :-))
I am not new to linux (started 1997) this maybe the first project I will
have to give up on ... virtbox and vmware just worked but I would prefer
There are many people who have been using Xen with GRUB2.. so it's possible.

-- Pasi
Gabor Szilagyi
2010-01-26 20:48:57 UTC
Permalink
Post by Pasi Kärkkäinen
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
Yes I am pretty sure.. I can boot it on the bare hardware not problem
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
http://wiki.xensource.com/xenwiki/XenCommonProblems
Well, I have looked at this and went a head re-install Debian Squeeze
with grub2 ...
Now, I can not even boot xen-3.4.2.gz which I built again from source....
Uhm.. what error do you get?
I can copy from the console only the last few all line start with (XEN)
so I will not copy those

Panic on CPU 0:
Cannot access memory beyond end of bootstrap direct-map area
******************

Reboot in five second
Early fatal page fault at e008:ff146c9 (cr2=fffde020,ec=0000
Stack dump ... and a whole bunch of numbers


I see this exact some other post
Post by Pasi Kärkkäinen
Can you set up a serial console to log the full boot process?
I could if I had the right cable.
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenSerialConsole
I would try if I can find a null-modem cable db9-db9 !!! I may have that
somewhere .... but have not used such things for ages... the one came
with cisco terminal thing.... doesn't connect
Post by Pasi Kärkkäinen
Post by Gabor Szilagyi
I tried the debian package (squeeze has 3.4.2 as well) I can not boot
even the hypervisor (and can not downgrade grub2 to the old grub)...
I can see that booting xen with the new grub gives a lot of people grief.
Yeah, grub2 has been pretty problematic..
Post by Gabor Szilagyi
I tried all the suggestions like dummy=dummy, double the file name on
booth multiboot and module lines I also compiled the command line into
the dom0 kernel (the 2.6.31.6 from the Jeremy tree). I know that command
line is OK since I can boot it again on the bare hardware no problem....
I am not sure what I am doing wrong
We need more information about what exactly fails.. if you cannot set up
a serial console, you could always record a video of the boot process..
It is pretty fast but will try ....
Post by Pasi Kärkkäinen
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
Here I got stuck trying to create a hvm instance for installation of OS.
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'
Did you mount /proc/xen ? You need to have xenfs mounted.
No, /proc/xen was there (see my earlier post) except the
/proc/xen/ballon file was not there (five others were there)
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenParavirtOps
I can probably recite this already nothing there solved my problem. I
really like to know if anyone can actually boot the hypervisor built
from source with kernel on Debian Squeeze with grub2 .... the kernel
included in the source 2.6.18 doesn't support my ethernet card and
pretty old even udev is too old for some stuff (OK I can run everything
in domU if I ever can create one :-))
I am not new to linux (started 1997) this maybe the first project I will
have to give up on ... virtbox and vmware just worked but I would prefer
There are many people who have been using Xen with GRUB2.. so it's possible.
Well, most example only has grub-legacy example I am not sure what to
try to eliminate the possibility of grub2.

If anyone made squeeze with grub2 boot xen-3.4.2 with the jeremy's
kernel work on x86_32 I would really love to hear about that...

Is it possible to know if the xen-3.4.2.gz file is OK ??? there is no
config option during compile...

The dom0 kernel definitely boots on the bare hardware here some excerpts
from the dmesg with the dom0 capable (I hope)

[ 0.000000] Allocating PCI resources starting at e0000000 (gap:
e0000000:18000000)
[ 0.000000] NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 14 pages at c4fd0000, static data 35292
bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 1908572
[ 0.000000] Kernel command line: root=/dev/md1 ro
BOOT_IMAGE=/boot/vmlinuz-2.6.31.6-xen-2 root=/dev/md1 ro quiet
[ 0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144
bytes)
[ 0.000000] Enabling fast FPU save and restore... done.
[ 0.000000] Enabling unmasked SIMD FPU exception support... done.
[ 0.000000] Initializing CPU#0
[ 0.000000] xsave/xrstor: enabled xstate_bv 0x3, cntxt size 0x240
[ 0.000000] Initializing HighMem for node 0 (000379fe:001fe000)
[ 0.000000] Memory: 7618936k/8355840k available (2486k kernel code,
79724k reserved, 1171k data, 376k init, 6788616k highmem)
[ 0.000000] virtual kernel memory layout:
[ 0.000000] fixmap : 0xfff1e000 - 0xfffff000 ( 900 kB)
[ 0.000000] pkmap : 0xffa00000 - 0xffc00000 (2048 kB)
[ 0.000000] vmalloc : 0xf81fe000 - 0xff9fe000 ( 120 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf79fe000 ( 889 MB)
[ 0.000000] .init : 0xc0493000 - 0xc04f1000 ( 376 kB)
[ 0.000000] .data : 0xc036d99d - 0xc04927d0 (1171 kB)
[ 0.000000] .text : 0xc0100000 - 0xc036d99d (2486 kB)
[ 0.000000] Checking if this processor honours the WP bit even in
supervisor mode...Ok.
........ some left out...

[ 0.067951] CPU0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
stepping 0a
[ 0.068001] Booting processor 1 APIC 0x1 ip 0x6000
[ 0.004000] Initializing CPU#1
[ 0.004000] Calibrating delay using timer specific routine.. 5984.96
BogoMIPS (lpj=11969930)
[ 0.004000] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.004000] CPU: L2 cache: 6144K
[ 0.004000] CPU: Physical Processor ID: 0
[ 0.004000] CPU: Processor Core ID: 1
[ 0.004000] mce: CPU supports 6 MCE banks
[ 0.004000] CPU1: Thermal monitoring enabled (TM2)
[ 0.004000] x86 PAT enabled: cpu 1, old 0x7040600070406, new
0x7010600070106
[ 0.153423] CPU1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
stepping 0a
[ 0.153432] checking TSC synchronization [CPU#0 -> CPU#1]: passed.
[ 0.156024] Brought up 2 CPUs
[ 0.156026] Total of 2 processors activated (11969.17 BogoMIPS).
[ 0.156077] CPU0 attaching sched-domain:
[ 0.156079] domain 0: span 0-1 level MC
[ 0.156081] groups: 0 1
[ 0.156084] CPU1 attaching sched-domain:
[ 0.156085] domain 0: span 0-1 level MC
[ 0.156087] groups: 1 0
[ 0.156131] Booting paravirtualized kernel on bare hardware
[ 0.156131] regulator: core version 0.5

Any suggestion ... to further investigate this??

Gabor
Post by Pasi Kärkkäinen
-- Pasi
Gabor Szilagyi
2010-01-28 20:01:27 UTC
Permalink
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
Yes I am pretty sure.. I can boot it on the bare hardware not problem
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
http://wiki.xensource.com/xenwiki/XenCommonProblems
Well, I have looked at this and went a head re-install Debian Squeeze
with grub2 ...
Now, I can not even boot xen-3.4.2.gz which I built again from source....
Uhm.. what error do you get?
I can copy from the console only the last few all line start with (XEN)
so I will not copy those
Cannot access memory beyond end of bootstrap direct-map area
******************
Reboot in five second
Early fatal page fault at e008:ff146c9 (cr2=fffde020,ec=0000
Stack dump ... and a whole bunch of numbers
I see this exact some other post
Post by Pasi Kärkkäinen
Can you set up a serial console to log the full boot process?
I could if I had the right cable.
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenSerialConsole
Hi Pasi,

I got the null-modem and booted with the serial consol and here is the
log.... hope you can suggest something...

Press CTRL-A Z for help on special keys



__ __ _____ _ _ ____

\ \/ /___ _ __ |___ /| || | |___ \

\ // _ \ '_ \ |_ \| || |_ __) |

/ \ __/ | | | ___) |__ _| / __/

/_/\_\___|_| |_| |____(_) |_|(_)_____|



(XEN) Xen version 3.4.2 (***@nyo.unep.org) (gcc version 4.3.4 (Debian
4.3.4-6) ) Mon Jan 25 16:28:40 EST 2010
(XEN) Latest ChangeSet: unavailable

(XEN) Console output is synchronous.

(XEN) Command line: dummy=dummy dom0_mem=512M loglvl=all
guest_loglvl=all sync_console console_to_ring com1=9600,8n1 console=com1
(XEN) Video information:

(XEN) VGA is text mode 80x25, font 8x16

(XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds

(XEN) Disc information:

(XEN) Found 2 MBR signatures

(XEN) Found 2 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000009d000 (usable)
(XEN) 000000000009d000 - 00000000000a0000 (reserved)
(XEN) 00000000000ce000 - 00000000000d4000 (reserved)
(XEN) 00000000000e0000 - 0000000000100000 (reserved)
(XEN) 0000000000100000 - 00000000d7f80000 (usable)
(XEN) 00000000d7f80000 - 00000000d7f98000 (ACPI data)
(XEN) 00000000d7f98000 - 00000000d7fbc000 (ACPI NVS)
(XEN) 00000000d7fbc000 - 00000000e0000000 (reserved)
(XEN) 00000000f8000000 - 00000000fc000000 (reserved)
(XEN) 00000000fec00000 - 00000000fec10000 (reserved)
(XEN) 00000000fee00000 - 00000000fee01000 (reserved)
(XEN) 00000000ff000000 - 0000000100000000 (reserved)
(XEN) 0000000100000000 - 00000001fe000000 (usable)
(XEN) 00000001fe000000 - 0000000200000000 (reserved)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Cannot access memory beyond end of bootstrap direct-map area
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Unknown interrupt (cr2=00000000)
(XEN) ff202ec4 a1e00000 00000002 ff22be54 00000086 00000002
ff1d68dc 00000000 ff14e687 0000e008 00000286 ff1d67c0 0000000a
ff1c5146 ff22b0



This is consistent the xen image I compiled on the same machine but I
can do that again... tried to make an X83_32_pae for the same type of
kernel would like to be able to use pv_ops and hvm domU as well (but at
least boot xen :-)

Gabor
Post by Gabor Szilagyi
Any suggestion ... to further investigate this??
Gabor
Post by Pasi Kärkkäinen
-- Pasi
Pasi Kärkkäinen
2010-01-28 20:04:12 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
So I am trying to make it myself.
I have installed xen 3.4.2 from source, did make world and installed.
Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.
So you're using pv_ops dom0 kernel?
Yes I am pretty sure.. I can boot it on the bare hardware not problem
Ok.
Post by Gabor Szilagyi
Post by Pasi Kärkkäinen
Post by gabor
I can boot xen, with grup (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.
http://wiki.xensource.com/xenwiki/XenCommonProblems
Well, I have looked at this and went a head re-install Debian Squeeze
with grub2 ...
Now, I can not even boot xen-3.4.2.gz which I built again from source....
Uhm.. what error do you get?
I can copy from the console only the last few all line start with (XEN)
so I will not copy those
Cannot access memory beyond end of bootstrap direct-map area
******************
Reboot in five second
Early fatal page fault at e008:ff146c9 (cr2=fffde020,ec=0000
Stack dump ... and a whole bunch of numbers
I see this exact some other post
Post by Pasi Kärkkäinen
Can you set up a serial console to log the full boot process?
I could if I had the right cable.
Post by Pasi Kärkkäinen
http://wiki.xensource.com/xenwiki/XenSerialConsole
Hi Pasi,
I got the null-modem and booted with the serial consol and here is the
log.... hope you can suggest something...
Press CTRL-A Z for help on special keys
__ __ _____ _ _ ____
\ \/ /___ _ __ |___ /| || | |___ \
\ // _ \ '_ \ |_ \| || |_ __) |
/ \ __/ | | | ___) |__ _| / __/
/_/\_\___|_| |_| |____(_) |_|(_)_____|
4.3.4-6) ) Mon Jan 25 16:28:40 EST 2010
(XEN) Latest ChangeSet: unavailable
(XEN) Console output is synchronous.
(XEN) Command line: dummy=dummy dom0_mem=512M loglvl=all
guest_loglvl=all sync_console console_to_ring com1=9600,8n1 console=com1
(XEN) VGA is text mode 80x25, font 8x16
(XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Found 2 MBR signatures
(XEN) Found 2 EDD information structures
(XEN) 0000000000000000 - 000000000009d000 (usable)
(XEN) 000000000009d000 - 00000000000a0000 (reserved)
(XEN) 00000000000ce000 - 00000000000d4000 (reserved)
(XEN) 00000000000e0000 - 0000000000100000 (reserved)
(XEN) 0000000000100000 - 00000000d7f80000 (usable)
(XEN) 00000000d7f80000 - 00000000d7f98000 (ACPI data)
(XEN) 00000000d7f98000 - 00000000d7fbc000 (ACPI NVS)
(XEN) 00000000d7fbc000 - 00000000e0000000 (reserved)
(XEN) 00000000f8000000 - 00000000fc000000 (reserved)
(XEN) 00000000fec00000 - 00000000fec10000 (reserved)
(XEN) 00000000fee00000 - 00000000fee01000 (reserved)
(XEN) 00000000ff000000 - 0000000100000000 (reserved)
(XEN) 0000000100000000 - 00000001fe000000 (usable)
(XEN) 00000001fe000000 - 0000000200000000 (reserved)
(XEN)
(XEN) ****************************************
(XEN) Cannot access memory beyond end of bootstrap direct-map area
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Unknown interrupt (cr2=00000000)
(XEN) ff202ec4 a1e00000 00000002 ff22be54 00000086 00000002
ff1d68dc 00000000 ff14e687 0000e008 00000286 ff1d67c0 0000000a
ff1c5146 ff22b0
This is consistent the xen image I compiled on the same machine but I
can do that again... tried to make an X83_32_pae for the same type of
kernel would like to be able to use pv_ops and hvm domU as well (but at
least boot xen :-)
This is not about dom0 kernel, since it's the Xen hypervisor that crashes here.

-- Pasi

gabor
2010-01-16 15:33:31 UTC
Permalink
I am new to XEN. Try to move from vmware and Virtualbox (I use both now).

Unfortunately, Debian Squeeze no longer support xen (out of the box no dom0)

So I am trying to make it myself.

I have installed xen 3.4.2 from source, did make world and installed.

Got the kernel source from from the git repository with the xen patches
following the xen wiki.... compiled dom0 kernel just fine.

I can boot xen, with grub (old something went odd with grub2 for me) and
then it boots my dom0 kernel fine.

Here I got stuck trying to create a hvm instance for installation of OS.

***@rasnew:/etc/xen# xm create -c /etc/xen/test1.cfg
Using config file "/etc/xen/test1.cfg".
Error: [Errno 2] No such file or directory: '/proc/xen/balloon'

Here is the error I can not figure out. I did search for this and the
common theme you have not enough memory. I am not sure how come ... see
xm info.... it says 6427 MB free

I actually do not have that file, maybe the balloon driver is not
working ?? I checked it is enable in the kernel config:
***@rasnew:/etc/xen# cat /usr/src/linux-2.6-xen/.config|grep CONFIG_XEN*

CONFIG_XEN=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=32
CONFIG_XEN_SAVE_RESTORE=y
CONFIG_XEN_DEBUG_FS=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_DOM0_PCI=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_NETCHANNEL2=y
CONFIG_XEN_NETDEV2_BACKEND=y
CONFIG_XEN_NETDEV2_FRONTEND=y
CONFIG_XEN_NETDEV2_BYPASSABLE=y
CONFIG_XEN_NETDEV2_BYPASS_ENDPOINT=y
CONFIG_XEN_NETDEV2_AUTOMATIC_BYPASS=y
CONFIG_XEN_KBDDEV_FRONTEND=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
# CONFIG_XEN_BLKDEV_TAP is not set
CONFIG_XEN_NETDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
# CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
# CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
# CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set
# CONFIG_XEN_PCIDEV_BE_DEBUG is not set
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_S3=y

But then there is no file /proc/xen/balloon

***@rasnew:/etc/xen# ls -lsa /proc/xen
total 0
0 drwxr-xr-x 2 root root 0 2010-01-15 11:37 .
0 dr-xr-xr-x 102 root root 0 2010-01-15 11:33 ..
0 -r--r--r-- 1 root root 0 2010-01-15 11:37 capabilities
0 -rw------- 1 root root 0 2010-01-15 11:37 privcmd
0 -rw------- 1 root root 0 2010-01-15 11:37 xenbus
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_kva
0 -rw------- 1 root root 0 2010-01-15 11:37 xsd_port





Here is the dom0 info

***@rasnew:/etc/xen# xm info
host : rasnew
release : 2.6.31.6
version : #1 SMP Wed Jan 13 17:26:21 EST 2010
machine : i686
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2992
hw_caps :
bfebfbff:20100000:00000000:00000140:0408e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 7519
free_memory : 6427
node_to_cpu : node0:0-1
node_to_memory : node0:6427
xen_major : 3
xen_minor : 4
xen_extra : .2
xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xf5800000
xen_changeset : unavailable
cc_compiler : gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
cc_compile_by : root
cc_compile_domain : nyo.unep.org
cc_compile_date : Thu Jan 14 15:41:02 EST 2010
xend_config_format : 4

Here is the current Domai 0 info...

***@rasnew:/etc/xen# xm list -l
(domain
(domid 0)
(bootloader )
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 2)
(name Domain-0)
(on_reboot restart)
(on_poweroff destroy)
(maxmem 4194303)
(memory 1024)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 292.008824927)
(online_vcpus 2)
(image (linux (kernel )))
(status 2)
(state r-----)
)



Can anyone help me on this ... let me know what other information or
config file I should post...

Regards,

Gabor
Loading...