Port-xen archive

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

Re: Strange 7.2 vs xbd and ISO images issue



	hello.  This sounds similar to an issue I reported last week on this
list with the xbd driver and NetBSD-9_BETA.  They may or not be related to
each other, but they seem really close.  I'm currently trying to test
xen-4.8, I've been using xen-4.11, to see if that could be the issue, but
have discovered that the issue I'm runing into could be an artifact of the
newer version of gcc.  As I build the xen-4.8 tools, it wants to use
gcc-4.8, which, I'm guessing, produces different code than the gcc version
native to NetBSD-9, which is gcc-7.4.  Unfortunately, I'm having trouble
building gcc-4.8, due to an issue building one of the gcc dependencies and
a missing library symbol, so this process of testing different versions of
xen has taken a lot longer than I anticipated it would.

	As to your question about how to get prompted for a root device, put
your boot flags in the extra field of the configuration file you're using
to boot the domu.  Something like:
extra = "-a"

Hope that helps.
-thanks
-Brian

On Nov 5,  8:56am, Martin Husemann wrote:
} Subject: Strange 7.2 vs xbd and ISO images issue
} Hi folks,
} 
} I have a xen dom0 running -current as of last week and latest xen from
} pkgsrc. When I try to run a NetBSD 7.2 install CD on that system, I get
} very strange failures, that point at something being wrong with the
} xbd driver (I guess).
} 
} The ISO Image I used is the latest from the auto build cluster, the same
} image boots fine on VirtualBox.
} 
} Any ideas?
} 
} Martin
} (P.S.: how can I boot this domU similar to native "boot -a" so I can select
} the boot device upfront?)
} 
} 
} Script started on Tue Nov  5 08:46:26 2019
} [/usr/pkg/etc/xen] root@seven-days-to-the-wolves # xl create -c x-amd64-7 
} Parsing config from x-amd64-7
} Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
}     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
}     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
} Copyright (c) 1982, 1986, 1989, 1991, 1993
}     The Regents of the University of California.  All rights reserved.
} 
} NetBSD 7.2_STABLE (XEN3_DOMU) #0: Sat Nov  2 18:44:23 CET 2019
} 	martin%martins.aprisoft.de@localhost:/usr/src-7/sys/arch/amd64/compile/XEN3_DOMU
} total memory = 4096 MB
} avail memory = 3957 MB
} kern.module.path=/stand/amd64/7.2/modules
} mainbus0 (root)
} hypervisor0 at mainbus0: Xen version 4.11.2nb0
} vcpu0 at hypervisor0: AMD Phenom(tm) II X6 1075T Processor, id 0x100fa0
} vcpu1 at hypervisor0: AMD Phenom(tm) II X6 1075T Processor, id 0x100fa0
} vcpu2 at hypervisor0: AMD Phenom(tm) II X6 1075T Processor, id 0x100fa0
} vcpu3 at hypervisor0: AMD Phenom(tm) II X6 1075T Processor, id 0x100fa0
} xenbus0 at hypervisor0: Xen Virtual Bus Interface
} xencons0 at hypervisor0: Xen Virtual Console Driver
} xenbus: can't get state for device/suspend/event-channel (2)
} xbd0 at xenbus0 id 1: Xen Virtual Block Device Interface
} xbd1 at xenbus0 id 2: Xen Virtual Block Device Interface
} xennet0 at xenbus0 id 0: Xen Virtual Network Interface
} xennet0: MAC address aa:07:99:c5:ba:40
} balloon0 at xenbus0 id 0: Xen Balloon driver
} balloon0: current reservation: 4194304 KiB
} xennet0: using RX copy mode
} xenbus: can't get state for device/suspend/event-channel (2)
} balloon0: current reservation: 1048576 pages => target: 1048576 pages
} ignore shutdown request: 
} xenbus: can't get state for device/suspend/event-channel (2)
} boot device: xbd0
} root on xbd0a dumps on xbd0b
} Your machine does not initialize mem_clusters; sparse_dumps disabled
} root file system type: ffs
} /etc/rc.conf is not configured.  Multiuser boot aborted.
} Enter pathname of shell or RETURN for /bin/sh: 
}         H        H        H        H        H        H        H        H        HTerminal type is vt100.
} We recommend that you create a non-root account and use su(1) for root access.
} # mount -r -t cd9660 /dev/xbd1a /mnt
} # cd /mnt
} RRIP without PX field?
} # ./
} [1]   Abort trap              ./sysinst
} # gdb ./sysinst
} GNU gdb (GDB) 7.7.1
} Copyright (C) 2014 Free Software Foundation, Inc.
} License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
} This is free software: you are free to change and redistribute it.
} There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
} and "show warranty" for details.
} This GDB was configured as "x86_64--netbsd".
} Type "show configuration" for configuration details.
} For bug reporting instructions, please see:
} <http://www.gnu.org/software/gdb/bugs/>.
} Find the GDB manual and other documentation resources online at:
} <http://www.gnu.org/software/gdb/documentation/>.
} For help, type "help".
} Type "apropos word" to search for commands related to "word"...
} "/mnt/./sysinst": not in executable format: Invalid argument
} (gdb) quit
} # file sysinst
} sysinst: ERROR: cannot read `sysinst' (Invalid argument)
} # ls
} amd64           etc             mnt             sysinst         targetroot
} bin             install.sh      mnt2            sysinstmsgs.de  tmp
} boot            lib             netbsd          sysinstmsgs.es  usr
} boot.cfg        libdata         sbin            sysinstmsgs.fr  var
} dev             libexec         stand           sysinstmsgs.pl
} # df
} Filesystem    1K-blocks       Used      Avail %Cap Mounted on
} root_device    91489528     678336   86236716   0% /
} /dev/xbd1a       397586     397586          0 100% /mnt
} # file sysint
} sysinst: ERROR: cannot read `sysinst' (Invalid argument)
} # ls -l
} total 7627
} drwxr-xr-x   4 611  125     2048 Oct 31 06:39 amd64
} drwxr-xr-x   2 611  125     6144 Oct 31 06:29 bin
} -r--r--r--   1 611  125    72632 Oct 31 06:42 boot
} -rw-r--r--   1 611  125      558 Oct 31 06:42 boot.cfg
} drwxr-xr-x   2 611  125     2048 Oct 31 06:42 dev
} drwxr-xr-x  27 611  125    12288 Oct 31 06:42 etc
} -r-xr-xr-x   1 611  125     3082 Oct 31 06:42 install.sh
} drwxr-xr-x   4 611  125    12288 Oct 31 06:29 lib
} drwxr-xr-x   3 611  125     2048 Oct 31 06:08 libdata
} drwxr-xr-x   5 611  125     2048 Oct 31 06:29 libexec
} drwxr-xr-x   2 611  125     2048 Oct 31 06:08 mnt
} drwxr-xr-x   2 611  125     2048 Oct 31 06:42 mnt2
} -rw-r--r--   1 611  125  7277410 Oct 31 06:42 netbsd
} drwxr-xr-x   2 611  125    18432 Oct 31 06:29 sbin
} drwxr-xr-x   4 611  125     2048 Oct 31 06:29 stand
} -rwxr-xr-x   1 611  125   244338 Oct 31 06:42 sysinst
} -rwxr-xr-x   1 611  125    36931 Oct 31 06:42 sysinstmsgs.de
} -rwxr-xr-x   1 611  125    35889 Oct 31 06:42 sysinstmsgs.es
} -rwxr-xr-x   1 611  125    36842 Oct 31 06:42 sysinstmsgs.fr
} -rwxr-xr-x   1 611  125    32422 Oct 31 06:42 sysinstmsgs.pl
} drwxr-xr-x   2 611  125     2048 Oct 31 06:42 targetroot
} drwxr-xr-x   2 611  125     2048 Oct 31 06:08 tmp
} drwxr-xr-x   8 611  125     2048 Oct 31 06:42 usr
} drwxr-xr-x   2 611  125     2048 Nov  3 23:28 var
} # pwd
} /mnt
} # halt -p
} halt: halted by root
} syncing disks... done
} xenbus: can't get state for device/suspend/event-channel (2)
} xenbus: can't get state for device/suspend/event-channel (2)
} xbd1: detached
} [/usr/pkg/etc/xen] root@seven-days-to-the-wolves # cat x-amd64-7 
} name = "x-amd64-7"
} kernel = "/xen/amd64-7.gz"
} memory = 4096
} vcpus = 4
} vif = [ 'mac=aa:07:99:c5:ba:40,bridge=bridge0' ]
} disk = [ 'phy:/dev/wd0k,0x1,w',
} 	 'file:/xen/NetBSD-7.2_STABLE-amd64.iso,0x2,ro' ]
} [/usr/pkg/etc/xen] root@seven-days-to-the-wolves # ll /xen/NetBSD-7.2_STABLE-amd 64.iso
} -rwxr--r--  1 martin  wheel  407435264 Nov  5 08:45 /xen/NetBSD-7.2_STABLE-amd64.iso
} [/usr/pkg/etc/xen] root@seven-days-to-the-wolves # ^Dexit
} 
} Script done on Tue Nov  5 08:51:31 2019
} 
} 
>-- End of excerpt from Martin Husemann




Home | Main Index | Thread Index | Old Index