title Red Hat Enterprise Linux ES (Xen 3.0.2)(Serial) root (hd0,0) kernel /xen-3.gz module /vmlinuz-2.6.16-xen3_86.1_rhel4.1 ro root=/dev/vg/root console=ttyS0,9600 console=ttyS0 module /initrd-2.6.16-xen3_86.1_rhel4.1.img |
title Red Hat Enterprise Linux ES (Xen 3.0.2)(Serial) root (hd0,0) kernel /xen-3.gz com1=9600 module /vmlinuz-2.6.16-xen3_86.1_rhel4.1 ro root=/dev/vg/root console=tty1 console=ttyS0,9600 module /initrd-2.6.16-xen3_86.1_rhel4.1.img |
# xm create -c ./xen-vm.conf Using config file "./xen-vm.conf". Error: int argument required |
kernel = "/boot/vmlinuz-2.6-xen" ramdisk = "/boot/initrd-2.6-xen.img" memory = 128 name = "xen-test" vif = [ '' ] disk = [ 'phy:vg/xen, hda1, w' ] root = "/dev/hda1 ro" |
disk = [ 'phy:vg/xen,hda1,w' ] |
Loading scsi_mod.ko module scsi_mod: no version for "struct_module" found: kernel tainted. SCSI subsystem initialized (snip) Scanning logical volumes Reading all physical volumes. This may take a while... No volume groups found Activating logical volumes Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 701) (snip) INIT: Entering runlevel: 3 Entering non-interactive startup Applying Intel Microcode update: FATAL: Module microcode not found. |
# vgscan Reading all physical volumes. This may take a while... No volume groups found |
# vgscan --mknodes Reading all physical volumes. This may take a while... No volume groups found No volume groups found # dmsetup mknodes # dmsetup remove_all |
# mkdir tmp # cd tmp # gzip -dc /boot/initrd-2.6.16-xen3_86.1_rhel4.1.img | cpio -id 5984 blocks # ls -aF ./ ../ bin/ dev/ etc/ init* lib/ loopfs/ proc/ sbin@ sys/ sysroot/ # cat init #!/bin/nash mount -t proc /proc /proc setquiet echo Mounted /proc filesystem echo Mounting sysfs (snip) echo Making device-mapper control node mkdmnod echo Scanning logical volumes <--- この辺 lvm vgscan --ignorelockingfailure <--- この辺 echo Activating logical volumes <--- この辺 lvm vgchange -ay --ignorelockingfailure VolGroup00 <--- この辺 echo Creating root device mkrootdev /dev/root |
(仮想マシン環境で...) # cd /lib/modules # ls -F 2.6.16-xen3_86.1_rhel4.1/ 2.6.9-42.0.2.EL/ 2.6.9-42.0.2.ELsmp/ # depmod 2.6.16-xen3_86.1_rhel4.1 # mkinitrd ./initrd-2.6.16-xen3_86.1_rhel4.1-domainU.img 2.6.16-xen3_86.1_rhel4.1 |
$ sudo xm create -c /etc/xen/vm.conf (snip) Starting anacron: [ OK ] Starting atd: [ OK ] Starting system message bus: [ OK ] Starting HAL daemon: [ OK ] INIT: Id "co" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel |
- <--- 追加 class: KEYBOARD <--- 追加 bus: KEYBOARD <--- 追加 detached: 0 <--- 追加 device: xvc0 <--- 追加 driver: ignore <--- 追加 desc: "Xen Console" <--- 追加 |
# Run gettys in standard runlevels co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav <--- 追加 #1:2345:respawn:/sbin/mingetty tty1 <--- コメントアウト #2:2345:respawn:/sbin/mingetty tty2 <--- コメントアウト #3:2345:respawn:/sbin/mingetty tty3 <--- コメントアウト #4:2345:respawn:/sbin/mingetty tty4 <--- コメントアウト #5:2345:respawn:/sbin/mingetty tty5 <--- コメントアウト #6:2345:respawn:/sbin/mingetty tty6 <--- コメントアウト |
xvc0 <--- 追加 |