Xen PV Bootloader为什么选择PyGrub
2012-09-29 09:59
141 查看
Xen PV Bootloader为什么选择bootloader = '/usr/bin/pygrub'
Question is: Does it copy the req'd kernel and initd temporarily out to Dom0 for it to access it there or does Dom0 access the kernel and initd in their filesystem? Anyone?
Therefore usage is quite easy.
Security Question: Some time ago, someone found a security problem with pyGrub that allowed it to break out of the DomU, i did not find any fix notices - it that problem still relevant?
RESOLVED: This issue has been resolved. Check outhttp://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1068 &http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4993 for details
Install a linux-image-xen of your choice.
Create the /boot/grub directory if it is not present.
Let it create its default menu.lst (update-grub in Debian)
Change your domU.cfg in the Dom0 like this:
- remove kernel and initd stanza - add bootloader stanza, e.g.
You need to see where in the filesystem pygrub lies, debian does not use this path but /usr/lib/xen-$version/bin/pygrub or something like this.
make sure that the partition/lvm/container that contains the kernel and initrd comes first. Xend passes the *first* entry to pyGrub. (At least for Version 3.2.1) If the first disk entry does not contain a kernel you will most likely get
设置menu.lst
If you get this error have a look at /var/log/xen/xend.log . You can read here which parameters were given to pyGrub, try them by Hand and see if pyGrub outputs the right stanzas for domU startup. (They look a little like grub entries LISPified, SXP-Format).
Thanks to (The following is taken from http://lists.xensource.com/archives/html/xen-users/2007-09/msg00524.html and own experience) for first pyGrub Reference.
Why?
PyGrub enables you to start Linux DomUs with the kernels that lie in the filesystem of the DomU instead of with a Kernel that lies in the filesystem of the Dom0. This enables easier kernel update from DomU or migration of HVM'ed Linuxes.Concept
It is used as a Bootloader and provided with Xen. PyGrub behaves like Grub and reads the standard Grub menu.lst to provide the xen create process with the required parameters and SXP stanzas.Question is: Does it copy the req'd kernel and initd temporarily out to Dom0 for it to access it there or does Dom0 access the kernel and initd in their filesystem? Anyone?
Therefore usage is quite easy.
Security Question: Some time ago, someone found a security problem with pyGrub that allowed it to break out of the DomU, i did not find any fix notices - it that problem still relevant?
RESOLVED: This issue has been resolved. Check outhttp://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1068 &http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4993 for details
How?
Install GrubInstall a linux-image-xen of your choice.
Create the /boot/grub directory if it is not present.
Let it create its default menu.lst (update-grub in Debian)
Change your domU.cfg in the Dom0 like this:
- remove kernel and initd stanza - add bootloader stanza, e.g.
bootloader = '/usr/bin/pygrub'
You need to see where in the filesystem pygrub lies, debian does not use this path but /usr/lib/xen-$version/bin/pygrub or something like this.
Important Tip / Caveat
On your disk line, e.g.disk = ['file:/vserver/mail/guest_base2G.img,hda1,w','file:/vserver/mail/guest_swap256M.img,hda2,w','phy:data/mail,hda3,w']
make sure that the partition/lvm/container that contains the kernel and initrd comes first. Xend passes the *first* entry to pyGrub. (At least for Version 3.2.1) If the first disk entry does not contain a kernel you will most likely get
设置menu.lst
Error: Boot loader didn't return any data
If you get this error have a look at /var/log/xen/xend.log . You can read here which parameters were given to pyGrub, try them by Hand and see if pyGrub outputs the right stanzas for domU startup. (They look a little like grub entries LISPified, SXP-Format).
Thanks to (The following is taken from http://lists.xensource.com/archives/html/xen-users/2007-09/msg00524.html and own experience) for first pyGrub Reference.
相关文章推荐
- Xen PV Bootloader为什么选择PyGrub
- android 默认bootloader为什么选择lk?
- 如何选择版本控制系统 ---为什么选择Git版本控制系统
- 韩红为什么要选择退出演艺圈?
- 程序员:为什么选择Java?
- 为什么选择wxWidgets
- 为什么选择PostgreSQL而不是MySQL
- 我为什么选择python
- 为什么MySQL数据库索引选择使用B+树?
- 为什么越来越多的开发者选择使用Spring Boot
- 为什么要用VisualSVN Server,而不用Subversion? [SVN 服务器的选择] - 摘自网络
- 作为前端,我为什么选择 Angular 2?
- Mongoose(一):为什么选择Mongoose
- NetBeans IDE的新旧键绑定,为什么选择 vi?
- NetBeans IDE的新旧键绑定,为什么选择 vi?
- 为什么选择微软Dynamics 365作为企业客户关系管理系统(中)
- 为什么很多程序员都选择跳槽
- 为什么Quora选择Python而不是PHP
- 为什么选择Microsoft Windows XP Embedded,而不选择嵌入式 Linux?
- 【转】为什么很多程序员都选择跳槽?为什么你没有加薪?