VMWare ESXi に Ubuntu の VMware用仮想マシンをデプロイするには

仮想ハードディスクイメージのダウンロード | Ubuntu Japanese Team で配布されている日本語化されたデスクトップ用 Ubuntu の VMWare イメージをそのまま VMWare ESXi にデプロイするまでのメモである。 単に Ubuntu-ja-8.04-vmware-i386.zip をダウンロードしてきて、ESXi にアップロードしても、ディスク形式の問題で仮想マシンを起動すると失敗してしまった。 そこで無償の VMWare vCenter Converter をダウンロードしてきて standalone でインストールし、変換しつつ ESXi にアップロードしたところ成功した。 準備 Ubuntu-ja-8.04-vmware-i386.zip をダウンロードして、zip を解凍しておく。 VMWare vCenter Converter での作業 Specify Source で source type に「VMWare Workstation or other VMWare virtual machine」を選択して、 [Browse…] ボタンから先程解凍したフォルダの中の Ubuntu.vmx を指定して、[Next > ] ボタンをクリック。 Specify Destination で destination type に「VMWare Infrastructure virtual machine」を選択して、 ESXi の Server, User name, Password を入力して、[Next > ] ボタンをクリック。 その後はそのまま [ Next > ] を何度か進み続けるだけ。 View/Edit Options でオプションを変更してもいい。 Advanced Options で Warning が出るが構わず進める。 コンバートがはじまる(同時に ESXi にアップロードされる)。 ...

2009年7月7日 · Toshimitsu Takahashi

VMWare の仮想ディスク vmdk を raw に変換して XenServer のストレージにインポートするには

ここでの vmdk ファイルは OS のイメージではなく、単にデータのみのイメージです。 OS イメージとしての vmdk ファイルを Xen 用の xva ファイルに変換する方法ではありません。 Windows ホストでの変換作業 qemu-img を使って、vmdk から raw 形式に変換 今回は、Windows ホスト上で行っています。コマンドプロントで qemu-img を実行します。D:\Shared は共有フォルダです。 qemu-img.exe convert -f vmdk D:\hdd.vmdk -t raw -O D:\Shared\hdd.img XenCenter でストレージを作成 インポート先のストレージ(受け皿)を作成します。 XenCenter の [Local storage] を選択します。 [Add Disk…] をクリックします。 任意の Name とディスクサイズをインポートするイメージのサイズを指定します。これが小さいと途中で失敗してしまいます。 [Add] をクリックして完了。 XenServer にログイン Windows 共有フォルダをマウント \\Winhost\Shared が共有されているとします。Windows 上のユーザー名は waccount とします。 # mount.cifs //Winhost/Shared /mnt -o user=waccount ストレージのUUIDを確認 # xe vdi-list uuid ( RO) : aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee name-label ( RW): storage name-description ( RW): sr-uuid ( RO): xxxxxxxx-yyyy-zzzz-wwww-vvvvvvvvvvvv virtual-size ( RO): 21474836480 sharable ( RO): false read-only ( RO): false ...

2009年5月7日 · Toshimitsu Takahashi

VMWare Server 2.0 を Windows XP で試そうとした

ベアボーン PC の Windows XP Professional SP3 をホストとして VMWare Server 2.0 を入れて Cent OS 5 をゲストで動かそうとした。 インストーラアーカイブが580MBとと Ver.1.0 に比べて大きくなっている。これは Tomcat を Server Console のベースに使用したため、Java などが入って増大したようだ。これはホストのメモリ 1GB の中ではウレシクない。 メモリ消費量 Tomcat がこのように消費してしまう。 vmnat.exe 2,252K vmnetdhcp.exe 2,072K vmware-authd.exe 6,920K vmware-hostd.exe 60,580K tomcat6.exe 48,424K また Host Agent サービスが自動起動になっているにもかかわらず起動してくれない。さらにいきなりログインフォームでアカウントはわからない。結局、その Windows の Administrators なユーザーでログインできた。 とここまでで使う気が失せてしまった。やはり Ver.1.0.8 を使うことにした。ゲストOSを起動していない VMWare のサービスだけ起動しているとき、2.0 だと OS 全体で 512 MB 程度使っていたが 1.0 だと 300 MB 程度で済む。

2008年11月17日 · Toshimitsu Takahashi

CentOS でカーネルをバージョンアップしたときに VMWare Server の再設定をするには

