昨日の続き。
vm.cfgに以下を記述。「,mac=00:16:3e:00:00:11」を追加しただけ。macアドレスは適当。
bootloader = '/usr/bin/pygrub' disk = ['file:/OVS/seed_pool/OVM_OL5U7_X86_PVM_10GB/System.img,xvda,w'] memory = '2048' name = 'OVM_OL5U7_X86_PVM_10GB' vcpus = 2 on_crash = 'restart' on_reboot = 'restart' vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0'] vif = ['type=netfront,mac=00:16:3e:00:00:11'] timer_mode = 0
起動したらコンソールに返ってこない。
[root@ovs-d7-14-e3 OVM_OL5U7_X86_PVM_10GB]# xm create -c /OVS/seed_pool/OVM_OL5U7_X86_PVM_10GB/vm.cfg Using config file "/OVS/seed_pool/OVM_OL5U7_X86_PVM_10GB/vm.cfg". Using <class 'grub.GrubConf.GrubConfigFile'> to parse /grub/menu.lst pyGRUB version 0.6 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Oracle Linux Server (2.6.32-200.13.1.el5uek) x x Oracle Linux Server (2.6.18-274.0.0.0.1.el5xen) x x x x x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. Will boot selected entry in 1 seconds Started domain OVM_OL5U7_X86_PVM_10GB (id=1) Reserving virtual address space above 0xf5800000 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 2.6.32-200.13.1.el5uek (mockbuild@ca-build9.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Wed Jul 27 20:21:26 EDT 2011 KERNEL supported cpus: Intel GenuineIntel AMD AuthenticAMD NSC Geode by NSC Cyrix CyrixInstead Centaur CentaurHauls Transmeta GenuineTMx86 Transmeta TransmetaCPU UMC UMC UMC UMC ACPI in unprivileged domain disabled BIOS-provided physical RAM map: Xen: 0000000000000000 - 00000000000a0000 (usable) Xen: 00000000000a0000 - 0000000000100000 (reserved) Xen: 0000000000100000 - 0000000080000000 (usable) DMI not present or invalid. last_pfn = 0x80000 max_arch_pfn = 0x1000000 init_memory_mapping: 0000000000000000-000000002cdfe000 NX (Execute Disable) protection: active RAMDISK: 00cb8000 - 012dc000 1330MB HIGHMEM available. 717MB LOWMEM available. mapped low ram: 0 - 2cdfe000 low ram: 0 - 2cdfe000 node 0 low ram: 00000000 - 2cdfe000 node 0 bootmap 00007000 - 0000c9c0 (9 early reservations) ==> bootmem [0000000000 - 002cdfe000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000] #1 [00014df000 - 00014ed000] XEN PAGETABLES ==> [00014df000 - 00014ed000] #2 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000] #3 [0000006000 - 0000007000] TRAMPOLINE ==> [0000006000 - 0000007000] #4 [0000400000 - 0000b92ec8] TEXT DATA BSS ==> [0000400000 - 0000b92ec8] #5 [0000cb8000 - 00012dc000] RAMDISK ==> [0000cb8000 - 00012dc000] #6 [00012dc000 - 00014df000] XEN START INFO ==> [00012dc000 - 00014df000] #7 [0000100000 - 000025a000] PGTABLE ==> [0000100000 - 000025a000] #8 [0000007000 - 000000d000] BOOTMAP ==> [0000007000 - 000000d000] Zone PFN ranges: DMA 0x00000000 -> 0x00001000 Normal 0x00001000 -> 0x0002cdfe HighMem 0x0002cdfe -> 0x00080000 Movable zone start PFN for each node early_node_map[2] active PFN ranges 0: 0x00000000 -> 0x000000a0 0: 0x00000100 -> 0x00080000 Using APIC driver default SMP: Allowing 2 CPUs, 0 hotplug CPUs Local APIC disabled by BIOS -- you can enable it with "lapic" APIC: disable apic facility PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 Allocating PCI resources starting at 80000000 (gap: 80000000:80000000) Booting paravirtualized kernel on Xen Xen version: 4.1.3OVM (preserve-AD) NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:2 nr_node_ids:1 PERCPU: Embedded 14 pages/cpu @c24fa000 s36792 r0 d20552 u65536 pcpu-alloc: s36792 r0 d20552 u65536 alloc=16*4096 pcpu-alloc: [0] 0 [0] 1 Xen: using vcpu_info placement Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520095 Kernel command line: ro root=LABEL=/ PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 allocated 10485760 bytes of page_cgroup please try 'cgroup_disable=memory' option if you don't want memory cgroups Initializing HighMem for node 0 (0002cdfe:00080000) Memory: 2050824k/2097152k available (3808k kernel code, 45144k reserved, 2523k data, 564k init, 1361928k highmem) virtual kernel memory layout: fixmap : 0xf52d5000 - 0xf57ff000 (5288 kB) pkmap : 0xf4e00000 - 0xf5000000 (2048 kB) vmalloc : 0xed5fe000 - 0xf4dfe000 ( 120 MB) lowmem : 0xc0000000 - 0xecdfe000 ( 717 MB) .init : 0xc0a2f000 - 0xc0abc000 ( 564 kB) .data : 0xc07b80e2 - 0xc0a2ee48 (2523 kB) .text : 0xc0400000 - 0xc07b80e2 (3808 kB) Hierarchical RCU implementation. NR_IRQS:1280 Console: colour dummy device 80x25 console [tty0] enabled console [hvc0] enabled installing Xen timer for CPU 0 Detected 3499.074 MHz processor. Calibrating delay loop (skipped), value calculated using timer frequency.. 6998.14 BogoMIPS (lpj=3499074) Security Framework initialized SELinux: Initializing. Mount-cache hash table entries: 512 Initializing cgroup subsys ns Initializing cgroup subsys cpuacct Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys net_cls CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 256K CPU: L3 cache: 8192K CPU: Unsupported number of siblings 16 Performance Events: unsupported p6 CPU model 60 no PMU driver, software events only. SMP alternatives: switching to UP code ftrace: converting mcount calls to 0f 1f 44 00 00 ftrace: allocating 26259 entries in 52 pages installing Xen timer for CPU 1 SMP alternatives: switching to SMP code Initializing CPU#1 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 256K CPU: L3 cache: 8192K CPU: Unsupported number of siblings 16 Brought up 2 CPUs Grant table initialized regulator: core version 0.5 Time: 165:165:165 Date: 165/165/65 NET: Registered protocol family 16 PCI: Fatal: No config space access function found bio: create slab <bio-0> at 0 ACPI: Interpreter disabled. xen_balloon: Initialising balloon driver. vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb 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 Switching to clocksource xen pnp: PnP ACPI: disabled NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered NET: Registered protocol family 1 Trying to unpack rootfs image as initramfs... Freeing initrd memory: 6288k freed platform rtc_cmos: registered platform RTC device (no PNP device found) apm: BIOS not found. audit: initializing netlink socket (disabled) type=2000 audit(1383087634.539:1): initialized highmem bounce pool size: 64 pages HugeTLB registered 2 MB page size, pre-allocated 0 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) msgmni has been set to 1359 alg: No test for stdrng (krng) ksign: Installing public key data Loading keyring - Added public key 84177E20327C5FAD - User ID: Oracle America, Inc. (Kernel Module GPG key) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered (default) io scheduler cfq registered pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: PCI Express Hot Plug Controller Driver version: 0.4 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 Console: switching to colour frame buffer device 100x37 console [tty0] enabled Non-volatile memory driver v1.3 Linux agpgart interface v0.103 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled brd: module loaded loop: module loaded input: Macintosh mouse button emulation as /class/input/input0 Fixed MDIO Bus: probed ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver uhci_hcd: USB Universal Host Controller Interface driver PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice input: Xen Virtual Keyboard as /class/input/input1 input: Xen Virtual Pointer as /class/input/input2 rtc_cmos: probe of rtc_cmos failed with error -16 device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com cpuidle: using governor ladder usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver TCP cubic registered Initializing XFRM netlink socket NET: Registered protocol family 17 Using IPI No-Shortcut mode registered taskstats version 1 No TPM chip found, activating TPM-bypass! XENBUS: Device with no driver: device/vbd/51712 XENBUS: Device with no driver: device/vif/0 XENBUS: Device with no driver: device/console/0 Magic number: 1:252:3141 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Initalizing network drop monitor service Freeing unused kernel memory: 564k freed Write protecting the kernel text: 3812k Write protecting the kernel read-only data: 1912k blkfront: xvda: barriers enabled (tag) xvda: xvda1 xvda2 xvda3 kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. SELinux: class peer not defined in policy SELinux: class capability2 not defined in policy SELinux: class kernel_service not defined in policy SELinux: class tun_socket not defined in policy SELinux: permission open in class dir not defined in policy SELinux: permission open in class file not defined in policy SELinux: permission open in class chr_file not defined in policy SELinux: permission open in class blk_file not defined in policy SELinux: permission open in class sock_file not defined in policy SELinux: permission open in class fifo_file not defined in policy SELinux: permission recvfrom in class node not defined in policy SELinux: permission sendto in class node not defined in policy SELinux: permission ingress in class netif not defined in policy SELinux: permission egress in class netif not defined in policy SELinux: permission module_request in class system not defined in policy SELinux: permission setfcap in class capability not defined in policy SELinux: permission nlmsg_tty_audit in class netlink_audit_socket not defined in policy SELinux: permission forward_in in class packet not defined in policy SELinux: permission forward_out in class packet not defined in policy SELinux: the above unknown classes and permissions will be allowed type=1403 audit(1383087655.496:2): policy loaded auid=4294967295 ses=4294967295
BBルータから割り当てたつもりのIPアドレスにPINGを打っても返ってこない。
そもそもxm create コマンドは戻ってくるものなのかどうかも知らないからなぁ。
ちなみにxm listでステートがbなのはblockedでIO待ちか暇なんだそうな。
http://linux.die.net/man/1/xm
[root@ovs-d7-14-e3 OVM_OL5U7_X86_PVM_10GB]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 832 8 r----- 114.9 OVM_OL5U7_X86_PVM_10GB 2 2048 2 -b---- 75.8 [root@ovs-d7-14-e3 OVM_OL5U7_X86_PVM_10GB]#
たまにrになるから、何か動作はしてるっぽい感触だが、起動に成功したのかしてないのか良く分からん。分かるのはpingが通らないという事だけ。
こう、貼り付けて眺めると Linux version 2.6.32-200.13.1.el5uek になってるのがちょっと気になるな。
不確定要素つぶすため、vifにMACアドレスではなくIPアドレス直打ちにしてみるか。あとXenのコマンドをもう少し調べれば状態を見る方法もあるだろう。
平日なので本日はこれまで。まぁいざもうお手上げとなれば、XenServerにするなり、CentOSあたりを入れてその上にVirtual Boxなり、あるいはあと1万5千円払ってWindows 8.1 Proを入れてHyper-V等々幾らでも手はある。KVMというのもあるらしいがこれは殆ど知らない。Oracle のVMテンプレートを使いたいのでOracle VMが一番望ましいが…。
[root@ovs-d7-14-e3 OVM_OL5U7_X86_PVM_10GB]# xm console OVM_OL5U7_X86_PVM_10GB
でxm consoleが返ってこない所を見ると、うまく起動していないようだ。
xm create を-cオプションだとそこでコンソールが開くのか…。
となるとLoginプロンプトが出ずに固まっているのは起動中に固まってる訳だな。
上記エラーメッセージについては
http://wiki.gentoo.org/wiki/SELinux/FAQ#I_get_a_.27Permission_..._in_class_..._not_defined.27_message_during_booting
ただの警告っぽい。このあとCompleteが出てログインのプロンプトが出る筈なんだが…。
[root@ovs-d7-14-e3 OVM_OL5U7_X86_PVM_10GB]# xm create /OVS/seed_pool/OVM_OL5U7_X86_PVM_10GB/vm.cfg -c Using config file "/OVS/seed_pool/OVM_OL5U7_X86_PVM_10GB/vm.cfg". Using <class 'grub.GrubConf.GrubConfigFile'> to parse /grub/menu.lst pyGRUB version 0.6 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Oracle Linux Server (2.6.32-200.13.1.el5uek) x x Oracle Linux Server (2.6.18-274.0.0.0.1.el5xen) x x x x x x x x x x x x x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. Started domain OVM_OL5U7_X86_PVM_10GB (id=3) Linux version 2.6.18-274.0.0.0.1.el5xen (mockbuild@ca-build10.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Mon Jul 25 15:08:00 EDT 2011 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000080800000 (usable) 1328MB HIGHMEM available. 727MB LOWMEM available. NX (Execute Disable) protection: active ACPI in unprivileged domain disabled Built 1 zonelists. Total pages: 526336 Kernel command line: ro root=LABEL=/ Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 CPU 0 irqstacks, hard=c0780000 soft=c0760000 PID hash table entries: 4096 (order: 12, 16384 bytes) Xen reported: 3499.074 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Software IO TLB disabled vmalloc area: ee000000-f4ffe000, maxmem 2d7fe000 Memory: 2063428k/2105344k available (2201k kernel code, 32632k reserved, 1033k data, 184k init, 1359880k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 8792.51 BogoMIPS (lpj=17585029) 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: 512 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 256K CPU: L3 cache: 8192K Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code CPU 1 irqstacks, hard=c0781000 soft=c0761000 Brought up 1 CPUs checking if image is initramfs... it is Freeing initrd memory: 7140k freed Grant table initialized NET: Registered protocol family 16 SMP alternatives: switching to SMP code Initializing CPU#1 migration_cost=106 Brought up 2 CPUs 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. xen_mem: balloon driver: current pages 524288 totalram_pages 524288 RAM bias 0 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: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered audit: initializing netlink socket (disabled) type=2000 audit(1383095563.847:1): initialized highmem bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API alg: No test for crc32c (crc32c-generic) ksign: Installing public key data Loading keyring - Added public key 6351E2D54F6CF35D - User ID: Oracle USA, Inc. (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 brd: module loaded Xen virtual console successfully installed as xvc0 Event-channel device installed. Console: switching to colour frame buffer device 100x37 input: Xen Virtual Keyboard/Mouse as /class/input/input0 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 Using IPI No-Shortcut mode XENBUS: Device with no driver: device/vbd/51712 XENBUS: Device with no driver: device/vif/0 XENBUS: Device with no driver: device/console/0 Initalizing network drop monitor service Freeing unused kernel memory: 184k freed Write protecting the kernel read-only data: 399k USB Universal Host Controller Interface driver v3.0 SCSI subsystem initialized device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.11.6-ioctl (2011-02-18) initialised: dm-devel@redhat.com device-mapper: dm-raid45: initialized v0.2594l Registering block device major 202 xvda: xvda1 xvda2 xvda3 kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. type=1403 audit(1383095588.021:2): policy loaded auid=4294967295 ses=4294967295
起動時に下の Oracle Linux Server (2.6.18-274.0.0.0.1.el5xen) を選択したところ、やはり固まる。
vm.cfgにまだ設定とか居るのかしら。
コメント