From: Ian Campbell <ian.campbell@citrix.com>
To: Sanjeev Pandita <spandita@apm.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Pranavkumar Sawargaonkar <psawargaonkar@apm.com>,
Jitendra Kanitkar <jkanitkar@apm.com>,
xen-devel@lists.xen.org
Subject: Re: Pygrub on ARM64
Date: Wed, 24 Feb 2016 12:08:05 +0000 [thread overview]
Message-ID: <1456315685.6225.153.camel@citrix.com> (raw)
In-Reply-To: <CAPYnYDkWUk6ODj4C+vgzyMueEoTG5_zSorZ1hqhS=bxzK-5+UQ@mail.gmail.com>
On Wed, 2016-02-24 at 16:35 +0530, Sanjeev Pandita wrote:
> Hi Ian/All,
Please don't top post.
> If I run the command manually it says OSError: no such file or directory
> .
>
> [root@localhost ~]# /usr/local/lib/xen/bin/pygrub
> --args=root=/dev/xvda4 rw console=hvc0 earlyprintk=xen
> --output=/var/run/xen/bootloader.25.out --output-format=simple0
> --output-directory=/var/run/xen/bootloader.25.d
> /mnt/xen/CentOS-7-aarch64.img
[...]
> OSError: [Errno 2] No such file or directory: 'rw'
This is because you haven't quoted the "--args", everything from
"root=/dev/xvda4" up to "earlyprintk=xen" should be quoted in the shell,
that "rw" is supposed to be part of the eventual kernel command line[*].
You are using a local raw image, so it seems to be doing the local attach
thing and then passing the raw image to pygrub, which should work I think.
As well as trying to run pygrub by hand again with proper quoting you could
also try "xl console vm1" after you run the create, it could be that pygrub
is actually working and waiting for user input on the console.
Ian.
[*] normally this information would come from your grub.cfg in the guest,
so you might want to remove the extra = in your guest cfg, or maybe you are
deliberately overriding grub.cfg, in any case you are not yet at the point
where this setting would make any difference.
Ian.
next prev parent reply other threads:[~2016-02-24 12:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 10:22 Pygrub on ARM64 Sanjeev Pandita
2016-02-24 10:27 ` Ian Campbell
2016-02-24 11:05 ` Sanjeev Pandita
2016-02-24 12:08 ` Ian Campbell [this message]
2016-02-25 7:50 ` Sanjeev Pandita
2016-02-25 9:39 ` Ian Campbell
2016-02-25 10:35 ` Stefano Stabellini
2016-02-25 10:47 ` Ian Campbell
2016-02-25 10:53 ` Ian Campbell
2016-02-25 11:12 ` Ian Campbell
2016-02-25 11:22 ` Ian Campbell
2016-02-25 11:04 ` Sanjeev Pandita
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456315685.6225.153.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=jkanitkar@apm.com \
--cc=psawargaonkar@apm.com \
--cc=spandita@apm.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).