[PTLsim-devel] Problems with unstable hypervisor
Ezequiel Lara Gómez
Thu Feb 28 14:43:31 EST 2008
Greetings. I'm trying to setup ptlsim/X under debian testing, and I'm
having several problems:
- First of all, with the stable hypervisor I get a general protection
failure right after booting. I seem to recall it was error 13 (it
reboots after 15 seconds, which doesn't make easy to write down the
error). My hardware supports VT, as it's core 2 duo and active in BIOS.
- with unstable sources (xen-unstable.hg) I can get both hypervisor and
tools to compile and install. However the provided kernel hangs while
booting; I can get it to work with the default debian one from stable
(2.6.18-6-xen-amd64 #1 SMP Sun Feb 10 18:02:52 UTC 2008 x86_64
GNU/Linux)
- xen starts but then I cannot start any domU, they remain blocked and
don't allow me to connect to them. I tried both the provided disk
example and a test created debootstrapping testing with xen-create-image
(which I manually installed, skipping debian dependencies which would
have overwritten xen tools) . Kernel is the same as the dom0 for the
guests, though in the sample image I tried also 2.6.22.6-mtyrel with its
initrd and with sample-vm.img (as sample-xen-domain seems to suggest,
though I had to fix the paths as I don't have
any /project/ptlsim-checkpoints).
xm list:
Name ID Mem VCPUs State
Time(s)
Domain-0 0 611 2 r-----
331.5
sample-xen-domain 2 256 1 -b----
7.3
test 1 128 1 -b----
1.2
xm console test (after a little while)
xenconsole: Could not read tty from store: No such file or directory
And same results for sample-xen-domain.
xm console does not leave anything under /var/log/xen.
- xend.log:
[2008-02-28 20:40:45 xend 11534] WARNING (XendAuthSessions:27)
python-pam is required for XenAPI support.
[2008-02-28 20:40:45 xend 11546] INFO (SrvDaemon:295) Xend Daemon
started
[2008-02-28 20:40:45 xend 11546] INFO (SrvDaemon:299) Xend changeset:
Thu Nov 16 18:47:28 2006 -0800 12489:f0ba459065d3.
[2008-02-28 20:40:45 xend 11546] INFO (SrvDaemon:306) Xend version:
Unknown.
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:175) XendDomainInfo.recreate({'paused': 0, 'cpu_time':
353954195792L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'mem_kb': 625664, 'domid': 0, 'name': 'Domain-0', 'max_vcpu_id': 1,
'crashed': 0, 'running': 1, 'maxmem_kb': 17179869180, 'shutdown': 0,
'online_vcpus': 2, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0], 'blocked': 0})
[2008-02-28 20:40:45 xend 11546] DEBUG (XendConfig:305) XendConfig:
{'hvm': 0, 'shutdown_reason': 0, 'paused': 0, 'crashed': 0, 'running':
1, 'maxmem_kb': 17179869180, 'shutdown': 0, 'mem_kb': 625664, 'handle':
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0,
'cpu_time': 353954195792L, 'ssidref': 0, 'name': 'Domain-0', 'dying': 0,
'domid': 0, 'max_vcpu_id': 1, 'online_vcpus': 2}
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] INFO
(XendDomainInfo:190) Recreating domain 0, UUID
00000000-0000-0000-0000-000000000000. at /local/domain/0
[2008-02-28 20:40:45 xend 11546] DEBUG (XendDomain:420) Adding Domain: 0
[2008-02-28 20:40:45 xend 11546] DEBUG (XendDomain:363) number of vcpus
to use is 0
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:175) XendDomainInfo.recreate({'paused': 0, 'cpu_time':
1205754865L, 'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'mem_kb': 131072, 'domid': 1, 'max_vcpu_id': 0, 'crashed': 0, 'running':
0, 'maxmem_kb': 131072, 'shutdown': 0, 'online_vcpus': 1, 'handle': [29,
149, 112, 17, 219, 117, 145, 127, 82, 238, 32, 229, 4, 254, 7, 127],
'blocked': 1})
[2008-02-28 20:40:45 xend 11546] DEBUG (XendConfig:305) XendConfig:
{'hvm': 0, 'shutdown_reason': 0, 'paused': 0, 'crashed': 0, 'running':
0, 'maxmem_kb': 131072, 'shutdown': 0, 'mem_kb': 131072, 'handle': [29,
149, 112, 17, 219, 117, 145, 127, 82, 238, 32, 229, 4, 254, 7, 127],
'blocked': 1, 'cpu_time': 1205754865L, 'ssidref': 0, 'dying': 0,
'domid': 1, 'max_vcpu_id': 0, 'online_vcpus': 1}
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] INFO
(XendDomainInfo:190) Recreating domain 1, UUID
1d957011-db75-917f-52ee-20e504fe077f. at /local/domain/1
[2008-02-28 20:40:45 xend 11546] DEBUG (XendConfig:814)
XendConfig.device_add: ('vbd', ['vbd', ['uname',
'file:/project/cagonto/domains/test/swap.img'], ['uuid',
'b78e62e2-a445-dfeb-95fe-0935a7c8b133'], ['mode', 'w'], ['dev',
'sda1:disk'], ['backend', 0]])
[2008-02-28 20:40:45 xend 11546] DEBUG (XendConfig:814)
XendConfig.device_add: ('vbd', ['vbd', ['uname',
'file:/project/cagonto/domains/test/disk.img'], ['uuid',
'3bf99d95-1388-5d0b-ab21-c3afac31caed'], ['mode', 'w'], ['dev',
'sda2:disk'], ['backend', 0]])
[2008-02-28 20:40:45 xend 11546] DEBUG (XendDomain:420) Adding Domain: 1
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:764) XendDomainInfo.handleShutdownWatch
[2008-02-28 20:40:45 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:764) XendDomainInfo.handleShutdownWatch
[2008-02-28 20:40:46 xend 11551] WARNING (XendAuthSessions:27)
python-pam is required for XenAPI support.
[2008-02-28 20:40:51 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:148) XendDomainInfo.create(['vm', ['name',
'sample-xen-domain'], ['memory', 256], ['vcpus', 1], ['on_xend_start',
'ignore'], ['on_xend_stop', 'ignore'], ['paused_at_startup', 0],
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-6-xen-amd64'],
['ramdisk', '/boot/initrd.img-2.6.18-6-xen-amd64'], ['args', 'norandmaps
nousb noide xencons=ttyS console=ttyS0 init=/sbin/init sim-after-resume
sleep=10 runscript=/benchmarks/sample/run']]]])
[2008-02-28 20:40:51 xend 11546] DEBUG (XendConfig:305) XendConfig:
{'on_xend_stop': 'ignore', 'kernel_kernel':
'/boot/vmlinuz-2.6.18-6-xen-amd64', 'name': 'sample-xen-domain',
'kernel_args': 'norandmaps nousb noide xencons=ttyS console=ttyS0
init=/sbin/init sim-after-resume sleep=10
runscript=/benchmarks/sample/run', 'image': ['linux', ['kernel',
'/boot/vmlinuz-2.6.18-6-xen-amd64'], ['ramdisk',
'/boot/initrd.img-2.6.18-6-xen-amd64'], ['args', 'norandmaps nousb noide
xencons=ttyS console=ttyS0 init=/sbin/init sim-after-resume sleep=10
runscript=/benchmarks/sample/run']], 'kernel_initrd':
'/boot/initrd.img-2.6.18-6-xen-amd64', 'on_xend_start': 'ignore',
'vcpus': 1, 'vif_refs': [], 'memory': 256, 'device': {}, 'vtpm_refs':
[], 'backend': [], 'vbd_refs': []}
[2008-02-28 20:40:51 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:1215) XendDomainInfo.constructDomain
[2008-02-28 20:40:51 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:1258) XendDomainInfo.initDomain: 4 256
[2008-02-28 20:40:51 xend 11546] DEBUG (balloon:127) Balloon: 262720 KiB
free; need 262144; done.
[2008-02-28 20:40:51 xend 11546] INFO (image:137) buildDomain os=linux
dom=4 vcpus=1
[2008-02-28 20:40:51 xend 11546] DEBUG (image:194) domid = 4
[2008-02-28 20:40:51 xend 11546] DEBUG (image:195) memsize = 256
[2008-02-28 20:40:51 xend 11546] DEBUG (image:196) image
= /boot/vmlinuz-2.6.18-6-xen-amd64
[2008-02-28 20:40:51 xend 11546] DEBUG (image:197) store_evtchn = 1
[2008-02-28 20:40:51 xend 11546] DEBUG (image:198) console_evtchn = 2
[2008-02-28 20:40:51 xend 11546] DEBUG (image:199) cmdline =
norandmaps nousb noide xencons=ttyS console=ttyS0 init=/sbin/init
sim-after-resume sleep=10 runscript=/benchmarks/sample/run
[2008-02-28 20:40:51 xend 11546] DEBUG (image:200) ramdisk
= /boot/initrd.img-2.6.18-6-xen-amd64
[2008-02-28 20:40:51 xend 11546] DEBUG (image:201) vcpus = 1
[2008-02-28 20:40:51 xend 11546] DEBUG (image:202) features =
[2008-02-28 20:40:51 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:1589) Storing VM details: {'on_xend_stop': 'ignore',
'shadow_memory': '0', 'uuid': '12cc4e27-9913-99fc-02e4-739c88e820fe',
'on_reboot': 'restart', 'start_time': '1204227651.87', 'on_poweroff':
'destroy', 'on_xend_start': 'ignore', 'name': 'sample-xen-domain',
'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory':
'256', 'security': '()', 'on_crash': 'restart', 'image': "(linux
(kernel /boot/vmlinuz-2.6.18-6-xen-amd64)
(ramdisk /boot/initrd.img-2.6.18-6-xen-amd64) (args 'norandmaps nousb
noide xencons=ttyS console=ttyS0 init=/sbin/init sim-after-resume
sleep=10 runscript=/benchmarks/sample/run'))", 'maxmem': '256'}
[2008-02-28 20:40:51 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:707) Storing domain details: {'console/ring-ref':
'80715', 'console/port': '2', 'name': 'sample-xen-domain',
'console/limit': '1048576', 'vm':
'/vm/12cc4e27-9913-99fc-02e4-739c88e820fe', 'domid': '4',
'cpu/0/availability': 'online', 'memory/target': '262144',
'store/ring-ref': '83588', 'store/port': '1'}
[2008-02-28 20:40:51 xend 11546] DEBUG (XendDomain:420) Adding Domain: 4
[2008-02-28 20:40:52 xend.XendDomainInfo 11546] DEBUG
(XendDomainInfo:764) XendDomainInfo.handleShutdownWatch
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices vif.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices usb.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices vbd.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices irq.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices pci.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices ioports.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices tap.
[2008-02-28 20:40:52 xend 11546] DEBUG (DevController:143) Waiting for
devices vtpm.
[2008-02-28 20:40:52 xend 11546] INFO (XendDomain:972) Domain
sample-xen-domain (4) unpaused.
xend-debug.log:
Xend started at Thu Feb 28 20:40:45 2008.
Any suggestions on how could I proceed?
Also, and unrelated: stable ptlsim (simulator, not xen) does not seem to
compile against libc6-dev 2.7x from testing. Using the latest snapshot
and linking /usr/include/xen to the unstable-xen.hg I get the following
error:
g++ -O99 -g -fomit-frame-pointer -pipe -march=k8 -falign-functions=16
-funroll-loops -funit-at-a-time -minline-all-stringops -fpic
-mno-red-zone -fno-trapping-math -fno-stack-protector -fno-exceptions
-fno-rtti -funroll-loops -mpreferred-stack-boundary=4
-fno-strict-aliasing -Wreturn-type -D__PTLSIM_OOO_ONLY__ -I.
-DBUILDHOST="`hostname -f`" -DSVNREV="0" -DSVNDATE="unknown"
-DPTLSIM_HYPERVISOR -D__XEN__ -c ptlxen-events.cpp
ptlxen-events.cpp: In function ‘W64 handle_vcpu_op_hypercall(Context&,
W64, W64, W64, bool)’:
ptlxen-events.cpp:1052: error: ‘VCPUOP_set_singleshot_timer’ was not
declared in this scope
make: *** [ptlxen-events.o] Error 1
This is with g++ 4.2.1 . If I instead link it to the xen-3.1-ptlsim
folder, it compiles with no problem if I previously make the tools there
(which theirselves compile fine). Nevertheless as I can't make the
hypervisor run properly I haven't tried further.
My hardware cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
stepping : 11
cpu MHz : 1862.762
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush
dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni
monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips : 4658.95
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
stepping : 11
cpu MHz : 1862.762
cache size : 4096 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush
dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni
monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips : 4658.95
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Thank you very much for the help...
--
Ezequiel Lara Gómez <ezequiel.lara at fis.ucm.es>
More information about the PTLsim-devel mailing list