但し、既存のWindows環境は壊せないので、USBブート環境にしてみた。
また、同じ理由で、USBブート環境の構築には、仮想環境を用いた。
以下、USBブート環境の構築手順を記す。
FMV-R8250で動作するLinux Mint 12(USBブート環境) |
Linux Mint 12 ライブ版の起動画面 |
# cat /root/sh/daily.www.backup #!/bin/sh TAPE=/dev/nst0 DIR=/var/www/html/* tar cvf $TAPE $DIR mt -f $TAPE status
# cat /root/sh/weekly.www.backup #!/bin/sh TAPE=/dev/nst0 DIR=/var/www/html/* mt -f $TAPE rewind mt -f $TAPE status
# ln -s /root/sh/daily.www.backup /etc/cron.daily/daily.www.backup # ln -s /root/sh/weekly.www.backup /etc/cron.weekly/weekly.www.backup
# cp /media/VMware\ Tools/VMwareTools-8.8.1-528969.tar.gz . # tar zxvf VMwareTools-8.8.1-528969.tar.gz ... # cd vmware-tools-distrib/ # ./vmware-install.pl Creating a new VMware Tools installer database using the tar4 format. Installing VMware Tools. In which directory do you want to install the binary files? [/usr/bin] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] What is the directory that contains the init scripts? [/etc/rc.d/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools] The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want this program to invoke the command for you now? [yes] Initializing... Making sure services for VMware Tools are stopped. [EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that creates backups of virtual machines. Please refer to the VMware Knowledge Base for more details on this capability. Do you wish to enable this feature? [no] Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmxnet3 to override. The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=pvscsi to override. The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmmemctl to override. The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [yes] Found a compatible pre-built module for vmhgfs. Installing it... Found a compatible pre-built module for vmxnet. Installing it... !!! [EXPERIMENTAL] !!! VMware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot they are not already present. By selecting yes, you will be enabling this experimental feature. You can always disable this feature by re-running vmware-config-tools.pl. Would you like to enable VMware automatic kernel modules? [no] Disabling timer-based audio scheduling in pulseaudio. Detected X server version 1.7.7 HAL デーモンを停止中: [ OK ] HAL デーモンを起動中: [ OK ] X is running fine with the new config file. Creating a new initrd boot image for the kernel. vmware-tools start/running The configuration of VMware Tools 8.8.1 build-528969 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the command line or by invoking "/usr/bin/vmware-toolbox" from the command line during an X server session. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you will need to do one (or more) of the following: 1. Manually start /usr/bin/vmware-user 2. Log out and log back into your desktop session; and, 3. Restart your X session. Enjoy, --the VMware team Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device /dev/sr0 ... #
OS | OK/NG | Device Name |
---|---|---|
Linux Mint 12 | OK | - |
CentOS6(6.0) | OK | - |
CentOS5(5.5) | NG | - |
Fedora 16 | OK | - |
Ubuntu 11.04 | OK | usb0 |
[root@localhost ~]# chkconfig --list NetworkManager NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@localhost ~]# service NetworkManager status NetworkManager (pid 1130) を実行中... [root@localhost ~]#(2) 停止および無効化
[root@localhost ~]# chkconfig NetworkManager off [root@localhost ~]# service NetworkManager stop NetworkManager デーモンを停止中: [ OK ] [root@localhost ~]#(3) 定義および動作状態の確認
[root@localhost ~]# chkconfig --list NetworkManager NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@localhost ~]# service NetworkManager status NetworkManager は停止しています [root@localhost ~]#2. ブリッジインターフェイスの作成
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE="br0" TYPE="Bridge" BOOTPROTO="dhcp" ONBOOT="yes" [root@localhost ~]#(2) 紐付ける物理インターフェイスを設定
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="00:0C:29:92:6F:68" ONBOOT="yes" BRIDGE="br0" [root@localhost ~]#3. ブリッジインターフェイスの動作開始
[root@localhost ~]# cat log インターフェース br0 を終了中: [ OK ] インターフェース eth0 を終了中: [ OK ] ループバックインターフェースを終了中 [ OK ] ループバックインターフェイスを呼び込み中 [ OK ] インターフェース eth0 を活性化中: [ OK ] インターフェース br0 を活性化中: br0 のIP情報を検出中... 完了。 [ OK ] [root@localhost ~]#(2) インターフェイス状態の確認
[root@localhost ~]# ifconfig br0 Link encap:Ethernet HWaddr 00:0C:29:92:6F:68 inet addr:192.168.227.128 Bcast:192.168.227.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe92:6f68/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:92 errors:0 dropped:0 overruns:0 frame:0 TX packets:102 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8141 (7.9 KiB) TX bytes:15381 (15.0 KiB) eth0 Link encap:Ethernet HWaddr 00:0C:29:92:6F:68 inet6 addr: fe80::20c:29ff:fe92:6f68/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1350 errors:0 dropped:0 overruns:0 frame:0 TX packets:1146 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:123122 (120.2 KiB) TX bytes:140638 (137.3 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 b) TX bytes:480 (480.0 b) [root@localhost ~]#
# wget http://sourceforge.net/projects/ndiswrapper/files/latest/download?_test=goal ... # tar zxvf ndiswrapper-1.57rc1.tar.gz ... # cd # make ... # make install
# lha -e wdrv-1052.exe # cd wdrv-1052/2CBG54L/ # ndiswrapper -i NET2G54L.inf installing net2g54l ... # ndiswrapper -l net2g54l : driver installed device (17FE:2220) present # ndiswrapper -m adding "alias wlan0 ndiswrapper" to /etc/modprobe.d/ndiswrapper.conf ... # modprobe ndiswrapper # dmesg ... ndiswrapper version 1.57rc1 loaded (smp=yes, preempt=no) ndiswrapper: driver net2g54l (BUFFALO INC.,09/08/2004,2.27.09.2004) loaded ndiswrapper 0000:06:00.0: enabling device (0000 -> 0003) ndiswrapper 0000:06:00.0: PCI INT A -> Link[LNK4] -> GSI 11 (level, low) -> IRQ 11 ndiswrapper 0000:06:00.0: setting latency timer to 64 ndiswrapper: using IRQ 11 wlan0: ethernet device 00:0d:0b:79:d0:24 using NDIS driver: net2g54l, version: 0x2001b, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 17FE:2220.5.conf wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK usbcore: registered new interface driver ndiswrapper ADDRCONF(NETDEV_UP): wlan0: link is not ready ndiswrapper (iw_set_ap_address:568): setting AP mac address failed (C0010015)
# cat /etc/sysconfig/network-scripts/ifcfg-wlan0 DEVICE=wlan0 BOOTPROTO=dhcp ONBOOT=yes MODE="Managed" ESSID="" KEY="s: "
# /etc/sysconfig/network-scripts/ifup wlan0 アクティブ接続の状態: アクティベート中 アクティブ接続のパス: /org/freedesktop/NetworkManager/ActiveConnection/4 状態: アクティベート済み 接続はアクティベート済み
# ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:0D:0B:79:D0:24 inet addr:192.168.1.129 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20d:bff:fe79:d024/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:54 errors:0 dropped:0 overruns:0 frame:0 TX packets:50 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4924 (4.8 KiB) TX bytes:9305 (9.0 KiB) Interrupt:11 Memory:5c000000-5c000800