VMWare Server ではカーネルのバージョンを上げると再コンパイルが必要になる。 まずカーネルの確認。 $ uname -r 2.6.18-53.1.13.el5xen ノーマルもしくは xen の devel パッケージをインストール。 # yum install kernel-devel.i386 もしくは # yum install kernel-xen-devel.i386 vmware-config.pl を実行する。 $ sudo vmware-config.pl Making sure services for VMware Server are stopped. Stopping VMware services: Virtual machine monitor \[ OK \] Bridged networking on /dev/vmnet0 \[ OK \] Virtual ethernet \[ OK \] Configuring fallback GTK+ 2.4 libraries. In which directory do you want to install the mime type icons? \[/usr/share/icons\] What directory contains your desktop menu entry files? These files have a .desktop file extension. \[/usr/share/applications\] In which directory do you want to install the application's icon? \[/usr/share/pixmaps\] Trying to find a suitable vmmon module for your running kernel. None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? \[yes\] Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? \[/usr/src/linux/include\] /usr/src/kernels/2.6.18-53.1.13.el5-i686/include The directory of kernel headers (version 2.6.18-53.1.13.el5) does not match your running kernel (version 2.6.18-53.1.13.el5xen). Even if the module were to compile successfully, it would not load into the running kernel. What is the location of the directory of C header files that match your running kernel? \[/usr/src/linux/include\] /lib/modules/2.6.18-53.1.13.el5xen/build/include Extracting the sources of the vmmon module. Building the vmmon module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config0/vmmon-only' に入ります ake -C /lib/modules/2.6.18-53.1.13.el5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make\[1\]: ディレクトリ `/usr/src/kernels/2.6.18-53.1.13.el5-xen-i686' に入ります C \[M\] /tmp/vmware-config0/vmmon-only/linux/driver.o CC \[M\] /tmp/vmware-config0/vmmon-only/linux/hostif.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/cpuid.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/hash.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/memtrack.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/phystrack.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/task.o CC \[M\] /tmp/vmware-config0/vmmon-only/common/vmx86.o CC \[M\] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o LD \[M\] /tmp/vmware-config0/vmmon-only/vmmon.o Building modules, stage 2. MODPOST CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o LD \[M\] /tmp/vmware-config0/vmmon-only/vmmon.ko make\[1\]: ディレクトリ `/usr/src/kernels/2.6.18-53.1.13.el5-xen-i686' から出ます cp -f vmmon.ko ./../vmmon.o make: ディレクトリ `/tmp/vmware-config0/vmmon-only' から出ます The module loads perfectly in the running kernel. This program previously created the file /dev/vmmon, and was about to remove it. Somebody else apparently did it already. This program previously created the file /dev/vmnet0, and was about to remove it. Somebody else apparently did it already. You have already setup networking. Would you like to skip networking setup and keep your old settings as they are? (yes/no) \[no\] yes Extracting the sources of the vmnet module. Building the vmnet module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config0/vmnet-only' に入ります make -C /lib/modules/2.6.18-53.1.13.el5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make\[1\]: ディレクトリ `/usr/src/kernels/2.6.18-53.1.13.el5-xen-i686' に入ります CC \[M\] /tmp/vmware-config0/vmnet-only/driver.o CC \[M\] /tmp/vmware-config0/vmnet-only/hub.o CC \[M\] /tmp/vmware-config0/vmnet-only/userif.o CC \[M\] /tmp/vmware-config0/vmnet-only/netif.o CC \[M\] /tmp/vmware-config0/vmnet-only/bridge.o CC \[M\] /tmp/vmware-config0/vmnet-only/procfs.o CC \[M\] /tmp/vmware-config0/vmnet-only/smac_compat.o SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o LD \[M\] /tmp/vmware-config0/vmnet-only/vmnet.o Building modules, stage 2. MODPOST WARNING: could not find /tmp/vmware-config0/vmnet-only/.smac\_linux.x386.o.cmd for /tmp/vmware-config0/vmnet-only/smac\_linux.x386.o CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o LD \[M\] /tmp/vmware-config0/vmnet-only/vmnet.ko make\[1\]: ディレクトリ `/usr/src/kernels/2.6.18-53.1.13.el5-xen-i686' から出ます cp -f vmnet.ko ./../vmnet.o make: ディレクトリ `/tmp/vmware-config0/vmnet-only' から出ます The module loads perfectly in the running kernel. Shutting down http.vmware: \[ OK \] Starting httpd.vmware: \[ OK \] Please specify a port for remote console connections to use \[9002\] WARNING: VMware Server has been configured to run on a port different from the default port. Remember to use this port when connecting to this server. xinetd を停止中: \[ OK \] xinetd を起動中: \[ OK \] Configuring the VMware VmPerl Scripting API. Building the VMware VmPerl Scripting API. Using compiler "/usr/bin/gcc". Use environment variable CC to override. Installing the VMware VmPerl Scripting API. The installation of the VMware VmPerl Scripting API succeeded. Do you want this program to set up permissions for your registered virtual machines? This will be done by setting new permissions on all files found in the "/etc/vmware/vm-list" file. \[no\] Generating SSL Server Certificate In which directory do you want to keep your virtual machine files? \[/var/lib/vmware/Virtual Machines\] Do you want to enter a serial number now? (yes/no/help) \[no\] Starting VMware services: Virtual machine monitor \[ OK \] Virtual ethernet \[ OK \] Bridged networking on /dev/vmnet0 \[ OK \] Starting VMware virtual machines... \[ OK \] The configuration of VMware Server 1.0.4 build-56528 for Linux for this running kernel completed successfully. Setup found that the VMware Management Interface is installed on your machine. The VMware Management Interface configurator (/usr/bin/vmware-config-mui.pl) needs to be run. Do you want to run this program now? \[yes\] File /usr/lib/vmware-mui/apache/conf/httpd.conf is backed up to /usr/lib/vmware-mui/apache/conf/httpd.conf.old.0. Configuring httpd.conf to run Apache as: User: nobody and Group: nobody Set the number of minutes before a http session times out. (This is the length of time before someone connecting to VMware Management Interface will be logged out) \[60\] Generating SSL Server Certificate Starting httpd.vmware: \[ OK \] The configuration of VMware Management Interface completed successfully. と動かそうと思ったら、 ...

2008年2月25日 · Toshimitsu Takahashi