Hi
 When I try to edit kernel command line of domU, pygrub crashes

bcv@bcvibmb1:~$ sudo xl create -c /etc/xen/utils.cfg
Parsing config from /etc/xen/utils.cfg
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst

    pyGRUB  version 0.6
 ┌────────────────────────────────────────────────────────────────────────┐
 │ root            (hd0,0)                                                │
 │ kernel          /boot/vmlinuz-4.19.0-17-amd64 root=/dev/xvda2 ro elev> │
 │ initrd          /boot/initrd.img-4.19.0-17-amd64                       │
 │                                                                        │
 │                                                                        │
 │                                                                        │
 │                                                                        │
 │                                                                        │
 └────────────────────────────────────────────────────────────────────────┘
     Use the ↑ and ↓ keys to select which entry is highlighted.
     Press 'b' to boot, 'e' to edit the selected command in the
     boot sequence, 'c' for a command-line, 'o' to open a new line
     after ('O' for before) the selected line, 'd' to remove the
     selected line, or escape to go back to the main menu.


Traceback (most recent call last):
                                    File "/usr/lib/xen-4.14/bin/pygrub",
line 884, in <module>

                      raise RuntimeError("Unable to find partition
containing kernel")
             RuntimeError: Unable to find partition containing kernel
                                                                     libxl:
error: libxl_bootloader.c:648:bootloader_finished: Domain 4:bootloader
failed - consult logfile /var/log/xen/bootloader.4.log
                                                    libxl: error:
libxl_exec.c:117:libxl_report_child_exitstatus: bootloader [1316] exited
with error status 1
         libxl: error: libxl_create.c:1576:domcreate_rebuild_done: Domain
4:cannot (re-)build domain: -3

                            libxl: error:
libxl_domain.c:1182:libxl__destroy_domid: Domain 4:Non-existant domain
libxl: error: libxl_domain.c:1136:domain_destroy_callback: Domain 4:Unable
to destroy guest
libxl: error: libxl_domain.c:1063:domain_destroy_cb: Domain 4:Destruction
of domain failed
bcv@bcvibmb1:~$


Attached is the log
Am I doing something wrong ? or is this a known issue ?

Thanks
Bhasker C V
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst
(B)0[?7h[?1h=[?1h=    pyGRUB  version 0.6
 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x Debian GNU/Linux, kernel 4.19.0-17-amd64                               x
 x Debian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode)x
 x Debian GNU/Linux 10x
 x Debian GNU/Linux 10 (Single-User)x
 x Debian GNU/Linux 10 (Default Kernel)x
 x Debian GNU/Linux 10 (Default Kernel, Single-User)x
 xx
 xx
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjUse the ??? and ??? keys to select which entry is highlighted.Press enter to boot the selected OS, 'e' to edit thecommands before booting, 'a' to modify the kernel argumentsbefore booting, or 'c' for a command line.Will boot selected entry in  2 seconds[?1h=
Will boot selected entry in  1 seconds[?1h=
Debian GNU/Linux, kernel 4.19.0-17-amd64                              Debian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode)           [?1h=Debian GNU/Linux, kernel 4.19.0-17-amd64                              Debian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode)           [?1h=root            (hd0,0)                 kernel          /boot/vmlinuz-4.19.0-17-amd64 root=/dev/xvda2 ro elev>initrd          /boot/initrd.img-4.19.0-17-amd64                                                                                                                      'b' to boot, 'e' to edit the selected command in theboot sequence, 'c' for a command-line, 'o' to open a new lineafter ('O' for before) the selected line, 'd' to remove theselected line, or escape to go back to the main menu.[?1h=root            (hd0,0)                                               kernel          /boot/vmlinuz-4.19.0-17-amd64 root=/dev/xvda2 ro elev>[?1h=[?1l>
[?1l>Traceback (most recent call last):
  File "/usr/lib/xen-4.14/bin/pygrub", line 884, in <module>
    raise RuntimeError("Unable to find partition containing kernel")
RuntimeError: Unable to find partition containing kernel

Reply via email to