Vmware virtual machine’s Blog

Just another WordPress.com weblog

Archive for the ‘Virtual Centre’ Category

VMWare and Linux on notice

Posted by vmwarevirtualmachine on December 22, 2008

After  Jason Perlow is back — this time to take a look at Microsoft’s Hyper-V, the hypervisor-based virtualization solution built into the newly released Windows Server 2008. Although Hyper-V is  — and will be  does arrive — it just might be the “killer app” for Windows Server, and one which will have Microsoft’s competitors scrambling to keep up, Perlow claims.

Here he is, in his asbestos-lined underwear, awaiting the inevitable flames . Take it away, Jason:

I confess to being a virtualization junkie. I’ve been using VM technology on the x86 platform since 1999, when VMWare Workstation first came on the market with their first Linux release. Since then, I’ve worked with a number of virtualization products on the desktop and on the server, as well as in enterprise environments, particularly with VMWare’s ESX Server product, the current market leader in hypervisor-based paravirtualization solutions, as well as with Xen, the Open Source project that comprises the virtualization core of a number of Linux and Unix-based virtualization products and OSes, such as Citrix XenServer, Oracle VM, Sun xVM, Red Hat Enterprise Linux 5, and SuSE Linux Enterprise Server 10. Now I can add Microsoft’s Hyper-V (

Hyper-V, formerly known as “Viridian”, greatly differs from the virtualization product from Microsoft currently marketed as Microsoft Virtual Server in that it uses a hypervisor to provide hardware abstraction services to the OS environment and do resource allocation and partitioning. This differs from products such as Microsoft Virtual Server, VMWare Server and VMWare Workstation, Parallels, Linux KVM, and the recently Sun-acquired Virtualbox from Innotek use a technique known as host-based virtualization in which a host operating system such as Windows or Linux runs a subprocess provided by its native kernel called a Virtual Machine Monitor (VMM) to provide virtualization services such as a virtual CPU, memory and devices to a virtual machine. A hypervisor, on the other hand, is a thin abstraction layer which boots on the native hardware that performs some of the functions of an OS kernel, but abstracts much of what is needed to run multiple operating systems with their applications on top of it.

The advantages of hypervisor-based virtualization is that it tends to be faster and more enterprise scalable. The disadvantages are that hypervisors tend to be heavily hardware dependent and usually require hardware acceleration, such as Intel’s “VT” or AMD’s “Pacifica” extensions present in the latest Xeon and Opteron chips, such as it is with Hyper-V and Xen-based solutions, and require modified OS kernels and special paravirtualized device drivers to be run in the VM environment to facilitate enhanced I/O and networking performance.

VMWare’s ESX differs from Hyper-V and Xen in that it currently uses pure software based virtualization, so it doesn’t need the VT or Pacifica extensions. However, it has a much tighter environment as to what kind of hardware it can run on – the hypervisor has a limited device driver compatibility list and VMWare keeps its ESX hypervisor source code very close to the vest, so development goes at a much slower pace – SATA disk drives, which are now commonplace on commodity x86 server machines, are not currently supported in VMWare ESX 3. ESX Server also requires a special networked clustered file system known as VMFS to store the virtual machine images, and you have to dedicate a SAN-based LUN to it. Hyper-V, on the other hand, will run on any modern system that can run 64-bit Windows 2008, stores all its virtual machines on regular directories in NTFS, and provides third-party and built-in driver support by using what is referred to a “Parent” OS as a pass-thru mechanism. In Xen parlance, this is also referred to as “Domain 0”, where device and file system support is provided by the Linux kernel (or in the case of Sun xVM, Solaris) and Linux file systems such as ext3 and ReiserFS.

So let’s get down to the nitty gritty – installation, ease of use, and performance.

It should come as no surprise that Hyper-V’s architecture looks remarkably similar to Xen’s, as  in 2006.

The only thing you need to do to use Hyper-V is do a default install of Windows Server 2008, which took about 20 minutes on my Opteron dual-core machine, then go to the Windows 2008 Server Manager and choose “Add New Role” and select “Hyper-V” server. After a few minutes of self configuration and a reboot, Hyper-V boots Server 2008 and you can now start provisioning new Virtual Machines using the Hyper-V Microsoft Management Console (MMC) snap-in tool.

After installing the virtual machine, which can be done via CD-ROM/DVD media or mounting an ISO file, you install the Integration Components (similar to VMWare’s tools) to provide enhanced networking and paravirtualized hardware support. For Windows guest OSes — with the exception of Vista, which will not work with the Integration Tools yet but will run slower in full virtualization mode– this is accomplished with a simple wizard and a reboot of the virtual machine.

Let’s start with the good points. Overall, and for what is currently a beta of a 1.0 release, I think Microsoft did a great job with the Hyper-V manager – console access to the VMs is nice and fast and VM performance is excellent, and the provisioning and setup process is wizard-based and straightforward. I’d currently say that from a polish and maturity standpoint, its management capabilities are definitely better than what is in Citrix XenServer 4.x, and way ahead of what currently exists in Red Hat Enterprise Linux or SuSE Linux Enterprise Server.

However, Hyper-V falls somewhat short when compared to the cluster management, automated VM migration/load balancing (“VMotion”) and HA capabilities built into ESX Server 3 and VirtualCenter 3. Of course, Hyper-V is free as a built-in feature in Server 2008 Standard (with a $30 dedicated version coming down the road) and ESX Server costs several thousand dollars per copy, depending on the features purchased, so on a pure bang per buck and ease of use basis, it beats ESX and dare I say it – the Xen solutions built into Linux distros – hands down.

The bad points – as of this writing, you can only run the Hyper-V manager on another Windows 2008 Server machine, In other words, if you want to remotely manage a Hyper-V box, even a stripped-down “Core Install” Hyper-V machine, you will need a Windows 2008 box with the full blown Windows 2008 stack installed. This will be solved when the regular workstation Windows 2008 administration tools, which include the Hyper-V Manager, now called RSAT (short for Remote Server Administration Tools) are finally released from beta testing, which should happen by March, according to Microsoft. The bad news is that they only run on Vista Service Pack (SP) 1.

It looks like that if you want to bring Server 2008 into your environment, you’re currently stuck with Terminal Server RDP connections from XP workstations or resigning to at least bring in a few Vista machines to perform admin duty with RSAT. I really, really hope that this is something Microsoft plans to address soon — because while Terminal Server is nice, you should just be able to remote console to the Virtual Machine directly from XP without requiring Vista or another remote access solution like VNC or virtualized Terminal Services — as you can with the competing VMWare Virtual Infrastructure client or the Citrix XenCenter client.

As a result of Microsoft’s partnership with Citrix and XenSource, Microsoft also provides Integration Components for Linux OSes, which is currently a separate download that you need to register for on the Microsoft Connect beta testing site. Hyper-V’s integration tools will theoretically support any Linux operating system that has a paravirtualized Xen kernel available. At this time, only SuSE Linux Enterprise Server 10 is officially supported, but I was able to get it working just fine with the free OpenSUSE 10.3 and CentOS 5.1, a popular free Red Hat clone, both of which are Xen-enabled out of the box.

Posted in Virtual Centre | 3 Comments »

Untangle Virtual Appliance on VMware

Posted by vmwarevirtualmachine on December 20, 2008

Untangle Virtual Appliance on VMware

From UntangleWiki

Jump to:

Untangle currently supports virtualization through a running on Player, Server, or Workstation (also seems to work with Fusion for the Mac). The Untangle virtual appliance can be configured in two main ways:

  • as a demo virtual appliance, suitable for installation on a laptop or desktop in order to have a working instance of the platform running inside your Windows or Linux OS for testing or demonstration purposes. This is supported using VMware Player, Server, or Workstation and requires only one physical network interface. Use this mode if you have only one physical network interface in your VMware host machine.
  • as a production virtual appliance, to be used as a network gateway. This mode requires at least two physical network interfaces (three if you want or need an external DMZ). We recommend you use either VMware Server or VMware Workstation running on either a Windows or Linux server. Use this mode if you have two or more physical network interfaces that you can connect to external, internal and (optionally) DMZ networks.

Using VMware Server or VMware Workstation will allow you more functionality such as snapshots, multiple machines and greater control over your VMware environment.

Contents

if (window.showTocToggle) { var tocShowText = “show”; var tocHideText = “hide”; showTocToggle(); }

Step 1: Get and Install VMware Player, Server or Workstation

The VMware Player and Server software are available free of charge from

  • For more information on installing or using VMware Player, see
  • For more information on installing or using VMware Server, see
  • For more information on installing or using VMware Workstation, see
  • For more information on installing or using VMware Fusion, see

Install your VMware Player, Server or Workstation before proceeding!

  • Note: If you are using a security suite and/or firewall on your host PC or Server, you may receive warnings when new virtual network adapters are detected during the installation of VMware Player or Server. You should indicate that these new virtual adapters are TRUSTED, allowing all connections.

This section explains the various ways to configure network interfaces on Windows-based and Linux-based VMware hosts using VMware’s Virtual Network Editor (on Windows) and the vmware-config.pl script (on Linux).

The way that you will configure network interfaces for your Untangle virtual appliance will differ depending on whether you are setting up a demo virtual appliance or a production virtual appliance.

  • We suggest you use the demo virtual appliance if you are running VMware on a host with only a single physical network interface card.
  • We suggest you use the production virtual appliance if you are running VMware on a host with at least two (three if using with an external DMZ) physical network interface cards that you can connect to external, internal and DMZ networks.

In either case, you will use the same VMware tools (the Virtual Network Editor or vmware-config.pl script) to create the virtual network devices in VMware. The only difference between demo virtual appliance and production virtual appliance is that the demo virtual appliance uses virtual network cards for the internal and DMZ networks and the production virtual appliance uses physical networks for the internal and DMZ networks by bridging to the VMware host’s physical network cards. Both modes bridge to a physical network card for the external network.

[

The following diagram illustrates the network topology including the default configuration of the Untangle VMware virtual appliance. For proper installation and configuration, this basic diagram should be well understood prior to setting up Untangle.


Figure, Untangle Network Overview Diagram
]

Step 2.2: Configure the VMware Network on Windows Hosts

Windows hosts use a tool that is common to all Windows-based installations of VMware: Virtual Network Editor.

How to run VMware’s Virtual Network Editor

To run this tool properly, you must be logged in as an administrator on the host PC or Server, or you must run the tool with administrative privileges. In the case of Windows Vista, for example, you must select the Run as Administrator option when right-clicking on the tool’s executable file, vmnetcfg.exe, which is located in the same directory as your VMware. If you installed in the default locations, the Virtual Network Editor’s path is:

  • ..\Program Files\VMware\VMware Player\vmnetcfg.exe for VMware Player
  • ..\Program Files\VMware\VMware Workstation\vmnetcfg.exe for VMware Workstation
  • ..\Program Files\VMware\VMware Server\vmnetcfg.exe for VMware Server (VMware Server and Workstation may also install the tool in the appropriate program group on your start menu (Manage Virtual Networks), depending on the installation options selected.)

When logged in as an administrator, use the Run command from your START menu to run the tool, unless your host is Windows Vista. In Vista, you should navigate to the tool using Explorer, right-click the executable, then Run as Administrator.


Figure, Run the Virtual Network Editor

Note: From the VMware Server Console, you can also run the Virtual Network Editor by choosing Host > Virtual Network Settings.

Once you run the Virtual Network Editor, you should see something like the following:


Figure, VMware’s Virtual Network Editor
[
Step 2.2.1: Configure Windows Host for Demo Virtual Appliance

If you have more than one physical network interface on your Windows host (e.g. wired and wireless NICs), you may want to use physical network cards in production mode. If you have multiple physical network cards and you want to configure for Demo mode, please be sure to change VMnet0 from Bridged to an automatically chosen adapter to whichever physical network interface that will be connecting the Untangle virtual appliance to the external network. Do this by selecting the desired adapter from the drop-down list mapped to VMnet0.

If you have only one network interface on your Windows host, you will need to configure VMware networking for the demo virtual appliance. If you have more than one network interface on your Windows host, you can and probably should configure VMware networking for the production virtual appliance (please see the next section for the production mode setup).

  1. Navigate to the Host Virtual Adapters tab. From there, add a virtual adapter by clicking the Add button.

  2. Figure, Host Virtual Adapters
  3. Select VMnet2 if it is not already shown, then click OK.

  4. Figure, Adding a Virtual Adapter, VMnet2

    Once done, you should see a New Device enabled on VMnet2:


    Figure, VMnet2 Added

    Note: If setting up the Untangle virtual appliance to use a DMZ, follow the same procedure to add VMnet3.

  5. Next, disable DHCP for the virtual adapter you just added by navigating to the DHCP tab, selecting the New Device on VMnet2, and clicking the Remove button.

  6. Figure, Remove DHCP for VMnet2

    Note: If setting up the Untangle virtual appliance to use a DMZ, follow the same procedure to disable DHCP on VMnet3.

  7. Navigate to the Host Virtual Network Mapping tab. You will notice that the Virtual Network Editor allows you to map up to ten virtual network adapters, which are named VMnet0 through VMnet9. Notice also that VMnet1 and VMnet8 are already mapped-- you should not change these. They are reserved for use by VMware. You should see your New Device on VMnet2.

  8. Figure, Host Virtual Network Mapping
  9. The following screen shot shows what the Host Virtual Network Mapping looks like after applying the above changes for both VMnet2 and VMnet3.

  10. Figure, Demo Mode Host Virtual Network Mapping

Step 2.2.2: Configure Windows Host for Production Virtual Appliance
  1. If you have more than one physical network interface on your Windows host (e.g. wired and wireless NICs), you can setup your network for the Untangle virtual appliance to be a Production Virtual Appliance by selecting the physical network interface you want to use for your Internal and DMZ networks. In the following example, we have mapped the Internal network to the wireless network interface on our Windows host while the forcing the External network to be mapped to our Broadcom network interface on our Windows host (DMZ is not mapped or configured here):
    • Configure VMnet0 to be mapped to the physical network adapter connected to the external network, e.g. the Internet, by selecting the appropriate adapter from the adjacent drop-down list.
    • Configure VMnet2 to be mapped to the physical network adapter linking to your internal network.
    • Optionally, you may also map VMnet3 to a DMZ.

  2. Figure, Mapping Your Server Network Interfaces
  3. Click the Apply button, then click the OK button.
    • Note: It is worth noticing that the only real difference between the Demo Virtual Appliance and the Production Virtual Appliance is that the Demo Virtual Appliance requires only one physical network adapter on the VMware host whereas the Production Virtual Appliance requires at least two physical network adapters on the VMware host. If you have multiple network interfaces on your VMware host, we recommend you use the Production Virtual Appliance.
    • Note: To change an existing Demo Virtual Appliance to a Production Virtual Appliance, you must remove the Virtual VMnet2 and VMnet3 devices from the “Host Virtual Adapters” tab of the Virtual Network Editor and apply the changes before you can map VMnet2 and VMnet3 to physical network interfaces.

Step 2.3: Configure the VMware Network on Linux Hosts

Sorry. There are no pretty GUI’s here. Setting up VMware networks on Linux hosts requires root access to the command line. You will have met the other requirements upon successful installation of VMware Player, Server or Workstation. The following assumes a default installation of any of the above VMware products on Linux.

In our examples, the initial configuration of VMware networking is the default (however, your actual IP addresses will probably be different). For reference, here is our post installation VMware network setup:

The following virtual networks have been defined:

. vmnet0 is bridged to eth0
. vmnet1 is a host-only network on private subnet 172.16.59.0.
. vmnet8 is a NAT network on private subnet 172.16.146.0.

Linux hosts use a tool that is common to all Linux-based installations of VMware:

vmware-config.pl

How to run VMware’s vmware-config.pl script

To run this tool properly, you must be logged in as root on the host PC or Server. The vmware-config.pl script should be in the root user’s path. If it isn’t, you probably did something wrong during the installation and you should review your steps. If all else fails, you can use

find / -name "vmware-config.pl"

to find it.

Note: When the VMware Server Console is run from a Linux client, the menu item for the Virtual Network Editor under Host > Virtual Network Settings does not exist, regardless of the platform on which the VMware Server is running.

The Untangle virtual appliance requires only one physical network interface on your host PC. If you have only one network interface on your Linux host, you will need to configure VMware networking for the demo virtual appliance as is done in the following example by setting vmnet2 and vmnet3 to hostonly. The IP addresses are irrelevant because they are determined by the Untangle virtual appliance configuration but we will need to disable the VMware DHCP servers as stated below.

  • Configure VMnet0 to be bridged to the physical network adapter connected to the external network, e.g. eth0.
  • Configure VMnet2 to be a hostonly network for your internal network.
  • Configure VMnet3 to be a hostonly network for your DMZ network.

It is worth noticing that the only real difference between the Demo Virtual Appliance and the Production Virtual Appliance is that the Demo Virtual Appliance requires only one physical network adapter on the VMware host whereas the Production Virtual Appliance requires at least two physical network adapters on the VMware host. If you have multiple network interfaces on your VMware host, we recommend you use the Production Virtual Appliance.

  1. To run the script, open a bash prompt/terminal/console and run (as root) the command:
    vmware-config.pl

    Once you run the vmware-config.pl script, you should see something like the following:

    Making sure services for VMware Player are stopped.
    
    Stopping VMware services:
       Virtual machine monitor                                             done
       Blocking file system:                                               done
       Bridged networking on /dev/vmnet0                                   done
       Host network detection                                              done
       DHCP server on /dev/vmnet1                                          done
       Host-only networking on /dev/vmnet1                                 done
       DHCP server on /dev/vmnet8                                          done
       NAT service on /dev/vmnet8                                          done
       Host-only networking on /dev/vmnet8                                 done
       Virtual ethernet                                                    done
    
    Configuring fallback GTK+ 2.4 libraries.
    
    In which directory do you want to install the theme icons?
    [/usr/share/icons]
    ...

    You can continue with the defaults until you get to the network section as shown below.

  2. In this example, we chose to setup networking using the editor to create vmnet2 and vmnet3:
    You have already setup networking.
    
    Would you like to skip networking setup and keep your old settings as they are?
    (yes/no) [yes] no
    
    Do you want networking for your virtual machines? (yes/no/help) [yes] 
    
    Would you prefer to modify your existing networking configuration using the
    wizard or the editor? (wizard/editor/help) [wizard] editor
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make any changes to the current virtual networks settings?
    (yes/no) [no] yes
    
    Which virtual network do you wish to configure? (0-99) 2
    
    What type of virtual network do you wish to set vmnet2?
    (bridged,hostonly,nat,none) [none] hostonly
    
    Configuring a host-only network for vmnet2.
    
    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes] no
    
    What will be the IP address of your host on the private
    network? 192.168.1.1
    
    What will be the netmask of your private network? 255.255.255.0
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet2 is a host-only network on private subnet 192.168.1.0.
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make additional changes to the current virtual networks
    settings? (yes/no) [yes] 
    
    Which virtual network do you wish to configure? (0-99) 3
    
    What type of virtual network do you wish to set vmnet3?
    (bridged,hostonly,nat,none) [none] hostonly
    
    Configuring a host-only network for vmnet3.
    
    Do you want this program to probe for an unused private subnet? (yes/no/help)
    [yes] no
    
    What will be the IP address of your host on the private
    network? 192.168.2.1
    
    What will be the netmask of your private network? 255.255.255.0
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet2 is a host-only network on private subnet 192.168.1.0.
    . vmnet3 is a host-only network on private subnet 192.168.2.0.
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make additional changes to the current virtual networks
    settings? (yes/no) [yes] no
    
    Extracting the sources of the vmnet module.
    
    ...

    This script continues on using the default settings you set during installation.

  3. After it completes, you should see that all your VMware services started up without errors.
  4. Disable VMware’s DHCP Server on Hostonly Networks

    When using hostonly networking, VMware starts a DHCP server for each hostonly network. This will conflict with your Untangle virtual appliance so they must be disabled.

    To do so, go to your /etc/vmware directory. There you should see directories for your hostonly networks (vmnet2 and vmnet3). Within each should be a dhcpd directory where you can edit the dhcpd.conf file to disable dhcpd for that network. For example, in /etc/vmware/vmnet2/dhcpd/dhcpd.conf we comment out everything here:

    #
    # Configuration file for ISC 2.0b6pl1 vmnet-dhcpd operating on vmnet2.
    #
    # This file was automatically generated by the VMware configuration program.
    # If you modify it, it will be backed up the next time you run the
    # configuration program.
    #
    # We set domain-name-servers to make some DHCP clients happy
    # (dhclient as configued in SuSE, TurboLinux, etc.).
    # We also supply a domain name to make pump (Red Hat 6.x) happy.
    #
    allow unknown-clients;
    default-lease-time 1800;                # 30 minutes
    max-lease-time 7200;                    # 2 hours
    
    subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.128 192.168.1.254;
        option broadcast-address 192.168.1.255;
        option domain-name-servers 192.168.1.1;
        option domain-name "localdomain";
    }

    So that it looks like this:

    #
    # Configuration file for ISC 2.0b6pl1 vmnet-dhcpd operating on vmnet2.
    #
    # This file was automatically generated by the VMware configuration program.
    # If you modify it, it will be backed up the next time you run the
    # configuration program.
    #
    # We set domain-name-servers to make some DHCP clients happy
    # (dhclient as configued in SuSE, TurboLinux, etc.).
    # We also supply a domain name to make pump (Red Hat 6.x) happy.
    #
    # allow unknown-clients;
    # default-lease-time 1800;                # 30 minutes
    # max-lease-time 7200;                    # 2 hours
    #
    # subnet 192.168.1.0 netmask 255.255.255.0 {
    #     range 192.168.1.128 192.168.1.254;
    #     option broadcast-address 192.168.1.255;
    #     option domain-name-servers 192.168.1.1;
    #     option domain-name "localdomain";
    # }
  5. We do the same for /etc/vmware/vmnet2/dhcpd/dhcpd.conf and /etc/vmware/vmnet3/dhcpd/dhcpd.conf and then restart VMware with:
    /etc/init.d/vmware restart

    To verify, you can run the following command and make sure there are no dhcpd process on vmnet2 and vmnet3.

    ps ax|grep vmnet-dhcpd

    If you see something like the following for vmnet2 and/or vmnet3, your Untangle virtual appliance will not function properly:

     7959 ?        Ss     0:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet2/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet2/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet2.pid vmnet2
     7974 ?        Ss     0:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet3/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet3/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet3.pid vmnet3
[

The Untangle virtual appliance requires only one physical network interface on your host PC; however, if you have more than one network interface on your Linux host, you will probably want to configure VMware networking for the production virtual appliance as is done in the following example by setting vmnet2 and vmnet3 to bridged.

It is worth noticing that the only real difference between the Demo Virtual Appliance and the Production Virtual Appliance is that the Demo Virtual Appliance requires only one physical network adapter on the VMware host whereas the Production Virtual Appliance requires at least two physical network adapters on the VMware host. If you have multiple network interfaces on your VMware host, we recommend you use the Production Virtual Appliance.

  • Configure VMnet0 to be bridged to the physical network adapter connected to the external network, e.g. eth0.
  • Configure VMnet2 to be bridged to the physical network adapter connected to your internal network, e.g. eth1.
  • Configure VMnet3 to be bridged to the physical network adapter connected to your DMZ network, e.g. eth2.
  1. To run the script, open a bash prompt/terminal/console and run the command:
    vmware-config.pl

    Once you run the vmware-config.pl script, you should see something like the following:

    Making sure services for VMware Player are stopped.
    
    Stopping VMware services:
       Virtual machine monitor                                             done
       Blocking file system:                                               done
       Bridged networking on /dev/vmnet0                                   done
       Host network detection                                              done
       DHCP server on /dev/vmnet1                                          done
       Host-only networking on /dev/vmnet1                                 done
       DHCP server on /dev/vmnet8                                          done
       NAT service on /dev/vmnet8                                          done
       Host-only networking on /dev/vmnet8                                 done
       Virtual ethernet                                                    done
    
    Configuring fallback GTK+ 2.4 libraries.
    
    In which directory do you want to install the theme icons?
    [/usr/share/icons]
    …

    You can continue with the defaults until you get to the network section as shown below.

  2. In this example, we chose to setup networking using the editor to bridge vmnet2 to eth1 and vmnet3 to eth2:
    You have already setup networking.
    
    Would you like to skip networking setup and keep your old settings as they are?
    (yes/no) [no] 
    
    Do you want networking for your virtual machines? (yes/no/help) [yes] 
    
    Would you prefer to modify your existing networking configuration using the
    wizard or the editor? (wizard/editor/help) [editor] 
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make any changes to the current virtual networks settings?
    (yes/no) [no] yes
    
    Which virtual network do you wish to configure? (0-99) 2
    
    What type of virtual network do you wish to set vmnet2?
    (bridged,hostonly,nat,none) [none] bridged
    
    Configuring a bridged network for vmnet2.
    
    Your computer has multiple ethernet network interfaces available: eth1, eth2,
    vmnet1, vmnet2, vmnet3, vmnet8. Which one do you want to bridge to vmnet2?
    [eth0] eth1
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet2 is bridged to eth1
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make additional changes to the current virtual networks
    settings? (yes/no) [yes] 
    
    Which virtual network do you wish to configure? (0-99) 3
    
    What type of virtual network do you wish to set vmnet3?
    (bridged,hostonly,nat,none) [none] bridged
    
    Configuring a bridged network for vmnet3.
    
    Your computer has multiple ethernet network interfaces available: eth2, vmnet1,
    vmnet2, vmnet3, vmnet8. Which one do you want to bridge to vmnet3? [eth0] eth2
    
    The following virtual networks have been defined:
    
    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on private subnet 172.16.59.0.
    . vmnet2 is bridged to eth1
    . vmnet3 is bridged to eth2
    . vmnet8 is a NAT network on private subnet 172.16.146.0.
    
    Do you wish to make additional changes to the current virtual networks
    settings? (yes/no) [yes] no
    
    Extracting the sources of the vmnet module.
    
    ...

    This script continues on using the default settings you set during installation.

  3. After it completes, you should see that all your VMware services started up without errors.
  4. Disabling DHCP on bridged connections is not required since VMware disables DHCP services on all bridged connections.

The Untangle virtual appliance is provided in a .ZIP file available This zip archive file contains the Untangle virtual machine directory and all the files necessary to get the default Untangle virtual appliance running in VMware Player, Server or Workstation.

You may unzip the Untangle virtual appliance as soon as you are finished downloading. It will create a directory containing the files needed by VMware.

We recommend that you configure your VMware host's network interfaces as described above before powering on the Untangle virtual machine.

[

This is the easiest part! Because the Untangle virtual appliance is already configured for you, all you need to do is open the .VMX file that you downloaded from Untangle.

  1. In your VMware Player or Server, choose the menu options File > Open.
  2. Browse to the directory where you unzipped your Untangle virtual appliance.
  3. Open the .VMX file
  4. Complete the Setup Wizard (We recommend setting it up as a Router as opposed to a Transparent Bridge)
  5. Install your desired applications
  6. Go to Step 5 to setup your host to route through the Untangle virtual appliance

For detailed information about using your new Untangle software, see our ]

Step 5: Setup VMware Host to Route Through Untangle Virtual Appliance

Now that you have your Untangle virtual appliance setup and running, you may want your VMware host to route through the Untangle VMware machine. You can do this by forcing your VMware host machine (either Windows or Linux) to route through your Untangle virtual appliance. This requires us to "break" the direct route to the Internet through what is probably the device your Untangle virtual appliance is bridged to as vmnet0. This is only necessary if you want the VMware host to be protected by the Untangle server, or you want to allow the IP address which the VMware host is using to be used instead by the Untangle external interface, thus requiring only one 'external' (probably public) IP address. Following are instructions for doing this on both Linux and Windows based hosts.

Step 5.1: Change Routing on Your Windows VMware Host

Routing is not always easy to understand or configure but the following sections should get you going. The easiest way to reconfigure your Windows host to route through the Untangle virtual appliance is to "break" the networking on the shared external network interface and configure your Windows VMware host to route through the desired connection to the Untangle server. In this example:

  • The RealTek network device that is mapped to VMnet0
  • VMnet2 is connected to the Internal network that may be filtered, etc. (This is a Virtual connection in Demo mode and a bridged connection in Production mode)
  • VMnet3 is connected to the DMZ network that typically bypasses filtering, etc. (This is a Virtual connection in Demo mode and a bridged connection in Production mode)

Following are the steps to accomplish this which are summarized as follows.

  1. Disable TCP/IP on the VMware host's physical network connection to the external network
  2. Enable automatic IP address and DNS configuration on VMnet2 for internal networking -or- enable automatic IP address and DNS configuration on VMnet3 for DMZ networking
  3. Disable TCP/IP on whichever network connection you do not want to use (either VMnet3 for DMZ or VMnet2 for Internal)

The instructions are slightly different for Demo Virtual Appliances and Production Virtual Appliances so follow the appropriate section for your configuration.

[

Here's one way you can accomplish this:

  1. If you have more than one physical network adapter (e.g. wired and wireless NICs), you must "break" the link for the physical adapter you mapped to VMnet0.

    WARNING! After completing this step, you will not be able to connect to any network resources until successfully completing Step 4 including the appropriate configuration of the Untangle server.

    To proceed, open Network Connections from your Control Panel, select your primary physical network interface, right-click and choose Properties.


    Figure, Properties for Primary Network Connection
  2. Scroll to Internet Protocol (TCP/IP), and remove the check mark from the select box next to it , and then click the OK button.

    Figure, TCP/IP Properties

    This disables TCP/IP on your physical connection and forces the use of alternative routes that will be made available by your Untangle server.

    • Then click OK button
    • Then click OK button again

Step 5.1.2: Enable Untangle Routing through Your Demo Virtual Appliance on a Windows VMware Host

Note: These steps are required to force routing through the Untangle server for hosts configured in Demo mode. You must do only step "a" or step "b" below in order to force routing through the "internal" or "DMZ" network respectively.

  1. If you want to have your Windows host route via the Internal Untangle network, open Network Connections from your Control Panel, right-click on your VMware Network Adapter VMnet2 and choose Properties.

    Figure, Properties for VMnet2 Network Connection

    1. Scroll to Internet Protocol (TCP/IP), select it, and click the Properties button.

      Figure, VMnet2 TCP/IP Properties

    2. Select the Obtain an IP address automatically radio button.
    3. Select the Obtain DNS server address automatically radio button.

      Figure, Obtain IP and DNS Automatically for VMnet2

    4. Then click OK button
    5. Then click OK button again
    6. Disable TCP/IP on VMnet3 as shown elsewhere on this page.
      Note: If for any reason you are not able to disable TCP/IP, go into the TCP/IP properties and set a static IP with no gateway. For example, set the IP address to 169.254.5.10, and the Subnet mask to 255.255.0.0. Do not specify a gateway or any other information, and click OK.


      Figure, Non-Routable IP

  2. If you want to have your Windows host route via the DMZ Untangle network, open Network Connections from your Control Panel, right-click on your VMware Network Adapter VMnet3 and choose Properties.

    Figure, Properties for VMnet3 Network Connection

    1. Scroll to Internet Protocol (TCP/IP), select it, and click the Properties button.

      Figure, VMnet3 TCP/IP Properties

    2. Select the Obtain an IP address automatically radio button.
    3. Select the Obtain DNS server address automatically radio button.

      Figure, Obtain IP and DNS Automatically for VMnet3

    4. Then click OK button
    5. Then click OK button again
    6. Disable TCP/IP on VMnet2 as shown elsewhere on this page.
      Note: If for any reason you are not able to disable TCP/IP, go into the TCP/IP properties and set a static IP with no gateway. For example, set the IP address to 169.254.5.10, and the Subnet mask to 255.255.0.0. Do not specify a gateway or any other information, and click OK.


      Figure, Non-Routable IP

Appliance on a Windows VMware Host

Note: Fewer steps are required to force routing through the Untangle server for hosts configured in Production mode.

Since VMnet2 and VMnet3 will not show up in your Windows network connections, you will need to know which network each of your Local Area Network Connections is connected to (i.e. External, Internal, and DMZ). If you have set up your Windows based VMware host in production mode, you must choose only one of the bridged network connections to be used for your Windows host.

Since you have disabled TCP/IP on the network interface connected to your external network, you must enable only one of the interfaces connected to either the internal network or the DMZ network. You must disable TCP/IP on the interface you do not wish to use on your Windows VMware host.

The process is the same as the demo mode process except now you are enabling and disabling automatic IP and DNS configuration of TCP/IP on your Windows VMware host. These will show up as various Local Area Connections such as:

  • Local Area Connection 2
  • Local Area Connection 3
  • etc.

You will need to know which is which as this varies from system to system then simply enable TCP/IP on the one you want to use and disable it on the one you do not want to use. In this example, our Local Area Connection 4 is connected to our Internal network. To force routing via the physical connection of Local Area Connection 4 we use another example. In this example:

  • The RealTek network device that is mapped to VMnet0
  • Local Area Connection 4 is connected to the Internal network that may be filtered, etc. (This is a Virtual connection in Demo mode and a bridged connection in Production mode)
  • Local Area Connection 3 is connected to the DMZ network that typically bypasses filtering, etc. (This is a Virtual connection in Demo mode and a bridged connection in Production mode)

Following are the steps to accomplish this which are summarized as follows.

  1. Disable TCP/IP on the VMware host's physical network connection to the external network as in Step 5.1.1
  2. Enable automatic IP address and DNS configuration on Local Area Connection 4 for internal networking -or- enable automatic IP address and DNS configuration on Local Area Connection 3 for DMZ networking
  3. Disable TCP/IP on whichever network connection you do not want to use (either Local Area Connection 3 for DMZ or Local Area Connection 4 for Internal)

TCP/IP should already be configured properly for all your physical network connections, but you may have to disable TCP/IP on the External and DMZ connections if you want to route via the Internal network connection.

  1. We want to check our Local Area Connection 4 TCP/IP properties. We do this by opening the Network Connections from the Control Panel, right-clicking Local Area Connection 4, and choosing Properties

    Figure, Local Area Connection 4 Properties

  2. Scroll to Internet Protocol (TCP/IP), and remove the check mark from the select box next to it , and then click the OK button.

    Figure, Local Area Connection 4 TCP/IP Properties

  3. Select the Obtain an IP address automatically radio button.
  4. Select the Obtain DNS server address automatically radio button.

    Figure, Obtain IP and DNS Automatically for Local Area Connection 4

  5. Then click OK button
  6. Then click OK button again
  7. Disable TCP/IP on your DMZ connection as shown elsewhere on this page.
    Note: If for any reason you are not able to disable TCP/IP, go into the TCP/IP properties and set a static IP with no gateway. For example, set the IP address to 169.254.5.10, and the Subnet mask to 255.255.0.0. Do not specify a gateway or any other information, and click OK.


    Figure, Non-Routable IP

Linux varies a bit from distribution to distribution. Until we have complete instructions available for the different distributions, we will use bash to accomplish the task.

Again, there are no pretty GUI's here, which is typical of Linux servers. Setting up networks on Linux hosts requires root access to the command line.

To run the following commands properly, you must be logged in as root on the host PC or Server and open a bash prompt/terminal/console and run the command. If you are comfortable using different shells in Linux, feel free to translate as necessary on-the-fly as the basic commands should be identical.

  1. First you want to gather the existing routing information on your Linux host by running the route command. It should look something like the following. Here is an example routing table as shown by the
    route -n

    command:

    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet3
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet2
    172.16.231.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
    172.16.157.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
    10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
    0.0.0.0         10.1.0.1        0.0.0.0         UG    0      0        0 eth0
  2. Now we need to adjust the routing. To do this, you need to be aware of which routes you want to break and which routes you want to create. Per our examples, we want to break our default route that is on our eth0 and setup the default route to come from the Untangle virtual appliance's Internal or DMZ network. The last line above has the UG flag, which indicates the default gateway. In this example, we want to stop routing through eth0 and start routing through vmnet2. We cannot down eth0 because it needs to be up for the VMware machines that bridge to it. We can change the IP and remove the default route as follows:
    ifconfig eth0 169.254.5.10

    And verify by running the route command again:

    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet3
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet2
    172.16.231.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
    172.16.157.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
    169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
  3. Now that we have no default gateway and no effective route to the Internet, we can run our dhcp client on vmnet2 to get our IP and gateway from our Untangle virtual appliance's Internal network. The commands typically used for this in Linux are
    dhclient

    or

    dhcpcd

    . We are using Debian and therefore

    dhclient

    . We have configured our Untangle virtual appliance as a DHCP server for vmnet2 using the 192.168.200.0 subnet, so we should get a 192.168.200.? IP from it. If not, something went wrong.

    Note: If you have configured the Production Virtual Server you can substitute vmnet2 with the appropriate physical network card that is connected to your Internal (or DMZ) network.

    # dhclient vmnet2
    Internet Software Consortium DHCP Client 2.0pl5
    Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
    All rights reserved.
    
    Please contribute if you find this software useful.
    For info, please visit http://www.isc.org/dhcp-contrib.html
    
    sit0: unknown hardware address type 776
    sit0: unknown hardware address type 776
    Listening on LPF/vmnet2/00:50:56:c0:00:02
    Sending on   LPF/vmnet2/00:50:56:c0:00:02
    Sending on   Socket/fallback/fallback-net
    DHCPDISCOVER on vmnet2 to 255.255.255.255 port 67 interval 4
    receive_packet failed on vmnet2: Network is down
    DHCPOFFER from 192.168.200.1
    DHCPREQUEST on vmnet2 to 255.255.255.255 port 67
    DHCPNAK from 192.168.1.254
    DHCPDISCOVER on vmnet2 to 255.255.255.255 port 67 interval 8
    DHCPOFFER from 192.168.200.1
    DHCPREQUEST on vmnet2 to 255.255.255.255 port 67
    DHCPNAK from 192.168.1.254
    DHCPNAK with no active lease.
    
    DHCPACK from 192.168.200.1
    bound to 192.168.200.171 -- renewal in 7200 seconds.

    With this we can confirm that 192.168.200.1 is our Untangle server.

  4. Now we double-check our default gateway:
    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet3
    172.16.231.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
    192.168.200.0   0.0.0.0         255.255.255.0   U     0      0        0 vmnet2
    172.16.157.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
    169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
    0.0.0.0         192.168.200.1   0.0.0.0         UG    0      0        0 vmnet2

    This all looks good and we are able to ping the network on the other side of the Untangle virtual appliance.

  5. If you have configured the DMZ network, you will need to "Break" the route on that network interface (either vmnet or physical) or your routing may get a bit confused.
  6. To make these changes permanent on your Linux host, you will need to use the appropriate tools or write yourself a script that takes care of things for you. If you performed this changes as we did here, rebooting your Linux host will revert all of the settings. Look us up in IRC if you need help with your specific situation.

(Applies to Windows and Linux Hosts)

Depending on your hardware and software configuration, you may experience potentially insane clock drift issues in your Untangle VM. This is a common situation shared with all Linux Virtual Machines when the guests differ enough from their host machines regardless of whether the host is running a Windows or Linux based operating system. This section is dedicated to identifying and resolving such issues. We recommend you make these changes on all Untangle VMware machines.

For more information on this topic you can check the additional resources section below (need anchor/link?):

This problem is easily identified once you check the date and time on your Untangle VM as the time will be incorrect after you have set it. You will want to make sure time is being kept properly within any Untangle VM as the Untangle VM uses many time based policies for filtering traffic. It is important that your host has and keeps good time as well. To verify if you have a clock synchronization issue, do the following:

  1. Verify the time is set and working properly on your VMware host machine.
  2. Boot your Untangle VM and check the time and date to see if it is set properly as well.
  3. If they don't match, we highly recommend you proceed and setup the synchronization as detailed here.

We recommend that you make sure the VMware time synchronization to host is enabled as a best practice. If you downloaded the Untangle VMware zip file, proceed immediately to Step 6.2. If you installed your own VMware image or need to upgrade the VMware Tools, you may want to perform Step 6.2.3 first.

Regardless of symptoms, we recommend that you use VMware tools to syncronize the time with the host OS. REMEMBER: It is important that your host has and keeps good time. Once you have verified that the host time is correct and good you can follow these steps to enable VMware tools clock syncronization. Untangle VMware downloads prior to and including 5.0.3 will need to have this fix applied. All Untangle VMware images newer than version 5.0.3 will be preconfigured but if you've created your own VMware image of Untangle, you will want to enable this functionality on your VM by installing VMware Tools as specified in Step 6.2.3.

(Host .vmx Edit Method)

If you downloaded your Untangle VM from Untangle or VMware all you need to do is change one line in your .vmx file as follows:

  1. On the VMware host, find and edit the untangle<version>.vmx This should be located in the untangle<version> folder that came from the untangle<version>.zip file.
  2. Find the "tools.syncTime = "FALSE" and change "FALSE" to "TRUE"
  3. Save the changes and reboot the Untangle VM to force an immediate update

(Need Screenshots?) Alternatively, if you have a local console available for your Untangle VM, you can enable time synchronization as follows:

  1. Open the terminal from the local console by clicking the "Terminal" button and entering the password
  2. Launch vmware-tools and enable time syncronization with host
  3. Close vmware-tools and the terminal
  4. Reboot the Untangle VM to force an immediate update
[

VMware tools should be installed by default if you downloaded the Untangle VMware zip file; however, if you created your own VMware machine or have a need to upgrade the VMware tools, you will need to install VMware tools as follows: More details to follow but since they are pre-installed on the download...

  1. Choose the "Install VMware Tools..." menu option from the VMware "VM" menu.
  2. Open a shell and mount the CD-ROM drive
  3. Copy the tarball to /usr/local/src/ and unpack
  4. Run the vmware-install.pl script The build environment required by vmware-install.pl script are not installed by default. Do we have that documented elsewhere and should we include it here or ???

Issue

The Untangle gateway relies on accurate time for time-based policies and filtering policies. When time is "adjusted" even as little as a few seconds, false positives may result (e.g. spam may be falsely identified as spam). VMware Tools uses a slow adjustment to correct for time differences. As a result we recommend you reboot to get a quick correction and let VMware Tools take it from there.

Future versions of Untangle are not expected to have these issues as the underlying kernel issues are normalizing over time; however, using VMware Tools is probably a best practice that you should stick with.

For more information on the underlying issues, please see the following:

  • Kernel documentation

For information about using your new Untangle software, see our Happy virtual Untangling!

Posted in Virtual Centre | Leave a Comment »

Archive for the ‘Virtual Center’ Category

Posted by vmwarevirtualmachine on December 20, 2008

Archive for the ‘Virtual Center’ Category


Posted by  on September 9, 2008

in ESX3i all logs are lost during reboot. Therefore a syslog server is required to record and archive all ESX Server 3i logs since a simple reboot will erase all activity of all users.

ISO Images consumes a lot of disk space since they are not compressed when they are created.

Users should create hash checksums on all ISO OS images on the ESX server before utilizing the ISO OS images for virtual machines.

Shares and Resource allocation: Minimum and Maximum resource settings within ESX Servers are absolute values, whereas shares are used to give preference to a guest OS when resource is scare. Minimum guarantee a specific amount of a resource to the virtual machine but deny that much of the resource to other virtual machine, While Maximum deny the virtual machine a portion of the resource while allowing other virtual machine more access to that resources. Do not configure the minimum virtual machine CPU and memory setting equal the total physical amount available. Use reservations,shares and limits to allocate resources.

Time management, synchronizing the virtual machine with the ESX Server is the preferred method for time synchronization.

Posted in


Posted by  on September 9, 2008

  • The ESX server virtual switch port groups will be configured with any value between 2 and 4094. Utilizing VLAN1 will cause a denial of service since the ESX Server drops this traffic. The maximum port group that may be configured on a virtual switch is 512. Each port group is identified by a network label and a VLAN ID.
  • Ports Groups may have VLAN ID between 0 –4095.
  • VLAN ID 4095 specifies that the port group should use trunk mode or Virtual Guest Tagging (VGT) mode.
  • A value of Zero or blank VLAN ID is default value for External Switch Tagging(EST). EST is default configuration for all virtual switches within ESX Server. EST mode has 1-to-1 relationship, the number of VLAN’s are limited to the number of physical network adapter ports assigned to ESX.
  • Virtual Switch Tagging(VST) allows virtual switch to handle it’s own VLAN tagging. This processing is handled by Pnic and this overhead never comes to VMkernel. Each physical switch port that connects to virtual switch is configured in trunk mode. VLAN’s can span across multiple PSwitch. VLAN is enabled by trunked link connecting the virtual switch and PSwitch thru frame tags. Trunk links can carry the traffic of multiple VLANs simultaneously.Within Switch fabric, switches uses frame tagging to direct frames to the appropriate switch and port. Frame tagging assigns frame id prior to traversing trunked link. After the frame reaches the access link, VLAN ID is removed and the end device receives the frame.
  • Each Virtual Nic (VNic) has two MAC Address. effective and initial MAC address. Both the MAC address are same when they are first created.
  • Forged Transmits (set to accept by default): When effective MAC Address and initial MAC address are different, which means effective MAC address is always compared with initial MAC address.it is considered as forged transmits.
  • MAC Address Changes (set to accept by default): When effective MAC address is changed compared to initial one.
  • Promiscuous mode: When promiscuous mode is applied, all virtual machine connected to virtual switch have potential of reading all packets.
  • STP is not supported on vSwitch.Spanning Tree Protocol (STP) is either needs to disabled or Port fast needs to be enabled on PSwitch.

The vpxuser has privileges of a root user on the ESX server host,, but has no file privileges on the ESX server console. The vpxuser is created when the ESX server host is attached to Virtual Center. It is not present on the ESX Server host unless the host is being managed through VirtualCenter.

Virtual Center has two default roles defined, system roles and sample roles. System Roles are permanent and the permissions associated with these roles cannot be changed. All changes made to permissions of custom roles are effective immediately not requiring users to log off and log back in.

Posted in

Posted by on April 30, 2008

Lab Manager 2.5.1 does not support ESX Server 3.5.
All hosts in a VMware HA cluster must have DNS configured so that the short host name (without the domain suffix) of any host in the cluster can be resolved to the appropriate IP address from any other host in the cluster.

If a host is added to a cluster, you can no longer create child resource pools of that host. You can create child resource pools of the cluster if the cluster is enabled for Distributed Resource Scheduler (DRS).

You cannot use VMotion to migrate a virtual machine with a guest operating system with 16GB of memory or more to ESX Sever 3.5 hosts or earlier. Resize the guest operating system memory or migrate to a compatible version of ESX Server 3.

Using VI Client or VI Web Access ensures that the starting sectors of partitions are 64K aligned, which improves storage performance.

In centralized license server mode, license files are located at the following default location on the machine running the VMware license server: C:\Program Files\VMware\VMware License Server\Licenses. This is different from VirtualCenter 2.0, where the default location of the license file was C:\Documents and Settings\All Users\Application Data\VMware\VMware License Server\vmware.lic. which no longer exists.

The VI Client installer installs Microsoft .NET Framework 2.0 on your machine. If you have an older version, the VirtualCenter Server installer upgrades your version to version 2.0.

While installing ESX Server 3.5, the option to create a default network for virtual machines is selected by default. If you proceed with installing ESX Server 3.5 with this option selected, your virtual machines share a network adapter with the service console, which does not provide optimal security.

Manage remote console connections—You can now configure VirtualCenter 2.5 to set the maximum number of allowed console connections (0 to 100) to all virtual machines.

VirtualCenter 2.5 provides an unlicensed evaluation mode that doesn’t require that you install and configure a license server while installing VirtualCenter 2.5 and ESX Server 3.

Virtual Center 2.5 can Manage up to 200 hosts and 2000 virtual machines
ESX Server 3.5 supports 256GB of physical memory and virtual machines with 64GB of RAM.
ESX Server hosts support for up to 32 logical processors
SATA support—ESX Server 3.5 supports selected SATA devices connected to dual SAS/SATA controllers
ESX Server 3.5 introduces support for N-Port ID Virtualization (NPIV) for Fibre Channel SANs. Each virtual machine can now have its own World Wide Port Name (WWPN).

VMotion migration of virtual machines with local swap files is supported only across ESX Server 3.5 hosts and later with VirtualCenter 2.5 and later

Enhanced HA provides experimental support for monitoring individual virtual machine failures. VMware HA can now be set up to either restart the failed virtual machine or send a notification to the administrator.

Storage VMotion simplifies array migration and upgrade tasks and reduces I/O bottlenecks by moving virtual machines to the best available storage resource in your environment.Migrations using Storage VMotion must be administered through the Remote Command Line Interface (Remote CLI)

VirtualCenter 2.5 provides support for batch installations of VMware Tools where VMware Tools can now be updated for selected groups of virtual machines. VMware Tools upgrades can now be scheduled for the next boot cycle

Posted in 

Posted by  on November 1, 2007

Where is the vm-support dumping it’s data ?

= > /var/lib/vmware/hostd/docroot/downloads

Vpxd-#.log is circular in nature, which means they start over again with vpxd-0.log when the size limit is reached. You either check the vpxd-index file for checking what the current log index is or easier is to sort by date.

Virtual center logs rotate at 5MB and also when vpxd is started

Posted in 

Posted by on October 31, 2007

How to find version of virtual center you are running?

D:\Program Files\VMware\VMware VirtualCenter 2.0>vpxd.exe -v
VMware VirtualCenter 2.0.1 build-32042


Few ESX Commandsvmkping – use vmkernel to ping a device

esxcfg-vswif for configuring network interface

vm-support to run diagnostic commands

esxupdate -l query query patches installed on ESX Server

esxcfg-rescan vmhba1 to rescan HBA’s

ps -ef | grep hostd To check hostd is running

esxcfg-mpath -l to list path details


Important Log and their locations

VMKernel Logs = > /var/log/vmware/

VIClient logs = > /var/log/vmware/hostd.log

Virtual Center interaction logs = > /var/log/vmware/vpx/vpxa-*.log

VMWare Patch activity logs = > /var/log/vmware/esxupdate.log

[root@esx2007a config]# cat vmware-sites
FULLTIME_SITES_TID 00000061
+ 1:8042,8042,8043 esx2007e vmware #FT_Agent_Port=8045
+ 2:8042,8042,8043 esx2007d vmware
+ 3:8042,8042,8043 esx2007b vmware
+ 4:8042,8042,8043 esx2007a vmware
+ 5:8042,8042,8043 esx2007c vmware

License server logs = > %ALLUSERSPROFILE%\Application Data\VMware\VMware License Server\lmgrd.log


STORAGE

When ESX Server scans the SAN, each HBA reports all LUNs visible on the storage network; each LUN reports an ID that uniquely identifies it to all nodes on the storage network. After detecting the same unique LUN ID reported by the storage network, the VMkernel automatically enables multiple, redundant paths to this LUN, known as multi-pathing.ESX Server uses a single storage path for a particular LUN until the LUN becomes unavailable over this path. After noting the path failure, ESX Server switches to an operational path.


VIRTUAL CENTER:

SQL Server authentication will work predictably on local and remote database servers. NT authentication requires VC to run with a service account that has access to the DB; “Local System”account does not have access to remote servers.

vpxd.exe VirtualCenter Server service

vpxd.cfg VirtualCenter Server configuration

vpxa VirtualCenterAgent

If you create partition from virtual center then that partition is automatically aligned, in case you are creating partition using vmkfstools then you will have to manually align the partition using fdisk. But this is not enough you also have to align partition at guest level as well, which can be easily achieved using diskpart if the os is windows.

Posted in

How to calculate DB size for Virtual Center. This is quick excel sheet calculator from VMware, hope you will find it useful. I got this link from

www.vmware.com/support/vi3/doc/vc_db_calculator.xls

Posted in 

Posted by on March 25, 2007

If you remove users from the VirtualCenter domain, they lose permissions to all objects in the VMware Infrastructure and will not be able to log on again. Users who are currently logged on and are removed from the domain retain their Vmware Infrastructure permissions only until the next validation period (the default is every 24 hours)

Vmware doesn’t not explicitly restrict users from with same login and password from accessing and taking action within the VC.

If you rename user domain account, it becomes invalid in VC and same applies to group but before that(for groups only) you need to restart virtucal center.

Following activities can be scheduled as Tasks

  • Change the power state of a VM
  • Create a VM template
  • Move a VM with Vmotion
  • Create a VM
  • Make snapshot of VM
  • Customize VM
  • Add a Host

When you remove an object (such as a folder, datacenter, cluster, or resource pool), VirtualCenter removes all child inventory objects (such as datacenters, clusters, hosts, and virtual machines contained within the object). All the associated tasks and alarms are also removed. Assigned processor and migration licenses are returned to available status. Virtual machines that were on a managed host remain on the host, but are no longer managed by VirtualCenter.

This was the last part of the series from basic administration task,this pdf is in more details and end in 364 pages. There should be more information which be might be useful for VCP. I might add more to this series soon.

Posted in

Posted by on March 6, 2007

Clustering in VMWare is based upon customer requirements.

Cluster-in-a-Box: Both the Nodes in same Physical Hosts, this type of configuration is suitable in case there is possibility of data crashes or administrative errors, but there is no cover if ESX host fails on hardware front.

Cluster-across-Boxes: Both the nodes are placed on seperate ESX host, and this takes of ESX host’s hardware failure.

Physical-to-Virtual Cluster: Here Node A is actually physical box and Node B is Virtual Machine in ESX host, acting as standby host.

VMWARE HA solutions has some advantages which not very obvious. But we should any case apply VM HA for one simple reason, if the ESX host fails, all VM’s at least get started at other host. You don’t have to manually do that. Downtime will be Non-Zero

VMHA and VC 2.0 deals only with Host failures, for VM’s (Node failure) you monitor Heart Beat using Alarm

PRE-REQUISITES VMHA:

  • Each host must be able to poweron VM’s i.e. Each host must have access to VM’s files, in other words all VMotion requirements are met.
  • ESX server is reachable when you type it’s fully qualified domain name

For VMHA heartbeats it is recommended to set

  • Two service console port on different virtual switch
  • One service console with NIC teaming enable at virtual switch level

VMHA is fully integrated with DRS, which means when your host fails and all VM’s are moved to different hosts, DRS takes care of resource management. VMHA is reactive solution, which means it will act only when one or more host fails but VMDRS is proactive solution, it is always best to implement both VMHA & VMDRS

Failover capacity: When you enable cluster, two important configurations you need to do and they are again dependant upon client’s requirement.

  1. Number of host allowed failures allowed

    Maximum is 04 and Minimum is 01. This configuration help HA to determine if there are enough resources to power on VM in the cluster. But it is we who decided how much redundant capacity to be made available.

  2. Admission Control
    1. Do not power ON VM if they violate availability constraints (Selected as default option)
    2. Allow virtual machines to be powered on if they violate availability constraints

Depending upon adminission control option you select, VM will be either powered ON or NOT. These values help VMHA to balance and calculated enough resource across hosts in case there is any host failures. Current failover capacity under Cluster’s summary tab informs how many hosts are available at that time to hold the VM’s

We only need to provide number of host, rest like resources required to power on VM’s across these host or only 1 host is alive, decision like this is taken by VMHA. If resources are not enough VMHA wouldn’t all VM’s to be powered ON(default option). You can force VMHA to start VM’s(when you like the constraints to be voilated), in this case Cluster will show RED sign, which means failover might not be guaranteed. It is not recommended that you work with red clusters. Also if you have 3 hosts and 2 fails cluster will turn RED.

So when you enable VMHA, you should design in such a way that hosts in ESX will be able to handle additional VM’s without any over utilization of resource.

For example: Two ESX Host having equal capacity handling 50 VM’s each. We should design in way that each Host should be able to handle 100 VM’s.


Posted in

Posted by on March 5, 2007

There are two things when you think of backup of virtual machines

  • Application backup which is called File Level Backup
  • Entire VM backup Image Level Backup, ( which is quite easy, cause you just need to back VMDK)

File Level Backup: It is recommended that you put all your data in Non-System Disk, it brings it’s own advantages.

Backup Proxy Server is required for carrying out this task, this has been implemented especially to remove backup overheads from ESX/VM’s. This would be Windows 2003 server, with Backup software installed(for example netbackup) which has VCB plugin to carry out the task.

COMPONENTS involved in VCB back process are:

  • Hostd: On ESX Server and interacts with Virtual center
  • VM to be backup:
  • Backup Proxy server with 3rd party software installed on it.
  • VCB Framework which consists of
    • vcbMounter
    • vLUN driver
    • Integration module
      • Pre & Post-backup scripts which ties with
    • Backup application (for example Netbackup)

VCB WORKFLOW:

  • Backup application starts backup job as per pre-schedule time
  • Pre-backup script is intiated by backup software
    • Quiesces NTFS/FAT (only in case of MS Guest OS),this ensure no write operations are pending
    • Puts VM in snapshot mode
    • Snapshot is taken and put’s VM into normal opertion
    • Backup software mounts this Snapshot for File Level Backup, and selected files are copied. (Done by Backup client)
    • For Image level back, entire disk is export to Backup proxy server.(Done by backup client)
  • Post-backup script is called
    • which unmounts VM snapshot from backup proxy
    • Takes VM out of snapshot mode, commits any changes made to the disk during the snapshot mode.

Restoring backups done using VCB approach

Restoring file/Images taken via backup is not straight forward. There are three approaches for this

  • Self-Service restore : Backup agent Installed on each and every VM
  • Per-group restore : Select VM’s which will do restore work (i.e. install backup agent only these VM’s) and then get someone to restore files of those specific VM’s
  • Centralized restore: Backup agent is installed only on Backup Proxy and restore file/Image on backup proxy. After you can uses windows share to copy data over the location

These approachs differs from each other at one level i.e. present of backup agents. Backup agents here are only doing restore work.

For Image level backup you can use VCBMounter to backup entire virtual machine in the service console. VCBMounter quiesce the snapshot of the VM and export the setfiles which can be later on used to restore using VCBRestore. This can be done only from Service Console.For file level back you have to use third party backup software.

Posted in 

Posted by on February 27, 2007

VMKernel manages all memory, except the memory that is allocated to Service console. VM will only power on when Server is sure to allocate that VM’s it’s reservations. This is calculated by Server by checking how much unreserved resources are available and if that meets the reservation of the VM.

Let’s learn how to create resource pools.Resource pool can be created on individual hosts, only if hosts are not clustered. In order to create resource pool, you need to have following information in hand.

  1. Name: Name of the resource pool
  2. Shares: Number of shares to be allocated to every VM
  3. Reservation: Minimum resources guranteed to VM’s
  4. Expandable reservation: There are two options YES/NO, if say YES, if reservation of existing resource pools are not available they can be used from Parent resource pool, If select NO, then host won;t be able to power ON the VM.
  5. Limit: Maximum resources any VM, under this resource pool would get.

Similiar option you would get for memory configuration. Once this step is completed you might get yellow triangle, which suggest something is incorrect.

Now resource pool is created, let’s play around with it.

Select resource pool(left hand-side), select on summary tab (right-side), you see below mentioned screen


I’ve underline things which could be of worth observation when you see them in Virtual center.

Now select resource allocation, resource allocation gives what reservation have been used, what is available, In order understand this clearly, let take look at picture below


You can see currently there are no reservation defined in this resource pool, but you still see CPU/Memory reservation used,

because VM-Marketing has been allocated reservation which is consumed from total reservation available

Other important information you get from here is the unreserved status, this unreserved status helps you in allocating resources in future. You also see resources are set to unlimited field, there is custom shares defined for particular VM.

Of course it is true, you can certainly change values under resource pools by editing it after you create resource pools


Lets discuss another important topic, How to add VM to existing Resource pool or move vm to another resource pool. You can vm to existing pools in two ways

  • When you create VM, you can assign VM to any specific resource pool
  • You can also drag and drop VM to any resource pool even after it is created

NB: you don;t need to power off VM in order to just move it to different resource pool.

When you move drag & drop VM to resource pool, its Memory/CPU/Shares/Limit don’t change, this change is reflected only when the VM is powered ON, in power off state resource pool’s resources are not affected by it or not being allocated to this new VM. Though you will observe in resource allocation tab Reservations for both CPU/Memory will reflect the changes in value. Also a point to be noted if Resource pool is not in a position to allocate the reservation for this VM, it generate error and move will fail.

Posted in Virtual Centre | Leave a Comment »

Virtual Center for Teaching & Learning

Posted by vmwarevirtualmachine on December 20, 2008


virtual Center for Teaching & Learning

Terra’s virtual Center for Teaching and Learning (vCTL) is dedicated to investing in its faculty and to encourage collaboration within and across the disciplines.  The vCTL will provide programs and resources that will encourage faculty to deepen their understanding of the learning process, to share information and ideas leading to instructional innovation and improved learning, and to adopt approaches that focus on what students do to learn, not just what faculty do to teach.

The virtual Center for Teaching and Learning encompasses six main areas.  Each page below contains more information and resources:

Distance Learning


Faculty Self Assessment FormDistance Learning

Faculty Enrichment


Publications & Resources

Faculty Distance Learning (FDL)

Technology Help

Instructional Design

Forms Faculty May Use

Posted in Virtual Centre | Leave a Comment »

Publications of Virtual Center

Posted by vmwarevirtualmachine on December 20, 2008

Top Right Corner

Publications

Journal of Interactive Online Learning


The Journal of Interactive Online Learning is an online publication of the Virtual Center for Online Learning Research, and an effort of faculty members from The University of Alabama, The University of Idaho, Miami University (Ohio), and other VCOLR partner institutions.

This journal of theory, research, and practice in interactive online learning serving all disciplines aims to:

  • Provide a forum for the dissemination of research on interactive online education
  • Disseminate ideas that enhance the practical aspects of interactive online education
  • Further knowledge and understanding of emerging innovations in online education
  • Foster debate about the use and application of online education

VCOLR Annotated Bibliography: Results of Research on Online Instruction

This annotated bibliography represents a significant and ongoing effort to provide a centralized and comprehensive resource for reviewing the research literature relating to interactive online pedagogy.

Conferences and Events

2002 National Conference on Online Interactive Learning:
Best Practice in Using Online Learning for the Professional Education of Teachers & College Faculty

Posted in 1, Virtual Centre | Leave a Comment »

Mission of Virtual Machine

Posted by vmwarevirtualmachine on December 20, 2008

VCOLR Mission

It is the mission of VCOLR to construct, study, and disseminate research for the development and evaluation of online learning environments.
VCOLR is committed to encouraging the best teaching, learning, and technology practices as identified by research to enhance and deliver instruction. Educators, scientists, engineers and software developers are participating in this consortium to develop research-based strategies for more effective teaching and learning through online pedagogy and design.

VCOLR is committed to addressing the following specific recommendations included in the Web-Based Education Commission Report:

  • Provide continuous and relevant training and support for educators and administrators at all levels. Professional development-for preK-12 teachers, higher education faculty, and school administrators-is the critical ingredient for effective use of technology in the classroom. VCOLR is developing certification program recommendations for faculty who deliver online education that focuses on best practice, research, and current learning theory.
  • Build a research framework of how people learn in the Internet age. VCOLR partners are designing a research program built on a deeper understanding of how people learn, how new tools support and assess learning gains, what kinds of organizational structures support these gains, and what is needed to keep the field of learning moving forward.
  • Public and private sectors joining forces in developing high quality content and Interactive Learning Environments. VCOLR is collaborating with faculty from universities, designers from industry, and government agencies to develop new Online Learning Environments Technologies to improve teaching and learning in all areas of education.
Bottom Left Corner

Posted in Virtual Centre | Leave a Comment »

About VCOLR virtual center

Posted by vmwarevirtualmachine on December 20, 2008

About VCOLR

The Virtual Center for Online Learning Research (VCOLR) is a consortium of partners focusing on the research and development of best practices in online education, particularly higher education. VCOLR is most directly concerned with the delivery of improvement of online education coursework over the Internet, and determining which practices may be involved in increasing the effectiveness of online learning.

Initially funded with a congressional grant under the name National Center for Online Learning Research (NCOLR), the center was jointly housed at the University of Idaho and the University of Alabama. The Journal of Interactive Online Learning (JIOL) was launched in 2002 and has since attracted contributions from a growing number of international scholars. In 2006, NCOLR was renamed VCOLR in order reflect the growing participation from the national and international community.

This website serves as a portal to the Journal of Interactive Online Learning and the work of VCOLR partners. This site will highlight the work of colleagues from a growing number of institutions who are pioneering the development of new online teaching and learning practices based on learning theories that go beyond direct instruction and support highly interactive learning environments.

VCOLR Partners

Partners involved in the development of VCOLR include faculty and staff from:

  • The University of Alabama
  • The University of Idaho
  • Miami University (Ohio)
  • Northern Michigan University
  • University of Northern Iowa
  • Illinois State University
  • Southern Connecticut State University
  • the NASA Opportunities for Visionary Academics (NOVA) University Network.

Posted in Virtual Centre | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.