ちょっとあきらめ気味
http://symbiosoft.net/CentOS5MinimalVA から落とせない。途中で切れる原因がよくわからん。自分が使っているプロバイダのせいかもしれない。別のサーバで落として分割転送してみるか。
(以下、つまらないので、読む必要は無いと思います。結局EasyVMXで落とした器に手動でCDからインストールすることになりました)
追記
w3mでもダメだった。80MBくらい転送したところで終わってしまう。中断ではないから、再開もできない。おそらくpartial responseではないのだと思うが、、相手サーバの問題かしらん?
まあいいや、minimalなイメージなら自分で作ろう。
追記
WindowsのFirefox3 + Live HTTP headersで見たところ、最初にダウンロードするときは、普通にレスポンスコード200だった。
HTTP/1.x 200 OK Date: Mon, 14 Jul 2008 04:33:41 GMT Server: Apache Last-Modified: Tue, 08 Jul 2008 05:21:41 GMT Etag: "d0209d-b9db7a8-4872f965" Accept-Ranges: bytes Content-Length: 194885544 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/plain
いきなりContent-Lengthがフルサイズで、一発でダウンロードなのか。partial responseじゃなかったのね。途中で切れちゃうのは、意図せず圧縮がかかってたりするか、サーバ側のデータが壊れているのかなぁ。
とりあえずEase VMX.comの super simpleでKernel2.6のバニラな構成を作ってみた
http://www.easyvmx.com/
ダウンロードしたイメージをVMwareで開いてみる。するとPXE bootしようとしてハマる。なるほどそうですか。
ということで、もちっとまじめにeasy VMXで、もういちどkernel 2.6をやってみた。
作成される.vmxの中身の例
#!/usr/bin/vmplayer # Filename: Kernel2.6-B.vmx # Generated 2008-07-14;06:56:36 by EasyVMX! # http://www.easyvmx.com # This is a Workstation 5 or 5.5 config file # It can be used with Player config.version = "8" virtualHW.version = "4" # Selected operating system for your virtual machine guestOS = "other26xlinux" # displayName is your own name for the virtual machine displayName = "Kernel2.6-B" # These fields are free text description fields annotation = "vanilla kernel 2.7" guestinfo.vmware.product.long = "vanilla" guestinfo.vmware.product.url = "http://どこそこ/" guestinfo.vmware.product.class = "virtual machine" # Number of virtual CPUs. Your virtual machine will not # work if this number is higher than the number of your physical CPUs numvcpus = "1" # Memory size and other memory settings memsize = "256" MemAllowAutoScaleDown = "FALSE" MemTrimRate = "-1" # Unique ID for the virtual machine will be created uuid.action = "create" # Remind to install VMware Tools # This setting has no effect in VMware Player tools.remindInstall = "TRUE" # Startup hints interfers with automatic startup of a virtual machine # This setting has no effect in VMware Player hints.hideAll = "TRUE" # Enable time synchronization between computer # and virtual machine tools.syncTime = "TRUE" # First serial port, physical COM1 is not available serial0.present = "FALSE" # Optional second serial port, physical COM2 is not available serial1.present = "FALSE" # First parallell port, physical LPT1 is not available parallel0.present = "FALSE" # Logging # This config activates logging, and keeps last log logging = "TRUE" log.fileName = "Kernel2.6-B.log" log.append = "TRUE" log.keepOld = "3" # These settings decides interaction between your # computer and the virtual machine isolation.tools.hgfs.disable = "FALSE" isolation.tools.dnd.disable = "FALSE" isolation.tools.copy.enable = "TRUE" isolation.tools.paste.enabled = "TRUE" # First network interface card ethernet0.present = "TRUE" ethernet0.virtualDev = "e1000" ethernet0.connectionType = "nat" ethernet0.addressType = "generated" ethernet0.generatedAddressOffset = "0" # Settings for physical floppy drive floppy0.present = "FALSE" # Settings for physical CDROM drive ide1:0.present = "TRUE" ide1:0.deviceType = "cdrom-raw" ide1:0.startConnected = "TRUE" ide1:0.fileName = "auto detect" ide1:0.autodetect = "TRUE" # LsiLogic SCSI card scsi0.present = "TRUE" scsi0.virtualDev = "lsilogic" # First SCSI disk image, size 2Gb scsi0:0.present = "TRUE" scsi0:0.fileName = "Kernel2.6-B.vmdk" scsi0:0.mode = "persistent" scsi0:0.startConnected = "TRUE" scsi0:0.writeThrough = "TRUE" # END OF EasyVMX! CONFIG scsi0:0.redo = "" ethernet0.generatedAddress = "00:0c:29:39:ca:39" uuid.location = "MACアドレス-85 1b 6a 5d 02 39 ca 39" uuid.bios = "MACアドレス-85 1b 6a 5d 02 39 ca 39" priority.grabbed = "normal" priority.ungrabbed = "normal"
これでもDHCPから始まり、PXE-bootを失敗して終わる。イメージの中身、見るかー。
いやいやいや、見るべきはtutorialです。
そうです、やっぱここの時点で棚からCDもってきてインストールするんですよ>俺
These are the steps for creating and running a virtual machine in VMware Player: * Install VMware Player. (Requires reboot...) * Go through EasyVMX!. * Download the virtual machine created by EasyVMX!. * Unzip the virtual machine to a folder of your choice. * Double-click on the vmx-file to start your virtual machine. Now you can insert an installation CD into your CDROM drive, and start installing!
はずかしながらまだハマッテマス
OS(CentOS5)はインストールできた。でも、最初適当な固定IPv4アドレスを割り振っていたけど「VMware ServerのホストマシンによるNAT接続だったっけ」と思い直してDHCPにしてみたら、今度はなぜかIPv6のアドレスが割り当てられてしまうという悲惨。
CentOSって、結構しぶとくIPv6が設定されているようで、FAQ/CentOS5 - CentOS Wikiのようなことをしないといけなかった。
で、結局、IPv4のDHCPが失敗してますよ...
もう面倒になったので、VMware ServerのNATの設定が192.168.78.0/24でGWが192.168.78.2ということをとりこんで、staticで設定することに。
ちなみに、時刻も盛大にずれてますが、これはVMwareのKnowledge baseにも記載がある問題だったようです。簡単に言えば、kernel2.6になって、タイマ割り込みが1ミリ秒に1回になったため、VMwareでは追従できなくなってしまったらしい。タイマ割り込みを取りこぼして悪影響がどれくらいあるかといえば、、、取りこぼしの可能性をコミでカーネルを作っていたはずなんですが、そうでない部分があったらしい。
/boot/grub/grub.confのkernelの行に以下のオプションを追加することで、けっこう収まるとか
clock=pit nosmp noapic nolapic
確かに収まったけど、普通に使っていて、1時間に秒単位の狂いは十分に気づきますねぇ。こりゃ。
カーネルにパッチあててタイマ割り込みの頻度を昔に戻すしかないのかなぁ。Xenではこのあたりのオーバーヘッドは理論的に少ないから、こんな問題は感じなかったよ。別件で探し当てたThe domain name has changed - ドメイン名変更のお知らせも対策するかなぁ。