Mailing List Archive

(no subject)
I've been struggling with this for a few weeks now.

Trying to install Xen, as per https://wiki.debian.org/Xen

Dell PowerEdge R740xd server with PERC H740P Adapter RAID controller.
Two disk groups (virtual disks) configured. One is 479GB for the OS
and one is 4TB for LVM

Boot mode set to UEFI

I installed Debian 9.9 and configured the disks as -
600 GB EFI partition
447.6GB ext4 / (root partition)
32 GB /swap

Machine boots as normal.

Then it comes to Xen.

I went with the default xen-system install, which gives me Xen
4.8.5+shim4.10.2+xsa282-1+deb9u11

If I use EFI to boot, Debian can boot fine, but Xen hangs -
Loading Xen 4.8-amd64 ...
WARNING: no console will be available to OS
Loading Linux 4.9.0-8-amd64 ...
Loading initial ramdisk ...

Nothing else happens. The system hangs there.

If I reboot and try booting to just Debian, it will boot and fun fine.

-----------------------------------------------------------

So, I switched, thinking it's an EFI issue.

Boot mode set to BIOS
Configured the disks during Debian install
Primary partition 447.6 GB ext4 /
Logical partition 32GB swap

I installed Debian 9.9, and put GRUB loot loader in the MBR. (/dev/sda)

Machine boots as normal. I installed firmware-linux-nonfree
Machine boots as normal.

root@earhart:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
root@earhart:~# uname -a
Linux earhart 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12)
x86_64 GNU/Linux
root@earhart:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.9.0-9-amd64 root=/dev/sda1 ro quiet



Then it comes to Xen (4.8.5+shim4.10.2+xsa282-1+deb9u11).

#apt-get install xen-system xen-tools
root@earhart:~# apt-get install xen-system xen-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'xen-system-amd64' instead of 'xen-system'
The following additional packages will be installed:
bridge-utils debootstrap debugedit grub-xen-bin grub-xen-host
ipxe-qemu libaio1 libarchive13 libasound2 libasound2-data libasyncns0
libauthen-sasl-perl libbluetooth3 libbrlapi0.6
libcaca0 libcacard0 libconfig-inifiles-perl
libdata-validate-domain-perl libdata-validate-ip-perl
libdata-validate-uri-perl libencode-locale-perl libexpect-perl libfdt1
libfile-listing-perl libfile-slurp-perl libfile-which-perl libflac8
libfont-afm-perl libglib2.0-0 libglib2.0-data libhtml-form-perl
libhtml-format-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libice6 libio-html-perl libio-pty-perl
libio-socket-ssl-perl libio-stty-perl libjpeg62-turbo
liblog-message-perl liblog-message-simple-perl liblua5.2-0
liblwp-mediatypes-perl liblwp-protocol-https-perl liblzo2-2
libmailtools-perl libnet-domain-tld-perl libnet-http-perl
libnet-ipv6addr-perl libnet-netmask-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libnetaddr-ip-perl libnetwork-ipv4addr-perl
libnspr4 libnss3 libnuma1 libogg0 libopus0 libpixman-1-0 libpulse0
librpm3 librpmbuild3 librpmio3 librpmsign3 libsdl1.2debian libsm6
libsndfile1 libsocket6-perl libsort-versions-perl
libspice-server1 libterm-size-perl libterm-ui-perl
libtext-template-perl libtimedate-perl liburi-perl libusbredirparser1
libvdeplug2 libvorbis0a libvorbisenc2 libwww-perl
libwww-robotrules-perl libx11-xcb1 libxen-4.8 libxenstore3.0 libxi6
libxtst6 libyajl2 perl-openssl-defaults qemu-system-common
qemu-system-x86 qemu-utils rinse rpm rpm-common rpm2cpio
seabios shared-mime-info ubuntu-archive-keyring x11-common
xdg-user-dirs xen-hypervisor-4.8-amd64 xen-utils-4.8 xen-utils-common
xenstore-utils
Suggested packages:
rpm-i18n lrzip libasound2-plugins alsa-utils libdigest-hmac-perl
libgssapi-perl libdata-dump-perl libcrypt-ssleay-perl opus-tools
pulseaudio libauthen-ntlm-perl samba vde2
qemu-block-extra sgabios ovmf alien elfutils rpmlint rpm2html
btrfs-tools cfengine2 reiserfsprogs xfsprogs
The following NEW packages will be installed:
bridge-utils debootstrap debugedit grub-xen-bin grub-xen-host
ipxe-qemu libaio1 libarchive13 libasound2 libasound2-data libasyncns0
libauthen-sasl-perl libbluetooth3 libbrlapi0.6
libcaca0 libcacard0 libconfig-inifiles-perl
libdata-validate-domain-perl libdata-validate-ip-perl
libdata-validate-uri-perl libencode-locale-perl libexpect-perl libfdt1
libfile-listing-perl libfile-slurp-perl libfile-which-perl libflac8
libfont-afm-perl libglib2.0-0 libglib2.0-data libhtml-form-perl
libhtml-format-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libice6 libio-html-perl libio-pty-perl
libio-socket-ssl-perl libio-stty-perl libjpeg62-turbo
liblog-message-perl liblog-message-simple-perl liblua5.2-0
liblwp-mediatypes-perl liblwp-protocol-https-perl liblzo2-2
libmailtools-perl libnet-domain-tld-perl libnet-http-perl
libnet-ipv6addr-perl libnet-netmask-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libnetaddr-ip-perl libnetwork-ipv4addr-perl
libnspr4 libnss3 libnuma1 libogg0 libopus0 libpixman-1-0 libpulse0
librpm3 librpmbuild3 librpmio3 librpmsign3 libsdl1.2debian libsm6
libsndfile1 libsocket6-perl libsort-versions-perl
libspice-server1 libterm-size-perl libterm-ui-perl
libtext-template-perl libtimedate-perl liburi-perl libusbredirparser1
libvdeplug2 libvorbis0a libvorbisenc2 libwww-perl
libwww-robotrules-perl libx11-xcb1 libxen-4.8 libxenstore3.0 libxi6
libxtst6 libyajl2 perl-openssl-defaults qemu-system-common
qemu-system-x86 qemu-utils rinse rpm rpm-common rpm2cpio
seabios shared-mime-info ubuntu-archive-keyring x11-common
xdg-user-dirs xen-hypervisor-4.8-amd64 xen-system-amd64 xen-tools
xen-utils-4.8 xen-utils-common xenstore-utils
0 upgraded, 114 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.5 MB of archives.
After this operation, 105 MB of additional disk space will be used.


root@earhart:~# ls -lrt /boot
total 56620
-rw-r--r-- 1 root root 958896 Jan 11 18:01 xen-4.8-amd64.gz
-rwxr-xr-x 1 root root 2270216 Jan 11 18:01 xen-4.8-amd64.efi
-rw-r--r-- 1 root root 4241184 Feb 19 09:05 vmlinuz-4.9.0-8-amd64
-rw-r--r-- 1 root root 186589 Feb 19 09:05 config-4.9.0-8-amd64
-rw-r--r-- 1 root root 3196808 Feb 19 09:05 System.map-4.9.0-8-amd64
-rw-r--r-- 1 root root 4245280 Apr 12 14:52 vmlinuz-4.9.0-9-amd64
-rw-r--r-- 1 root root 186589 Apr 12 14:52 config-4.9.0-9-amd64
-rw-r--r-- 1 root root 3198158 Apr 12 14:52 System.map-4.9.0-9-amd64
-rw-r--r-- 1 root root 19313544 May 1 10:38 initrd.img-4.9.0-8-amd64
drwxr-xr-x 5 root root 4096 May 1 10:50 grub
-rw-r--r-- 1 root root 20153847 May 1 10:51 initrd.img-4.9.0-9-amd64

I edited my grub -
root@earhart:~# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_XEN_DEFAULT="dom0_max_vcpus=2 dom0_vcpus_pin
dom0_mem=2048M,max:2048M"
GRUB_CMDLINE_XEN=""


# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


root@earhart:~# update-grub
Including Xen overrides from /etc/default/grub.d/xen.cfg
WARNING: GRUB_DEFAULT changed to boot into Xen by default!
Edit /etc/default/grub.d/xen.cfg to avoid this warning.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-9-amd64
Found initrd image: /boot/initrd.img-4.9.0-9-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-4.9.0-9-amd64
Found initrd image: /boot/initrd.img-4.9.0-9-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-4.9.0-9-amd64
Found initrd image: /boot/initrd.img-4.9.0-9-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
done


When it reboots I get the following -
[ 22.424146] mce: Unable to init device /dev/mcelog (rc: -16)
[ 22.806814] megaraid_sas 0000:86:00.0: Failed from
megasas_alloc_request_fusi on 495
Gave up waiting for suspend/resume device
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline{
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=ffc22a21-fb8c-4e85-8f72-e2435ef8e6c5 does not exist.
Dropping to a shell!

BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

(initramfs) cat /proc/cmdline
placeholder root=UUID=ffc22a21-fb8c-4e85-8f72-e2435ef8e6c5 ro quiet
(initramfs) cat /proc/modules; ls /dev

It lists a load of devices, but no /dev/sd devices and no UUID devices.


If I reboot and select Debian (no Xen), then the system will boot fine.

Any ideas?

Paul

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users