<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hello,</DIV><DIV>I've been trying to setup a instance of NetBSD-3.1 on a fc6xen Dom-0</DIV><DIV>Linux testlab 2.6.18-1.2849.fc6xen #1 SMP Fri Nov 10 12:57:36 EST 2006 x86_64 x86_64 x86_64 GNU/Linux</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# xm info</DIV><DIV>host                   : testlab</DIV><DIV>release                : 2.6.18-1.2849.fc6xen</DIV><DIV>version                : #1 SMP Fri Nov 10 12:57:36 EST 2006</DIV><DIV>machine                : x86_64</DIV><DIV>nr_cpus                : 4</DIV><DIV>nr_nodes               : 1</DIV><DIV>sockets_per_node       : 2</DIV><DIV>cores_per_socket       : 2</DIV><DIV>threads_per_core       : 1</DIV><DIV>cpu_mhz                : 2189</DIV><DIV>hw_caps                : 178bfbff:e3d3fbff:00000000:00000010:00000001:00000000:00000003</DIV><DIV>total_memory           : 16319</DIV><DIV>free_memory            : 512</DIV><DIV>xen_major              : 3</DIV><DIV>xen_minor              : 0</DIV><DIV>xen_extra              : .3-rc5-1.2849.f</DIV><DIV>xen_caps               : xen-3.0-x86_64</DIV><DIV>xen_pagesize           : 4096</DIV><DIV>platform_params        : virt_start=0xffff800000000000</DIV><DIV>xen_changeset          : unavailable </DIV><DIV>cc_compiler            : gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)</DIV><DIV>cc_compile_by          : brewbuilder</DIV><DIV>cc_compile_domain      : build.redhat.com</DIV><DIV>cc_compile_date        : Fri Nov 10 12:30:42 EST 2006</DIV><DIV>xend_config_format     : 2</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>What follows is my process and at the end my errors when I go to 'xm create' the dom-U</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>## setup storage space for our new netbsd instance</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>/usr/sbin/lvcreate -L4g -n lvnetbsd31 vg</DIV><DIV>  --- Logical volume ---</DIV><DIV>  LV Name                /dev/vg/lvnetbsd31</DIV><DIV>[deleted]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#### download the kernels</DIV><DIV>## I tried both the Oct 31 2006 build and the Jan 6 2007 build of 3.1 from HEAD</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>## First try at using NetBSD-3.1 distrubution</DIV><DIV>ftp.netbsd.org:/pub/NetBSD/NetBSD-3.1/i386/binary/kernel></DIV><DIV>-rw-r--r--  1 1369  netbsd  1762990 Oct 31 05:10 netbsd-XEN3_DOMU.gz</DIV><DIV>-r--r--r--  1 1369  netbsd  1673944 Oct 31 05:12 netbsd-INSTALL_XEN3_DOMU.gz</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# openssl dgst md5 netb*</DIV><DIV>MD5(netbsd-INSTALL_XEN3_DOMU)= 68f054de424d9f3b2151a28ab125fc92</DIV><DIV>MD5(netbsd-XEN3_DOMU)= 5c9c409593ed552e97853f7d34539623</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>## Second Try at this using the HEAD distrubtion </DIV><DIV>ftp.netbsd.org:/pub/NetBSD/NetBSD-daily/HEAD/200701040000Z/i386/binary/kernel></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>MD5(netbsd-INSTALL_XEN3_DOMU)= c80ab0a7bda7617a936a3f3244b86a8a</DIV><DIV>MD5(netbsd-XEN3_DOMU)= eb7483c4604c6c57615d94ce4b078d7f</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# file *</DIV><DIV>netbsd-INSTALL_XEN3_DOMU: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for NetBSD 4.99.7, not stripped</DIV><DIV>netbsd-XEN3_DOMU:         ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for NetBSD 4.99.7, not stripped</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>####</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Simple configuration</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# cat /etc/xen/netbsd.cfg </DIV><DIV># main configuration</DIV><DIV>name = "netbsd31"</DIV><DIV>kernel = "/data/xenimages/netbsd/netbsd-INSTALL_XEN3_DOMU"</DIV><DIV>root="/dev/hda1"</DIV><DIV>memory = 512</DIV><DIV>disk = [ 'phy:/dev/vg/lvnetbsd31,0x3,w' ]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#network information</DIV><DIV>ip = "10.10.80.60"</DIV><DIV>netmask = "255.255.255.0"</DIV><DIV>gateway = "10.10.80.1"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#####</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# cp netbsd.cfg /etc/xen/netbsd.cfg</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[root@testlab netbsd]# xm create -c /etc/xen/netbsd.cfg </DIV><DIV>Using config file "/etc/xen/netbsd.cfg".</DIV><DIV>Error: (22, 'Invalid argument')</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>## xend.log output</DIV><DIV>[2007-01-09 11:45:05 xend.XendDomainInfo 2291] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'netbsd31'], ['memory', 512], ['vcpus', 1], ['image', ['linux', ['kernel', '/data/xenimages/netbsd/netbsd-INSTALL_XEN3_DOMU'], ['ip', '10.10.80.60:1.2.3.4:10.10.80.1:255.255.255.0::eth0:off'], ['root', '/dev/hda1'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname', 'phy:/dev/vg/lvnetbsd31'], ['dev', '0x3'], ['mode', 'w']]]])</DIV><DIV>[2007-01-09 11:45:05 xend.XendDomainInfo 2291] DEBUG (XendDomainInfo:296) parseConfig: config is ['vm', ['name', 'netbsd31'], ['memory', 512], ['vcpus', 1], ['image', ['linux', ['kernel', '/data/xenimages/netbsd/netbsd-INSTALL_XEN3_DOMU'], ['ip', '10.10.80.60:1.2.3.4:10.10.80.1:255.255.255.0::eth0:off'], ['root', '/dev/hda1'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname', 'phy:/dev/vg/lvnetbsd31'], ['dev', '0x3'], ['mode', 'w']]]]</DIV><DIV>[2007-01-09 11:45:05 xend.XendDomainInfo 2291] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/data/xenimages/netbsd/netbsd-INSTALL_XEN3_DOMU'], ['ip', '10.10.80.60:1.2.3.4:10.10.80.1:255.255.255.0::eth0:off'], ['root', '/dev/hda1'], ['vncunused', 1], ['xauthority', '/root/.Xauthority']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 'netbsd31', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 512, 'device': [('vbd', ['vbd', ['uname', 'phy:/dev/vg/lvnetbsd31'], ['dev', '0x3'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': None}</DIV><DIV>[2007-01-09 11:45:05 xend.XendDomainInfo 2291] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None</DIV><DIV>[2007-01-09 11:45:05 xend.XendDomainInfo 2291] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 21 1.0</DIV><DIV>[2007-01-09 11:45:05 xend 2291] INFO (image:214) configuring linux guest</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (balloon:127) Balloon: 525000 KiB free; need 524288; done.</DIV><DIV>[2007-01-09 11:45:06 xend 2291] INFO (image:138) buildDomain os=linux dom=21 vcpus=1</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:193) dom            = 21</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:194) image          = /data/xenimages/netbsd/netbsd-INSTALL_XEN3_DOMU</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:195) store_evtchn   = 1</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:196) console_evtchn = 2</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:197) cmdline        =  ip=10.10.80.60:1.2.3.4:10.10.80.1:255.255.255.0::eth0:off root=/dev/hda1</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:198) ramdisk        = </DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:199) vcpus          = 1</DIV><DIV>[2007-01-09 11:45:06 xend 2291] DEBUG (image:200) features       = </DIV><DIV>[2007-01-09 11:45:06 xend.XendDomainInfo 2291] ERROR (XendDomainInfo:202) Domain construction failed</DIV><DIV>Traceback (most recent call last):</DIV><DIV>  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 195, in create vm.initDomain()</DIV><DIV>  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1363, in initDomain raise VmError(str(exn))</DIV><DIV>VmError: (22, 'Invalid argument')</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>### xend-debug.log output</DIV><DIV>##</DIV><DIV>ERROR: Kernel not a Xen-compatible Elf image.</DIV><DIV>ERROR: Error constructing guest OS</DIV><DIV>ERROR: Kernel not a Xen-compatible Elf image.</DIV><DIV>ERROR: Error constructing guest OS</DIV><DIV>ERROR: Kernel not a Xen-compatible Elf image.</DIV><DIV>ERROR: Error constructing guest OS</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>