Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #185077 > unrolled thread
| Started by | ray <ray@aarden.us> |
|---|---|
| First post | 2017-08-12 04:20 +0200 |
| Last post | 2017-08-12 05:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
How to Troubleshoot Xen VM Failure 1stpvguest ray <ray@aarden.us> - 2017-08-12 04:20 +0200
Re: How to Troubleshoot Xen VM Failure 1stpvguest Andy Smith <andy@strugglers.net> - 2017-08-12 05:40 +0200
| From | ray <ray@aarden.us> |
|---|---|
| Date | 2017-08-12 04:20 +0200 |
| Subject | How to Troubleshoot Xen VM Failure 1stpvguest |
| Message-ID | <udubT-36i-3@gated-at.bofh.it> |
on Debian 9 with latest Xen on a laptop, I tried to build a pv guest. I would like to understand how to determine what the failure was.
*** This is how the image was created:
# xen-create-image --hostname=1stpvguest --vcpus=2 --dhcp --pygrub --dist stretch
# xl create /etc/xen/1stpvguest.cfg
Parsing config from /etc/xen/1stpvguest.cfg
libxl: error: libxl_bootloader.c:635:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.1.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [3802] exited with error status 1
libxl: error: libxl_create.c:1223:domcreate_rebuild_done: cannot (re-)build domain: -3
libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 1 failed
*** The above referenced the log file. Here it is:
# cat bootloader.1.log
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst
ESC(BESC)0ESC[1;24rESC[m^OESC[?7hESC[?1hESC=ESC[HESC[JESC[?1hESC=
pyGRUB version 0.6
pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Debian GNU/Linux 9 │
│ Debian GNU/Linux 9 (Single-User) │
│ Debian GNU/Linux 9 (Default Kernel) │
│ Debian GNU/Linux 9 (Default Kernel, Single-User) │
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and ┴ keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.
Will boot selected entry in 1 seconds
[Errno 2] No such file or directory
Error opening /boot/initrd.img- in guest
root@MC:/var/log/xen#
*** The above did not display on the desktop. So here is the grub file extract:
GRUB_DEFAULT=0
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_XEN="dom0_mem=1024M,max:1024M"
dom0_max_vcpus=1 dom0_vcpus_pin=1
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1"
GRUB_TERMINAL="console serial"
GRUB_TIMEOUT=5
GRUB_CMDLINE_XEN="com1=19200,8n1 console=com1,vga"
GRUB_CMDLINE_LINUX="console=tty0 console=hvc0"
*** From the above, I expected to see a console with progress. A console did not come up.
Should a console have come up?
How to I determine what the problem was?
Thanks,
Ray
[toc] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2017-08-12 05:40 +0200 |
| Message-ID | <udvrj-3MW-3@gated-at.bofh.it> |
| In reply to | #185077 |
Hi Ray,
On Fri, Aug 11, 2017 at 06:52:21PM -0700, ray wrote:
> on Debian 9 with latest Xen on a laptop, I tried to build a pv guest. I would like to understand how to determine what the failure was.
>
> *** This is how the image was created:
> # xen-create-image --hostname=1stpvguest --vcpus=2 --dhcp --pygrub --dist stretch
> # xl create /etc/xen/1stpvguest.cfg
Use "xl create -c /etc/xen/1stpvguest.cfg" to immediately open the
console and watch it boot.
> Parsing config from /etc/xen/1stpvguest.cfg
> libxl: error: libxl_bootloader.c:635:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.1.log
Bootloader (pygrub) failed to provide you with a kernel/initramfs
that was bootable by Xen.
> # cat bootloader.1.log
[…]
> [Errno 2] No such file or directory
> Error opening /boot/initrd.img- in guest
Seems like pygrub decided that the selected (by default timeout)
entry's initramfs was "/boot/initrd.img-" and then it couldn't open
that file from inside the guest's filesystem.
It would be worth examining your /boot/grub/grub.cfg file to see if
the initramfs is really listed as "/boot/initrd.img-". If it isn't
then pygrub is confused by your grub config. If it is then your grub
config looks broken.
You can also run pygrub standalone to see what it makes of your guest's
filesystem. Example:
$ sudo /usr/lib/xen-4.8/bin/pygrub -l /dev/vg/debtest1_xvda
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg
WARNING:root:grub2's saved_entry/next_entry not supported
WARNING:root:Unknown directive else
WARNING:root:Unknown directive menuentry_id_option
WARNING:root:Unknown directive else
WARNING:root:Unknown directive menuentry_id_option
WARNING:root:Unknown directive export
WARNING:root:Unknown directive font
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive font
WARNING:root:Unknown directive load_video
WARNING:root:Unknown directive terminal_output
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive export
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive if
WARNING:root:Unknown image directive else
WARNING:root:Unknown image directive fi
WARNING:root:Unknown directive source
WARNING:root:Unknown directive elif
WARNING:root:Unknown directive source
title: Debian GNU/Linux
root: None
kernel: /boot/vmlinuz-4.12.0-trunk-amd64
args: root=UUID=d924a9db-5223-4e42-8e79-7006daf90eda ro console=hvc0
initrd: /boot/initrd.img-4.12.0-trunk-amd64
title: Debian GNU/Linux, with Linux 4.12.0-trunk-amd64
root: None
kernel: /boot/vmlinuz-4.12.0-trunk-amd64
args: root=UUID=d924a9db-5223-4e42-8e79-7006daf90eda ro console=hvc0
initrd: /boot/initrd.img-4.12.0-trunk-amd64
title: Debian GNU/Linux, with Linux 4.12.0-trunk-amd64 (recovery mode)
root: None
kernel: /boot/vmlinuz-4.12.0-trunk-amd64
args: root=UUID=d924a9db-5223-4e42-8e79-7006daf90eda ro single console=hvc0
initrd: /boot/initrd.img-4.12.0-trunk-amd64
> *** The above did not display on the desktop. So here is the grub file extract:
> GRUB_DEFAULT=0
[…]
This isn't a grub config, it's an /etc/default/grub file that is
used to generate a grub config, e.g. when you type "update-grub".
Assuming grub-pc package, the generated grub config will be at
/boot/grub/grub.cfg inside the guest's filesystem. Have a look at
that one.
> GRUB_TIMEOUT=3
> GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> GRUB_CMDLINE_LINUX_DEFAULT="quiet"
> GRUB_CMDLINE_LINUX=""
> GRUB_CMDLINE_XEN="dom0_mem=1024M,max:1024M"
This looks like it might be the /etc/default/grub file from your
dom0, so doubly irrelevant when debugging guest booting issues.
> Should a console have come up?
You will only be attached to the console of a Xen guest that you
just created, if you use "-c".
> How to I determine what the problem was?
The error message came from pygrub, so the problem is either with
pygrub or with the configuration pygrub is working with.
As an aside, pygrub is not a great way to boot Xen guests. I would
recommend looking into pvgrub2:
https://wiki.xenproject.org/wiki/PvGrub2#Debian
Also the xen-user mailing list is a good place to ask support
questions, as there are probably more admins who use Xen there.
https://lists.xenproject.org/mailman/listinfo/xen-users
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web