先日、Amazon EC2上で稼動可能なFreeBSDのAMIが公開されました。
バージョンは、FreeBSD 9.0-CURRENTのみ、"For t1.micro instances only!"という、まだバグも含まれた実験段階のものということ。
が、動くものが公開されたということは非常に喜ばしいことですね。
AWS Management Consoleで確認/起動してみる
早速、"AWS Management Console"のAMIの画面にて「FreeBSD」で検索すると、↓のようにavailableなFreeBSDのAMIが表示されます!
尚、AWS Management Consoleの利用方法については、「わずか5分でWindows Serverを準備する(動かす)方法 (Windows Server on Amazon EC2)」が参考になると思います。
(※ 以降、画像はクリックすると拡大表示されます。)
EBSブート、i386アーキテクチャなAMIの模様。
早速、チェックを入れて、マイクロインスタンスで起動してみます。
早速、起動しました。EC2で通常のインスタンスを起動する手順と何ら変わりない感じです。
ログインする
通常通り、Key pairsで作成したSSH鍵を利用して、rootアカウントでログインします。
FreeBSD 9.0-CURRENT (XEN) #68: Sun Dec 12 03:52:29 UTC 2010 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. #
おおっ!ログインできました!
# uname FreeBSD # uname -r 9.0-CURRENT # uname -a FreeBSD ip-10-196-xxx-xxx 9.0-CURRENT FreeBSD 9.0-CURRENT #68: Sun Dec 12 03:52:29 UTC 2010 root@chch.daemonology.net:/usr/obj/i386.i386/usr/src/sys/XEN i386
バージョン情報はこんな感じです。
とまぁ、エントリとしては以上なんですがw、せっかくなので、dfやdmesgの結果をログとして以下に貼り付けておきます。
df
# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da1s1 5071316 225962 4439650 5% / devfs 1 1 0 100% /dev /dev/da0 1040280 20432 967420 2% /boot/grub
dmesg
# dmesg APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #68: Sun Dec 12 03:52:29 UTC 2010 root@chch.daemonology.net:/usr/obj/i386.i386/usr/src/sys/XEN i386 WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2660.000 MHz processor. Timecounter "ixen" frequency 1953125 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5430 @ 2.66GHz (2660.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10 Features=0xbfe3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x40ce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE> AMD Features=0x20100000<NX,LM> AMD Features2=0x1<LAHF> Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line real memory = 644874240 (615 MB) Physical memory chunk(s): 0x00000000007d0000 - 0x0000000025b4dfff, 624418816 bytes (152446 pages) avail memory = 621105152 (592 MB) [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0) [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1) Event-channel device installed. random: <entropy source, Software, Yarrow> io: <I/O> mem: <memory> Pentium Pro MTRR support enabled null: <null device, zero device> nfslock: pseudo-device [XEN] xen_rtc_probe: probing Hypervisor RTC clock rtc0: <Xen Hypervisor Clock> on motherboard [XEN] xen_rtc_attach: attaching Hypervisor RTC clock rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) xs_probe: Probe retuns 0 xenstore0: <XenStore> on motherboard Grant table initialized xc0: <Xen Console> on motherboard Device configuration finished. procfs registered Timecounters tick every 10.000 msec lo0: bpf attached xenbusb_front0: <Xen Frontend Devices> on xenstore0 [XEN] hypervisor wallclock nudged; nudging TOD. xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0 xn0: bpf attached xn0: Ethernet address: 12:31:3d:06:56:e2 xenbusb_back0: <Xen Backend Devices> on xenstore0 xctrl0: <Xen Control Device> on xenstore0 xbd0: 1024MB <Virtual Block Device> at device/vbd/2049 on xenbusb_front0 xbd0: attaching as da0 GEOM: new disk da0 xbd1: 9216MB <Virtual Block Device> at device/vbd/2064 on xenbusb_front0 xbd1: attaching as da1 WARNING: WITNESS option enabled, expect reduced performance. GEOM: new disk da1 Trying to mount root from ufs:da1s1 []... rtc0: [XEN] xen_rtc_gettime rtc0: [XEN] xen_rtc_gettime: wallclock 1287809138 sec; 123995586 nsec rtc0: [XEN] xen_rtc_gettime: uptime 5047294 sec; 764455230 nsec rtc0: [XEN] xen_rtc_gettime: TOD 1292856432 sec; 888450816 nsec start_init: trying /sbin/init
まとめ
クラウドAMAZON EC2/S3のすべて (ITpro BOOKs)
- 作者: 並河祐貴,安達輝雄,ITpro/日経SYSTEMS
- 出版社/メーカー: 日経BP社
- 発売日: 2009/11/05
- メディア: 単行本
- 購入: 4人 クリック: 372回
- この商品を含むブログ (18件) を見る