2009年 02月 17日
SUSE Linux XEN 仮想化システムが起動できない
English Translate by Excite
-シングルユーザモードで XEN Domain-U を起動する-
Para Virtual された仮想化システムのシングルユーザモード起動の方法も記述があります。
How to boot up in single user mode or other run levels
-XEN 仮想化システムを Rescue モードで起動する-
Dom-U を rescue CD でブートする方法などの XEN Domain-u の復旧方法が書かれています。
XEN: How to boot SLES para-virtual DomU's into the Rescue System for disaster recovery
まず、起動CD/DVDから
/boot/i386/vmlinuz-xen
/boot/i386/initrd-xen
の二つのファイルを /etc/xen/rescue-sles10 などのフォルダを作ってコピーします。
/etc/xen/vm/MyVm ファイルのコピーを rescue-sles10 などの名前にコピーします。
コピーした rescure-sles10 を編集します。
------ list ここから ------
name="rescue-sles10" <-----name を変えます
#uuid="a5c2ead2-0369-44f0-6e9d-3ee41e09b657" <-----uuid をコメントアウト
memory=2048
vcpus=2
# ---- ここから追加部分-----
#
kernel="/etc/xen/rescue-sles10/vmlinuz-xen"
ramdisk="/etc/xen/rescue-sles10/initrd-xen"
extra=" install=hd:xvdh rescue=1 xencons=tty"
#---- ここまで-----
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
localtime=0
builder="linux"
bootloader="/usr/lib/xen/boot/domUloader.py"
bootargs="--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen"
extra=" "
disk=[ 'file:/var/lib/xen/images/oes2lx1/oes2lx1.disk0,xvda,w', 'file:/var/lib/xen/images/oes2lx1/oes2lx1.disk1,xvdb,w', 'file:/MyISO/SLED10sp2/SLED-10-SP2-x86-DVD1.iso,xvdc,w' ] <---- ISOファイルの場所を指定します。
vif=[ 'mac=00:16:3e:ae:ae:ae', ]
vfb=['type=vnc,vncunused=1']
------ list ここまで ------
この状態で保存し、rescure します。
# xm create -c rescue-sles10 <---- rescue vmファイルを指定して xm create します。
Using config file "./rescue-sles10".
Started domain rescue-sles10
Bootdata ok (command line is )
Linux version 2.6.16.46-0.12-xen (geeko@buildhost) (gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)) #1 SMP Thu May 17 14:00:09 UTC 2007
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000080800000 (usable)
No mptable found.
Built 1 zonelists
Kernel command line:
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 131072 bytes)
Xen reported: 2009.112 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Software IO TLB disabled
Memory: 2042112k/2105344k available (1902k kernel code, 54420k reserved, 798k data, 160k init)
Calibrating delay using timer specific routine.. 5024.54 BogoMIPS (lpj=10049082)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
checking if image is initramfs... it is
Freeing initrd memory: 7124k freed
Brought up 1 CPUs
migration_cost=0
DMI not present or invalid.
Grant table initialized
NET: Registered protocol family 16
Initializing CPU#1
migration_cost=402
Brought up 2 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Subsystem revision 20060127
ACPI: Interpreter disabled.
xen_mem: Initialising balloon driver.
PCI: System does not support PCI
PCI: System does not support PCI
IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
Setting mem allocation to 2097152 kiB
audit: initializing netlink socket (disabled)
audit(1234856375.251:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
i8042.c: No controller found.
RAMDISK driver initialized: 16 RAM disks of 128000K size 1024 blocksize
xencons_init: Initializing xen vfb; pass xencons=tty to prevent this
Xen virtual console successfully installed as xvc0
Event-channel device installed.
Console: switching to colour frame buffer device 100x37
input: Xen Virtual Keyboard as /class/input/input0
input: Xen Virtual Pointer as /class/input/input1
mice: PS/2 mouse device common for all mice
input: PC Speaker as /class/input/input2
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
XENBUS: Device with no driver: device/vbd/51712
XENBUS: Device with no driver: device/vbd/51728
XENBUS: Device with no driver: device/vbd/51744
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
netfront: Initialising virtual ethernet driver.
netfront: device eth0 has copying receive path.
Registering block device major 202
blkfront: xvda: barriers enabled
xvda: xvda1 xvda2
blkfront: xvdb: barriers enabled
xvdb: xvdb1
blkfront: xvdc: barriers enabled
xvdc: unknown partition table
ReiserFS: xvda2: found reiserfs format "3.6" with standard journal
ReiserFS: xvda2: using ordered data mode
reiserfs: using flush barriers
ReiserFS: xvda2: journal params: device xvda2, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: xvda2: checking transaction log (xvda2)
ReiserFS: xvda2: Using r5 hash to sort names
Adding 787144k swap on /dev/xvda1. Priority:-1 extents:1 across:787144k
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
loop: loaded (max 64 devices)
AppArmor: AppArmor (version 2.0-19.43r6320) initialized
audit(1234856378.287:2): AppArmor (version 2.0-19.43r6320) initialized
audit(1234856383.800:3): audit_pid=1774 old=0 by auid=4294967295
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: duplicate address detected!
Welcome to SUSE Linux Enterprise Server 10 SP1 (x86_64) - Kernel 2.6.16.46-0.12-xen (xvc0).
vmlx01 login:
無事 起動できました。
- key word --
SUSE SLES Linux XEN Virtual Machine Rescue CD Boot Single User Mode
その他の情報はこちらから
非番のエンジニア