ubuntu1010-UEC-localuser-imageの起動中にmountall: Event failedする

1,116 views
Skip to first unread message

tacky1052

unread,
May 19, 2011, 5:39:43 AM5/19/11
to 日本OpenStackユーザ会
初めて投稿させていただきます。
NTTソフトウェアの瀧口と申します。
よろしくお願いいたします。

cactusのインストールAdminマニュアルに沿って実行しているのですが、
http://docs.openstack.org/cactus/openstack-compute/admin/content/starting-images.html
7.1. Starting Images
にある
euca-run-instances -k test -t m1.tiny ami-zqkyh9th
の実行後にinstanceに対してSSHできずに、まいっています。

root@ubuntu:/var/lib/nova/networks# euca-describe-instances
RESERVATION r-v0ydkttm default default
INSTANCE i-0000000d ami-01595b25 172.16.25.18
172.16.25.18 running test (default, ubuntu) 0
m1.tiny 2011-05-19T18:05:52Z nova
root@ubuntu:/var/lib/nova/networks# ping 172.16.25.18
PING 172.16.25.18 (172.16.25.18) 56(84) bytes of data.
64 bytes from 172.16.25.18: icmp_seq=1 ttl=64 time=10.4 ms
64 bytes from 172.16.25.18: icmp_seq=2 ttl=64 time=1.01 ms
^C
--- 172.16.25.18 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.015/5.715/10.416/4.701 ms
root@ubuntu:/var/lib/nova/networks# ssh ubu...@172.16.25.18
ssh: connect to host 172.16.25.18 port 22: Connection refused

instanceの標準出力をとると、
euca-get-console-output i-0000000d
--中略--
[ 2.138521] Freeing unused kernel memory: 1612k freed
init: plymouth main process (49) killed by SEGV signal
init: plymouth-splash main process (291) terminated with status 2
cloud-init start-local running: Thu, 19 May 2011 18:07:46 +0000. up
101.26 seconds
no instance data found in start-local
init: cloud-init-local main process (268) terminated with status 1
cloud-init start running: Thu, 19 May 2011 18:07:57 +0000. up 112.11
seconds
found data source: DataSourceEc2
Generating locales...
en_US.UTF-8... done
Generation complete.
mountall: Event failed
init: mountall main process (53) killed by PIPE signal
init: plymouth-stop pre-start process (420) terminated with status 1
General error mounting filesystems.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system.
Give root password for maintenance
(or type Control-D to continue):

mountall: Event failed
が原因かと推測するのですが、同じようなケースに遭遇した方はいらっしゃいますでしょうか?

ディスクイメージはできているようです。
root@ubuntu:~# ls /var/lib/nova/instances/instance-0000000d/
console.log disk kernel libvirt.xml

私の環境の特徴として、KVM上でnovaをVMとして構築しようとしている点があります。
このフェーズで影響することはあまりないかと思うのですが。

よろしくお願いいたします。

Akira Yoshiyama

unread,
May 19, 2011, 8:07:21 AM5/19/11
to openst...@googlegroups.com

吉山@新幹線です。

お問い合わせの件、下記情報を提供願います。

* /etc/nova/nova.conf の中身
* file /var/lib/nova/instances/instance-0000000d/disk の結果
* /var/lib/nova/instances/instance-0000000d/libvirt.xml の中身
* VM インスタンスのコンさソール出力全て
* df -h の出力

2011/05/19 18:39 "tacky1052" <takiguchi...@gmail.com>:

igoigo246

unread,
May 19, 2011, 8:37:53 PM5/19/11
to openst...@googlegroups.com
碇です

qemuだと同じ症状がでました。
KVMだと問題なく起動できたので放置しています(ry

以上参考になれば幸いです

2011-05-19 (木) の 02:39 -0700 に tacky1052 さんは書きました:

tacky1052

unread,
May 19, 2011, 10:01:55 PM5/19/11
to 日本OpenStackユーザ会
吉山さん

瀧口です。
ご回答ありがとうございます。

設定情報等をお送りします。
よろしくお願いいたします。

--------------------------------------------------------------------------------------
* /etc/nova/nova.conf の中身
--------------------------------------------------------------------------------------
root@ubuntu:~# cat /etc/nova/nova.conf
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=172.16.25.2
--rabbit_host=172.16.25.2
--cc_host=172.16.25.2
--ec2_url=http://172.16.25.2:8773/services/Cloud
--fixed_range=172.16.25.0/27
--network_size=10
--FAKE_subdomain=ec2
--routing_source_ip=172.16.25.2
--verbose
--sql_connection=mysql://root:ntt...@172.16.25.2/nova
--network_manager=nova.network.manager.FlatManager
--flat_interface=eth0
--libvirt_type=qemu

--------------------------------------------------------------------------------------
* file /var/lib/nova/instances/instance-0000000d/disk の結果
--------------------------------------------------------------------------------------
root@ubuntu:~# file /var/lib/nova/instances/instance-0000000d/disk
/var/lib/nova/instances/instance-0000000d/disk: Qemu Image, Format:
Qcow , Version: 2

--------------------------------------------------------------------------------------
* /var/lib/nova/instances/instance-0000000d/libvirt.xml の中身
--------------------------------------------------------------------------------------
root@ubuntu:~# cat /var/lib/nova/instances/instance-0000000d/
libvirt.xml
<domain type='qemu'>
<name>instance-0000000d</name>
<memory>524288</memory>
<os>
<type>hvm</type>
<kernel>/var/lib/nova/instances/instance-0000000d/kernel</
kernel>
<cmdline>root=/dev/vda console=ttyS0</cmdline>
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<disk type='file'>
<driver type='qcow2'/>
<source file='/var/lib/nova/instances/instance-0000000d/
disk'/>
<target dev='vda' bus='virtio'/>
</disk>

<interface type='bridge'>
<source bridge='br100'/>
<mac address='02:16:3e:5c:27:d0'/>
<!-- <model type='virtio'/> CANT RUN virtio network
right now -->
<filterref filter="nova-instance-
instance-0000000d-02163e5c27d0">
<parameter name="IP" value="172.16.25.18" />
<parameter name="DHCPSERVER" value="172.16.25.1" />
</filterref>
</interface>
<!-- The order is significant here. File must be defined
first -->
<serial type="file">
<source path='/var/lib/nova/instances/instance-0000000d/
console.log'/>
<target port='1'/>
</serial>

<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>

<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>

<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'
listen='0.0.0.0'/>
</devices>
</domain>

--------------------------------------------------------------------------------------
* VM インスタンスのコンさソール出力全て
--------------------------------------------------------------------------------------
root@ubuntu:~# euca-get-console-output i-0000000d
i-0000000d
2011-05-20T10:58:57Z
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-24-virtual (buildd@yellow) (gcc
version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #42-Ubuntu SMP Thu Dec
2 05:15:26 UTC 2010 (Ubuntu 2.6.35-24.42-virtual 2.6.35.8)
[ 0.000000] Command line: root=/dev/vda console=ttyS0
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f000
(usable)
[ 0.000000] BIOS-e820: 000000000009f000 - 00000000000a0000
(reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000
(reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001fffb000
(usable)
[ 0.000000] BIOS-e820: 000000001fffb000 - 0000000020000000
(reserved)
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000
(reserved)
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI 2.4 present.
[ 0.000000] No AGP bridge found
[ 0.000000] last_pfn = 0x1fffb max_arch_pfn = 0x400000000
[ 0.000000] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] modified physical RAM map:
[ 0.000000] modified: 0000000000000000 - 0000000000010000
(reserved)
[ 0.000000] modified: 0000000000010000 - 000000000009f000 (usable)
[ 0.000000] modified: 000000000009f000 - 00000000000a0000
(reserved)
[ 0.000000] modified: 00000000000f0000 - 0000000000100000
(reserved)
[ 0.000000] modified: 0000000000100000 - 000000001fffb000 (usable)
[ 0.000000] modified: 000000001fffb000 - 0000000020000000
(reserved)
[ 0.000000] modified: 00000000fffc0000 - 0000000100000000
(reserved)
[ 0.000000] found SMP MP-table at [ffff8800000f8990] f8990
[ 0.000000] init_memory_mapping: 0000000000000000-000000001fffb000
[ 0.000000] ACPI: RSDP 00000000000f8940 00014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 000000001fffde30 00034 (v01 BOCHS BXPCRSDT
00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 000000001ffffe70 00074 (v01 BOCHS BXPCFACP
00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 000000001fffdfd0 01E22 (v01 BXPC BXDSDT
00000001 INTL 20090123)
[ 0.000000] ACPI: FACS 000000001ffffe00 00040
[ 0.000000] ACPI: SSDT 000000001fffdf90 00037 (v01 BOCHS BXPCSSDT
00000001 BXPC 00000001)
[ 0.000000] ACPI: APIC 000000001fffdeb0 00072 (v01 BOCHS BXPCAPIC
00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 000000001fffde70 00038 (v01 BOCHS BXPCHPET
00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000001fffb000
[ 0.000000] Initmem setup node 0 0000000000000000-000000001fffb000
[ 0.000000] NODE_DATA [0000000001d1b080 - 0000000001d2007f]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal empty
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x0000009f
[ 0.000000] 0: 0x00000100 -> 0x0001fffb
[ 0.000000] ACPI: PM-Timer IO Port: 0xb008
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000,
GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl
dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high
level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high
level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high
level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high
level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: 000000000009f000 -
00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 -
00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 -
0000000000100000
[ 0.000000] Allocating PCI resources starting at 20000000 (gap:
20000000:dffc0000)
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:
1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 30 pages/cpu @ffff880001e00000 s91520
r8192 d23168 u2097152
[ 0.000000] pcpu-alloc: s91520 r8192 d23168 u2097152
alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on.
Total pages: 129162
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/vda console=ttyS0
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Subtract (40 early reservations)
[ 0.000000] #1 [0001000000 - 0001d1a954] TEXT DATA BSS
[ 0.000000] #2 [0001d1b000 - 0001d1b071] BRK
[ 0.000000] #3 [000009f000 - 00000f8990] BIOS reserved
[ 0.000000] #4 [00000f8990 - 00000f89a0] MP-table mpf
[ 0.000000] #5 [00000f8a90 - 0000100000] BIOS reserved
[ 0.000000] #6 [00000f89a0 - 00000f8a90] MP-table mpc
[ 0.000000] #7 [0000010000 - 0000012000] TRAMPOLINE
[ 0.000000] #8 [0000012000 - 0000016000] ACPI WAKEUP
[ 0.000000] #9 [0000016000 - 0000017000] PGTABLE
[ 0.000000] #10 [0001d1b080 - 0001d20080] NODE_DATA
[ 0.000000] #11 [0001d20080 - 0001d21080] BOOTMEM
[ 0.000000] #12 [0000017000 - 0000017060] BOOTMEM
[ 0.000000] #13 [0002522000 - 0002523000] BOOTMEM
[ 0.000000] #14 [0002523000 - 0002524000] BOOTMEM
[ 0.000000] #15 [0002600000 - 0002e00000] MEMMAP 0
[ 0.000000] #16 [0001d21080 - 0001d39080] BOOTMEM
[ 0.000000] #17 [0001d39080 - 0001d51080] BOOTMEM
[ 0.000000] #18 [0001d52000 - 0001d53000] BOOTMEM
[ 0.000000] #19 [0001d1a980 - 0001d1a9c1] BOOTMEM
[ 0.000000] #20 [0001d1aa00 - 0001d1aa43] BOOTMEM
[ 0.000000] #21 [0001d1aa80 - 0001d1ac08] BOOTMEM
[ 0.000000] #22 [0001d1ac40 - 0001d1aca8] BOOTMEM
[ 0.000000] #23 [0001d1acc0 - 0001d1ad28] BOOTMEM
[ 0.000000] #24 [0001d1ad40 - 0001d1ada8] BOOTMEM
[ 0.000000] #25 [0001d1adc0 - 0001d1ae28] BOOTMEM
[ 0.000000] #26 [0001d1ae40 - 0001d1aea8] BOOTMEM
[ 0.000000] #27 [0001d1aec0 - 0001d1af28] BOOTMEM
[ 0.000000] #28 [0001d1af40 - 0001d1af60] BOOTMEM
[ 0.000000] #29 [0001d1af80 - 0001d1af9c] BOOTMEM
[ 0.000000] #30 [0001d1afc0 - 0001d1afdc] BOOTMEM
[ 0.000000] #31 [0001e00000 - 0001e1e000] BOOTMEM
[ 0.000000] #32 [0001d51080 - 0001d51088] BOOTMEM
[ 0.000000] #33 [0001d510c0 - 0001d510c8] BOOTMEM
[ 0.000000] #34 [0001d51100 - 0001d51104] BOOTMEM
[ 0.000000] #35 [0001d51140 - 0001d51148] BOOTMEM
[ 0.000000] #36 [0001d51180 - 0001d512d0] BOOTMEM
[ 0.000000] #37 [0001d51300 - 0001d51380] BOOTMEM
[ 0.000000] #38 [0001d51380 - 0001d51400] BOOTMEM
[ 0.000000] #39 [0001d53000 - 0001d57000] BOOTMEM
[ 0.000000] Memory: 501804k/524268k available (5817k kernel code,
452k absent, 22012k reserved, 5363k data, 828k init)
[ 0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:4352 nr_irqs:256
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 5242880 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.000000] Fast TSC calibration failed
[ 0.000000] TSC: Unable to calibrate against PIT
[ 0.000000] TSC: using HPET reference calibration
[ 0.000000] Detected 1699.976 MHz processor.
[ 0.061546] Calibrating delay loop (skipped), value calculated
using timer frequency.. 3399.95 BogoMIPS (lpj=16999760)
[ 0.062761] pid_max: default: 32768 minimum: 301
[ 0.066805] Security Framework initialized
[ 0.073924] AppArmor: AppArmor initialized
[ 0.074253] Yama: becoming mindful.
[ 0.081278] Dentry cache hash table entries: 65536 (order: 7,
524288 bytes)
[ 0.084720] Inode-cache hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.087247] Mount-cache hash table entries: 256
[ 0.102370] Initializing cgroup subsys ns
[ 0.103169] Initializing cgroup subsys cpuacct
[ 0.103624] Initializing cgroup subsys memory
[ 0.105034] Initializing cgroup subsys devices
[ 0.105479] Initializing cgroup subsys freezer
[ 0.105988] Initializing cgroup subsys net_cls
[ 0.109106] mce: CPU supports 10 MCE banks
[ 0.113899] Performance Events: AMD PMU driver.
[ 0.114794] ... version: 0
[ 0.115238] ... bit width: 48
[ 0.115548] ... generic registers: 4
[ 0.116026] ... value mask: 0000ffffffffffff
[ 0.116438] ... max period: 00007fffffffffff
[ 0.116827] ... fixed-purpose events: 0
[ 0.117229] ... event mask: 000000000000000f
[ 0.118730] SMP alternatives: switching to UP code
[ 0.292197] Freeing SMP alternatives: 24k freed
[ 0.294442] ACPI: Core revision 20100428
[ 0.351258] ftrace: converting mcount calls to 0f 1f 44 00 00
[ 0.352006] ftrace: allocating 23027 entries in 91 pages
[ 0.374056] Setting APIC routing to flat
[ 0.390999] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.503048] CPU0: AMD QEMU Virtual CPU version 0.12.3 stepping 03
[ 0.510000] Brought up 1 CPUs
[ 0.510000] Total of 1 processors activated (3399.95 BogoMIPS).
[ 0.520327] devtmpfs: initialized
[ 0.605483] regulator: core version 0.5
[ 0.606376] Time: 18:06:06 Date: 05/19/11
[ 0.608523] NET: Registered protocol family 16
[ 0.620287] ACPI: bus type pci registered
[ 0.624119] PCI: Using configuration type 1 for base access
[ 0.648648] bio: create slab <bio-0> at 0
[ 0.726623] ACPI: Interpreter enabled
[ 0.727095] ACPI: (supports S0 S3 S4 S5)
[ 0.728769] ACPI: Using IOAPIC for interrupt routing
[ 0.835948] ACPI: No dock devices found.
[ 0.836433] PCI: Ignoring host bridge windows from ACPI; if
necessary, use "pci=use_crs" and report a bug
[ 0.840435] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.849010] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by
PIIX4 ACPI
[ 0.849543] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by
PIIX4 SMB
[ 0.955714] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.958246] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.960242] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.963362] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.964524] HEST: Table is not found!
[ 0.970622] vgaarb: device added: PCI:0000:00:02.0,decodes=io
+mem,owns=io+mem,locks=none
[ 0.971371] vgaarb: loaded
[ 0.981323] SCSI subsystem initialized
[ 0.985969] usbcore: registered new interface driver usbfs
[ 0.987057] usbcore: registered new interface driver hub
[ 0.988388] usbcore: registered new device driver usb
[ 0.993649] ACPI: WMI: Mapper loaded
[ 0.994122] PCI: Using ACPI for IRQ routing
[ 1.006202] NetLabel: Initializing
[ 1.006603] NetLabel: domain hash size = 128
[ 1.006888] NetLabel: protocols = UNLABELED CIPSOv4
[ 1.010652] NetLabel: unlabeled traffic allowed by default
[ 1.012731] HPET: 3 timers in total, 0 timers will be used for per-
cpu timer
[ 1.013819] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[ 1.014332] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[ 1.030633] Switching to clocksource tsc
[ 1.325533] AppArmor: AppArmor Filesystem Enabled
[ 1.326784] pnp: PnP ACPI init
[ 1.327489] ACPI: bus type pnp registered
[ 1.345824] pnp: PnP ACPI: found 6 devices
[ 1.346326] ACPI: ACPI bus type pnp unregistered
[ 1.399045] NET: Registered protocol family 2
[ 1.401996] IP route cache hash table entries: 4096 (order: 3,
32768 bytes)
[ 1.412873] TCP established hash table entries: 16384 (order: 6,
262144 bytes)
[ 1.415714] TCP bind hash table entries: 16384 (order: 6, 262144
bytes)
[ 1.418777] TCP: Hash tables configured (established 16384 bind
16384)
[ 1.419443] TCP reno registered
[ 1.419865] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.420806] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.423722] NET: Registered protocol family 1
[ 1.424615] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 1.425286] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 1.426202] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 1.433224] Scanning for low memory corruption every 60 seconds
[ 1.439081] audit: initializing netlink socket (disabled)
[ 1.440414] type=2000 audit(1305828366.430:1): initialized
[ 1.566690] HugeTLB registered 2 MB page size, pre-allocated 0
pages
[ 1.600588] VFS: Disk quotas dquot_6.5.2
[ 1.602380] Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 1.619436] fuse init (API version 7.14)
[ 1.622423] msgmni has been set to 980
[ 1.637545] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 253)
[ 1.638290] io scheduler noop registered
[ 1.638677] io scheduler deadline registered (default)
[ 1.639753] io scheduler cfq registered
[ 1.642723] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 1.644655] pciehp: PCI Express Hot Plug Controller Driver version:
0.4
[ 1.654470] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/
input/input0
[ 1.655656] ACPI: Power Button [PWRF]
[ 1.691904] ERST: Table is not found!
[ 1.696665] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 1.697372] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI
11 (level, high) -> IRQ 11
[ 1.701956] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[ 1.702524] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI
10 (level, high) -> IRQ 10
[ 1.707074] Linux agpgart interface v0.103
[ 1.707944] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.710663] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.712628] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 1.743478] brd: module loaded
[ 1.755080] loop: module loaded
[ 1.767431] vda: unknown partition table
[ 1.807154] scsi0 : ata_piix
[ 1.810154] scsi1 : ata_piix
[ 1.811512] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000
irq 14
[ 1.812042] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008
irq 15
[ 1.820402] Fixed MDIO Bus: probed
[ 1.823844] PPP generic driver version 2.4.2
[ 1.825328] tun: Universal TUN/TAP device driver, 1.6
[ 1.825696] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
[ 1.828572] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 1.829547] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.830235] uhci_hcd: USB Universal Host Controller Interface
driver
[ 1.831932] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI
11 (level, high) -> IRQ 11
[ 1.833026] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 1.834865] uhci_hcd 0000:00:01.2: new USB bus registered, assigned
bus number 1
[ 1.836265] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
[ 1.848066] hub 1-0:1.0: USB hub found
[ 1.848994] hub 1-0:1.0: 2 ports detected
[ 1.854902] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at
0x60,0x64 irq 1,12
[ 1.859835] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.860793] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.863273] mice: PS/2 mouse device common for all mice
[ 1.867356] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 1.868583] rtc0: alarms up to one day, 114 bytes nvram, hpet irqs
[ 1.871443] device-mapper: uevent: version 1.0.3
[ 1.879035] input: AT Translated Set 2 keyboard as /devices/
platform/i8042/serio0/input/input1
[ 1.888486] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05)
initialised: dm-d...@redhat.com
[ 1.890492] device-mapper: multipath: version 1.1.1 loaded
[ 1.891060] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 1.901073] cpuidle: using governor ladder
[ 1.901526] cpuidle: using governor menu
[ 1.906855] TCP cubic registered
[ 1.909603] NET: Registered protocol family 10
[ 1.922628] lo: Disabled Privacy Extensions
[ 1.929589] NET: Registered protocol family 17
[ 1.930288] powernow-k8: Processor cpuid 623 not supported
[ 1.936053] registered taskstats version 1
[ 1.940241] Magic number: 11:395:140
[ 1.940883] block ram5: hash matches
[ 1.941326] acpi device:11: hash matches
[ 1.942655] rtc_cmos 00:01: setting system clock to 2011-05-19
18:06:07 UTC (1305828367)
[ 1.943374] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 1.943799] EDD information not available.
[ 2.044441] md: Waiting for all devices to be available before
autodetect
[ 2.044944] md: If you don't use raid, use raid=noautodetect
[ 2.048994] md: Autodetecting RAID arrays.
[ 2.049356] md: Scanned 0 and added 0 devices.
[ 2.049668] md: autorun ...
[ 2.049869] md: ... autorun DONE.
[ 2.057689] EXT3-fs (vda): error: couldn't mount because of
unsupported optional features (240)
[ 2.060875] EXT2-fs (vda): error: couldn't mount because of
unsupported optional features (240)
[ 2.081034] EXT4-fs (vda): mounted filesystem with ordered data
mode. Opts: (null)
[ 2.083303] VFS: Mounted root (ext4 filesystem) readonly on device
252:0.
[ 2.090273] devtmpfs: mounted
[ 2.092399] Freeing unused kernel memory: 828k freed
[ 2.127047] Write protecting the kernel read-only data: 10240k
[ 2.133067] Freeing unused kernel memory: 308k freed
[ 2.138521] Freeing unused kernel memory: 1612k freed
init: plymouth main process (49) killed by SEGV signal
init: plymouth-splash main process (291) terminated with status 2
cloud-init start-local running: Thu, 19 May 2011 18:07:46 +0000. up
101.26 seconds
no instance data found in start-local
init: cloud-init-local main process (268) terminated with status 1
cloud-init start running: Thu, 19 May 2011 18:07:57 +0000. up 112.11
seconds
found data source: DataSourceEc2
Generating locales...
en_US.UTF-8... done
Generation complete.
mountall: Event failed
init: mountall main process (53) killed by PIPE signal
init: plymouth-stop pre-start process (420) terminated with status 1
General error mounting filesystems.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system.
Give root password for maintenance
(or type Control-D to continue):

--------------------------------------------------------------------------------------
* df -h の出力
--------------------------------------------------------------------------------------
root@ubuntu:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu-root
38G 4.5G 32G 13% /
none 495M 208K 494M 1% /dev
none 499M 0 499M 0% /dev/shm
none 499M 60K 499M 1% /var/run
none 499M 0 499M 0% /var/lock
none 499M 0 499M 0% /lib/init/rw
/dev/vda1 228M 17M 199M 8% /boot

On May 19, 9:07 pm, Akira Yoshiyama <akirayoshiy...@gmail.com> wrote:
> 吉山@新幹線です。
>
> お問い合わせの件、下記情報を提供願います。
>
> * /etc/nova/nova.conf の中身
> * file /var/lib/nova/instances/instance-0000000d/disk の結果
> * /var/lib/nova/instances/instance-0000000d/libvirt.xml の中身
> * VM インスタンスのコンさソール出力全て
> * df -h の出力
>
> 2011/05/19 18:39 "tacky1052" <takiguchi.hiroyo...@gmail.com>:
>
> > 初めて投稿させていただきます。
> > NTTソフトウェアの瀧口と申します。
> > よろしくお願いいたします。
>
> > cactusのインストールAdminマニュアルに沿って実行しているのですが、
>
> http://docs.openstack.org/cactus/openstack-compute/admin/content/star...

tacky1052

unread,
May 19, 2011, 10:13:23 PM5/19/11
to 日本OpenStackユーザ会
瀧口です。

おお、そうなんですね。
KVM上のVMにインストールして、各関係部署の技術者に配る予定なので、qemuは外せないんですが。。。
nova cactus (qemu利用) で動作している image をご存じないですか?

On May 20, 9:37 am, igoigo246 <igoigo...@gmail.com> wrote:
> 碇です
>
> qemuだと同じ症状がでました。
> KVMだと問題なく起動できたので放置しています(ry
>
> 以上参考になれば幸いです
>
> 2011-05-19 (木) の 02:39 -0700 に tacky1052 さんは書きました:
>
>
>
>
>
>
>
> > 初めて投稿させていただきます。
> > NTTソフトウェアの瀧口と申します。
> > よろしくお願いいたします。
>
> > cactusのインストールAdminマニュアルに沿って実行しているのですが、
> >http://docs.openstack.org/cactus/openstack-compute/admin/content/star...

Masanori Itoh

unread,
May 19, 2011, 10:19:31 PM5/19/11
to 日本OpenStackユーザ会
伊藤です。

qemu (KVMなし) on KVM 、つまり、VM上に nova 環境つくって配るってことですか?


それはおいといて、イメージについては、OSが起動しさえすればよいのであれば、

http://images.ansolabs.com/tty.tgz

が小さいので便利です。

もっとも私は cactus そのものでうごかしたことはないのですが、前後の revision ではふつうに動いていました。
> > > よろしくお願いいたします。- 引用テキストを表示しない -
>
> - 引用テキストを表示 -

Akira Yoshiyama

unread,
May 20, 2011, 12:05:43 AM5/20/11
to openst...@googlegroups.com

吉山です。

戴いた情報を確認しました。
Nova の設定が KVM ではなく QEMU になっていま&#> 吉山さん

Akira Yoshiyama

unread,
May 20, 2011, 12:10:55 AM5/20/11
to openst...@googlegroups.com

吉山です。

メッセージの送信がうまくいかなかったようです。失礼しました。

瀧口さん:
一度
        --libvirt_type=kvm
で試して頂けますでしょうか?

tacky1052

unread,
May 20, 2011, 12:26:57 AM5/20/11
to 日本OpenStackユーザ会
吉山さん

瀧口です。

> --libvirt_type=kvm
> で試して頂けますでしょうか?

kvm上のvmでnovaを作ってまして、computeではkvmを利用できないんです。
(kvm on kvm ができる環境ではないので。)

FlatManagerの時のIP関連の設定が結構不安です。

Akira Yoshiyama

unread,
May 20, 2011, 4:46:00 AM5/20/11
to openst...@googlegroups.com

吉山です。こんにちは。

コンソール出力を見る限り、仮想HDDが /dev/vda, vdb ではなく
/dev/sda, sdb として認識されているのではないかと思われます。
~nova/virt/libvirt.xml.template の 36 行目にある以下の箇所を変更
してみて下さい。

変更前:root=/dev/vda
変更後:root=/dev/sda

tacky1052

unread,
May 20, 2011, 5:52:35 AM5/20/11
to 日本OpenStackユーザ会
瀧口です。

コメントありがとうございます。

> 変更前:root=/dev/vda
> 変更後:root=/dev/sda

下記のように変更しました。
---------------------------------------------------------------------------
-----------
* libvirt.xml.templateの中身
---------------------------------------------------------------------------
-----------
root@ubuntu:~# less -N /usr/share/pyshared/nova/virt/
libvirt.xml.template
1 <domain type='${type}'>
2 <name>${name}</name>
3 <memory>${memory_kb}</memory>
4 <os>
5 #if $type == 'lxc'
6 #set $disk_prefix = ''
7 #set $disk_bus = ''
8 <type>exe</type>
9 <init>/sbin/init</init>
10 #else if $type == 'uml'
11 #set $disk_prefix = 'ubd'
12 #set $disk_bus = 'uml'
13 <type>uml</type>
14 <kernel>/usr/bin/linux</kernel>
15 <root>/dev/ubda</root>
16 #else
17 #if $type == 'xen'
18 #set $disk_prefix = 'sd'
19 #set $disk_bus = 'scsi'
20 <type>linux</type>
21 <root>/dev/xvda</root>
22 #else
23 #set $disk_prefix = 'vd'
24 #set $disk_bus = 'virtio'
25 <type>hvm</type>
26 #end if
27 #if $getVar('rescue', False)
28 <kernel>${basepath}/kernel.rescue</kernel>
29 <initrd>${basepath}/ramdisk.rescue</initrd>
30 #else
31 #if $getVar('kernel', None)
32 <kernel>${kernel}</kernel>
33 #if $type == 'xen'
34 <cmdline>ro</cmdline>
35 #else
36 <cmdline>root=/dev/sda console=ttyS0</cmdline>
37 #end if
38 #if $getVar('ramdisk', None)
39 <initrd>${ramdisk}</initrd>
40 #end if
41 #else
42 <boot dev="hd" />
43 #end if
44 #end if
45 #end if
46 </os>
47 <features>
48 <acpi/>
49 </features>
50 <vcpu>${vcpus}</vcpu>
51 <devices>
52 #if $type == 'lxc'
53 <filesystem type='mount'>
54 <source dir='${basepath}/rootfs'/>
55 <target dir='/'/>
56 </filesystem>
57 #else
58 #if $getVar('rescue', False)
59 <disk type='file'>
60 <driver type='${driver_type}'/>
61 <source file='${basepath}/disk.rescue'/>
62 <target dev='${disk_prefix}a' bus='${disk_bus}'/>
63 </disk>
64 <disk type='file'>
65 <driver type='${driver_type}'/>
66 <source file='${basepath}/disk'/>
67 <target dev='${disk_prefix}b' bus='${disk_bus}'/>
68 </disk>
69 #else
70 <disk type='file'>
71 <driver type='${driver_type}'/>
72 <source file='${basepath}/disk'/>
73 <target dev='${disk_prefix}a' bus='${disk_bus}'/>
74 </disk>
75 #if $getVar('local', False)
76 <disk type='file'>
77 <driver type='${driver_type}'/>
78 <source file='${basepath}/disk.local'/>
79 <target dev='${disk_prefix}b' bus='$
{disk_bus}'/>
80 </disk>
81 #end if
82 #end if
83 #end if
84
85 #for $nic in $nics
86 <interface type='bridge'>
87 <source bridge='${nic.bridge_name}'/>
88 <mac address='${nic.mac_address}'/>
89 <!-- <model type='virtio'/> CANT RUN virtio
network right now -->
90 <filterref filter="nova-instance-${name}-$
{nic.id}">
91 <parameter name="IP" value="$
{nic.ip_address}" />
92 <parameter name="DHCPSERVER" value="$
{nic.dhcp_server}" />
93 #if $getVar('nic.extra_params', False)
94 ${nic.extra_params}
95 #end if
96 #if $getVar('nic.gateway_v6', False)
97 <parameter name="RASERVER" value="$
{nic.gateway_v6}" />
98 #end if
99 </filterref>
100 </interface>
101 #end for
102 <!-- The order is significant here. File must be
defined first -->
103 <serial type="file">
104 <source path='${basepath}/console.log'/>
105 <target port='1'/>
106 </serial>
107
108 <console type='pty' tty='/dev/pts/2'>
109 <source path='/dev/pts/2'/>
110 <target port='0'/>
111 </console>
112
113 <serial type='pty'>
114 <source path='/dev/pts/2'/>
115 <target port='0'/>
116 </serial>
117
118 #if $getVar('vncserver_host', False)
119 <graphics type='vnc' port='-1' autoport='yes'
keymap='en-us' listen='${vnc 119 server_host}'/>
120 #end if
121 </devices>
122 </domain>

上記を実施したんですが、残念ながら症状は改善しませんでした。
前回と同じ個所のログを添付します。

---------------------------------------------------------------------------
-----------
* /etc/nova/nova.conf の中身
---------------------------------------------------------------------------
-----------
root@ubuntu:~# cat /etc/nova/nova.conf
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=172.16.25.2
--rabbit_host=172.16.25.2
--cc_host=172.16.25.2
--ec2_url=http://172.16.25.2:8773/services/Cloud
--fixed_range=172.16.25.0/27
--network_size=20
--FAKE_subdomain=ec2
--routing_source_ip=172.16.25.2
--verbose
--sql_connection=mysql://root:ntt...@172.16.25.2/nova
--network_manager=nova.network.manager.FlatManager
--libvirt_type=qemu

---------------------------------------------------------------------------
-----------
* file /var/lib/nova/instances/instance-00000004/disk の結果
---------------------------------------------------------------------------
-----------
root@ubuntu:~# file /var/lib/nova/instances/instance-00000004/disk
/var/lib/nova/instances/instance-00000004/disk: Qemu Image, Format:
Qcow , Version: 2

---------------------------------------------------------------------------
-----------
* /var/lib/nova/instances/instance-00000004/libvirt.xml の中身
---------------------------------------------------------------------------
-----------
root@ubuntu:~# cat /var/lib/nova/instances/instance-00000004/
libvirt.xml
<domain type='qemu'>
<name>instance-00000004</name>
<memory>524288</memory>
<os>
<type>hvm</type>
<kernel>/var/lib/nova/instances/instance-00000004/kernel</
kernel>
<cmdline>root=/dev/vda console=ttyS0</cmdline>
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<disk type='file'>
<driver type='qcow2'/>
<source file='/var/lib/nova/instances/instance-00000004/
disk'/>
<target dev='vda' bus='virtio'/>
</disk>

<interface type='bridge'>
<source bridge='br100'/>
<mac address='02:16:3e:4f:ea:f8'/>
<!-- <model type='virtio'/> CANT RUN virtio network
right now -->
<filterref filter="nova-instance-
instance-00000004-02163e4feaf8">
<parameter name="IP" value="172.16.25.3" />
<parameter name="DHCPSERVER" value="172.16.25.1" />
</filterref>
</interface>
<!-- The order is significant here. File must be defined
first -->
<serial type="file">
<source path='/var/lib/nova/instances/instance-00000004/
console.log'/>
<target port='1'/>
</serial>

<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>

<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>

<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'
listen='0.0.0.0'/>
</devices>
</domain>

---------------------------------------------------------------------------
-----------
* VM インスタンスのコンソール出力全て
---------------------------------------------------------------------------
-----------
root@ubuntu:~# euca-get-console-output i-00000004
i-00000004
2011-05-20T18:48:54Z
[ 0.000000] Detected 1699.971 MHz processor.
[ 0.061886] Calibrating delay loop (skipped), value calculated
using timer frequency.. 3399.94 BogoMIPS (lpj=16999710)
[ 0.063139] pid_max: default: 32768 minimum: 301
[ 0.067682] Security Framework initialized
[ 0.083581] AppArmor: AppArmor initialized
[ 0.084192] Yama: becoming mindful.
[ 0.101186] Dentry cache hash table entries: 65536 (order: 7,
524288 bytes)
[ 0.104734] Inode-cache hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.106744] Mount-cache hash table entries: 256
[ 0.133933] Initializing cgroup subsys ns
[ 0.134834] Initializing cgroup subsys cpuacct
[ 0.135393] Initializing cgroup subsys memory
[ 0.136717] Initializing cgroup subsys devices
[ 0.137134] Initializing cgroup subsys freezer
[ 0.137561] Initializing cgroup subsys net_cls
[ 0.142262] mce: CPU supports 10 MCE banks
[ 0.144156] Performance Events: AMD PMU driver.
[ 0.144957] ... version: 0
[ 0.150270] ... bit width: 48
[ 0.150628] ... generic registers: 4
[ 0.151017] ... value mask: 0000ffffffffffff
[ 0.151567] ... max period: 00007fffffffffff
[ 0.151970] ... fixed-purpose events: 0
[ 0.152490] ... event mask: 000000000000000f
[ 0.153987] SMP alternatives: switching to UP code
[ 0.463199] Freeing SMP alternatives: 24k freed
[ 0.465418] ACPI: Core revision 20100428
[ 0.570447] ftrace: converting mcount calls to 0f 1f 44 00 00
[ 0.571215] ftrace: allocating 23027 entries in 91 pages
[ 0.601018] Setting APIC routing to flat
[ 0.611125] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.727138] CPU0: AMD QEMU Virtual CPU version 0.12.3 stepping 03
[ 0.730000] Brought up 1 CPUs
[ 0.730000] Total of 1 processors activated (3399.94 BogoMIPS).
[ 0.740286] devtmpfs: initialized
[ 0.827019] regulator: core version 0.5
[ 0.828921] Time: 18:43:41 Date: 05/20/11
[ 0.831263] NET: Registered protocol family 16
[ 0.840746] ACPI: bus type pci registered
[ 0.844126] PCI: Using configuration type 1 for base access
[ 0.870606] bio: create slab <bio-0> at 0
[ 0.941341] ACPI: Interpreter enabled
[ 0.941708] ACPI: (supports S0 S3 S4 S5)
[ 0.943302] ACPI: Using IOAPIC for interrupt routing
[ 1.036640] ACPI: No dock devices found.
[ 1.037212] PCI: Ignoring host bridge windows from ACPI; if
necessary, use "pci=use_crs" and report a bug
[ 1.040886] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 1.048588] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by
PIIX4 ACPI
[ 1.049300] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by
PIIX4 SMB
[ 1.158768] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 1.161282] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 1.163238] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 1.165150] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 1.166420] HEST: Table is not found!
[ 1.171628] vgaarb: device added: PCI:0000:00:02.0,decodes=io
+mem,owns=io+mem,locks=none
[ 1.172467] vgaarb: loaded
[ 1.178806] SCSI subsystem initialized
[ 1.182979] usbcore: registered new interface driver usbfs
[ 1.184002] usbcore: registered new interface driver hub
[ 1.185202] usbcore: registered new device driver usb
[ 1.190486] ACPI: WMI: Mapper loaded
[ 1.190846] PCI: Using ACPI for IRQ routing
[ 1.204377] NetLabel: Initializing
[ 1.204675] NetLabel: domain hash size = 128
[ 1.210093] NetLabel: protocols = UNLABELED CIPSOv4
[ 1.212109] NetLabel: unlabeled traffic allowed by default
[ 1.214112] HPET: 3 timers in total, 0 timers will be used for per-
cpu timer
[ 1.215009] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[ 1.215635] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[ 1.231097] Switching to clocksource tsc
[ 1.473176] AppArmor: AppArmor Filesystem Enabled
[ 1.474525] pnp: PnP ACPI init
[ 1.475057] ACPI: bus type pnp registered
[ 1.494507] pnp: PnP ACPI: found 6 devices
[ 1.494893] ACPI: ACPI bus type pnp unregistered
[ 1.545607] NET: Registered protocol family 2
[ 1.549735] IP route cache hash table entries: 4096 (order: 3,
32768 bytes)
[ 1.558638] TCP established hash table entries: 16384 (order: 6,
262144 bytes)
[ 1.560897] TCP bind hash table entries: 16384 (order: 6, 262144
bytes)
[ 1.562273] TCP: Hash tables configured (established 16384 bind
16384)
[ 1.563027] TCP reno registered
[ 1.563453] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.564049] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.568490] NET: Registered protocol family 1
[ 1.569240] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 1.569907] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 1.570572] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 1.579126] Scanning for low memory corruption every 60 seconds
[ 1.584752] audit: initializing netlink socket (disabled)
[ 1.585942] type=2000 audit(1305917020.580:1): initialized
[ 1.723310] HugeTLB registered 2 MB page size, pre-allocated 0
pages
[ 1.758832] VFS: Disk quotas dquot_6.5.2
[ 1.760411] Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 1.776954] fuse init (API version 7.14)
[ 1.782637] msgmni has been set to 980
[ 1.797000] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 253)
[ 1.798734] io scheduler noop registered
[ 1.799077] io scheduler deadline registered (default)
[ 1.800364] io scheduler cfq registered
[ 1.803234] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 1.805142] pciehp: PCI Express Hot Plug Controller Driver version:
0.4
[ 1.814585] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/
input/input0
[ 1.815903] ACPI: Power Button [PWRF]
[ 1.853125] ERST: Table is not found!
[ 1.859577] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 1.860276] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI
11 (level, high) -> IRQ 11
[ 1.864517] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[ 1.864985] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI
10 (level, high) -> IRQ 10
[ 1.870168] Linux agpgart interface v0.103
[ 1.871061] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.874138] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.875810] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 1.906369] brd: module loaded
[ 1.920844] loop: module loaded
[ 1.932203] vda: unknown partition table
[ 1.966462] scsi0 : ata_piix
[ 1.969263] scsi1 : ata_piix
[ 1.970528] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000
irq 14
[ 1.971041] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008
irq 15
[ 1.980275] Fixed MDIO Bus: probed
[ 1.981901] PPP generic driver version 2.4.2
[ 1.983550] tun: Universal TUN/TAP device driver, 1.6
[ 1.983924] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
[ 1.988773] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 1.989731] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.990424] uhci_hcd: USB Universal Host Controller Interface
driver
[ 1.992303] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI
11 (level, high) -> IRQ 11
[ 1.993250] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 1.995186] uhci_hcd 0000:00:01.2: new USB bus registered, assigned
bus number 1
[ 1.996619] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
[ 2.008131] hub 1-0:1.0: USB hub found
[ 2.009120] hub 1-0:1.0: 2 ports detected
[ 2.016461] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at
0x60,0x64 irq 1,12
[ 2.020537] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 2.022022] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 2.024421] mice: PS/2 mouse device common for all mice
[ 2.029127] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 2.030803] rtc0: alarms up to one day, 114 bytes nvram, hpet irqs
[ 2.033594] device-mapper: uevent: version 1.0.3
[ 2.039493] input: AT Translated Set 2 keyboard as /devices/
platform/i8042/serio0/input/input1
[ 2.050548] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05)
initialised: dm-d...@redhat.com
[ 2.052916] device-mapper: multipath: version 1.1.1 loaded
[ 2.053753] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 2.060045] cpuidle: using governor ladder
[ 2.060817] cpuidle: using governor menu
[ 2.067900] TCP cubic registered
[ 2.070556] NET: Registered protocol family 10
[ 2.083577] lo: Disabled Privacy Extensions
[ 2.092505] NET: Registered protocol family 17
[ 2.093935] powernow-k8: Processor cpuid 623 not supported
[ 2.099613] registered taskstats version 1
[ 2.102750] Magic number: 11:91:747
[ 2.104532] rtc_cmos 00:01: setting system clock to 2011-05-20
18:43:42 UTC (1305917022)
[ 2.105157] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 2.105718] EDD information not available.
[ 2.206138] md: Waiting for all devices to be available before
autodetect
[ 2.206672] md: If you don't use raid, use raid=noautodetect
[ 2.211180] md: Autodetecting RAID arrays.
[ 2.212044] md: Scanned 0 and added 0 devices.
[ 2.212438] md: autorun ...
[ 2.212695] md: ... autorun DONE.
[ 2.224499] EXT3-fs (vda): error: couldn't mount because of
unsupported optional features (240)
[ 2.227818] EXT2-fs (vda): error: couldn't mount because of
unsupported optional features (240)
[ 2.248672] EXT4-fs (vda): mounted filesystem with ordered data
mode. Opts: (null)
[ 2.250561] VFS: Mounted root (ext4 filesystem) readonly on device
252:0.
[ 2.257136] devtmpfs: mounted
[ 2.259308] Freeing unused kernel memory: 828k freed
[ 2.297664] Write protecting the kernel read-only data: 10240k
[ 2.301893] Freeing unused kernel memory: 308k freed
[ 2.306800] Freeing unused kernel memory: 1612k freed
init: plymouth main process (49) killed by SEGV signal
init: plymouth-splash main process (297) terminated with status 2
cloud-init start-local running: Fri, 20 May 2011 18:45:11 +0000. up
91.27 seconds
no instance data found in start-local
init: cloud-init-local main process (282) terminated with status 1
cloud-init start running: Fri, 20 May 2011 18:45:21 +0000. up 100.94
seconds
found data source: DataSourceEc2
Generating locales...
en_US.UTF-8... done
Generation complete.
mountall: Event failed
init: mountall main process (53) killed by PIPE signal
init: plymouth-stop pre-start process (424) terminated with status 1
General error mounting filesystems.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system.
Give root password for maintenance
(or type Control-D to continue):

---------------------------------------------------------------------------
-----------
* df -h の出力
---------------------------------------------------------------------------
-----------
root@ubuntu:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu-root
38G 4.5G 32G 13% /
none 495M 208K 494M 1% /dev
none 499M 0 499M 0% /dev/shm
none 499M 64K 499M 1% /var/run
none 499M 0 499M 0% /var/lock
none 499M 0 499M 0% /lib/init/rw
/dev/vda1 228M 17M 199M 8% /boot







Akira Yoshiyama

unread,
May 20, 2011, 11:47:01 AM5/20/11
to openst...@googlegroups.com
 吉山です。こんばんは。

 色々情報を見直してみました。
 ルートファイルシステムがマウントされていないのが原因かと思いましたが、違っていました
(mountall はルートファイルシステムマウント後の処理)。失礼しました。
 色々調べていて、下記のバグレポートに類似している事に気付きました。

https://answers.launchpad.net/nova/+question/145316

 関連するかどうか不明ですが、ネットワーク設定を FlatDHCPManager に変えてみて
ください。

変更前: --network_manager=nova.network.manager.FlatManager
変更後: --network_manager=nova.network.manager.FlatDHCPManager

--
吉山あきら <akirayo...@gmail.com>

2011年5月20日18:52 tacky1052 <takiguchi...@gmail.com>:

Hisashi Ikari

unread,
May 22, 2011, 9:45:28 PM5/22/11
to openst...@googlegroups.com
碇です

FlatManagerの時にMetaDataを取得できないのは、FlatDHCP/Vlanなどでは設定される項目が
設定されないからです。

ざっとパッチを作ってみましたので添付します。
問題なさそうでしたら本家にコミットしようかと思っています。

#bzrの使い方がわからん(笑

On Sat, 21 May 2011 00:47:01 +0900
Akira Yoshiyama <akirayo...@gmail.com> wrote:

>  吉山です。こんばんは。
>
>  色々情報を見直してみました。
>  ルートファイルシステムがマウントされていないのが原因かと思いましたが、違っていました
> (mountall はルートファイルシステムマウント後の処理)。失礼しました。
>  色々調べていて、下記のバグレポートに類似している事に気付きました。
>
> https://answers.launchpad.net/nova/+question/145316
>

Hisashi Ikari <igoi...@gmail.com>

patch
-----------------------------------------------------------------------------------

Index: network/manager.py
===================================================================
--- network/manager.py (revision 8)
+++ network/manager.py (working copy)
@@ -121,17 +121,24 @@
super(NetworkManager, self).__init__(service_name='network',
*args, **kwargs)

- def init_host(self):
+ def init_host(self,add_snat=True):
"""Do any initialization that needs to be run if this is a
standalone service.
"""
- self.driver.init_host()
+ self.driver.init_host(add_snat)
self.driver.ensure_metadata_ip()
# Set up networking for the projects for which we're already
# the designated network host.
ctxt = context.get_admin_context()
for network in self.db.host_get_networks(ctxt, self.host):
self._on_set_network_host(ctxt, network['id'])
+
+ if not isinstance(self,FlatManager):
+ self.init_floating_ip(ctxt)
+
+
+
+ def init_floating_ip(self,ctxt):
floating_ips = self.db.floating_ip_get_all_by_host(ctxt,
self.host)
for floating_ip in floating_ips:
@@ -143,6 +150,8 @@
self.driver.ensure_floating_forward(floating_ip['address'],
fixed_address)

+
+
def periodic_tasks(self, context=None):
"""Tasks to be run at a periodic interval."""
super(NetworkManager, self).periodic_tasks(context)
@@ -389,15 +398,14 @@
"""
timeout_fixed_ips = False

- def init_host(self):
+ def init_host(self,add_snat=False):
"""Do any initialization that needs to be run if this is a
standalone service.
"""
#Fix for bug 723298 - do not call init_host on superclass
#Following code has been copied for NetworkManager.init_host
- ctxt = context.get_admin_context()
- for network in self.db.host_get_networks(ctxt, self.host):
- self._on_set_network_host(ctxt, network['id'])
+ super(FlatManager, self).init_host(False)
+ self.driver.metadata_forward()

def setup_compute_network(self, context, instance_id):
"""Network is created manually."""
@@ -435,11 +443,11 @@
like FlatDHCPManager.
"""

- def init_host(self):
+ def init_host(self,add_snat=True):
"""Do any initialization that needs to be run if this is a
standalone service.
"""
- super(FlatDHCPManager, self).init_host()
+ super(FlatDHCPManager, self).init_host(add_snat)
self.driver.metadata_forward()

def setup_compute_network(self, context, instance_id):
@@ -492,11 +500,11 @@
instances in its subnet.
"""

- def init_host(self):
+ def init_host(self,add_snat=True):
"""Do any initialization that needs to be run if this is a
standalone service.
"""
- super(VlanManager, self).init_host()
+ super(VlanManager, self).init_host(add_snat)
self.driver.metadata_forward()

def allocate_fixed_ip(self, context, instance_id, *args, **kwargs):
Index: network/linux_net.py
===================================================================
--- network/linux_net.py (revision 8)
+++ network/linux_net.py (working copy)
@@ -358,11 +358,12 @@
iptables_manager.apply()


-def init_host():
+def init_host(add_snat=True):
"""Basic networking setup goes here"""
# NOTE(devcamcar): Cloud public SNAT entries and the default
# SNAT rule for outbound traffic.
- iptables_manager.ipv4['nat'].add_rule("snat",
+ if add_snat:
+ iptables_manager.ipv4['nat'].add_rule("snat",
"-s %s -j SNAT --to-source %s" % \
(FLAGS.fixed_range,
FLAGS.routing_source_ip))

tacky1052

unread,
May 22, 2011, 11:15:32 PM5/22/11
to 日本OpenStackユーザ会
碇さん

パッチありがとうございます。
パッチコマンドが
malformed patch at...
でこけてしまったので
手動でパッチを当てました。

結果、症状は変わっていません。

正しくできたかよくわからないので、確認させてください。

1. 私は、cactusのリリース版で実施しています。
碇さんは最新のTrunkだったりしますか?

2. 上記、変更が正しく反映されたことを確認する方法はありますか?
(メタデータ取得のためのiptablesルールの追加処理のパッチですかね)

On 5月23日, 午前10:45, Hisashi Ikari <igoigo...@gmail.com> wrote:
> 碇です
>
> FlatManagerの時にMetaDataを取得できないのは、FlatDHCP/Vlanなどでは設定される項目が
> 設定されないからです。
>
> ざっとパッチを作ってみましたので添付します。
> 問題なさそうでしたら本家にコミットしようかと思っています。
>
> #bzrの使い方がわからん(笑
>
> On Sat, 21 May 2011 00:47:01 +0900
>
> Akira Yoshiyama <akirayoshiy...@gmail.com> wrote:
> >  吉山です。こんばんは。
>
> >  色々情報を見直してみました。
> >  ルートファイルシステムがマウントされていないのが原因かと思いましたが、違っていました
> > (mountall はルートファイルシステムマウント後の処理)。失礼しました。
> >  色々調べていて、下記のバグレポートに類似している事に気付きました。
>
> >https://answers.launchpad.net/nova/+question/145316
>
> Hisashi Ikari <igoigo...@gmail.com>
>
> patch
> --------------------------------------------------------------------------- --------

Hisashi Ikari

unread,
May 23, 2011, 12:28:26 AM5/23/11
to openst...@googlegroups.com
碇です。

Cactusでやっています。

メタデータ取得のためのiptablesルールの追加処理のためのパッチです。
すいませんブリッジインターフェースにIPAddressを割り当てる処理が抜けていました。
検証機が死んでしまったので、その処理を入れたパッチをもう一度投げます。

状況的にはメタデータ取得に失敗しているわけではないと思います。
僕の環境ではFlatDHCPでもでていた症状です。

FlatManagerの場合、メタデータ取得のために手動で設定しないといけない項目として
1 nova-networkのブリッジインターフェースにネットワークアドレスの一番目のアドレス
2 iptablesの設定
3 ip_forwardの設定
が必要です。ドキュメントには丁寧には書いていませんし、ドキュメントに書いてある
iptablesの設定ですと、一つのネットワークにしか対応できないです。

VlanManager/FlatDHCPManagerはこのあたりを自動で設定してくれるのですが、
FlatManagerの場合、floating_ipのバグ関係でごっそり処理が抜けています。

急いで環境を作り直しますので、上記をマージしたパッチをもう一度投げます。


--
Hisashi Ikari <igoi...@gmail.com>

Koji IIDA

unread,
May 23, 2011, 3:07:01 AM5/23/11
to openst...@googlegroups.com
飯田です。


> 状況的にはメタデータ取得に失敗しているわけではないと思います。

私の環境(qemu, VlanManager)でも、該当イメージだと同じようにブートできま
せんでした。
メタデータ取得はnova-apiのログにアクセスに来たことが出ていたので、メタ
データ取得の問題ではないと思います。


それっぽいバグレポートを探しましたが、以下が該当するのでしょうか。
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/717153


伊藤さんのいうように、ほかのイメージで試されてはいかがでしょうか。
伊藤さんご紹介のttyイメージはqemuでも問題なくブートできています。

あとは、このあたりを参考に自前でつくる、という方法もあります...。

http://open.eucalyptus.com/participate/wiki/using-ubuntu-vm-builder-generate-eucalyptus-images

#このあたりのイメージの作り方はEucalyptusに詳しい方の方がご存じかも。

d.shen

unread,
May 24, 2011, 4:22:30 AM5/24/11
to openst...@googlegroups.com
OpenStack ユーザ会の皆様

お世話になっております。NTT ATの沈です。
瀧口様、大分時間も経過し、既に問題を解決
なさったのかは不明ですが、もし格闘中でしたら
ネットワークモデルをFlatManagerからVlanManager
へ切り替えてテストなさっては如何ででしょうか?

FlatManagerを利用する場合、/etc/network/interfaces
内に、FlatManagerで利用するブリッジ設定を
手動で設定する必要があり、その設定に失敗
すると、インスタンスの起動やインスタンスとの通信
に問題が生じます。

VlanManagerを利用する場合、ブリッジ設定はnova側
で勝手に行うために、/etc/network/interfacesを殆ど
編集する必要がありません。

参考までに下記にし切り替え方法を示す。
なお、下記内容の実行は自己責任でお願いします。

『Step1 Nova関連サービスの停止』

 euca-describe-instancesで実効中のインスタンスの有無を確認
起動しているインスタンスが有れば、euca-terminate-instancesで
起動中のインスタンスを停止。次にNova関連サービスを停止します。
コンソール上で下記に示すコマンドを実行。

root@ubuntu:  stop nova-api
root@ubuntu:  stop nova-network
root@ubuntu:  stop nova-scheduler
root@ubuntu:  stop nova-compute
root@ubuntu:  stop nova-objectstore

『Step2 ネットワークの設定を書き換え』
/etc/network/interfacesの内容を下記に書き換える。
書き換えた後は、ネットワークを再起動してください。

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 172.16.25.2
    netmask    255.255.255.224
    broadcast 172.16.25.31

『Step3 nova.confの設定を書き換え』
/etc/nova/nova.confの内容を下記に書き換える。


--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=172.16.25.2
--rabbit_host=172.16.25.2
--cc_host=172.16.25.2
--ec2_url=http://172.16.25.2:8773/services/Cloud
--fixed_range=172.16.25.0/27
--network_size=20
--network_manager=nova.network.manager.VlanManager
--libvirt_type=qemu

--vlan_interface=eth0
--public_interface=eth0

『Step4 MySQL内のnovaデータベースのnetworksテーブルとfixed_ipsテーブルの削除』
MySQLサーバにログインし、下記に示すSQLを実行。

root@ubuntu: mysql --user=root --password=nttsoft
mysql>DELETE FROM networks;
mysql>DELETE FROM fixed_ips;

『Step5 Nova関連サービスの起動』
コンソール上で下記に示すコマンドを実行。

root@ubuntu:  start nova-api
root@ubuntu:  start nova-network
root@ubuntu:  start nova-scheduler
root@ubuntu:  start nova-compute
root@ubuntu:  start nova-objectstore

『Step6 NovaのVlan用ネットワーク作成』
コンソール上で下記に示すコマンドを実行。

root@ubuntu:  source /root/creds/novarc
root@ubuntu:  nova-manage network create 172.16.25.0/27 1 20
root@ubuntu:  nova-manage floating create ubuntu 172.16.25.0/27

『Step7 インスタンスの起動及びVlanManager環境で自動作成されたブリッジの確認』
コンソール上で下記に示すコマンドを実行。

root@ubuntu:  euca-run-instances -k test -t m1.tiny ami-zqkyh9th
root@ubuntu:  euca-describe-instances でインスタンスが取得したIPアドレスを確認
root@ubuntu:  ifconfig でbr100のデバイスが自動作成されているかを確認

また、br100のデバイスが利用しているIPアドレスが172.16.25.X系になっているかも確認。
もし、ifconfigでbr100のデバイスは表示されているけど、IPアドレスが172.16.25.X系になって
いない場合は、コンピュータを再起動させてください。再起動後にはbr100のデバイスが
利用しているIPアドレスが172.16.25.X系になっているはずです。

br100のデバイスが利用しているIPアドレスが172.16.25.X系になっていたら、起動中の
インスタンスとpingやssh通信等出来ると思います。

ちなみに、インスタンスが起動している状態で、コンピュータを再起動させてしまった場合、
コンピュータが起動した直後にeuca-describe-instancesを実行し表示されたインスタンス
のステータス情報がshutdownとなっている場合には、euca-reboot-instancesを実行して
インスタンスを再起動させてください。


tacky1052

unread,
May 24, 2011, 5:10:58 AM5/24/11
to 日本OpenStackユーザ会
みなさま

アドバイスいただきありがとうございます。

碇さんから

> FlatManagerの場合、メタデータ取得のために手動で設定しないといけない項目として
> 1 nova-networkのブリッジインターフェースにネットワークアドレスの一番目のアドレス
> 2 iptablesの設定
> 3 ip_forwardの設定

というお話を伺ったんですが、
私は、2は実施したんですが、 1, 3については特にしていません。
にもかかわらず、

euca-get-console-outputのログからも
メタデータは取得できているように見えます。

ubuntu1010-UEC-localuser-imageが悪いのかと思い
イメージを伊藤さんに教えていただいた
http://images.ansolabs.com/tty.tgz
に変更したら、 コンソールログがこんな(下記)感じになりました。
やはりメタデータはwgetできていないようです。

本当はメタデータ取得のための準備が整っていないのに、
ubuntu1010-UEC-localuser-imageが勘違いしていた
ということでしょうか。。。

わたしの今回の環境ではVLAN(下側でタグVLAN使っているので。)は使えないのでFlatDHCPも試してみようと思います。

みなさんありがとうございます。

root@ubuntu:~# euca-get-console-output i-00000007
i-00000007
2011-05-24T17:57:46Z


[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu

[ 0.000000] Linux version 2.6.35-22-virtual (buildd@yellow) (gcc
version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #35-Ubuntu SMP Sat Oct
16 23:19:29 UTC 2010 (Ubuntu 2.6.35-22.35-virtual 2.6.35.4)

[ 0.000000] RAMDISK: 1fa53000 - 1fff0000

[ 0.000000] Subtract (41 early reservations)


[ 0.000000] #1 [0001000000 - 0001d1a954] TEXT DATA BSS

[ 0.000000] #2 [001fa53000 - 001fff0000] RAMDISK
[ 0.000000] #3 [0001d1b000 - 0001d1b071] BRK
[ 0.000000] #4 [000009f000 - 00000f8990] BIOS reserved
[ 0.000000] #5 [00000f8990 - 00000f89a0] MP-table mpf
[ 0.000000] #6 [00000f8a90 - 0000100000] BIOS reserved
[ 0.000000] #7 [00000f89a0 - 00000f8a90] MP-table mpc
[ 0.000000] #8 [0000010000 - 0000012000] TRAMPOLINE
[ 0.000000] #9 [0000012000 - 0000016000] ACPI WAKEUP
[ 0.000000] #10 [0000016000 - 0000017000] PGTABLE
[ 0.000000] #11 [0001d1b080 - 0001d20080] NODE_DATA
[ 0.000000] #12 [0001d20080 - 0001d21080] BOOTMEM
[ 0.000000] #13 [0000017000 - 0000017060] BOOTMEM
[ 0.000000] #14 [0002522000 - 0002523000] BOOTMEM
[ 0.000000] #15 [0002523000 - 0002524000] BOOTMEM
[ 0.000000] #16 [0002600000 - 0002e00000] MEMMAP 0
[ 0.000000] #17 [0001d21080 - 0001d39080] BOOTMEM
[ 0.000000] #18 [0001d39080 - 0001d51080] BOOTMEM
[ 0.000000] #19 [0001d52000 - 0001d53000] BOOTMEM
[ 0.000000] #20 [0001d1a980 - 0001d1a9c1] BOOTMEM
[ 0.000000] #21 [0001d1aa00 - 0001d1aa43] BOOTMEM
[ 0.000000] #22 [0001d1aa80 - 0001d1ac08] BOOTMEM
[ 0.000000] #23 [0001d1ac40 - 0001d1aca8] BOOTMEM
[ 0.000000] #24 [0001d1acc0 - 0001d1ad28] BOOTMEM
[ 0.000000] #25 [0001d1ad40 - 0001d1ada8] BOOTMEM
[ 0.000000] #26 [0001d1adc0 - 0001d1ae28] BOOTMEM
[ 0.000000] #27 [0001d1ae40 - 0001d1aea8] BOOTMEM
[ 0.000000] #28 [0001d1aec0 - 0001d1af28] BOOTMEM
[ 0.000000] #29 [0001d1af40 - 0001d1af60] BOOTMEM
[ 0.000000] #30 [0001d1af80 - 0001d1af9c] BOOTMEM
[ 0.000000] #31 [0001d1afc0 - 0001d1afdc] BOOTMEM
[ 0.000000] #32 [0001e00000 - 0001e1e000] BOOTMEM
[ 0.000000] #33 [0001d51080 - 0001d51088] BOOTMEM
[ 0.000000] #34 [0001d510c0 - 0001d510c8] BOOTMEM
[ 0.000000] #35 [0001d51100 - 0001d51104] BOOTMEM
[ 0.000000] #36 [0001d51140 - 0001d51148] BOOTMEM
[ 0.000000] #37 [0001d51180 - 0001d512d0] BOOTMEM
[ 0.000000] #38 [0001d51300 - 0001d51380] BOOTMEM
[ 0.000000] #39 [0001d51380 - 0001d51400] BOOTMEM
[ 0.000000] #40 [0001d53000 - 0001d57000] BOOTMEM
[ 0.000000] Memory: 496056k/524268k available (5816k kernel code,
452k absent, 27760k reserved, 5366k data, 828k init)


[ 0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:4352 nr_irqs:256
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 5242880 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.000000] Fast TSC calibration failed
[ 0.000000] TSC: Unable to calibrate against PIT
[ 0.000000] TSC: using HPET reference calibration

[ 0.000000] Detected 1699.212 MHz processor.
[ 0.041737] Calibrating delay loop (skipped), value calculated
using timer frequency.. 3398.42 BogoMIPS (lpj=16992120)
[ 0.043018] pid_max: default: 32768 minimum: 301
[ 0.054291] Security Framework initialized
[ 0.062009] AppArmor: AppArmor initialized
[ 0.062344] Yama: becoming mindful.
[ 0.071324] Dentry cache hash table entries: 65536 (order: 7,
524288 bytes)
[ 0.075259] Inode-cache hash table entries: 32768 (order: 6, 262144
bytes)
[ 0.081739] Mount-cache hash table entries: 256
[ 0.095216] Initializing cgroup subsys ns
[ 0.098968] Initializing cgroup subsys cpuacct
[ 0.099429] Initializing cgroup subsys memory
[ 0.101044] Initializing cgroup subsys devices
[ 0.101501] Initializing cgroup subsys freezer
[ 0.102180] Initializing cgroup subsys net_cls
[ 0.105541] mce: CPU supports 10 MCE banks
[ 0.111667] Performance Events: AMD PMU driver.
[ 0.112770] ... version: 0
[ 0.113103] ... bit width: 48
[ 0.113703] ... generic registers: 4


[ 0.114082] ... value mask: 0000ffffffffffff

[ 0.114711] ... max period: 00007fffffffffff
[ 0.115109] ... fixed-purpose events: 0
[ 0.115685] ... event mask: 000000000000000f
[ 0.117187] SMP alternatives: switching to UP code
[ 0.310394] Freeing SMP alternatives: 24k freed
[ 0.314642] ACPI: Core revision 20100428
[ 0.370429] ftrace: converting mcount calls to 0f 1f 44 00 00
[ 0.371180] ftrace: allocating 23035 entries in 91 pages
[ 0.398135] Setting APIC routing to flat
[ 0.411039] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.520693] CPU0: AMD QEMU Virtual CPU version 0.12.3 stepping 03
[ 0.548227] Brought up 1 CPUs
[ 0.548594] Total of 1 processors activated (3398.42 BogoMIPS).
[ 0.563600] devtmpfs: initialized
[ 0.667025] regulator: core version 0.5
[ 0.668052] Time: 17:14:44 Date: 05/24/11
[ 0.670433] NET: Registered protocol family 16
[ 0.684929] ACPI: bus type pci registered
[ 0.688633] PCI: Using configuration type 1 for base access
[ 0.722063] bio: create slab <bio-0> at 0
[ 0.812591] ACPI: Interpreter enabled
[ 0.814148] ACPI: (supports S0 S3 S4 S5)
[ 0.816049] ACPI: Using IOAPIC for interrupt routing
[ 0.924229] ACPI: No dock devices found.
[ 0.924682] PCI: Ignoring host bridge windows from ACPI; if


necessary, use "pci=use_crs" and report a bug

[ 0.928476] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.939483] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by
PIIX4 ACPI
[ 0.940134] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by
PIIX4 SMB
[ 1.097477] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 1.100201] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 1.102250] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 1.104633] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 1.106029] HEST: Table is not found!
[ 1.112593] vgaarb: device added: PCI:0000:00:02.0,decodes=io
+mem,owns=io+mem,locks=none
[ 1.113341] vgaarb: loaded
[ 1.118445] SCSI subsystem initialized
[ 1.121149] usbcore: registered new interface driver usbfs
[ 1.122262] usbcore: registered new interface driver hub
[ 1.123456] usbcore: registered new device driver usb
[ 1.128930] ACPI: WMI: Mapper loaded
[ 1.130142] PCI: Using ACPI for IRQ routing
[ 1.141238] NetLabel: Initializing
[ 1.141550] NetLabel: domain hash size = 128
[ 1.142053] NetLabel: protocols = UNLABELED CIPSOv4
[ 1.144079] NetLabel: unlabeled traffic allowed by default
[ 1.146630] HPET: 3 timers in total, 0 timers will be used for per-
cpu timer
[ 1.147767] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[ 1.148284] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[ 1.161192] Switching to clocksource tsc
[ 1.396513] AppArmor: AppArmor Filesystem Enabled
[ 1.397750] pnp: PnP ACPI init
[ 1.398555] ACPI: bus type pnp registered
[ 1.415963] pnp: PnP ACPI: found 6 devices
[ 1.416495] ACPI: ACPI bus type pnp unregistered
[ 1.459176] NET: Registered protocol family 2
[ 1.465421] IP route cache hash table entries: 4096 (order: 3,
32768 bytes)
[ 1.473632] TCP established hash table entries: 16384 (order: 6,
262144 bytes)
[ 1.475741] TCP bind hash table entries: 16384 (order: 6, 262144
bytes)
[ 1.477986] TCP: Hash tables configured (established 16384 bind
16384)
[ 1.478538] TCP reno registered
[ 1.478934] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.479815] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.482550] NET: Registered protocol family 1
[ 1.483454] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 1.484003] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 1.485061] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 1.494114] Scanning for low memory corruption every 60 seconds
[ 1.499052] audit: initializing netlink socket (disabled)
[ 1.500217] type=2000 audit(1306257284.490:1): initialized
[ 1.618836] Trying to unpack rootfs image as initramfs...
[ 1.781400] HugeTLB registered 2 MB page size, pre-allocated 0
pages
[ 1.845435] VFS: Disk quotas dquot_6.5.2
[ 1.847059] Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 1.877985] fuse init (API version 7.14)
[ 1.880891] msgmni has been set to 968
[ 1.914591] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 253)
[ 1.915278] io scheduler noop registered
[ 1.915635] io scheduler deadline registered (default)
[ 1.916720] io scheduler cfq registered
[ 1.919451] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 1.922131] pciehp: PCI Express Hot Plug Controller Driver version:
0.4
[ 1.928733] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/
input/input0
[ 1.929948] ACPI: Power Button [PWRF]
[ 2.004568] ERST: Table is not found!
[ 2.009514] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 2.010238] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI


11 (level, high) -> IRQ 11

[ 2.026055] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[ 2.026554] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI


10 (level, high) -> IRQ 10

[ 2.032142] Linux agpgart interface v0.103
[ 2.033234] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 2.035871] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.037263] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 2.067092] brd: module loaded
[ 2.077755] loop: module loaded
[ 2.092431] vda: unknown partition table
[ 2.246241] scsi0 : ata_piix
[ 2.263140] scsi1 : ata_piix
[ 2.264470] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000
irq 14
[ 2.265008] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008
irq 15
[ 2.273016] Fixed MDIO Bus: probed
[ 2.274259] PPP generic driver version 2.4.2
[ 2.275659] tun: Universal TUN/TAP device driver, 1.6
[ 2.276068] tun: (C) 1999-2004 Max Krasnyansky <ma...@qualcomm.com>
[ 2.278623] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 2.279442] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.280178] uhci_hcd: USB Universal Host Controller Interface
driver
[ 2.282939] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI


11 (level, high) -> IRQ 11

[ 2.283887] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 2.285640] uhci_hcd 0000:00:01.2: new USB bus registered, assigned
bus number 1
[ 2.287010] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
[ 2.302237] hub 1-0:1.0: USB hub found
[ 2.303237] hub 1-0:1.0: 2 ports detected
[ 2.308441] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at
0x60,0x64 irq 1,12
[ 2.314537] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 2.315359] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 2.317662] mice: PS/2 mouse device common for all mice
[ 2.321670] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 2.323023] rtc0: alarms up to one day, 114 bytes nvram, hpet irqs
[ 2.325634] device-mapper: uevent: version 1.0.3
[ 2.332191] input: AT Translated Set 2 keyboard as /devices/
platform/i8042/serio0/input/input1
[ 2.396669] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05)
initialised: dm-d...@redhat.com
[ 2.413687] device-mapper: multipath: version 1.1.1 loaded
[ 2.414489] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 2.419185] cpuidle: using governor ladder
[ 2.419617] cpuidle: using governor menu
[ 2.425367] TCP cubic registered
[ 2.428356] NET: Registered protocol family 10
[ 2.442456] lo: Disabled Privacy Extensions
[ 2.447634] NET: Registered protocol family 17
[ 2.449203] powernow-k8: Processor cpuid 623 not supported
[ 2.456522] registered taskstats version 1
[ 2.459339] Magic number: 11:767:239
[ 2.461310] rtc_cmos 00:01: setting system clock to 2011-05-24
17:14:46 UTC (1306257286)
[ 2.462093] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 2.462532] EDD information not available.
[ 3.453511] Freeing initrd memory: 5748k freed
[ 3.477184] Freeing unused kernel memory: 828k freed
[ 3.518250] Write protecting the kernel read-only data: 10240k
[ 3.523237] Freeing unused kernel memory: 308k freed
[ 3.527381] Freeing unused kernel memory: 1620k freed
Used vda for root filesystem
pivot_root: Invalid argument
init started: BusyBox v1.17.2 (2010-10-17 16:10:18 MST)
stty: /dev/console

ttylinux 12.1
> http://ttylinux.org/
> hostname: ttylinux_host

load Kernel Module: acpiphp [ OK ]
load Kernel Module: e1000 [ OK ]
load Kernel Module: ne2k-pci [ OK ]
[ 7.247628] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
load Kernel Module: 8139cp [ OK ]
load Kernel Module: pcnet32 [ OK ]
load Kernel Module: mii [ OK ]
load Kernel Module: ip_tables [ OK ]
file systems checked [ OK ]
mounting local file systems [ OK ]
setting up system clock [utc] Tue May 24 17:14:53 UTC 2011 [ OK ]
stty: /dev/console
stty: /dev/console
initializing random number generator [WATING].. [ OK ]
stty: /dev/console
startup klogd [ OK ]
startup syslogd [ OK ]
stty: /dev/console
stty: /dev/console
bringing up loopback interface lo [ OK ]
stty: /dev/console
udhcpc (v1.17.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
starting DHCP forEthernet interface eth0 [ OK ]
cloud-setup: checking http://169.254.169.254/2009-04-04/meta-data/instance-id
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 1/30: up 28.18. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 2/30: up 29.75. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 3/30: up 31.12. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 4/30: up 32.59. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 5/30: up 34.00. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 6/30: up 35.63. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 7/30: up 36.99. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 8/30: up 38.35. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 9/30: up 39.70. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 10/30: up 41.02. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 11/30: up 42.41. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 12/30: up 43.81. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 13/30: up 45.24. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 14/30: up 46.74. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 15/30: up 48.18. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 16/30: up 49.78. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 17/30: up 51.14. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 18/30: up 52.59. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 19/30: up 53.95. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 20/30: up 55.33. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 21/30: up 56.70. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 22/30: up 58.10. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 23/30: up 59.48. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 24/30: up 60.89. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 25/30: up 62.32. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 26/30: up 63.75. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 27/30: up 65.15. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 28/30: up 66.56. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 29/30: up 67.93. request failed
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-setup: failed 30/30: up 69.06. request failed
cloud-setup: after 30 fails, debugging
cloud-setup: running debug (30 tries reached)
############ debug start ##############
### /etc/rc.d/init.d/sshd start
stty: /dev/console
generating DSS host key [WATING].. [ OK ]
generating RSA host key [WATING].. [ OK ]
startup dropbear [ OK ]
route: fscanf
### ifconfig -a
eth0 Link encap:Ethernet HWaddr 02:16:3E:67:1A:C3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2400 (2.3 KiB)
Interrupt:11 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

### route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/etc/rc.d/init.d/cloud-functions: line 41: /etc/resolv.conf: No such
file or directory
### pinging nameservers
### uname -a
Linux ttylinux_host 2.6.35-22-virtual #35-Ubuntu SMP Sat Oct 16
23:19:29 UTC 2010 x86_64 GNU/Linux
### lsmod
Module Size Used by
ip_tables 18737 0
x_tables 24391 1 ip_tables
pcnet32 36585 0
8139cp 20333 0
mii 5261 2 pcnet32,8139cp
ne2k_pci 7802 0
8390 9897 1 ne2k_pci
e1000 110274 0
acpiphp 18752 0
### dmesg | tail
<6>[ 7.036230] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
<6>[ 7.240108] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar
22, 2004)
<4>[ 7.247628] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
<6>[ 7.248434] 8139cp 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI


11 (level, high) -> IRQ 11

<6>[ 7.258585] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at
0xffffc900001dc000, 02:16:3e:67:1a:c3, IRQ 11
<7>[ 7.258753] 8139cp 0000:00:03.0: setting latency timer to 64
<6>[ 7.424418] pcnet32: pcnet32.c:v1.35 21.Apr.2008
tsbo...@alpha.franken.de
<6>[ 7.833389] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 17.615836] eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
<7>[ 28.219928] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.616913]
acpiphp: Slot [20] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.617403]
acpiphp: Slot [21] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.617906]
acpiphp: Slot [22] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.618331]
acpiphp: Slot [23] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.618794]
acpiphp: Slot [24] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.619250]
acpiphp: Slot [25] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.619755]
acpiphp: Slot [26] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.620205]
acpiphp: Slot [27] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.620639]
acpiphp: Slot [28] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.621041]
acpiphp: Slot [29] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.621808]
acpiphp: Slot [30] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.622280]
acpiphp: Slot [31] registered
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.810688] e1000:
Intel(R) PRO/1000 Network Driver - version 7.3.21-k6-NAPI
May 24 17:14:57 ttylinux_host user.info kernel: [ 6.810807] e1000:
Copyright (c) 1999-2006 Intel Corporation.
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.036230] ne2k-
pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.240108] 8139cp:
8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
May 24 17:14:57 ttylinux_host user.warn kernel: [ 7.247628] ACPI:
PCI Interrupt Link [LNKC] enabled at IRQ 11
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.248434] 8139cp
0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ
11
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.258585] 8139cp
0000:00:03.0: eth0: RTL-8139C+ at 0xffffc900001dc000, 02:16:3e:
67:1a:c3, IRQ 11
May 24 17:14:57 ttylinux_host user.debug kernel: [ 7.258753] 8139cp
0000:00:03.0: setting latency timer to 64
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.424418]
pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbo...@alpha.franken.de
May 24 17:14:57 ttylinux_host user.info kernel: [ 7.833389]
ip_tables: (C) 2000-2006 Netfilter Core Team
May 24 17:15:01 ttylinux_host user.info kernel: [ 17.615836] eth0:
link up, 100Mbps, full-duplex, lpa 0x05E1
May 24 17:15:11 ttylinux_host user.debug kernel: [ 28.219928] eth0:
no IPv6 routers present
May 24 17:15:58 ttylinux_host authpriv.info dropbear[267]: Running in
background
############ debug end ##############
cloud-setup: failed to read iid from metadata. tried 30
stty: /dev/console
sshd is already running.
stty: /dev/console
startup inetd [ OK ]
stty: /dev/console
startup crond [ OK ]
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
cloud-userdata: failed to read instance id
===== cloud-final: system completely up in 79.15 seconds ====
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
wget: can't connect to remote host (169.254.169.254): Network is
unreachable
instance-id:
public-ipv4:
local-ipv4 :
=> First-Boot Sequence:
setting shared object cache [running ldconfig] [ OK ]

> --sql_connection=mysql://root:ntts...@172.16.25.2/nova
> --network_manager=nova.network.manager.VlanManager
> --libvirt_type=qemu<http://172.16.25.2:8773/services/Cloud--fixed_range=172.16.25.0/27--network _size=20--FAKE_subdomain=ec2--routing_source_ip=172.16.25.2--verbose--sql_c onnection=mysql://root:ntts...@172.16.25.2/nova--network_manager=nova.network.manager.FlatManager--libvir t_type=qemu>


> --vlan_interface=eth0
> --public_interface=eth0
>
> 『Step4 MySQL内のnovaデータベースのnetworksテーブルとfixed_ipsテーブルの削除』
> MySQLサーバにログインし、下記に示すSQLを実行。
>

> root@ubuntu: mysql --user=root --password=nttsoft<http://172.16.25.2:8773/services/Cloud--fixed_range=172.16.25.0/27--network _size=20--FAKE_subdomain=ec2--routing_source_ip=172.16.25.2--verbose--sql_c onnection=mysql://root:ntts...@172.16.25.2/nova--network_manager=nova.network.manager.FlatManager--libvir t_type=qemu>

Hisashi Ikari

unread,
May 24, 2011, 10:09:17 AM5/24/11
to openst...@googlegroups.com
碇です

すいません。
バタバタしてしまってまだパッチの確認取れていないです。

いくつか設定項目を忘れていました。順番が順不同になってしまって申し訳ないです。


1 nova-networkのブリッジインターフェースにネットワークアドレスの一番目のアドレス
2 iptablesの設定
3 ip_forwardの設定

4 169.254.169.254/32 のアドレスをループバックインターフェースに割り当てる。
5 ゲストからアクセスするネットワークインターフェースにブリッジをbr100として割り当てる

これらがなぜ必要かについて原因だけ
guestがhttp://169.254.169.254/2009-04-04/meta-data/instance-id
この情報をとりにいくのにデフォルトゲートウェイにとりに行こうとします。
そのIPAddressが1番目のアドレスであって、そのアドレスがnova-apiにリダイレクトされないとい
けないから上記の設定が必要になります。
#個人的にはnova-compute上でリダイレクトしてくれればいいのにと思います。

FlatDHCPManagerなどではnova-network上でnova-apiにリダイレクトしてくれます。
マニュアルに記載されているiptablesではnova-networkが一つであると限定し、その上でnova-api
が動作している事が前提となっています。コードにそのへんのコメントは少しだけ書いてあります。

DBのnetworksのNULLなどをみて中途半端にFlatManagerだと判断したりしますので、
NetworkManagerを変更する際はnova-manage db syncからやり直したほうがいいと思います。
最低限DBのnetworksとfixed_ipsをtruncateしてネットワークから作成しないと
FlatDHCPManagerにしてもflat_injectedが走ってしまってリゾルバの設定が上書きされたりします。

一応パッチ作ったのですがきちんとどうさするかもう少しテストしてからにします。


On Tue, 24 May 2011 02:10:58 -0700 (PDT)
tacky1052 <takiguchi...@gmail.com> wrote:

--
Hisashi Ikari <igoi...@gmail.com>

Koji IIDA

unread,
May 25, 2011, 12:21:35 AM5/25/11
to openst...@googlegroups.com
飯田です。

> ubuntu1010-UEC-localuser-imageが悪いのかと思い
> イメージを伊藤さんに教えていただいた
> http://images.ansolabs.com/tty.tgz
> に変更したら、 コンソールログがこんな(下記)感じになりました。
> やはりメタデータはwgetできていないようです。

うっかりしていましたが、tty.tgzイメージはDHCPでIPアドレスを取得する必要
があり、FlatManager ではIPアドレスの設定ができないという問題があります。

添付いただいたログから察するに、VMの起動はできているのですが、IPアドレス
の設定に失敗しているため、ネットワークのアクセスができていない状態に見え
ます。

ttyイメージはDebian系のディストリではないので、FlatManagerが実施する
/etc/network/interfaces のインジェクトが効かないです。

FlatDHCPManagerで tty イメージで試されるときっと動くと思います。

tacky1052

unread,
Jun 9, 2011, 1:47:54 AM6/9/11
to 日本OpenStackユーザ会
NTTソフトウェア 瀧口です。

ご無沙汰しています。
前回の投稿以来、まとまった時間ができましたので、
「FlatDHCPでttyイメージ」を試してみました。

DHCPからIPが払いだされないという問題に遭遇しています。
色々調べてみたのですが、dnsmasqのプロセスが同じ引数で2つ上がっています。
これって異常な状態のような気がするのですが、
ご存知の方がいらっしゃれば、教えていただけますでしょうか?

root@ubuntu:~# ps aux | grep dnsmasq
nobody 986 0.0 0.0 21428 928 ? S 23:34 0:00
dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/
network/default.pid --conf-file= --except-interface lo --listen-
address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --
dhcp-lease-max=253 --dhcp-no-override
nobody 1329 0.0 0.0 22860 996 ? S 23:34 0:00
dnsmasq --strict-order --bind-interfaces --conf-file= --
domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --
listen-address=192.168.0.1 --except-interface=lo --dhcp-
range=192.168.0.0,static,120s --dhcp-hostsfile=/var/lib/nova/networks/
nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --log-queries --
log-facility=/tmp/dnsmasq --log-dhcp --leasefile-ro
root 1330 0.0 0.0 22860 448 ? S 23:34 0:00
dnsmasq --strict-order --bind-interfaces --conf-file= --
domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --
listen-address=192.168.0.1 --except-interface=lo --dhcp-
range=192.168.0.0,static,120s --dhcp-hostsfile=/var/lib/nova/networks/
nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --log-queries --
log-facility=/tmp/dnsmasq --log-dhcp --leasefile-ro

root@ubuntu:~# cat /etc/nova/nova.conf
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=172.16.21.34
--rabbit_host=172.16.21.34
--cc_host=172.16.21.34
--ec2_url=http://172.16.21.34:8773/services/Cloud
--fixed_range=192.168.0.0/12
--network_size=1048000
--FAKE_subdomain=ec2
--routing_source_ip=172.16.21.34
--verbose
--sql_connection=mysql://root:ntt...@172.16.21.34/nova
--libvirt_type=qemu
--network_manager=nova.network.manager.FlatDHCPManager
--flat_network_dhcp_start=192.168.0.0
--flat_injected=False
--public_interface=eth0
> ...
>
> read more ≫

d.shen

unread,
Jun 9, 2011, 11:10:28 PM6/9/11
to openst...@googlegroups.com
OpenStack ユーザ会の皆様

お世話になっております。NTT ATの沈です。
滝口様、当方FlatManagerとVlanManagerしか
試した事が無く、間違っていたらゴメンなさいで
すけど、基本的にFlatDHCPManagerと
FlatManagerってインスタンスのIPアドレスが
静的 or 動的の違いしかないと理解しています。

FlatManagerで運用する場合、dnsmasqプロセス
をkillする必要が有ると公式ドキュメント『3.6.4. Enabling
Access to VMs on the Compute Node』に書かれて
いるので、試しに見えているdnsmasqプロセスをすべて
killしてみてはどうですか?

http://docs.openstack.org/cactus/openstack-compute/admin/content/enabling-access-to-vms-on-the-compute-node.html

tacky1052

unread,
Jun 12, 2011, 8:50:01 PM6/12/11
to 日本OpenStackユーザ会
沈様

瀧口です。
コメントありがとうございます。

このスレの冗談では、FlatManagerでやっていましたが、私の環境のせいか、
うまくいかなかったので(おそらくインジェクションでこけてる)
難易度の低い、FlatDHCPManagerでやろうとしています。
マニュアルからは、
http://docs.openstack.org/cactus/openstack-compute/admin/content/networking-options.html
FlatDHCPManagerはインジェクションではなくてDHCPでVMのIPを設定するモードのように読めます。
なのでdnsmasqは必要だと思うのですが、いかがでしょうか?

On 6月10日, 午後12:10, "d.shen" <d.s...@ntt-at.co.jp> wrote:
> OpenStack ユーザ会の皆様
>
> お世話になっております。NTT ATの沈です。
> 滝口様、当方FlatManagerとVlanManagerしか
> 試した事が無く、間違っていたらゴメンなさいで
> すけど、基本的にFlatDHCPManagerと
> FlatManagerってインスタンスのIPアドレスが
> 静的 or 動的の違いしかないと理解しています。
>
> FlatManagerで運用する場合、dnsmasqプロセス
> をkillする必要が有ると公式ドキュメント『3.6.4. Enabling
> Access to VMs on the Compute Node』に書かれて
> いるので、試しに見えているdnsmasqプロセスをすべて
> killしてみてはどうですか?
>
> http://docs.openstack.org/cactus/openstack-compute/admin/content/enab...

d.shen

unread,
Jun 12, 2011, 9:31:53 PM6/12/11
to openst...@googlegroups.com
OpenStack ユーザ会の皆様

お世話になっております。NTT ATの沈です。
指摘されたURLに記載されている
FlatDHCPManagerに関する記述をよくよく
見たら、

『It will also run dnsmasq as a dhcpserver listening on this bridge.

の記述が有ったので、滝口様のご指摘通り
FlatDHCPManagerではdnsmasqプロセス
をkillしてはダメですね。なんか間違ったコメント
をして申し訳ございませんでした。

でもそうなると、話は振り出しに戻って何故
2つのdnsmasqプロセスが上がった&何故
起動したインスタンスにIPが払い出されてい
ないかですよね、、、、、。むーーん、、、、、判る方
いますか?

Masanori Itoh

unread,
Jun 12, 2011, 9:35:01 PM6/12/11
to 日本OpenStackユーザ会
伊藤です。

インジェクションは ssh の鍵を入れるところでも前提になりますので
仕様する NetworkManager によらず必要です。

イメージとして、tty.tgz を使っているのであれば、これは
形式が qcow2 ではなくて flat になりますので、
インジェクションのために nova,conf に

--use_cow_images=False

が必要だと思うのですが、指定していますでしょうか?

dnsmasq は FlatDHCPなら必要になりますね。


余談ですが、dnsmasq がすでに動いた場合などのトラブルなどの
ノウハウですが、6/11の hbstudy 23 で軽く紹介があったのですが、
会場が開場した後 tacky1052 という名札が並んでいるのを
見た気がするのですがキャンセルでしたか?


On Jun 13, 9:50 am, tacky1052 <takiguchi.hiroyo...@gmail.com> wrote:
> 沈様
>
> 瀧口です。
> コメントありがとうございます。
>
> このスレの冗談では、FlatManagerでやっていましたが、私の環境のせいか、
> うまくいかなかったので(おそらくインジェクションでこけてる)
> 難易度の低い、FlatDHCPManagerでやろうとしています。
> マニュアルからは、http://docs.openstack.org/cactus/openstack-compute/admin/content/netw...
> FlatDHCPManagerはインジェクションではなくてDHCPでVMのIPを設定するモードのように読めます。
> なのでdnsmasqは必要だと思うのですが、いかがでしょうか?
>
> On 6月10日, 午後12:10, "d.shen" <d.s...@ntt-at.co.jp> wrote:
>
>
>
> > OpenStack ユーザ会の皆様
>
> > お世話になっております。NTT ATの沈です。
> > 滝口様、当方FlatManagerとVlanManagerしか
> > 試した事が無く、間違っていたらゴメンなさいで
> > すけど、基本的にFlatDHCPManagerと
> > FlatManagerってインスタンスのIPアドレスが
> > 静的 or 動的の違いしかないと理解しています。
>
> > FlatManagerで運用する場合、dnsmasqプロセス
> > をkillする必要が有ると公式ドキュメント『3.6.4. Enabling
> > Access to VMs on the Compute Node』に書かれて
> > いるので、試しに見えているdnsmasqプロセスをすべて
> > killしてみてはどうですか?
>
> >http://docs.openstack.org/cactus/openstack-compute/admin/content/enab...- Hide quoted text -
>
> - Show quoted text -

tacky1052

unread,
Jun 13, 2011, 2:27:51 AM6/13/11
to 日本OpenStackユーザ会
伊藤さん

瀧口です。
コメントありがとうございます。

> 伊藤です。
>
> インジェクションは ssh の鍵を入れるところでも前提になりますので
> 仕様する NetworkManager によらず必要です。

そうなんですね。勘違いしていました。
http://docs.openstack.org/cactus/openstack-compute/admin/content/configuring-flat-dhcp-networking.html
にFlatDHCPManagerの時の設定で
「--flat_injected=False」
とあるので勘違いしてました。
http://docs.openstack.org/cactus/openstack-compute/admin/content/configuring-compute-to-use-ipv6-addresses.html
を見ると、ipv6のインジェクションをするフラグのようですね。

>
> イメージとして、tty.tgz を使っているのであれば、これは
> 形式が qcow2 ではなくて flat になりますので、
> インジェクションのために nova,conf に
>
> --use_cow_images=False
>
> が必要だと思うのですが、指定していますでしょうか?

これは抜けていました。試してみます。

>
> dnsmasq は FlatDHCPなら必要になりますね。
>
> 余談ですが、dnsmasq がすでに動いた場合などのトラブルなどの
> ノウハウですが、6/11の hbstudy 23 で軽く紹介があったのですが、
> 会場が開場した後 tacky1052 という名札が並んでいるのを
> 見た気がするのですがキャンセルでしたか?

私、いました。
しかも質問もしたのに。(T_T
「JenkinsのURLどこですか」といったのはtacky1052です。
所用で、懇親会は不参加でした。

ただdnsmasqの件が記憶に残っていません。
もしかして、Flash記憶のスライドの中とかですか?
二重起動したときの下りでしょうか?

ちなみに私の作った環境(Cactusのはず)では、
再起動してもdnsmasqのプロセスが同じ引数で二つ上がってきます。

hbstudy#23を見て、
nova.shで開発版というのが、よさそうだと感じてきました。
cactusの検証結果を作りたかったので、こだわってたんですが。

>
> On Jun 13, 9:50 am, tacky1052 <takiguchi.hiroyo...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 沈様
>
> > 瀧口です。
> > コメントありがとうございます。
>
> > このスレの冗談では、FlatManagerでやっていましたが、私の環境のせいか、
> > うまくいかなかったので(おそらくインジェクションでこけてる)
> > 難易度の低い、FlatDHCPManagerでやろうとしています。
> > マニュアルからは、http://docs.openstack.org/cactus/openstack-compute/admin/content/netw...
> > FlatDHCPManagerはインジェクションではなくてDHCPでVMのIPを設定するモードのように読めます。
> > なのでdnsmasqは必要だと思うのですが、いかがでしょうか?
>
> > On 6月10日, 午後12:10, "d.shen" <d.s...@ntt-at.co.jp> wrote:
>
> > > OpenStack ユーザ会の皆様
>
> > > お世話になっております。NTT ATの沈です。
> > > 滝口様、当方FlatManagerとVlanManagerしか
> > > 試した事が無く、間違っていたらゴメンなさいで
> > > すけど、基本的にFlatDHCPManagerと
> > > FlatManagerってインスタンスのIPアドレスが
> > > 静的 or 動的の違いしかないと理解しています。
>
> > > FlatManagerで運用する場合、dnsmasqプロセス
> > > をkillする必要が有ると公式ドキュメント『3.6.4. Enabling
> > > Access to VMs on the Compute Node』に書かれて
> > > いるので、試しに見えているdnsmasqプロセスをすべて
> > > killしてみてはどうですか?
>
> > >http://docs.openstack.org/cactus/openstack-compute/admin/content/enab...Hide quoted text -

Koji IIDA

unread,
Jun 13, 2011, 8:09:41 AM6/13/11
to openst...@googlegroups.com
瀧口さん

飯田です。


解決にならないと思いますが、知っている範囲をお答えします。

まず、同じ引数のdnsmasqが2つ、の件ですが、UIDが root → nobody で
特権対策でforkしているので正常動作です。

心配であれば、nova-network を停止した後に、dnsmasqをすべてkillしてから
(libvirtがデフォルトでdnsmasqを起動しているようですが、それもいらないで
すのでkillしてしまって問題ないです。)nova-network を再起動すればよいと思
います。


次に気になった点ですが、

> --flat_network_dhcp_start=192.168.0.0

http://docs.openstack.org/cactus/openstack-compute/admin/content/setting-up-openstack-compute-environment-on-the-compute-node.html

を参考にしたとして、nova-manage で
/usr/bin/nova-manage network create 192.168.0.0/24 1 256

としたのであれば、flat_network_dhcp_ctart は、192.168.0.2 が正解かと思い
ます。


そのほか、チェックポイントとしては、インスタンス起動後に、nova-network
で実行されたdnsmasq がlistenしている 192.168.0.1 ですが、nova-network を
実行しているマシンのインタフェースに設定されていますでしょうか?
(ifconfig 等で確認できますが、デフォルトでは、'br100' に nova-manage で
gateway として登録された 192.168.0.1 が設定されることになると思うのです
が、いかがでしょうか。)


euca-get-console-output でインスタンスの起動は確認済みで dhcpが失敗して
いる、ということでしょうか?

nova-compute とnova-network は同一ホストで実行でしょうか?それとも異なる
ホストで実行でしょうか? 異なるホストで実行するのであれば、それぞれのホ
ストでFlatDHCPManagerが使うブリッジ(デフォルト br100)にインタフェース
(eth1とか)を手動で設定しておく必要があります。もしくは、
--flat_interface にeth1等を指定する方法があります。--flat_interfaceを使
用する場合は、ここに指定したインタフェースの既存の設定が破壊されるので、
注意が必要です。

> --flat_injected=False

FlatManager において、networkの設定をインジェクトするか、のフラグと思い
ます。FlatDHCPManagerの場合はFalseでもTrueでもOKと考えます。
(手元の環境ではFlatDHCPManagerで無指定(True)で動いています。)
FlatManagerを使用する場合はIPv6に限らずTrueにする必要があります(デフォ
ルトでTrueです)


>> イメージとして、tty.tgz を使っているのであれば、これは
>> 形式が qcow2 ではなくて flat になりますので、
>> インジェクションのために nova,conf に
>>
>> --use_cow_images=False
>>
>> が必要だと思うのですが、指定していますでしょうか?
>
> これは抜けていました。試してみます。

飯田の手元では、tty.tgz でも デフォルトのまま(True)で動いていますので、
デフォルトのままで問題ないかと思います。

use_cow_images って、compute node がimageサーバから取得したイメージをマ
スタイメージとして、インスタンス個々のdisk imageに copy on write の差分
だけ使う、というフラグかと思います。


以上、何かの参考になれば幸いです。


--
飯田 浩二 (Koji IIDA)
NTT情報流通プラットフォーム研究所
情報流通プラットフォーム推進プロジェクト プラットフォームSEDP
E-mail: iida...@lab.ntt.co.jp Tel: 0422-59-5743

Masanori Itoh

unread,
Jun 13, 2011, 11:08:46 AM6/13/11
to 日本OpenStackユーザ会
伊藤です。

順番が前後しますが、会場にいらしたのですね。
失礼いたしました。
言い訳になりますが、会場が暗かったので、目の前に鎮座している荒井さんとか、
遠目からでもあきらかに識別できるM口さんしかわかりまでんでした...orz

あと、読み返してみて誤解を招くことを書いたかもしれないと気付きました。
> 「--flat_injected=False」
などは Flat* 系に固有かと思うのですが、私は、「ディスクイメージの中に書き込みを行う」
という一般的な意味でインジェクションと書きました。
なので、オプションによっては、確かに NetworkManager に依存すると思います。
すいません。

dnsmasq の件は、 @nati さんがデモの中で触れていました。
飯田さんが詳しい解説をしてくださっていますので参考にしていただければと思います。

なお、cactus にはそんなにこだわらなくていいんじゃないかと思いますよ。
用途によるわけですが、cactus の時点ですと、たとえば Ruby で書かれた AWSライブラリの
代表格である RightAWS が認証エラーになる…などの問題が少し残ってしまっているので、
OpenStackを使ってまわりに何か作りこもう…といった場合にひっかかるかもしれません。

とりいそぎ。

On Jun 13, 3:27 pm, tacky1052 <takiguchi.hiroyo...@gmail.com> wrote:
> 伊藤さん
>
> 瀧口です。
> コメントありがとうございます。
>
> > 伊藤です。
>
> > インジェクションは ssh の鍵を入れるところでも前提になりますので
> > 仕様する NetworkManager によらず必要です。
>
> そうなんですね。勘違いしていました。http://docs.openstack.org/cactus/openstack-compute/admin/content/conf...
> にFlatDHCPManagerの時の設定で
> 「--flat_injected=False」
> とあるので勘違いしてました。http://docs.openstack.org/cactus/openstack-compute/admin/content/conf...
> > > >http://docs.openstack.org/cactus/openstack-compute/admin/content/enab...quoted text -

Masanori Itoh

unread,
Jun 13, 2011, 11:23:13 AM6/13/11
to 日本OpenStackユーザ会
局所的に反応します。

--use_cow_images

の件なのですが、私の勤務先では、qcow2 形式のAMIと flat 形式のAMI(tty.gz はこちら)の使い分けの際に、
指定しています。複数VMで同じイメージが共有されるわけではなく、VMware で言うところの
thin disk と fat disk の違いです。

True にするとUbuntuでは、イメージの中への書き込み(インジェクション)の際に qemu-nbd が使われるのですが、
flat形式のイメージを食わせると、そこでエラーになるはずです。
# ごく、直近の revision で修正が入っていれば話は別ですが...

余談ですが、RHEL6の場合、qemu-nbd がないので、trunk や as is の ppa のまま qcow2 形式のイメージを
使おうとするとエラーになります。
RHEL6では、qcow2 をあきらめるか GridDynamics が配っている rpm を入れて使ってください。
これは、libguestfs を使う修正が反映されているため、qemu-nbd がなくても qcow2 形式のイメージが
使えるようになっています。

とりいそぎ。

On Jun 13, 9:09 pm, Koji IIDA <iida.k...@lab.ntt.co.jp> wrote:
> >> イメージとして、tty.tgz を使っているのであれば、これは
> >> 形式が qcow2 ではなくて flat になりますので、
> >> インジェクションのために nova,conf に
>
> >> --use_cow_images=False
>
> >> が必要だと思うのですが、指定していますでしょうか?
>
> > これは抜けていました。試してみます。
>
> 飯田の手元では、tty.tgz でも デフォルトのまま(True)で動いていますので、
> デフォルトのままで問題ないかと思います。
>
> use_cow_images って、compute node がimageサーバから取得したイメージをマ
> スタイメージとして、インスタンス個々のdisk imageに copy on write の差分
> だけ使う、というフラグかと思います。
>
> 以上、何かの参考になれば幸いです。
> E-mail: iida.k...@lab.ntt.co.jp Tel: 0422-59-5743

Koji IIDA

unread,
Jun 13, 2011, 9:15:43 PM6/13/11
to openst...@googlegroups.com
伊藤さん

飯田です。


なるほど、flat形式だと qemu-nbd で失敗する場合がある、ということですね。
手元の環境では flat 形式のイメージでも qemu-nbd でマウントしてインジェクション
して問題なく動いているように見えます。
qemu/kvmのバージョンの違いでしょうか。

ちなみに手元の環境で --use_cow_images がtrueの場合の tty のインスタンスの
ディスクイメージはこんな感じになっています。

root@usv601:/opt2# qemu-img info nova/instances/instance-00000001/disk
image: nova/instances/instance-00000001/disk
file format: qcow2
virtual size: 24M (25165824 bytes)
disk size: 18M
cluster_size: 2097152
backing file: /opt2/nova/nova/..//instances/_base/77de68daecd823babbb58edb1c8e14d7106e83bb_sm (actual path: /opt2/nova/nova/..//instances/_base/77de68daecd823babbb58edb1c8e14d7106e83bb_sm)

root@usv601:/opt2# file /opt2/nova/nova/..//instances/_base/77de68daecd823babbb58edb1c8e14d7106e83bb_sm
/opt2/nova/nova/..//instances/_base/77de68daecd823babbb58edb1c8e14d7106e83bb_sm: Linux rev 1.0 ext2 filesystem data, UUID=1cc3eea5-6f8e-4625-93c9-3ab8c520501e, volume name "uec-rootfs"

Reply all
Reply to author
Forward
0 new messages