NetworkManagerの問題点
openSUSEでは、ネットワーク接続方式で、ifupか、NetwokManagerが選択できるのですが、NetworkManagerの場合はブリッジ接続ができません。このため、XenやKVMやVirtualBoxなどの仮想環境も構築しているサーバーでは、ゲストOSでのブリッジネットワークが接続できなくなります。
ifupとNetworkManagerの競合
そのため、仮想環境を構成しているサーバーではifupしか選択肢がありませんが、NetworkManagerを初期状態でインストールされていると、ifupを選択していてもOSのブート処理でNetworkManagerが起動しようとしてしまいます(結果はFAILEDになります。この結果の待ち時間が発生します)。openSUSEにはNetworkManagerに関するランレベル設定がありません。また、/etc/sysconfig/network/configに、
NETWORKMANAGER="no"
と記述しても無効になりません。そこで、少々乱暴な方法ですが、YaSTでNetworkManager関連のパッケージを全て削除しました。これにより、初期のブートで、NetworkManagerが強制的に起動することがなくなり、ブートプロセスの起動が速くなりました。
現在のブートプロセス
現在のブートプロセスはこんなかんじです(Xenカーネル)
Trying manual resume from /dev/disk/by-id/ata-M4-CT512M4SSD2_000000001116030641BB-part6
Trying manual resume from /dev/disk/by-id/ata-M4-CT512M4SSD2_000000001116030641BB-part6
Waiting for device /dev/root to appear: ok
fsck from util-linux 2.21.2
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/sda5
/dev/sda5: clean, 446758/16252928 files, 11677002/65008640 blocks
fsck succeeded. Mounting root device read-only.
Mounting root /dev/root
mount -o ro,acl,user_xattr -t ext4 /dev/root /root
Welcome to openSUSE 12.2 (Mantis) (x86_64)!
Starting Collect Read-Ahead Data...
Starting Replay Read-Ahead Data...
Starting LSB: Set default boot entry if called...
Starting LSB: iSCSI initiator daemon root-fs support...
Starting Runtime Directory...
Starting Lock Directory...
Starting Media Directory...
Starting Debug File System...
Starting Security File System...
Starting POSIX Message Queue File System...
Started Huge Pages File System [ OK ]
Starting create /dev/root symlink with dynamic rule...
Starting Journal Service...
Started Journal Service [ OK ]
Started Collect Read-Ahead Data [ OK ]
Started Replay Read-Ahead Data [ OK ]
Started LSB: Set default boot entry if called [ OK ]
Started LSB: iSCSI initiator daemon root-fs support [ OK ]
Started Runtime Directory [ OK ]
Started Lock Directory [ OK ]
Started Media Directory [ OK ]
Started Debug File System [ OK ]
Started Security File System [ OK ]
Started POSIX Message Queue File System [ OK ]
Started create /dev/root symlink with dynamic rule [ OK ]
Starting udev Kernel Device Manager...
Starting Remount API VFS...
Starting Load Kernel Modules...
Started Set Up Additional Binary Formats [ OK ]
Started File System Check on Root Device [ OK ]
Starting LSB: setup hostname and yp...
Starting Remount Root FS...
Starting Setup Virtual Console...
Started udev Kernel Device Manager [ OK ]
Started Remount API VFS [ OK ]
Started Load Kernel Modules [ OK ]
Started LSB: setup hostname and yp [ OK ]
Started Remount Root FS [ OK ]
Started Setup Virtual Console [ OK ]
Starting udev Coldplug all Devices...
Starting Load Random Seed...
Starting Apply Kernel Variables...
Started Configuration File System [ OK ]
Started FUSE Control File System [ OK ]
Started Load Random Seed [ OK ]
Started Apply Kernel Variables [ OK ]
Started udev Coldplug all Devices [ OK ]
Started Show Plymouth Boot Screen [ OK ]
Starting /dev/disk/by-id/ata-M4-CT512M4SSD2_000000001116030641BB-part6...
Starting File System Check on /dev/disk/by-id/ata-WDC_WD20E...A6708714-part1...
Started /dev/disk/by-id/ata-M4-CT512M4SSD2_000000001116030641BB-part6 [ OK ]
Starting /windows/C...
Starting File System Check on /dev/disk/by-id/ata-M4-CT512M...030641BB-part1...
systemd-fsck[524]: /dev/sdb1: clean, 94490/122101760 files, 178877615/488378368 blocks
systemd-fsck[533]: /dev/sda1: clean, 371/107072 files, 39640/427520 blocks
Started File System Check on /dev/disk/by-id/ata-WDC...ZA6708714-part1 [ OK ]
Started /windows/C [ OK ]
Started File System Check on /dev/disk/by-id/ata-M4-...6030641BB-part1 [ OK ]
Starting /boot...
Starting /opt...
Started /boot [ OK ]
Starting FUSE Control File System...
Started FUSE Control File System [ OK ]
Started /opt [ OK ]
Starting Recreate Volatile Files and Directories...
Starting Tell Plymouth To Write Out Runtime Data...
Started Recreate Volatile Files and Directories [ OK ]
Started Tell Plymouth To Write Out Runtime Data [ OK ]
Starting Console System Startup Logging...
Starting Restore Sound Card State...
Starting LSB: Framebuffer setup...
Starting CUPS Printing Service...
Started CUPS Printing Service [ OK ]
Starting System Logging Service...
Starting LSB: CPUFreq modules loader...
Starting Haveged Entropy Gathering Daemon...
Started Haveged Entropy Gathering Daemon [ OK ]
Started Purge old kernels [ OK ]
Starting Name Service Cache Daemon...
Started Name Service Cache Daemon [ OK ]
Started YaST2 Second Stage [ OK ]
Started YaST2 Firstboot [ OK ]
Starting LSB: Configure the localfs depending network interfaces...
Starting Permit User Sessions...
Starting Login Service...
Started Console System Startup Logging [ OK ]
Started LSB: Framebuffer setup [ OK ]
Started LSB: CPUFreq modules loader [ OK ]
Started Permit User Sessions [ OK ]
Starting Getty on tty1...
Started Getty on tty1 [ OK ]
Starting Serial Getty on xvc0...
Started Serial Getty on xvc0 [ OK ]
Stopped systemd-kmsg-syslogd.service [ OK ]
Started System Logging Service [ OK ]
Starting D-Bus System Message Bus...
Started D-Bus System Message Bus [ OK ]
Starting LSB: Start/stop xenstored and xenconsoled...
Starting ACPI Event Daemon...
Starting LSB: Starts and stops the Xen management daemon...
Started ACPI Event Daemon [ OK ]
Started Login Service [ OK ]
Started LSB: Start/stop xenstored and xenconsoled [ OK ]
Started LSB: Starts and stops the Xen management daemon [ OK ]
Starting LSB: Start/stop xen-watchdog...
Starting LSB: Starts and stops Xen VMs...
Started LSB: Start/stop xen-watchdog [ OK ]
Started LSB: Starts and stops Xen VMs [ OK ]
Started LSB: Configure the localfs depending network interfaces [ OK ]
Starting LSB: handles udev coldplug of bluetooth dongles...
Starting Command Scheduler...
Started Command Scheduler [ OK ]
Starting LSB: Network time protocol daemon (ntpd)...
Starting LSB: Samba SMB/CIFS file and print server...
Starting Virtualization daemon...
Started Virtualization daemon [ OK ]
Starting Suspend Active Libvirt Guests...
Starting /etc/init.d/boot.local Compatibility...
libvirt-guests[2410]: touch: cannot touch '/var/lock/subsys/libvirt-guests': No such file or directory
Started LSB: handles udev coldplug of bluetooth dongles [ OK ]
Started LSB: Samba SMB/CIFS file and print server [ OK ]
Started Suspend Active Libvirt Guests [ OK ]
Started /etc/init.d/boot.local Compatibility [ OK ]
Started LSB: Network time protocol daemon (ntpd) [ OK ]
Starting LSB: X Display Manager...
Started LSB: X Display Manager [ OK ]