CHIA SE - KINH NGHIỆM - HỌC TẬP - THỦ THUẬT HARDWARE AND SOFTWARE Part 1 - Server 2008 - Hosting - VMware Workstation Trong chuỗi bài viết này tôi sẽ trình bày cho bạn cách cấu hình mộ
Trang 1CHIA SE - KINH NGHIỆM - HỌC TẬP - THỦ THUẬT HARDWARE AND SOFTWARE
Part 1 - Server 2008 - Hosting - VMware Workstation
Trong chuỗi bài viết này tôi sẽ trình bày cho bạn cách cấu hình một Server Hosting hoàn chỉnh trên nền Windows Server 2008 và ứng dụng công nghệ
ảo hóa VMware Workstation hay còn gọi là Hosting VPS, trong này chúng ta sẽ khảo sát và triển khai các phần chính sau:
VMware Workstation
Window s Server 2008 SP2
RAID Server
- IIS7
DNS Server
NAT Server
Plesk 9
MS SQL
mySQL
Mail Server
- Security Server
và một số tính năng khác
Như vậy thông qua chuỗi bài viết này các bạn có thể tự cấu hình cho mình một Server hoàn chỉnh với hầu hết các tính năng cần thiết để triển khai trong thực tế
Trước tiên xin giới thiệu với các bạn về lợi ích khi triển khai hệ thống ảo hóa Như trong hình bên dưới tôi có 2 mô hình Hosting
- Mô hình 1 từ Internet người dùng truy cập trực tiếp vào Web Server của chúng ta, như vậy nếu Hacker không cần vô hiệu hóa được Firewall mà chỉ cần khai thác lỗ hổng từ vấn đề bảo mật của Web Server thì Hacker cũng có thể dễ dàng chiếm quyền điều khiển Server và hơn nữa là có thể tàn phá
dữ liệu một cách không thương tiếc
- Tuy nhiên với mô hình 2 tôi cũng chỉ cần duy nhất 1 Server mà thôi nhưng trên Server này tôi cài thêm VMware Workstation và cấu hình Web Server (còn gọi là VPS Server) trong này
Như vậy Hacker cho dù khai thác được các lỗi bảo mật của VPS Server và tàn phá dữ liệu thì chúng ta cũng chủ động hơn trong việc phục hồi (triển khai RAID trên Server chính) hay củng cố lại bảo mật
Nói chung VPS Server là một mô hình máy trong máy cho nên có độ bảo mật cao và dễ dàng tùy biến hơn Tuy nhiên ở đây tôi chỉ nói về khái niệm phần chỉ tiết tôi sẽ trình bày trong các bài viết sau
Web Server
{Firewall
Internet
RY 5 Web Server VPS Server
Firewall
Trong bài giả sử bạn đã cài đặt sẵn một Windows Server 2003/2008 rồi và bây giờ ta sẽ tiến hành cài đặt chương trình VMware Workstation lên máy
Server này
Để cài đặt VMware Workstation ban vao http://www.vmware.com/download/ws/ va tai ban VMware Workstation vé may
Sau khi tải bạn tiến hanh cai dat VMware Workstation
Trang 21 > @ | Sab Heel Oes|) ss
| Sidebar
© abe VMware Workstation
VMware Workstation allows multiple standard pion systems and their applications to run with high performance in secure and tr, table virtual machines, Each virtual machine is equivalent to a PC with 4 uniquéygétwork address and full complement of
c“°
>Š©
Click thị n to create a new virtual machine You then can install and ariety of standard operating systems in the virtual machine
hardware choices,
New Virtual Machine
> this button to create a new team You then can add several virtual machines and connect them with private team LAN segments
Click this button to browse for virtual machines or teams and to select one to display in this panel You then can interact with the quest operating system within this display as you would a standard PC
Open Existing
VM or Team
Sau quá trình cài đặt hoàn tất bạn chọn File -> New -> Virtual Machine để tạo một hệ thống Windows mới
a
Edit View VM Team Windows Help =Ẳœ
| 3 Open ch Hay th
Connect to ACE Management Server «>
nce in secure and transportable virtual machine Map or Disconnect Virtual Diskatiee D & PC with a unique network address and full ¢
e
Add/Remove to/from Fa
id run a variety of standard operating systems
Tai man hinh Guest Operating system Installtion ban chon 6 dia CD có chứa đĩa cài đặt Windows hoặc chọn trực tiếp File ISO trong muc Installer
disc image file (iso)
Guest — System Installation
A virtual machine is like a physical computer; it needs an operating
system How will you install the quest operating system?
»
(8 CD Drive (F:) KRMSVOL_EN_DVD a
WD) Windows Server 2008 detected
This operating system will weet Install (what's this?)
© Installer disc image file (so) MO
Cy
© I will instal rating system later
The virtual machine will be created with a blank hard disk,
[_<Be+ -] net> }[_ canal}
Tại bài viết này tôi sử dụng phiên bản VMware Workstation v6.5.3 có hỗ trợ Windows Server 2008
2 of 7
Trang 3Choose the Virtual Machine Hardware Compatibility
Which hardware features are needed for this virtual machine?
7
Virtual machine hardware compatibility ©
Hardware compatibility: | Workstation 6.5 :
Compatible with: [ ]ESXServer „ ©
*
Fusion 2.0 ` 2|processor limit
Workstation 6.5
[<Back] (next>) (cance!
Chon Custom trong man hinh Welcome va nhấp Next
Welcome to the New Virtual Machine Wiza
+
What type of cepfraton do you want?
`
te a Workstation 6.5 virtual machine
we a few easy steps
@© Custom (advanced) Create a virtual machine with advanced options, such as a SCSI adapter type, virtual disk type and compatibility with
VAAL : older VMware products = ae
Workstation 6.5
|< Back | LNext> J | Cancel Tại man hinh Network Type ban để nguyên giá trị mặc định, phần này tôi sẽ hướng dẫn bạn chi tiết hơn trong bài sau
irtual Machine Wizar
Network Type
What type of network do you want to add?
>
Give the guest operating system direct access external Ethernet
network, The guest must have its own IP = on the external network
WS
the host computer's dial-up or
@ Use network address translation (NA
Give the quest operating system a
external Ethernet network co using the host's IP address
© Use host-only networking `
Connect the quest operating stem to a private virtual network on the host
© Do notuse a netftk connection
[ < Back }{ Next > } [cancel |
VMware Workstation yêu cầu bạn Set Ram cho hệ thống Windows mới này trong này tôi chọn là 1024 tương đương với thực tế là 1Gb Ram
Việc tùy chọn này phụ thuộc vào hệ điều hành mà bạn cài đặt cũng như hệ thống Ram thực tế của Server bạn
VD: may ban cé Ram la 4Gb thì khi bạn tạo hệ điều hành Windows Server 2008 thì nên chọn từ 1GŒb -> 2Gb mà thôi vì khi đó VMware Workstation sẽ lấy giá trị mà bạn chọn để duy trì hệ thống Windows Server 2008 mới này
Trang 4
Memory for the Virtual Machine
How much memory would you like to use for this virtual machine?
Specify the amount of memory allocated to this virtu: meine, The memory size
must be a multiple of 4 MB
+
Memory for this virtual machine:
Ụ os D> ~\ | + 8| ay
we 7372
& Recommended me m yề 1024 MB
& Maximum oot memory: 3584MB
[_<Baœ ] [_ Next> ] [_caneel ]
Processor Configuration bạn chọn hệ thống CPU cho máy ảo
Processor Configuration
Specify the number of processors for this virtual machine
Processors
Number of processors: @ ne!
© sẽ oe
[_<8a% -] [_ Next> ] [_ canel _]
Các file này sẽ được lưu lại dưới dạng image của VMware Workstation nên bạn phải chọn thư mục lưu trữ chúng
What name would you like to use for this virtual machine?
»
J
| -
& | L Browse J
The default location can be ceneeecbtồ
về
“`
4
[<Back] [Next >] [cancel]
Trong VMware Workstation 6.5.3 s@ có thêm tính năng nhập CD key và Password của hệ điều hành mà bạn muốn cài đặt bạn cũng có thể bỏ qua bước này nếu muốn
4 of 7
Trang 5This is used to install Windows Server 2008
Ar
`
4
a
Full name: == Administrator &
`
về
+
(_ «<sa& ]( Net> }]Í_ caneal _}
VMware Workstation sẽ yêu cầu bạn chọn hệ thống ổ đĩa để cài đặt Windows trong này tôi chọn là 6 SCSI
irtual Machine Wizard
Select a Disk Type
What kind of disk do you want to create?
&
Virtual disk type
©IDE ©
@ SCSI (Recommended) eo
(<Back) (next >} [cancel]
Do chung ta sé cai mdi hoan toan nén tdi chon Create a new virtual disk
Select a Disk
Which disk do you want to use?
@£E sk +
A virtual disk is composed of one or more files Cr host file system, which
will appear as a single hard disk to the ques efefaing system Virtual disks
can easily be copied or moved on the t or between hosts
© Use an existing virtual disk &
Choose this option to reuse a i9Usly configured disk,
© Use a physical disk (for d users)
Choose this option to give the virtual machine direct access to a local hard
s
(<Back) (next >} [cancel]
Chon SAS
Trang 6
Select I/O Adapter Types
Which SCSI adapter type would you like to use?
1/O adapter types ©
SCSI Adapter: © BusLogic &
efđờnendeo
[<Back] (text>) [cancel]
Giả sử tôi chỉ cần sử dụng ổ SCSI có dung lượng 40Gb mà thôi nên tôi set giá trị này trong 6 Maximum disk size
Specify Disk Capacity
How large do you want this disk to be?
G
Recommended size for Windows Server 2008: 16GB
Allocate all disk space now >©
rmance but requires as muich irtual disk If you do not allocate all all and is created quickly It grows as
Allocating the full capacity can enhanc
physical disk space as you specify
disk space now, the virtual disk s
you add applications, files an
© Store virtual disk as a afar:
© Spit virtual disk intg@ic files
Splitting the di kes it easier to move the virtual machine to another
computer
Pocket ACE size calculator
[<Back] (next > }][ cana _}
Cuối cùng là nhấp Finish dé hoan tat
Ready to Create Virtual Machine
Click Finish to create the virtual machine and start installing Windows
Server 2008 and then VMware Tools
The virtual machine will be created with the following see
Operating Syst Windows Server 2008 &
Network Adapt NAT Q&S
oppy, USB Controller, Sound Card
Power on this virtual machine after creation
[ <Ba& ]|_ Fish ] [_ canel ]
Đến đây khi bạn khởi động Virtual OS mới này hệ thống sẽ khơi động như một máy tính độc lập và công việc của bạn là tiến hành cài đặt Windows Server 2008 lên đây mà thôi
Trang 7
J Windows Serzer 2008 - VMware Workstation [= | = le
File Edit View VM Team Windows Help
:m Ii[P)A :6ö 3 ƒẨdfaac|m ml 6 $
EI lồ Powered On L
đồ Windows Serzer 2008
& @ Favorites
tò Windows Server 2006 |
Please watt
ba oe iia | Easy Install is installing Windows Server 2008 Please wait | Change Disc | Disc [| Help |
OK mình vừa trình bày xong phần cài đặt VMware Workstation
Công ty TNHH đầu tư phát triển tin học GC Com Chuyên trang kỹ thuật máy vi tính cho kỹ thuật viên tin học Điện thoại: (073) - 3.511.373 - 6.274.294 Website: