首页    
>>More
ESX SERVER 3 NTP Configuration

     [ESX] -  [ESX NTP Configuration ]
2008-03-26

SSH 登陆到服务器service console 后,切换到 root 用户,

[root@blade13 root]# esxcfg-firewall --enableService ntpClient # 在防火墙上设置允许
     # 这一步只有 ESX 3.0 以上版本才需要
[root@blade13 root]# cp /etc/ntp.conf /etc/ntp.conf.bk  # 备份 ntp.conf 文件
[root@blade13 root]# vi /etc/ntp.conf
server 172.32.226.1   # 在文件的末尾添加时间服务器,可以是 IP,
server server2.examplentp.org  # 也可以是 DNS 名称形式,如果写为 DNS 名称形式,
server server3.examplentp.org  # 最好手工添加到 host 文件中
[root@blade13 root]# cp /etc/ntp/step-tickers /etc/ntp/step-tickers.bk # 备份 step-tickers 文件
[root@blade13 root]# vi /etc/ntp/step-tickers
172.32.226.1  # 添加 NTP server,每行一个。可以是 IP 形式
server2.examplentp.org # 也可以是 DNS 名称形式
server3.examplentp.org
[root@blade13 root]# service ntpd restart # 重启 ntpd 服务
Shutting down ntpd:                                        [FAILED]
ntpd: Synchronizing with time server:                      [  OK  ]
Starting ntpd:                                             [  OK  ]
[root@blade13 root]# chkconfig --level 345 ntpd on # 设置每次开机自动启动 ntpd
[root@blade13 root]# hwclock --systohc  # 设置主板 BIOS 时间和当前 ntp 时间同步
[root@blade13 root]# date  # 查看当前时间
Wed Mar 26 14:13:36 CST 2008

Simpleman 发表于 14:31  |  阅读全文  |  评论_0  |  引用_0
修改 ESX Server IP 地址

     [ESX] -  [ESX Change IP ]
2007-11-19

今天在修改 ESX Server 地址时出现了一些问题,简单描述一下正确的操作过程:

注:以下步骤最好是在机器前或者通过 ILO 接口操作,如果是SSH远程登陆,修改IP后会断开连接。

 

[root@nt08 root]# esxcfg-vswif -i 10.0.0.1 -n 255.255.255.0 vswif0

                                    # 修改 Service console 地址

[root@nt08 root]# vi /etc/hosts     # 修改机器IP地址

[root@nt08 root]# vi /etc/sysconfig/network    # 修改机器名和网关

 

此时重启机器或者执行以下命令可以立刻生效

[root@nt08 root]# service network restart

 

重设 IP 之后,需要在 VI Client 上将新机器的 IP Host,这样就完成了整个修改 ESX Server IP 的过程。

Simpleman 发表于 12:50  |  阅读全文  |  评论_4  |  引用_0
Configuring ESX Networking on Blade Servers

     [ESX] -  [Server Networking Storage Blade iSCSI ESX VMotion ]
2007-08-17

Because blade servers may have a limited number of network adapters, it will likely be necessary to use VLANs to separate traffic for the service console, VMotion, IP storage, and various groups of VMs. VMware best practices recommend that the service console and VMotion have their own networks for security reasons. If you dedicate physical adapters to separate vSwitches for this purpose, you will likely have to give up redundant (teamed) connections or give up isolating the various networking clients, or both. VLANs allow you to achieve network ostentation without having to use multiple physical adapters.

For the network blade of a blade server to support an ESX Server port group with VLAN tagged traffic, you must configure the blade to support 802.1Q and configure the port as a tagged port.

The method for configuring a port as a tagged port differs from server to server. The following list describes how to configure a tagged port on three of the most commonly used blade servers:

  • HP Blade — Set the port’s VLAN Tagging to enabled.
  • Dell PowerEdge — Set the port to Tagged.
  • IBM eServer Blade Center — Select Tag in the port’s configuration.

To configure a virtual machine port group with VLAN on a blade server

  1. Log into the VMware VI Client and select the server from the inventory panel.
    The hardware configuration page for this server appears.
  2. Click the Configuration tab, and click Networking.
  3. On the right side of the screen, click Properties for vSwitch associated with the service console.
  4. On the Ports tab, click Add.
    The Add Network Wizard appears.
  5. As a connection type, select Virtual Machines, which is the default.
  6. Click Next.
    The Connection Settings page appears.
  7. Under Port Group Properties, enter a network label that identifies the port group that you are creating.
    Use network labels to identify migration-compatible connections common to two or more hosts.
  8. In the VLAN ID field, enter a number between 1 and 4094.
    If you are unsure what to enter, leave this blank or ask your network administrator.
  9. Click Next.
    The Ready to Complete page appears.
  10. After you have determined that the vSwitch is configured correctly, click Finish.

To configure a VMkernel port with VLAN on a blade server

  1. Log into the VMware VI Client and select the server from the inventory panel.
    The hardware configuration page for this server appears.
  2. Click the Configuration tab, and click Networking.
  3. On the right side of the screen, click Properties for vSwitch associated with the service console.
  4. On the Ports tab, click Add.
    The Add Network Wizard appears.
  5. Select VMkernel and click Next.
    This lets you connect the VMkernel, which runs services for VMotion and IP storage (NFS or iSCSI), to the physical network.
    The Connection Settings page appears.
  6. Under Port Group Properties, select or enter a network label and a VLAN ID.
    • Network Label — A name that identifies the port group that you are creating. This is the label that you specify when configuring a virtual adapter to be attached to this port group, when configuring VMkernel services, such as VMotion and IP storage.
    • VLAN ID — Identifies the VLAN that the port group’s network traffic will use.
  7. Select the Use this port group for VMotion check box to enable this port group to advertise itself to another ESX Server as the network connection where VMotion traffic should be sent.
    You can enable this property for only one VMotion and IP storage port group for each ESX Server host. If this property is not enabled for any port group, migration with VMotion to this host is not possible.

  8. Under IP Settings, click Edit to set the VMkernel Default Gateway for VMkernel services, such as VMotion, NAS, and iSCSI

    Note

    Make sure that you set a default gateway for the port that you created. VirtualCenter 2 behaves differently here from VirtualCenter 1.x. You must use a valid IP address to configure the VMkernel IP stack, not a dummy address.

    The DNS and Routing Configuration dialog box appears. Under the DNS Configuration tab, the name of the host is entered into the name field by default. The DNS server addresses that were specified during installation are also preselected as is the domain.
    Under the Routing tab, the service console and the VMkernel each need their own gateway information. A gateway is needed if connectivity to machines not on the same IP subnet as the service console or VMkernel.
    Static IP settings is the default.
  9. Click OK to save your changes, and close the DNS Configuration and Routing dialog box.
  10. Click Next.
  11. Use the Back button to make any changes.
  12. Review your changes on the Ready to Complete page and click Finish.
Simpleman 发表于 18:05  |  阅读全文  |  评论_1  |  引用_0
Networking Configuration for Software iSCSI Storage

     [ESX] -  [software iSCSI ESX VMkernel ]
2007-08-17

The storage you configure for an ESX Server host might include one or more storage area networks (SANs) that use iSCSI, which is a means of accessing SCSI devices and exchanging data records using TCP/IP protocol over a network port rather than through a direct connection to a SCSI device. In iSCSI transactions, blocks of raw SCSI data are encapsulated in iSCSI records and transmitted to the requesting device or user.

Before you can configure iSCSI storage, you must create a VMkernel port to handle iSCSI networking and a service console connection to the iSCSI network.

To create a VMkernel port for software iSCSI

  1. Log into the VMware VI Client, and select the server from the inventory panel.
    The hardware configuration page for this server appears.
  2. Click the Configuration tab, and click Networking.
  3. Click the Add Networking link.
  4. Select VMkernel and click Next.
    This lets you connect the VMkernel, which runs services for iSCSI storage, to the physical network.
    The Network Access page appears.
  5. Select the vSwitch you want to use or the Create a virtual switch radio button.
  6. Select the check boxes for the network adapters your vSwitch will use.
    Your choices appear in the Preview pane.
    Select adapters for each vSwitch so that virtual machines or other services that connect through the adapter can reach the correct Ethernet segment. If no adapters appear under Create a new virtual switch, this means that all the network adapters in the system are being used by existing vSwitches.
  7. Click Next.
    The Connection Settings page appears.
  8. Under Port Group Properties, select or enter a network label and a VLAN ID.
    • Network Label — A name that identifies the port group that you are creating. This is the label that you specify when configuring a virtual adapter to be attached to this port group, when configuring iSCSI storage.
    • VLAN ID — Identifies the VLAN that the port group’s network traffic will use.

    • Under IP Settings, click Edit to set the VMkernel Default Gateway for iSCSI.
      The DNS and Routing Configuration dialog box appears. Under the DNS Configuration tab, the name of the host is entered into the name field by default. The DNS server addresses that were specified during installation are also preselected as is the domain.

      Under the Routing tab, the service console and the VMkernel each need their own gateway information. A gateway is needed for connectivity to machines not on the same IP subnet as the service console or VMkernel.

      Note

      Make sure that you set a default gateway for the port that you created. You must use a valid static IP address to configure the VMkernel stack.

  9. Click OK to save your changes, and close the DNS and Routing Configuration dialog box.
  10. Click Next.
  11. Use the Back button to make any changes.
  12. Review your changes on the Ready to Complete page and click Finish.

After you create a VMkernel port for iSCSI, you must create a service console connection on the same vSwitch as the VMkernel port.

To configure a service console connection for software iSCSI storage

  1. Log into the VMware VI Client and select the server from the inventory panel.
    The hardware configuration page for this server appears.
  2. Click the Configuration tab, and click Networking.
  3. On the right side of the screen, click Properties for vSwitch associated with the VMkernel port you just created.
  4. On the Ports tab, click Add.
    The Add Network Wizard appears.

  5. As a connection type, select Service Console and click Next.
    The Connection Settings screen appears.
  6. Under Port Group Properties, enter a network label that identifies the port group that you are creating.

    Newer ports and port groups appear at the top of the vSwitch diagram.
  7. Enter the IP Address and Subnet Mask, or select the DHCP option Obtain IP setting automatically for the IP address and subnet mask.
  8. Click the Edit button to set the Service Console Default Gateway.
  9. Click Next.
    The Ready to Complete screen appears.

  10. After you have determined that the vSwitch is configured correctly, click Finish.

After you create a VMkernel port and service console connection, you are able to enable and configure software iSCSI storage.

Simpleman 发表于 17:36  |  阅读全文  |  评论_1  |  引用_0
Install Vista On ESX Server 3.0

     [ESX] -  [Vista VMware ESX ]
2007-08-09

在利用 Virtual Center 新增一个虚拟机的硬件时,光驱的选项保持默认配置(如下图):

硬件配置好之后,Power on 时,直接选择 Summary 标签页里面的Open Console,而不要用 Console 标签页的 Console 查看方式。(这样做的优点是可以弹出一个完整的 Cosole 页,可以利用工具栏选择光驱和软驱的镜像文件。)

选中上图中的 Virtual CDROM(ide0:0)/Connect to ISO image…,弹出如下窗口:

选中所需要的 ISO 文件。注:此处支持网络地址,如:\\ntbcmo01\Software\iso。
加载 ISO 文件后,重启虚拟机,机器找到 ISO 引导光盘,开始进入 Vista 安装过程。

在安装过程中,会有提示(如下图)系统没找到 CD/DVD 的驱动程序,

解决方法是利用虚拟的软驱导入包含所需的光驱驱动的 flp 文件,如下图,选中 Virtual Floppy 0,选中所需要的 flp 文件(具体文件为 winvistacddrivers.flp,已经从网上找到),加载后选择上图中的“Browse”,选择软驱,然后确定,得到如下图所示内容。

然后 Next,整个安装过程就真正开始了,如下图。

在硬件HP DL380G5的 ESX 3.0 server 上整个安装过程大概2个小时,比较考验耐心。

Simpleman 发表于 15:28  |  阅读全文  |  评论_0  |  引用_0
分页共1页 1