Archive

Archive for October, 2009

VMware Server 2 Advanced NAT

October 17th, 2009 2 comments

Summery

If you decide to use NAT’d networking for your VMware Server 2.x.x. guest OS you will want to create some port mapping to access the guest with the likes of SSH.  This documents the procedure for creating the needed mapping and uses SSH as an example.  In this document it’s assumed you have VMNet8 configured as your NAT network interface.  If you configured NAT during the installation and configuration of VMware Server 2.x.x and chose the default it will be VMNet8.

Adding a NAT Network Interface

If you did not add a NAT network interface during your VMware Server 2.x.x installation and configuration you may do it now by invoking the following command.

# /usr/bin/vmware-config.pl

Edit nat.conf

Open the file /etc/vmware/vmnet8/nat/nat.conf for editing.  In our example we will add three guest OS’s for SSH access via port mapping.  Most likely there is an example already for SSH under the [incomingtcp] section.  Under this section is where all incoming TCP traffic will be mapped.

Here are the three mappings for SSH access to our three guest OS’s.

# SSH
8889 = 192.168.96.10:22
8890 = 192.168.96.11:22
8891 = 192.168.96.12:22

Restart VMNet 8

Next you have to restart VMNet 8 for the changes to take affect.

# /usr/lib/vmware/net-services.sh restart 8

Try Your New Port Mappings

To gain access, if for example your VMware Server 2.x.x’s IP is 192.168.1.200, you would perform the following for our first guest OS:

# ssh -p 8889 user@192.168.1.200

Be sure your VMware Server’s ports are open in the firewall for, as in our example, 8889, 8890 and 8891 and of course port 22 for all the guests.

It’s important to note that if you run the configuration script for any reason your port mapping may get overwritten by the default nat.conf file.  Your port mappings are backed up to a file similar to this: nat.conf.old.0.

This should take care of SSH access to NAT’s VMware Server 2.x.x guest OS’s.  If you have any comments, we would like to hear from you.

Categories: Vmware Tags:

Changing the INove Theme WordPress Style Sheets

October 13th, 2009 1 comment

After wrestling a bit with the WordPress editor I decided the best way to make style sheet changes to the INove WordPress theme was to modify the themes style sheet and reference my custom style in a div element.

Make changes to the INove theme’s style sheet by going to:  Dashboard>Appearance>Editor and under Styles in the right column double click on “Stylesheet (style.css)”.  I had to add the following custom style to the bottom of style.css for it to get recognized.

.command_line {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
background-color: #000000;
padding-left: 8px;
padding-right: 8px;
padding-top: 10px;
padding-bottom: 2px;
}

Update the changes in the INove style sheet and go back to the WordPress editor to add the div elements.

Then

<div class="command_line">my command line text</div>

does the trick.  Also switching back and forth between Visual and HTML view in the WordPress editor doesn’t appear to disturb the div element.

Categories: Web Administration, WordPress Tags: