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[1;24r[m[?7h[?1h=[H[J[?1h=[1B pyGRUB version 0.6
[1B [0mlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
[1B [0mx [0;7mDebian GNU/Linux, kernel 4.19.0-17-amd64 [m [0mx
[1B [0mx Debian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode)[12C[0mx
[1B [0mx Debian GNU/Linux 10[52C[0mx
[1B [0mx Debian GNU/Linux 10 (Single-User)[38C[0mx
[1B [0mx Debian GNU/Linux 10 (Default Kernel)[35C[0mx
[1B [0mx Debian GNU/Linux 10 (Default Kernel, Single-User)[22C[0mx
[1B [0mx[72C[0mx
[1B [0mx[72C[0mx
[1B [0mmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj[1B[70D[0mUse the ??? and ??? keys to select which entry is highlighted.[1B[58DPress enter to boot the selected OS, 'e' to edit the[1B[52Dcommands before booting, 'a' to modify the kernel arguments[1B[59Dbefore booting, or 'c' for a command line.[7A[26C[12B[68DWill boot selected entry in 2 seconds[?1h=
[J[12A[73C[12B[68DWill boot selected entry in 1 seconds[?1h=
[J[17A[3CDebian GNU/Linux, kernel 4.19.0-17-amd64 [1B[70D[0;7mDebian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode) [4B[m[13B[68D[?1h=[18A[0;7mDebian GNU/Linux, kernel 4.19.0-17-amd64 [1B[70D[mDebian GNU/Linux, kernel 4.19.0-17-amd64 (single-user mode) [4B[13B[68D[?1h=[18A[0;7mroot (hd0,0) [1B[40D[mkernel /boot/vmlinuz-4.19.0-17-amd64 root=/dev/xvda2 ro elev>[1B[70Dinitrd /boot/initrd.img-4.19.0-17-amd64[1B[48D [1B[33D [1B[36D [14;12H'b' to boot, 'e' to edit the selected command in the[1B[58Dboot sequence, 'c' for a command-line, 'o' to open a new line[1B[61Dafter ('O' for before) the selected line, 'd' to remove the[1B[59Dselected line, or escape to go back to the main menu.[11A[15C[?1h=[2A[70Droot (hd0,0) [1B[70D[0;7mkernel /boot/vmlinuz-4.19.0-17-amd64 root=/dev/xvda2 ro elev>[1B[m[?1h=[?1l>[24;1H
[?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