|

楼主 |
发表于 2005-8-16 20:18:25
|
显示全部楼层
Post by jhuangjiahua
这个 vmlinuz-2.6-xen0 是给 Xen 虚拟机里的 Debian 用的...............
我想楼主误会了
你看下这个,我把里面的一些复制了下来,
http://www.cl.cam.ac.uk/Research ... dmes/user/user.html
2.4 Configuration
Once you have built and installed the Xen distribution, it is simple to prepare the machine for booting and running Xen.
2.4.1 GRUB Configuration
An entry should be added to grub.conf (often found under /boot/ or /boot/grub/) to allow Xen / XenLinux to boot. This file is sometimes called menu.lst, depending on your distribution. The entry should look something like the following:
title Xen 2.0 / XenLinux 2.6
kernel /boot/xen-2.0.gz dom0_mem=131072
module /boot/vmlinuz-2.6-xen0 root=/dev/sda4 ro console=tty0
The kernel line tells GRUB where to find Xen itself and what boot parameters should be passed to it (in this case, setting domain 0's memory allocation in kilobytes and the settings for the serial port). For more details on the various Xen boot parameters see Section 8.2.
The module line of the configuration describes the location of the XenLinux kernel that Xen should start and the parameters that should be passed to it (these are standard Linux parameters, identifying the root device and specifying it be initially mounted read only and instructing that console output be sent to the screen). Some distributions such as SuSE do not require the ro parameter.
If you want to use an initrd, just add another module line to the configuration, as usual:
module /boot/my_initrd.gz
As always when installing a new kernel, it is recommended that you do not delete existing menu options from menu.lst -- you may want to boot your old Linux kernel in future, particularly if you have problems.
3.3 Example: ttylinux
Ttylinux is a very small Linux distribution, designed to require very few resources. We will use it as a concrete example of how to start a Xen domain. Most users will probably want to install a full-featured distribution once they have mastered the basics3.1.
Download and extract the ttylinux disk image from the Files section of the project's SourceForge site (see http://sf.net/projects/xen/).
Create a configuration file like the following:
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 64
name = "ttylinux"
nics = 1
ip = "1.2.3.4"
disk = ['file:/path/to/ttylinux/rootfs,sda1,w']
root = "/dev/sda1 ro"
Now start the domain and connect to its console:
xm create configfile -c
Login as root, password ro
我感觉vmlinuz-2.6-xenU才是给里面的虚拟机用的。英语不好,猜的成分居多。 |
|