Thiết lập hệ thống VMware Server 2.0.2-x trên Ubuntu Server 10.04 với VMware Remote Console Plug-in pps

21 303 0
Thiết lập hệ thống VMware Server 2.0.2-x trên Ubuntu Server 10.04 với VMware Remote Console Plug-in pps

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Thiết lập hệ thống VMware Server 2.0.2-x Ubuntu Server 10.04 với VMware Remote Console Plug-in Trong viết sau, Quản Trị hướng dẫn bạn cách thiết lập hệ thống Ubuntu 10.04 server với VMware server 2.0.2-x VMware Remote Console Plug-in Trong thử nghiệm này, sử dụng máy với cấu sau: - CPU: Intel(R) Celeron(R) D CPU 3.06GHz, core - Bộ nhớ RAM: 2GB - Ổ CD Rom - Với trình duyệt Firefox 3.6 khơng thể sử dụng VMware Remote Console Tại máy client, sử dụng trình duyệt Chrome để xây dựng hệ thống máy ảo, sau tiếp tục dùng VMware Remote Console Plug-in để kích hoạt sử dụng chúng Xét tổng qt, tồn q trình chia làm bước chính: - Cài đặt thiết lập hệ thống hoàn toàn sử dụng Ubuntu server - Đăng ký, tải, chỉnh sửa cài đặt VMware - Tạo máy ảo - Điều khiển máy ảo từ xa với VMware Remote Console Plug-in từ phía client Bước 1: Quá trình cài đặt đơn giản, bạn tham khảo viết chúng tôi, đây, Sau thiết lập xong, khởi động lại hệ thống Đăng nhập kích hoạt tài khoản root: sudo passwd root Điền mật cho tài khoản root đó, đặt là: 111111 (6 số 1) Đăng xuất đăng nhập trở lại tài khoản root sau thực tất thao tác quyền root Nâng cấp cập nhật hệ thống: apt-get update apt-get upgrade -y Sau cài đặt gcc: apt-get install -y gcc Thiết lập địa IP tĩnh cho hệ thống (ở 192.168.1.75): nano /etc/network/interfaces Tiếp đó, xóa bỏ thứ thay chúng với tham số sau: # This file describes the network interfaces available on your system # and how to activate them For more information, see interfaces(5) # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.75 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 Chỉnh sửa lại file /etc/resolv.conf: nano /etc/resolv.conf Tiếp tục làm tương tự (hãy chắn việc sử dụng tham số nameserver hợp lệ, viết 192.168.1.1, với thiết bị router): nameserver 192.168.1.1 Sau khởi động lại toàn hệ thống: reboot Bước 2: Đăng nhập vào hệ thống tài khoản root tạo thư mục /root/vm: mkdir /root/vm cd /root/vm Để tải VMWare, người dùng phải đăng ký đây, sau họ gửi đường dẫn kích hoạt với thơng tin khác qua email đăng ký, với hướng dẫn download, lưu file VMware-server-2.0.2-203138.i386.tar.gz thư mục /root/vm Giải nén file vừa tải về: tar -xzf VMware-server-2.0.2203138.i386.tar.gz Và trước cài đặt, cần tiến hành patch VMWare: mkdir /root/dev cd /root/dev Sau tải tiếp file sau: wget http://nerdbynature.de/bits/2.6.3222/00-vmware-2.6.32_functional.diff.txt wget http://nerdbynature.de/bits/2.6.3222/02-vmnet-include.diff.txt.gz wget http://nerdbynature.de/bits/2.6.3222/01-vmware-2.6.32_cosmetic.diff.txt wget http://nerdbynature.de/bits/2.6.3222/vmware-config.pl.diff.txt wget http://nerdbynature.de/bits/2.6.3222/patch-vmware_2.6.3x.sh.txt Tiếp tục, giải nén file sau: gunzip 02-vmnet-include.diff.txt.gz Và đổi tên file sau: mv 00-vmware-2.6.32_functional.diff.txt 00vmware-2.6.32_functional.diff mv 01-vmware-2.6.32_cosmetic.diff.txt 01vmware-2.6.32_cosmetic.diff mv 02-vmnet-include.diff.txt 02-vmnetinclude.diff mv patch-vmware_2.6.3x.sh.txt patchvmware_2.6.3x.sh mv vmware-config.pl.diff.txt vmwareconfig.pl.diff Chỉnh sửa lại file patch-vmware_2.6.3x.sh: nano patch-vmware_2.6.3x.sh Xóa bỏ tất tham số liên quan thay bằng: #!/bin/sh # # (C) 2010 lists@nerdbynature.de # # 00-vmware-2.6.32_functional.diff # - based on vmware-server-modules-linux- 2.6.32.patch # - see http://communities.vmware.com/message/138923 2#1389232 # # 01-vmware-2.6.32_cosmetic.diff # - based on rbihlmeyer's comments in http://communities.vmware.com/thread/232842 # # 02-vmnet-include.diff # - stuff h and c files in separate directories, as the other # modules it # # vmware-config.pl.diff # - based on http://communities.vmware.com/message/139852 5#1398525 # DIR=/root/dev/ PATCHES="00-vmware-2.6.32_functional.diff 01-vmware-2.6.32_cosmetic.diff 02-vmnetinclude.diff" # unset me! # DEBUG=echo if [ -z "$1" -o ! "`ls "$1"/*tar 2>/dev/null | wc -l`" = ]; then echo "Usage: `basename $0` [vmware-modulessource directory]" exit else SRC="$1" fi cd $SRC $DEBUG mkdir orig || exit $DEBUG mv *tar orig/ # untar for t in orig/*.tar; $DEBUG tar -xf $t done # patch for p in $PATCHES; $DEBUG patch -p1 < "$DIR"/"$p" done # tar for d in *-only; $DEBUG tar -cf `echo $d | sed 's/only/.tar/'` $d done $DEBUG rm -rf *-only # vsock.ko needs symbols from vmci $DEBUG cd / / /bin || exit if [ -x vmware-config.pl -a -f $DIR/vmwareconfig.pl.diff ]; then $DEBUG patch -p0 < $DIR/vmwareconfig.pl.diff fi Lưu lại thay đổi khỏi chương trình Sau tiến hành patch: chmod u+x patch-vmware_2.6.3x.sh /patch-vmware_2.6.3x.sh /root/vm/vmwareserver-distrib/lib/modules/source Và cài đặt VMWare: cd /root/vm/vmware-server-distrib /vmware-install.pl Nếu muốn, bạn việc chọn Enter để chấp nhận thiết lập chế độ mặc định, nhập số serial đăng ký gửi qua email bắt đầu cài đặt Khi kết thúc trình cài đặt, hệ thống thông báo sau: The installation of VMware VIX API 1.6.2 build-203138 for Linux completed successfully You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmwareuninstall-vix.pl" Enjoy, the VMware team Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family: done Virtual ethernet done Bridged networking on /dev/vmnet0 done Host-only networking on /dev/vmnet1 (background) done DHCP server on /dev/vmnet1 done Host-only networking on /dev/vmnet8 (background) done DHCP server on /dev/vmnet8 done NAT service on /dev/vmnet8 done VMware Server Authentication Daemon (background) done Shared Memory Available done Starting VMware management services: VMware Server Host Agent (background) done VMware Virtual Infrastructure Web Access Starting VMware autostart virtual machines: Virtual machines done The configuration of VMware Server 2.0.2 build-203138 for Linux for this running kernel completed successfully Housekeeping Thank you for using the script! Patch provided by: Ramon de Carvalho Valle http://risesecurity.org Script author: Radu Cotescu http://radu.cotescu.com Và khởi động lại hệ thống: reboot Bước 3: Tại hệ thống client, truy cập vào địa http://www.google.com/chrome/?hl=en, tải cài đặt Chrome Sau hoàn tất, mở Chrome gõ https://192.168.1.75:8333/ui/# (hãy điền thông tin địa IP xác), nhấn Enter … chọn Proceed anyway: Đăng nhập tài khoản root với mật 111111: Theo bước dẫn sau để tạo máy ảo: Có thể vài bước đó, trang web khơng có tín hiệu phản hồi bạn thực thao tác, việc refresh làm lại thao tác ... khiển máy ảo từ xa với VMware Remote Console Plug-in từ phía client Bước 1: Quá trình cài đặt đơn giản, bạn tham khảo viết chúng tôi, đây, Sau thiết lập xong, khởi động lại hệ thống Đăng nhập kích... /patch -vmware_ 2.6.3x.sh /root/vm/vmwareserver-distrib/lib/modules/source Và cài đặt VMWare: cd /root/vm /vmware- server- distrib /vmware- install.pl Nếu muốn, bạn việc chọn Enter để chấp nhận thiết lập. .. việc sử dụng tham số nameserver hợp lệ, viết 192.168.1.1, với thiết bị router): nameserver 192.168.1.1 Sau khởi động lại toàn hệ thống: reboot Bước 2: Đăng nhập vào hệ thống tài khoản root tạo

Ngày đăng: 11/07/2014, 21:21

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan