Jan 042009
CentOS 5.2のDomain-0上にCentOS 5.2をインストール。ディスクにイメージファイルを使う場合、virt-installで非常に簡単。
# vitrt-install Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. no What is the name of your virtual machine? centos5 How much RAM should be allocated (in megabytes)? 512 What would you like to use as the disk (file path)? /var/lib/xen/images/centos5-sda.img How large would you like the disk (/var/lib/xen/images/centos5-sda.img) to be (in gigabytes)? 8 Would you like to enable graphics support? (yes or no) no What is the install location? http://mirror.centos.org/centos/5/os/x86_64/
ここまで答えればあとはインストーラが起動する。
“Would you like a fully virtualized guest (yes or no)?”にnoを答えれば準仮想化、すなわちXenのDomain-Uになる。
ディスクイメージはSELinuxを有効にしている場合/var/lib/xen/imagesに配置するのが無難らしい。
準仮想化の場合、install location配下のimages/xen/vmlinuzカーネルでブートするようなので、Fedora 9でもいけるかもしれない。
以下はML115 G5でのインストーラ起動までのブートログ。
Starting install... Retrieving file .treeinfo 100% |=========================| 417 B 00:00 Retrieving file vmlinuz.. 100% |=========================| 1.9 MB 00:03 Retrieving file initrd.im 100% |=========================| 5.7 MB 00:08 Creating storage file... 100% |=========================| 8.0 GB 00:00 Creating domain... 0 B 00:01 Bootdata ok (command line is method=http://mirror.centos.org/centos/5/os/x86_64/) Linux version 2.6.18-92.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Jun 10 19:20:18 EDT 2008 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000020800000 (usable) No mptable found. Built 1 zonelists. Total pages: 133120 Kernel command line: method=http://mirror.centos.org/centos/5/os/x86_64/ Initializing CPU#0 PID hash table entries: 4096 (order: 12, 32768 bytes) Xen reported: 2299.998 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) Software IO TLB disabled Memory: 499968k/532480k available (2414k kernel code, 23744k reserved, 1349k data, 176k init) Calibrating delay using timer specific routine.. 5756.12 BogoMIPS (lpj=11512251) Security Framework v1.0.0 initialized SELinux: Initializing. selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary 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) CPU: Physical Processor ID: 0 CPU: Processor Core ID: 1 (SMP-)alternatives turned off Brought up 1 CPUs checking if image is initramfs... it is Grant table initialized NET: Registered protocol family 16 ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire Mutex [2] [20060707] No dock devices found. ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1E7A0 could not acquire Mutex [2] [20060707] Brought up 1 CPUs PCI: Fatal: No PCI config space access function found PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI: disabled xen_mem: Initialising balloon driver. usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: System does not support PCI PCI: System does not support PCI NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 6, 262144 bytes) TCP established hash table entries: 131072 (order: 9, 2097152 bytes) TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered audit: initializing netlink socket (disabled) audit(1230701013.253:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key 52394A11B61A91 - User ID: CentOS (Kernel Module GPG key) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 rtc: IRQ 8 is not free. Non-volatile memory driver v1.2 Linux agpgart interface v0.101 (c) Dave Jones RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize Xen virtual console successfully installed as xvc0 Event-channel device installed. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx ide-floppy driver 0.99.newide usbcore: registered new driver hiddev usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 TCP bic registered Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 XENBUS: Device with no driver: device/vbd/51712 XENBUS: Device with no driver: device/vif/0 Write protecting the kernel read-only data: 461k Greetings. anaconda installer init version 11.1.2.113 starting mounting /proc filesystem... done creating /dev filesystem... done mounting /dev/pts (unix98 pty) filesystem... done mounting /sys filesystem... done anaconda installer init version 11.1.2.113 using /dev/xvc0 as console trying to remount root filesystem read write... done mounting /tmp as ramfs... done running install... running /sbin/loader
Sorry, the comment form is closed at this time.