Subject: Re: upgraded to 3.0.3, with hvm support
To: None <port-xen@NetBSD.org>
From: Michael Richardson <mcr@sandelman.ca>
List: port-xen
Date: 11/19/2006 13:55:42
Manuel Bouyer wrote:
> On Wed, Nov 15, 2006 at 05:53:20PM -0500, Michael Richardson wrote:
> 
>>Jed Davis wrote:
>>
>>>Michael Richardson <mcr@sandelman.ca> writes:
>>>As I understand it, an old kernel won't run on a new hypervisor, but a
>>>new kernel (at least for NetBSD) can run on an old Xen.  I don't think
>>>whether it's dom0 or domU has anything to do with it -- the change was
>>
>>  okay, I have a FC5-2239 kernel:
>>
>>[root@grouper xen]# uname -a
>>Linux grouper.sandelman.ca 2.6.18-1.2239.fc5xen0 #1 SMP Fri Nov 10 13:58:27 
>>EST 2006 i686 i686 i386 GNU/Linux
>>
>>and I have a NetBSD-current compilation from Nov. 6, 2006.
> 
> 
> What does
> xm info
> reports ?

[root@grouper kernel]# xm info
host                   : grouper.sandelman.ca
release                : 2.6.18-1.2239.fc5xen0
version                : #1 SMP Fri Nov 10 13:58:27 EST 2006
machine                : i686
nr_cpus                : 2
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 1
threads_per_core       : 2
cpu_mhz                : 3400
hw_caps                : bfebfbff:20000000:00000000:00000180:0000e41d:00000000:00000001
total_memory           : 3583
free_memory            : 63
xen_major              : 3
xen_minor              : 0
xen_extra              : -unstable
xen_caps               : xen-3.0-x86_32
xen_pagesize           : 4096
platform_params        : virt_start=0xfc000000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
cc_compile_by          : brewbuilder
cc_compile_domain      : build.redhat.com
cc_compile_date        : Fri Nov 10 13:00:32 EST 2006
xend_config_format     : 2


> Did you check /var/log/xen/ ?

logs moved. nice.

I read that I should have:
	disk = [ 'phy:/dev/VolGroup00/MerryRoot,0x03,w' ]

but, I noticed that it looked for /dev/0x03, which seems wrong, maybe... at which I played with things, a bit.
I would expect that if I get this wrong, that I wind up booting without a valid disk... but I don't
get that far.

Note that it says that domain has crashed. It also says it configured a "linux guest"


[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'me
rry'], ['memory', '32'], ['vcpus', 1], ['cpu', 1], ['image', ['linux', ['kernel', '/guests/kernel/netbsd.XEN3_DOMU.
current'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGroup
00/MerryRoot'], ['dev', '/dev/hda1'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3e:00:a0:30']]]])
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:296) parseConfig: config is ['vm', ['name', 'm
erry'], ['memory', '32'], ['vcpus', 1], ['cpu', 1], ['image', ['linux', ['kernel', '/guests/kernel/netbsd.XEN3_DOMU
.current'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGrou
p00/MerryRoot'], ['dev', '/dev/hda1'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3e:00:a0:30']]]]
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory':
None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/guests/
kernel/netbsd.XEN3_DOMU.current'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']], 'on_poweroff': None, 'bo
otloader_args': None, 'cpus': [1], 'name': 'merry', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None
, 'vcpu_avail': None, 'memory': 32, 'device': [('vbd', ['vbd', ['uname', 'phy:/dev/VolGroup00/MerryRoot'], ['dev',
'/dev/hda1'], ['mode', 'w']]), ('vif', ['vif', ['mac', '00:16:3e:00:a0:30']])], 'bootloader': None, 'cpu': 1, 'maxm
em': None}
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 25 1.0
[2006-11-19 13:47:59 xend 2271] INFO (image:214) configuring linux guest
[2006-11-19 13:47:59 xend 2271] DEBUG (balloon:127) Balloon: 65352 KiB free; need 32768; done.
[2006-11-19 13:47:59 xend 2271] INFO (image:138) buildDomain os=linux dom=25 vcpus=1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:193) dom            = 25
[2006-11-19 13:47:59 xend 2271] DEBUG (image:194) image          = /guests/kernel/netbsd.XEN3_DOMU.current
[2006-11-19 13:47:59 xend 2271] DEBUG (image:195) store_evtchn   = 1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:196) console_evtchn = 2
[2006-11-19 13:47:59 xend 2271] DEBUG (image:197) cmdline        =
[2006-11-19 13:47:59 xend 2271] DEBUG (image:198) ramdisk        =
[2006-11-19 13:47:59 xend 2271] DEBUG (image:199) vcpus          = 1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:200) features       =
[2006-11-19 13:47:59 xend 2271] DEBUG (blkif:24) exception looking up device number for /dev/hda1: [Errno 2] No suc
h file or directory: '/dev/hda1'
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-devic
e': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/25/769'} to /local/domain/2
5/device/vbd/769.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:112) DevController: writing {'domain': 'merry', 'frontend': '/
local/domain/25/device/vbd/769', 'dev': '/dev/hda1', 'state': '1', 'params': '/dev/VolGroup00/MerryRoot', 'mode': '
w', 'online': '1', 'frontend-id': '25', 'type': 'phy'} to /local/domain/0/backend/vbd/25/769.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'mac': '00:16:
3e:00:a0:30', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/25/0'} to /local/domain/25/devic
e/vif/0.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:112) DevController: writing {'domain': 'merry', 'handle': '0',
  'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/25/device/vif/0', 'mac': '00:16:
3e:00:a0:30', 'online': '1', 'frontend-id': '25'} to /local/domain/0/backend/vif/25/0.
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0'
, 'uuid': '939ad62f-6079-8bbe-b6f1-ac3cd759f6e2', 'on_reboot': 'restart', 'start_time': '1163962079.31', 'on_powero
ff': 'destroy', 'name': 'merry', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '32', 'on_cr
ash': 'restart', 'image': '(linux (kernel /guests/kernel/netbsd.XEN3_DOMU.current) (vncunused 1) (xauthority /root/
.Xauthority))', 'maxmem': '32'}
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:747) Storing domain details: {'console/ring-re
f': '796078', 'console/port': '2', 'name': 'merry', 'console/limit': '1048576', 'vm': '/vm/939ad62f-6079-8bbe-b6f1-
ac3cd759f6e2', 'domid': '25', 'cpu/0/availability': 'online', 'memory/target': '32768', 'store/ring-ref': '796079',
  'store/port': '1'}
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices vif.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:149) Waiting for 0.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/25/0/ho
tplug-status.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:478) hotplugStatusCallback 1.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices usb.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices vbd.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:149) Waiting for 769.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/25/769/
hotplug-status.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:478) hotplugStatusCallback 1.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices irq.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices pci.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices ioports.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices tap.
[2006-11-19 13:47:59 xend 2271] DEBUG (DevController:143) Waiting for devices vtpm.
[2006-11-19 13:47:59 xend 2271] INFO (XendDomain:370) Domain merry (25) unpaused.
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] WARNING (XendDomainInfo:875) Domain has crashed: name=merry id=25.
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1457) XendDomainInfo.destroyDomain(25)
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['domain', ['domid'
, 25], ['uuid', '939ad62f-6079-8bbe-b6f1-ac3cd759f6e2'], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['me
mory', 32], ['shadow_memory', 0], ['maxmem', 32], ['features', ''], ['name', 'merry'], ['on_poweroff', 'destroy'],
['on_reboot', 'restart'], ['on_crash', 'restart'], ['image', ['linux', ['kernel', '/guests/kernel/netbsd.XEN3_DOMU.
current'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vif', ['backend', 0], ['script', '
vif-bridge'], ['mac', '00:16:3e:00:a0:30']]], ['device', ['vbd', ['backend', 0], ['dev', '/dev/hda1:disk'], ['uname
', 'phy:/dev/VolGroup00/MerryRoot'], ['mode', 'w']]], ['state', '----c-'], ['shutdown_reason', 'crash'], ['cpu_time
', 0.000358663], ['online_vcpus', 1], ['up_time', '0.601945877075'], ['start_time', '1163962079.31'], ['store_mfn',
  796079], ['console_mfn', 796078], ['cpus', 1]])
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:296) parseConfig: config is ['domain', ['domid
', 25], ['uuid', '939ad62f-6079-8bbe-b6f1-ac3cd759f6e2'], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['m
emory', 32], ['shadow_memory', 0], ['maxmem', 32], ['features', ''], ['name', 'merry'], ['on_poweroff', 'destroy'],
  ['on_reboot', 'restart'], ['on_crash', 'restart'], ['image', ['linux', ['kernel', '/guests/kernel/netbsd.XEN3_DOMU
.current'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vif', ['backend', 0], ['script',
'vif-bridge'], ['mac', '00:16:3e:00:a0:30']]], ['device', ['vbd', ['backend', 0], ['dev', '/dev/hda1:disk'], ['unam
e', 'phy:/dev/VolGroup00/MerryRoot'], ['mode', 'w']]], ['state', '----c-'], ['shutdown_reason', 'crash'], ['cpu_tim
e', 0.000358663], ['online_vcpus', 1], ['up_time', '0.601945877075'], ['start_time', '1163962079.31'], ['store_mfn'
, 796079], ['console_mfn', 796078], ['cpus', 1]]
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory':
0, 'uuid': '939ad62f-6079-8bbe-b6f1-ac3cd759f6e2', 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None
, 'image': ['linux', ['kernel', '/guests/kernel/netbsd.XEN3_DOMU.current'], ['vncunused', 1], ['xauthority', '/root
/.Xauthority']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': [1], 'name': 'merry', 'backend': [], 'v
cpus': 1, 'cpu_weight': 1.0, 'features': '', 'vcpu_avail': 1, 'memory': 32, 'device': [('vif', ['vif', ['backend',
0], ['script', 'vif-bridge'], ['mac', '00:16:3e:00:a0:30']]), ('vbd', ['vbd', ['backend', 0], ['dev', '/dev/hda1:di
sk'], ['uname', 'phy:/dev/VolGroup00/MerryRoot'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': 32}
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None
[2006-11-19 13:47:59 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 26 1.0
[2006-11-19 13:47:59 xend 2271] INFO (image:214) configuring linux guest
[2006-11-19 13:47:59 xend 2271] DEBUG (balloon:127) Balloon: 65352 KiB free; need 32768; done.
[2006-11-19 13:47:59 xend 2271] INFO (image:138) buildDomain os=linux dom=26 vcpus=1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:193) dom            = 26
[2006-11-19 13:47:59 xend 2271] DEBUG (image:194) image          = /guests/kernel/netbsd.XEN3_DOMU.current
[2006-11-19 13:47:59 xend 2271] DEBUG (image:195) store_evtchn   = 1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:196) console_evtchn = 2
[2006-11-19 13:47:59 xend 2271] DEBUG (image:197) cmdline        =
[2006-11-19 13:47:59 xend 2271] DEBUG (image:198) ramdisk        =
[2006-11-19 13:47:59 xend 2271] DEBUG (image:199) vcpus          = 1
[2006-11-19 13:47:59 xend 2271] DEBUG (image:200) features       =
[2006-11-19 13:48:00 xend 2271] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'mac': '00:16:
3e:00:a0:30', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/26/0'} to /local/domain/26/devic
e/vif/0.
[2006-11-19 13:48:00 xend 2271] DEBUG (DevController:112) DevController: writing {'domain': 'merry', 'handle': '0',
  'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/26/device/vif/0', 'mac': '00:16:
3e:00:a0:30', 'online': '1', 'frontend-id': '26'} to /local/domain/0/backend/vif/26/0.
[2006-11-19 13:48:00 xend 2271] DEBUG (blkif:24) exception looking up device number for /dev/hda1: [Errno 2] No suc
h file or directory: '/dev/hda1'
[2006-11-19 13:48:00 xend 2271] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-devic
e': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/26/769'} to /local/domain/2
6/device/vbd/769.
[2006-11-19 13:48:00 xend 2271] DEBUG (DevController:112) DevController: writing {'domain': 'merry', 'frontend': '/
local/domain/26/device/vbd/769', 'dev': '/dev/hda1', 'state': '1', 'params': '/dev/VolGroup00/MerryRoot', 'mode': '
w', 'online': '1', 'frontend-id': '26', 'type': 'phy'} to /local/domain/0/backend/vbd/26/769.
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0'
, 'uuid': '939ad62f-6079-8bbe-b6f1-ac3cd759f6e2', 'on_reboot': 'restart', 'start_time': '1163962080.07', 'on_powero
ff': 'destroy', 'name': 'merry', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '32', 'on_crash': 'restart', 'image': '
(linux (kernel /guests/kernel/netbsd.XEN3_DOMU.current) (vncunused 1) (xauthority /root/.Xauthority))', 'maxmem': '
32'}
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:747) Storing domain details: {'console/ring-re
f': '801198', 'console/port': '2', 'name': 'merry', 'console/limit': '1048576', 'vm': '/vm/939ad62f-6079-8bbe-b6f1-
ac3cd759f6e2', 'domid': '26', 'cpu/0/availability': 'online', 'memory/target': '32768', 'store/ring-ref': '801199',
  'store/port': '1'}
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] WARNING (XendDomainInfo:875) Domain has crashed: name=merry id=26.
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] ERROR (XendDomainInfo:1661) VM merry restarting too fast (0.464848 s
econds since the last restart).  Refusing to restart to avoid loops.
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1449) XendDomainInfo.destroy: domid=26
[2006-11-19 13:48:00 xend.XendDomainInfo 2271] DEBUG (XendDomainInfo:1457) XendDomainInfo.destroyDomain(26)