search for: run_grub

Displaying 18 results from an estimated 18 matches for "run_grub".

Did you mean: run_glob
2011 Oct 20
2
[PATCH] pygrub: do not overload RuntimeError for "no menu.lst found"
From: pbonzini@redhat.com # HG changeset patch # User Paolo Bonzini <pbonzini@redhat.com> # Date 1319096986 -7200 # Node ID bd1f7361d3d7f4c767af21317fb4ec7ea1372f42 # Parent 1b110e895e285f43f14532e14c77597e54a0bcd2 pygrub will still try the next partition if run_grub exits with a "real" error, thus hiding the root cause from the trace. Defining a separate exception for "no bootloader config file found" avoids this. diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@...
2012 Sep 06
4
[PATCH] pygrub: always append --args
...d --args If a bootloader entry in menu.lst has no additional kernel command line options listed and the domU.cfg has ''bootargs="--args=something"'' the additional arguments from the config file are not passed to the kernel. The reason for that incorrect behaviour is that run_grub appends arg only if the parsed config file has arguments listed. Fix this by appending args from image section and the config file separatly. To avoid adding to a NoneType initialize grubcfg[''args''] to an empty string. This does not change behaviour but simplifies the code which...
2010 Aug 15
2
trouble launching vm''s
...a:88:ae,bridge=xenbr0,script=vif-bridge" ] So far so good! But when I try to launch vm05 this is what I get: [root@lcent5-1:/etc/xen]$:xm create vm05 Using config file "./vm05". Traceback (most recent call last): File "/usr/bin/pygrub", line 682, in ? chosencfg = run_grub(file, entry, fs) File "/usr/bin/pygrub", line 536, in run_grub g = Grub(file, fs) File "/usr/bin/pygrub", line 203, in __init__ self.read_config(file, fs) File "/usr/bin/pygrub", line 397, in read_config raise RuntimeError, "couldn''t fin...
2010 Aug 15
2
trouble launching vm''s
...a:88:ae,bridge=xenbr0,script=vif-bridge" ] So far so good! But when I try to launch vm05 this is what I get: [root@lcent5-1:/etc/xen]$:xm create vm05 Using config file "./vm05". Traceback (most recent call last): File "/usr/bin/pygrub", line 682, in ? chosencfg = run_grub(file, entry, fs) File "/usr/bin/pygrub", line 536, in run_grub g = Grub(file, fs) File "/usr/bin/pygrub", line 203, in __init__ self.read_config(file, fs) File "/usr/bin/pygrub", line 397, in read_config raise RuntimeError, "couldn''t fin...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...PID, so we can distinguish each process. Also in this patch: 1). Fix indentation for some lines. 2). Removed some trailing spaces. 3). Mark ''isconfig'' a duplicate option of ''debug'' and remove the currently broken code: if isconfig: chosencfg = run_grub(file, entry, fs, incfg["args"]) ''fs'' is not defined yet here, so it will raise an exception. Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com> diff -r 43e21ce7f221 -r ec9655b30a5f tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub Tue Jul 17 17:33:3...
2011 Jul 14
1
PyGrub And Grub2 Submenus
...t the domU after this with xm create gives "Error: Boot loader didn''t return any data!". I ran pygrub against the domU manually, I got the following: Traceback (most recent call last): File "/usr/lib/xen-default/bin/pygrub", line 669, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/lib/xen-default/bin/pygrub", line 549, in run_grub g = Grub(file, fs) File "/usr/lib/xen-default/bin/pygrub", line 205, in __init__ self.read_config(file, fs) File "/usr/lib/xen-default/bin/pygrub", lin...
2007 Jan 05
10
[PATCH 1/7] Fix pygrub path on Solaris
Fix for pygrub path on Solaris. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -37,7 +37,7 @@ from xen.util.blkif import blkdev_uname_ from xen.util.blkif import blkdev_uname_to_file from xen.util
2009 May 11
9
vmx_update_guest_cr() losing EXCEPTION_BITMAP setting
Running a heavily modified xen-unstable changset 19590:f80cf52a4fb6 with debugger_attached set, I was seeing the debug traps getting lost from the EXCEPTION_BITMAP in vmx_update_guest_cr() when transitioning from real to protected mode. In my codebase, I could fix this trivially by clearing the debug_state_latch and letting vmx_do_resume() reapply the setting. However, while it looks like a valid
2013 Jan 09
2
[PATCH] Fix pygrub handling non-default entry
...owed values of index - 0 is index of first item. Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com> Patch: --- diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 1845485..eedfdb2 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -613,7 +613,7 @@ def run_grub(file, entry, fs, cfg_args): # set the entry to boot as requested if entry is not None: idx = get_entry_idx(g.cf, entry) - if idx is not None and idx > 0 and idx < len(g.cf.images): + if idx is not None and idx >= 0 and idx < len(g.cf.images):...
2008 Aug 03
1
Bug#493592: pygrub fails on lenny's ext3
...verity: normal Hi, pygrub has problems parsing block devices partitioned with Lenny Beta 2 and ext3 on paravirt guests: # /usr/lib/xen-3.2-1/bin/pygrub /var/lib/xen/images/test2.img Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/pygrub", line 653, in ? chosencfg = run_grub(file, entry, fs) File "/usr/lib/xen-3.2-1/bin/pygrub", line 510, in run_grub g = Grub(file, fs) File "/usr/lib/xen-3.2-1/bin/pygrub", line 203, in __init__ self.read_config(file, fs) File "/usr/lib/xen-3.2-1/bin/pygrub", line 393, in read_config raise...
2010 Nov 13
0
Bug#603391: pygrub: unintelligible error messages
...ch file or directory # '/usr/lib/xen-4.0/bin/pygrub' '/dev/sda3' Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/pygrub", line 669, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/lib/xen-4.0/bin/pygrub", line 549, in run_grub g = Grub(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 205, in __init__ self.read_config(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 413, in re...
2010 Jun 28
3
"couldn''t find bootloader config file in the image provided."
...s install, and stepped through the install, installed GRUB to the MBR, and all seemed well. However, upon xm create -c NAME install=true install-mirror=http://mirrors.us.kernel.org/ubuntu/ I get: Traceback (most recent call last): File "/usr/bin/pygrub", line 682, in ? chosencfg = run_grub(file, entry, fs) File "/usr/bin/pygrub", line 536, in run_grub g = Grub(file, fs) File "/usr/bin/pygrub", line 203, in __init__ self.read_config(file, fs) File "/usr/bin/pygrub", line 397, in read_config raise RuntimeError, "couldn''t fin...
2010 Oct 06
1
Bug#599243: xen-utils-4.0: pygrub does not understand grub2 partition types (e.g. (hd0, msdos1) instead of (hd0, 1))
...Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /grub/grub.cfg WARNING:root:Unknown directive load_video WARNING:root:Unknown directive terminal_output Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/pygrub", line 669, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/lib/xen-4.0/bin/pygrub", line 549, in run_grub g = Grub(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 205, in __init__ self.read_config(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 413, in re...
2011 Oct 01
2
Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
...arate the menu items below from the Debian # ones. title Other operating systems: root pygrub's parser seems to expect that "root" will be followed by a disk specification. I get this traceback: File "./pygrub", line 669, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "./pygrub", line 549, in run_grub g = Grub(file, fs) File "./pygrub", line 205, in __init__ self.read_config(file, fs) File "./pygrub", line 413, in read_config self.cf.parse(buf) File "/usr/lib/xe...
2012 Mar 07
2
PV DomU stopped responding, won't boot, stuck in paused state
Yesterday, I had a PV OpenSolaris DomU stop responding. I looked on my xen machine and it was in a paused state. I ended up destroying it and then doing xm create to bring it back up. It won''t boot, and I think PyGrub is hanging. Not sure how to resolve this, there aren''t any errors being presented in xen/xm itself. If I try ''xm create config.conf'' it just
2009 Jan 08
1
PV Clone
...ing machines, then create them as PV guests. It has worked a couple of times for me, but I''ve run into a problem I don''t understand. When I run "xm create name", I get an error that includes these lines -- File "/usr/bin/pygrub", line 656, in ? chosencfg = run_grub(file, entry, fs)... RuntimeError: couldn''t find bootloader config file in the image provided. If I understand correctly, this is trying to find a boot file for a fully virtualized machine. The image has no /boot directory. The config file looks like this: kernel="/boot/vmlinuz-2.6.1...
2007 Jan 19
0
[PATCH] Update pygrub for new Solaris directory names
...# Parent cef8ae47e6d6a70817d67849a59c0315f6cddbba Update pygrub for new Solaris directory names. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -503,7 +503,7 @@ def run_grub(file, entry, fs): # If nothing has been specified, look for a Solaris domU. If found, perform the # necessary tweaks. def sniff_solaris(fs, cfg): - if not fs.file_exists("/platform/i86xen/kernel/unix"): + if not fs.file_exists("/platform/i86xpv/kernel/unix"): r...
2012 Oct 19
3
[PATCH] pygrub: Add option to list grub entries
...adds [-l|--list-entries] as an argument to pygrub. Signed-off-by: Charles Arnold <carnold@suse.com> diff -r c1c549c4fe9e tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub Mon Oct 15 16:51:44 2012 +0100 +++ b/tools/pygrub/src/pygrub Fri Oct 19 11:40:49 2012 -0600 @@ -595,7 +595,17 @@ def run_grub(file, entry, fs, cfg_args): sel = g.run() g = Grub(file, fs) - if interactive: + + if list_entries: + for i in range(len(g.cf.images)): + img = g.cf.images[i] + print "title: %s" % img.title + print " root: %s" % img...