Saturday, September 27, 2008

Renting or Owning a House...Hmm.

Found this really good article... on yahoo. via digg i believe.

Taken from : http://realestate.yahoo.com/promo/renting-makes-more-financial-sense-than-homeownership.html;_ylc=X3oDMTFta3Jqcjk3BF9TAzI3MTYxNDkEX3MDOTc2MjA0NjUEc2VjA2ZwLXRvZGF5BHNsawNyZW50aW5nLWJldHRlcg--

Renting Makes More Financial Sense Than Homeownership

By Jack Hough

Sep 26th, 2008

ARTICLE TOOLS:

I have something un-American to confess: I rent an apartment, despite having enough money to buy a house. I plan to keep renting for as long as I can. I'm not just holding out for better prices. Renting will make me richer.

I normally write about stocks for SmartMoney.com, but the boss asked me to explain to readers my reason for renting. Here goes: Businesses are great investments while houses are poor ones, so I'd rather rent the latter and own the former.

Stocks vs. Houses: Returns

Shares of businesses return 7% a year over long time periods. I'm subtracting for inflation, gradual price increases for everything from a can of beer to an ear exam. (After-inflation or "real" returns are the only ones that matter. The point of increasing wealth is to increase buying power, not numbers on an account statement.) Shares have been remarkably consistent over the past two centuries in their 7% real returns. In Jeremy Siegel's book, "Stocks for the Long Term," he finds that real returns averaged 7.0% over nearly seven decades ending 1870, then 6.6% through 1925 and then 6.9% through 2004.

The average real return for houses over long time periods might surprise you. It's zero.

Shares return 7% a year after inflation because that's how fast companies tend to increase their profits. Houses have their own version of profits: rents. Tenant-occupied houses generate actual rents while owner-occupied houses generate ones that are implied but no less real: the rents their owners don't have to pay each year. House prices and rents have been closely linked throughout history, with both increasing at the rate of inflation, or about 3% a year since 1900. A house, after all, is an ordinary good. It can't think up ways to drive profits like a company's managers can. Absent artificial boosts to demand, house prices will increase at the rate of inflation over long time periods for a real return of zero.

Robert Shiller, a Yale economist and author of "Irrational Exuberance," which predicted the stock price collapse in 2000, has recently turned his eye to house prices. Between 1890 and 2004 he finds that real house returns would've been zero if not for two brief periods: one immediately following World War II and another since about 2000. (More on them in a moment.) Even if we include these periods houses returned just 0.4% a year, he says.

The average pundit, planner, lender or broker making the case for ownership doesn't look at returns since 1890. Sometimes they reduce the matter to maxims about "building equity" and "paying yourself" instead of "throwing money down the drain." If they do look at returns they focus on recent ones. Those tell a different story.

Between World War II and 2000 house prices beat inflation by about two percentage points a year. (Stocks during that time beat inflation by their usual seven percentage points a year.) Since 2000 houses have outpaced inflation by six percentage points a year. (Stocks have merely matched inflation.)

Stocks vs. Houses: Valuations

But while stock returns have come from increased earnings, house returns have come from ballooning valuations, not increased rents. The ratio of share prices to company earnings (the price/earnings ratio) has remained relatively steady. It's about 16 today, close to both its 1940 value of 17 and to its 130-year average of about 15. Not so, the ratio of house prices to rents. In 1940 the median single-family house price was $2,938, according to the U.S. Census, while the median rent was $27 a month, including utilities. That means the ratio of prices to annual rents was 9. By 2000 the ratio had swelled to 17. In 2005 it hit 20. We can adjust for the size of dwellings, but it doesn't make much difference. The ratio of single-family house prices to three-bedroom apartments is 19. In SmartMoney.com's home town of Manhattan, where more detailed data is available, the ratio of condo prices per square foot to apartment rents per square foot is 22.

Two main events have caused house valuations to inflate since World War II. First, the government subsidized housing by relaxing borrowing standards. Prior to the creation of the Federal Housing Authority in 1934 house buyers who borrowed typically put up 40% of the purchase price in cash for a five- to 15-year loan. By insuring mortgages, the FHA permitted terms of up to 20 years and down payments of just 20%. It later expanded the repayment periods to 30 years and reduced down payments to 5%. Today down payments for FHA loans are as low as 3%. Aggressive lenders offer loans with no down payments or even negative ones so that house buyers can borrow the full purchase price plus closing costs. Some require little documentation of income, assets or ability to pay.

That means more Americans can win loans for homes, and they can win them for far more expensive (larger) homes than their incomes previously allowed. Two-thirds of American households own homes today, up from 44% in 1940, even though the percentage of Americans living alone has tripled during that time. The ratio of house values to incomes has risen 260% in just under four decades.

A second event helped boost house demand in recent years. Share prices plunged in 2000. The Federal Reserve, fearing that the decline in stock wealth would cause consumers to stop spending, reduced the federal-funds rate, the core interest rate that determines the cost of everything from credit cards to mortgages, to 1% by the summer of 2003 from 6.5% at the start of 2001. Since most of the cost of financing a house over 30 years is interest, monthly house payments shrank and demand for houses soared. In some markets a string of big yearly increases in house prices led to panic buying.

Stocks vs. Houses: Conclusion

For house returns over the next 20 years to match those over the past 20, the government and private lenders would have to "up the ante" by relaxing borrowing standards further. Given the recent attention paid to swelling foreclosures, that seems unlikely. I suspect real returns will turn negative over most of the next two decades, but that house prices won't necessarily dip. Since 1963 they've done so in only two years, vs. 18 for stocks. That's because homeowners mostly just stick it out rather than sell during soft markets. But if house prices remain flat, they produce negative real returns due to the creep of inflation. According to calculations made by The Economist in the summer of 2005, house prices would have to stay flat for 12 years with annual inflation at 2.5% for the ratio of prices to rents to fall from its 2005 perch to merely its 1975 to 2000 average.

So to sum up why I rent: Shares right now cost 16 times earnings and over long time periods return 7% a year after inflation. Houses right now cost 19 times their "earnings" and over long time periods return zero after inflation. And they look likely to return less than that for a while.

On the following page I've tried to anticipate and address questions and objections.


Questions/Objections

"You can't live in your stocks" or "Renters throw money down the drain."

Rent is the cost of owning shares with money you would otherwise spend on a house. Houses have ownership costs, too: taxes, insurance and maintenance. Rent costs about 5% of house prices each year if we apply the price/rent ratio of 19. House incidentals often cost around 2%. If you have $300,000 and a choice between spending it on a house or shares, you'll pay $6,000 a year in incidentals if you buy the house or about $15,000 a year ($1,250 a month) in rent if you buy the shares. But the shares will return $21,000 a year after inflation while the house will return zero. (My numbers work out even better than these. I pay a smidgen less than $1,250 a month for rent, while house prices in my neighborhood are far higher than $300,000.)

Note that houses and shares have transaction costs, too. Home buyers pay around 1% in closing costs when they buy and 6% in broker commissions when they sell. Share buyers pay $10 trading commissions, which are negligible for buy-and-hold investors.

"House buyers get tax breaks."

So do share buyers, but both are a bad deal. The interest on loans for houses (mortgages) and shares (margin balances) is tax-deductible. But the rates are almost always too high. A big house loan presently costs 6.1% interest while a big stock loan costs about 9%. For the returns, we can forget about inflation because it helps debtors while hurting investors, making it a wash for those who borrow to invest. Still, nominal returns of 3% for houses and 10% for stocks aren't high enough to justify those rates. The tax breaks aren't really breaks at all. Moreover, a majority of homeowners don't claim them. Their incomes are low enough to make the standard deduction a better deal.

"What about the pride of home ownership?"

It's not for me. I define ownership as no longer having to pay for something and being able to do as I please with it. I own my coffee maker. House owners must pay taxes each year even when their mortgage payments are done. In certain markets they can't even make changes to the houses they've paid for without seeking the approval of others. Personally, I feel the pride of ownership for shares of businesses, and I'm proud to occupy a nice place while leaving the burden of poor returns and maintenance to someone else.

"You seem to knock government housing subsidies, but they've helped many Americans afford homes."

My inner socialist agrees. My other inner socialist worries that the government has effectively raised prices to the point where the middle class can't afford houses, or buries itself in debt to own them. My inner capitalist is too busy watching shares to care about house prices. My inner conspiracy theorist notes that while politicians tout the social benefits of homeownership none mentions its tax benefits to the government. I pay no taxes on the overall value of my stock portfolio, just on my cashed-in gains and collected dividends. But Americans pay taxes on the full $11 trillion worth of housing they own plus the $10 trillion worth of it they're still paying off.

"Houses are bigger than apartments."

True, and both can be rented. A third of renters live in single-family houses. I prefer an apartment for now. I like not having to fill it with stuff. I like using a fifth of the energy of the average American. I like being 20 minutes from work and (this is unique to New Yorkers) not having owned a car in 10 years. I like not stressing over whether to get the marble countertops or the imported tiles or the 52-inch flat screen. I'm not especially frugal; I spend a teacher's salary each year on restaurants and travel. But I guess I'm too busy or lazy right now to bother with a big house and its innards.

"Are you saying I should sell my big house and rent an apartment instead?"

No, unless you have more space than you need and moving wouldn't be disruptive to your family, and you want to cash in on recent housing gains, make more money over the next couple of decades, use less energy while simplifying your life, and you don't mind seeming odd to friends. In which case, yes. But really, I'm not trying to win anyone over. Strong demand for houses keeps my rent cheap.

"Renting is for poor people."

True. But it's for rich people, too. The average renter makes about $34,000 a year, but while the percentage of renters declines after incomes exceed $20,000 and rents exceed $600 a month, it jumps again once incomes top $150,000 and rents top $1,200 a month. In other words, poor people rent modest apartments for lack of choice. Middle-income people buy houses. High-income people, presumably with a dose of financial savvy, often rent nice apartments instead of buying.

"You say houses return zero. But I've made a fortune on my house in recent years."

I'm referring to inflation-adjusted returns over long time periods, absent external boosts to demand. You're referring to gross returns over a short time period that combined lax borrowing standards and ultra-low interest rates. Over the next 20 years I believe houses will return zero or slightly less after inflation and that stocks will return 7%.

"So you're never going to buy a house? What about raising a family?"

I might buy one eventually, but the longer I can put it off the more I'll get out of the shares I'll have to sell to afford it. I'm 34 now with a fiancée and a fish. I'm going to try to rent for at least 10 more years. If I have kids I'll probably move into a big apartment or a house once they reach running-around age. I'll rent, most likely.


Friday, September 26, 2008

10 Books that will Substitute A Computer Science Degree

Found this list of books online, copied it down because I thought it was interesting. Now I'll share it with you. I do not have a CS Degree...and I do not want one - My degree is in History. However, this might be of interest to those who don't have one and DO want one...Or those who have one they're not happy with. (Hence, why I don't have one.)


1. Godel Escher and Bach by Douglas Hofstadter
Godel, Escher and Bach, written by Douglas Hofstadter, while the title would suggest it is discussion of a mathematician, an artist, and a composer, is a complex examination of how human beings develop perception and meaning. More specifically, the book explores, through a series of dialogues and narrations, how symbols, thought and language are all intertwined and how reality is essentially a composition of overlapping meanings and perceptions. The book challenges the reader to observe the system of symbolic meanings around him or her objectively.
2. The Art of Programming by Donald Knuth
The Art of Programming, by Donald Knuth, is a comprehensive, multi-volume work discussing various programming algorithms and their analysis. The work was voted by American Scientist as one of the twelve best scientific monographs of the twentieth century. The author famously offered a reward of two dollars and fifty cents for anyone who found and reported an error in the text. The work features exercises of multiple difficulty levels, from basic warm up exercises to ongoing research problems, allowing the reader to work up his skill and familiarity with the material.
3. The Elements of Programming Style by Brian W. Kernighan and P. J. Plauger
The Elements of Programming Style, by Brian W. Kernighan and P. J. Plauger, is an influential book on the study of computer programming styles and languages. It endorses the strategy that computer programs should be written not only to satisfy the compiler, but also keep the human readers in mind. The book utilizes examples taken from actual, published programs. The book’s recommendations are made in the context of the examples which are realistic rather than an academic vacuum.
4. Theory of Parsing, Translation and Compiling, by Alfred V. Aho, and Jeffrey D. Ullman
The book, Theory of Parsing, Translation and Compiling, by Alfred V. Aho, and Jeffrey D. Ullman, is intended for a senior or graduate course in compiling theory. It is a theoretical treatment of a practical computer science subject. Since computer science is an ever changing area of study, this book emphasizes ideas, rather than specific application details. The algorithms and concepts presented in the book should survive to new generations of computer technology, programs and systems. Numerous examples are given, with specific context, rather than on the large complicated contexts normally found in implementations, even in cases where the theoretical ideas are difficult to understand in isolation.
5. The Computer and the Brain, by John von Neumann
The Computer and the Brain, by John von Neumann, is theoretical work which examines mathematics, logic’s, and statistics as the basic tools of information. The book explores how these subjects make up the entirety of the planning, usage and coding of computers. The author explores how mathematics and logic are related to the functions of the organic human brain in the same way they are applied to the artificial automated computer processor.
6. A Programming Language, by Kenneth E. Iverson
A Programming Language, by Kenneth E. Iverson, explores how programming language is a signifier for a whole host of mathematical algorithms and procedures. The book focuses on specific areas of application which serve as universal examples and are chosen to illustrate particular facets of the effort to design explicit and concise programming languages.
7. Writing Efficient Programs, by Jon Louis Bentley
Writing Efficient Programs, by Jon Louis Bentley, illustrates to the reader how the
primary task of a software designer is the development of programs that are not only useful, but easy and inexpensive to maintain. Moreover, the book explores how software must have specific application as well as versatility to me modified for unforeseen uses. Lastly, efficient programs must be efficient to write as the cost of writing will determine their competitiveness in the software market.
8. Computation: Finite and Infinite Machines, by Marvin L. Minsky
Computation: Finite and Infinite Machines, by Marvin L. Minsky, explores how the
introduction of the computer in the last half century has affected the fabric of human society. The book essays to describe the application and limitation of computer technology as it relates to human progress and potential.
9. Operating System Principles, by Per Brinch Hansen
Operating System Principles, by Per Brinch Hansen, gives computer science and professional programmers a general explanation and analysis of operating systems. The book explains how an OS works to allow sharing of information easy and efficient.
10. Artificial Intelligence, by Elaine Rich
Artificial Intelligence, by Elaine Rich, gives programmers an introduction to the techniques and problems associated with A.I. The book features references throughout that allow the reader to pursue the topics deeper than would be possible within the defined scope and space limitations of the book.
If You Like What You Read Please Take The Time To Share It!

Tuesday, September 9, 2008

Samba / CIFS mounting in Xubuntu Linux with OS X Shares

Add this to /etc/fstab
//saturn/sharename /home/username/mounted.smbfsdir smbfs iocharset=utf8,credentials=/home/username/.smbcredentials,uid=1000 0 0

cat ~username/.smbcredentials
username=user
password=pass

perms on .smbcredentials
-rw------- 1 root group 37 2008-09-09 09:12 .smbcredentials

-- On the Samba Server so you can follow symlinks properly in the share dir
follow symlinks = yes
wide symlinks = yes
unix extensions = no

Tuesday, August 12, 2008

Oh No! Vmware ESXi bug.

Interesting details on the bug affecting vmware. For me, specifically ESXi - I just killed ntpd for now.

--

As of tomorrow morning, VM's running on all hosts with ESX 3.5U2 in enterprise configurations will not power on. VMotion/HA/DRS will probably also not work.

Boom.

Apparently, there is some bug in the vmware license management code. VMware is scrambling to figure out what happened and put out a patch.

Running VM's will not be immediately impacted.

There is a major discussion going on in the vmware communities about the issue: http://communities.vmware.com/thread/162377?tstart=0

OK, while we're all remaining calm....just imagine the implications that bugs like this can occur and get past QA testing....5 years down the road, nearly all server apps worldwide running in VM's if you believe a lot of forecasts ......some country decides to initiate cyberwarfare and manages to get a backdoor into whatever is the prevailing hypervisor of the day.....boom. All your VM's are belong to us.

I honestly think a lot of the hype from those who want to build a vm security industry is crap, but god protect us if the baseline code for critical hypervisors like ESX isn't kept secure and regularly audited.

I'd love to find out what happened here.

What regression testing on new releases does vmware do to check for date based bugs? I'd think they'd at least check for simple things like changing the date to 1 year or 1 month in the future.

UPDATE: Frank Wegner has posted the following suggestions:

You can see the latest status here: http://kb.vmware.com/kb/1006716 Please check back often, because it will notify you when this issue has been fixed. Until then the best workaround I can think of is:

* Do nothing
* Turn DRS off
* Avoid VMotion
* Avoid to power off VM's

I'd council against turning DRS off as that actually deletes resource pool settings....instead, set sensitivity to 5 which should effectively disable it w/ minimal impact.

UPDATE 2: VMware Website appears to be having trouble keeping up with people requesting updates.

UPDATE 3: VMware has stated they will have fixes available in 36hrs at the earliest.

UPDATE 4: Anand Mewalal comments:

We used the following workaround to power on the VM's.
Find the host where a VM is located
run ' vmware-cmd -l ' to list the vms.
issue the commands:
service ntpd stop
date -s 08/01/2008
vmware-cmd /vmfs/volumes/vm path/vmname.vmx start
service ntpd start

UPDATE 5: Apparently, there are no easily seen warnings in logs/etc or VC prior to hitting the bug. VC will continue to show the hosts as licensed and no errors will appear in vmkernel log file until you try to start up a new vm, reboot a vm, or reboot the host.

UPDATE 6: Welcome Slashdot readers! I've temporarily disabled comments to allow the server vm to handle the load. Apparently Movable Type 4.1 executes a seperate perl cgi script to handle comments on each page load. Load times might have been slow for the last 45 minutes, but should be OK now.

UPDATE 7: I made some minor corrections to this entry that others have requested.

SSH enable in VMWARE ESXi

ESXi 3.5 does ship with the ability to run SSH, but this is disabled by default (and is not supported).

1) At the console of the ESXi host, press ALT-F1 to access the console window.
2) Enter unsupported in the console and then press Enter. You will not see the text you type in.
3) If you typed in unsupported correctly, you will see the Tech Support Mode warning and a password prompt. Enter the password for the root login.
4) You should then see the prompt of ~ #. Edit the file inetd.conf (enter the command vi /etc/inetd.conf).
5) Find the line that begins with #ssh and remove the #. Then save the file. If you're new to using vi, then move the cursor down to #ssh line and then press the Insert key. Move the cursor over one space and then hit backspace to delete the #. Then press ESC and type in :wq to save the file and exit vi. If you make a mistake, you can press the ESC key and then type it :q! to quit vi without saving the file.
6) Once you've closed the vi editor, run the command /sbin/services.sh restart to restart the management services. You'll now be able to connect to the ESXi host with a SSH client.

ESXi Adventures -

From: http://traviskensil.wordpress.com/2008/08/11/esxi-adventures/

ESXi Adventures

August 11, 2008 · No Comments

This post will focus on some of the positives and negatives and some of my experiences thus far that I’ve had with ESXi. Part of this post will also outline some of my plans for backup/restore with the hopes of generating other’s opinions of the viability of these options, since very few exist from VMware currently.

COMPATIBILITY: Personally, I’ve always gone against the “norm” and run stuff that shouldn’t be run on things…I guess I like to tempt the odds. Same thing with ESXi. So far I’ve run ESXi on a Dell Poweredge 1900 and my Intel-motherboard based workstation with zero issues. My theory goes that most modern day servers/workstations should be compatible with it; or at least should have some way of making it work. Will soon be testing it on a Dell 2600 as well. Also tested on a Gateway workstation (E series) and confirmed IT DOESN’T work. The PERC controllers seem to be recognized and play well with ESXi. I know I’ve seen that HP and some Sun stuff also works well…we are 100% Dell for servers so thats the limit of my testing ability. I am sure as time rolls on that ESXi will mature in its compatibility ability.

INSTALL: Install is a piece of cake. Basically goto VMware’s site, give them your life history, then download the 200MB .ISO file and receive your license key and your good to go. Install should find your RAID/SATA controller right off the bat and present it as an option….if it doesn’t…..better switch hardware. I have also been investigating USB-boot…some guy on the Vmware communities’ seems to have got it figured out.

http://communities.vmware.com/blogs/Knorrhane/2008/01/21/installing-esx-3i-on-usb-stick

For my platform I just installed to the local disks; will be migrating to the USB drive soon!

BACKUP: I hate to complain about FREE but come on VMware….at least give us something to backup with. Maybe we don’t need enterprise features but a basic tool would be nice. Now, apparently according to the documentation there is the CLI-based way but there still should be some kind of GUI to it all…especially when you consider how nice the Infrastructure client is. This is one area where ESXi DOES NOT shine at all….in fact its a large disappointment! Later this year some 3rd party products are suppost to begin supporting ESXi backup but most can’t wait 3-6 months while thats figured out. If Microsoft Hypervisor has this it definitely could turn the tables for our support of VMware. I have however, devised a simple way to provide a basic level of backup. It is as follows….

  • ESX CONFIG/HOST

1) Create image of USB drive contents (using Winimage http://www.winimage.com/winimage.htm or other similiar tools). This should in theory preserve the entire ESXi config, directory/drive structure required to get the system going. The first part is to take the image and save it somewhere.

2) The second part is to take the image of USB1 and copy it to USB2 which should allow for a backup USB stick should the primary fail or become corrupt.

  • Virtual Machines

1) After successfully creating/importing the virtual machine, power it done properly. Go into the Datastore Browser and manually download the virtual machine files. Store in a safe place.

2) Obviously take the usual backups from within the virtual machine, use a backup proxy or however you perform “normal” backups.

That is my backup plan for ESXi currently. I have tested parts of it and found success…others need work. Ideally this would allow you to restore the ESXi config, restore your virtual machine then merge the most current data and be back up and running in a short period of time. I have yet to test this process. Please….let me know your thoughts as well….anyone got a better solution?

VMware Infrastructure Client

This is the one place ESXi shines and shines bright! The interface is clean and very easy. Tabs give access to everything one would need to know. I LOVE the networking visualization it shows; groups physical cards to virtual switches/groups…very nice. The performance and reporting per virtual machine or per server is sweet! My only gripe is that I experienced some bad delay when switching virtual machine consoles. I can’t completely rule out the workstation I was on but it still seemed pretty noticable. Also…be aware that ESXi itself doesn’t have any kind of network/IP checking in it. (Realized too late in the process that two machines had conflicting IPs…the ESXi console made no mention of that) To install the client just simply goto the IP address of the box (listed on the physical server’s console)…a splash page will load with download links to the software.

Thats pretty much it for now. Also, the VMware converter does a nice job of bringing in existing VMs into ESXi. My only complaint is the lack of efficient backup in the product. I realize VMware needs to make money, but I think a basic feature like backup, even in a simple form, should be included. Just having a simple export config and VM option would be fine. Most companies use 3rd party software for the majority of their backup needs anyway. I do feel this is one area that will limit ESXi’s deployment. Microsoft Hypervisor includes stuff like LIVE backup in its product without additional licensing (http://www.microsoft.com/windowsserver2008/en/us/virtualization-consolidation.aspx or so its site claims) which has VMware at an extreme disadvantage. The Infrastructure client is nice, but without backup included it is pretty useless I think.

So theres my results starting out. I failed to mention…my test environment is a Dell Poweredge 1900….running Domain Controller, Exchange 2003, Ubuntu Web/DNS services, File/Print servers and a test WinXP. So far so good.

With that said….anyone else using ESXi in testing or production use? What are your backup thoughts? Please share!

Monday, August 11, 2008

How does VMware ESXi Server compare to ESX Server?

From: http://www.virtualizationadmin.com/articles-tutorials/vmware-esx-articles/general/vmware-esxi-server-compare-esx-server.html?printversion

How does VMware ESXi Server compare to ESX Server?

David Davis photo In this article we explain how VMware ESXi (the “thin” version) and ESX Server (the “full version”) compare to each other and why it is important to know the differences, as a VMware Virtualization Admin.

Introduction

Most of you are familiar with VMware ESX Server as it has been around for so many years. ESX Server offers the “service console” built in and it is a rather large installation (in comparison to ESXi). The latest version of ESXi is “thinner” and lacks the service console. You should note that ESXi is NOT a replacement for the traditional ESX Server but, instead, an alternate version available. In my opinion, neither of these versions is “better” than another. Instead, these two versions are just “different” from one another. Let us learn how these two differ and help you determine which one is best for you.

What are the 10 major differences between VMware ESX Server and ESXi Server?

1. VMware ESXi Server has no service console

The traditional (full) ESX Server has a special built-in virtual machine called the “service console”. This service console is really a modified version of Red Hat Enterprise Linux that is installed and running in every ESX Server by default. The service console has special access to the VMware-proprietary VMFS file system. 3rd party applications can be installed in the service console and Linux-based utilities can be run in the service console. Additionally, VMware includes a number of ESX-related tools in the service console, most of which start with “esxcfg-“ and they are run by accessing the service console with SSH.

As VMware ESXi Server has no service console, there is no SSH access to the server and there are no 3rd party applications that can be installed on the server. However, there are also benefits to NOT having these features (discussed more below).

2. VMware ESXi Server uses RCLI instead of service console utilities

As ESXi doesn’t have any CLI with VMware-related or Linux utilities, VMware needed to provide a CLI interface to ESXi. What VMware came up with is the Remote Command line Interface (RCLI). This is an application that you typically install as a VM and it is used to perform scheduled or ad hock scripting on the VMware Infrastructure. The ESXi RCLI is its own command line where ESX server service console scripting would be made up of mostly Linux utilities.

For more information on how to manage ESXi, take a look at Managing VMware ESXi.

3. VMware ESXi Server is extremely thin = fast installation + faster boot

Because the service console has been removed from ESXi, the footprint in memory has been reduced to just 32MB. In my opinion, it is truly amazing that you can run a hypervisor, allowing you to run virtual machines on your server, with just 32MB of RAM overhead. In comparison, the full ESX Server on disk footprint is about 2GB.

Because the hypervisor is so small, the installation happens in about 10 minutes (or so) and the server boots up in 1-2 minutes. This is quite different from the full ESX server installation and boot, both of which are longer.

4. VMware ESXi Server can be purchased as an embedded hypervisor on hardware

While ESXi is so small that it can be easily installed and can even be booted from a USB Flash disk, what is truly unique about ESXi is that it is being sold by hardware vendors as a built-in hypervisor. That means that, say, you buy a Dell server, ESXi can be built inside the server (embedded) on a flash chip, on the motherboard. There is no installation of ESXi on disk.

5. VMware ESXi Server’s service console (firewall) is configured differently

As there is no service console to protect with the ESX Server security profile (software firewall), the security profile configuration in ESXi is very simplistic. The ESXi security profile configuration consists of a couple of services that you can either enable or not enable with inbound access. Here is a comparison between the two:


Figure 1: ESXi Security Profile – only 2 services


Figure 2: VMware ESX Server (full) Security Profile

For more information on how to configure VMware ESX Server Security Profiles – see my VirtualizationAdmin.com article How to schedule tasks with the VMware Infrastructure Client and ESX Server.

6. VMware ESXi Server has a “yellow firmware console”

Instead of the full ESX Server “service console” boot (which looks like a Linux server booting), ESXi has a tiny “Direct Console User Interface (DCUI)”. Unofficially, I like to call this the “yellow firmware console”. In this ESXi console, all that you can configure are some very basic ESXi server options such as the root user password, network settings, and a couple other items. In the graphic below, you can see why I call it “yellow”:


Figure 3:
ESXi yellow firmware console / DCUI

Because this tiny firmware console (did I mention that it’s yellow?) has so few features, the server is virtually “stateless”. A new server can be configured in seconds because there is almost nothing to configure.

7. VMware ESXi Server has server health status built in

With ESXi some hardware monitoring features are built into the hypervisor. With ESX Server, this is not yet built in. Instead, you must install hardware monitoring software in the service console. For more information on ESXi server health status and how to install vendor-specific utilities to provide similar information on ESX Servers, please see my article: Obtaining server health status in VMware ESX and VMware ESXi.


Figure 4:
ESXi Health Status

8. Some networking features are configured through the service console are not available or are experimental

As ESXi is relatively new and as ESX server has the option to install code for advanced ESX Server features, not all features available in the full ESX Server are also available in ESXi. In fact, I have had issues getting VMware High Availability (VMHA) to work in ESXi. VMHA was not officially supported on ESXi until some recent patches came out for ESXi. Still, even after the patches, I had difficulties with ESXi and VMHA.

There are other ESX Server features that are “experimental” on ESXi. For the full list visit: Differences in Supported Networking Features Between ESX Server 3.5 and ESX Server 3i

9. VMware ESXi Server requires fewer patches and less rebooting

Because the full ESX server essentially has a modified Linux system as the service console, there are many patches that have to be deployed to keep it secure. With ESXi, on the contrary, the server has very few patches that need to be applied. Because ESXi has no service console and it is considered more secure and more reliable. Security, Reliability, and Maintainability, are all major factor when considering a hypervisor.

10. You can buy VMware ESXi Server for as little as $495

With the full version of ESX Server, the least expensive purchase option is the Foundation (Starter) kit for about $1,500, while you can purchase ESXi only (with no support) for $495. On the other hand, if you do get the Foundation kit, you not only get the full ESX Server but also ESXi and a number of VMware Infrastructure Suite options. Still, obtaining ESXi for under $500 allows a server to do so much more than it ever could before.

Which version of VMware ESX Server is best for you?

I am not here to sell you on VMware, on ESX Server, or ESXi Server, what I am here to do is to inform you of the drastic differences between these two versions of “ESX Server”. In my opinion, ESX Server (full) must be used if you have 3rd party apps or if you just want to have access to the “Linux-style” service console.

On the other hand, if you are willing to give up those two benefits, with ESXi, you will get an ESXi Server that boots faster, has fewer patches to deploy, and is more reliable. ESXi is also the least expensive option.

I recommend testing both VMware ESX Server and ESXi server. Both are available for a free evaluation download from VMware Inc.

Conclusion

In this article, you learned about VMware ESX Server the differences between ESXi and ESX Server. Additionally, you learned about how to make the right choice for you. Both of these hypervisors from VMware can be evaluated at no cost.

For more information on VMware ESXi and its architecture, take a look at: VMware.com Whitepaper – the Architecture of VMware ESXi.

For information on ESXi’s features, visit: VMware.com ESXi Features.

iSCSI Initiator Support on FreeBSD 7

Thanks to http://www.cyberciti.biz/faq/freebsd-iscsi-initiator-howto/

Q. How do I install and configure iSCSI initiator service under FreeBSD server?

A. FreeBSD 7.x has full support for iSCSI. Older version such as FreeBSD 6.3 requires backport for iSCSI. Following instruction are known to work under FreeBSD 7.0 only.
FreeBSD iscsi_initiator driver

The iscsi_initiator implements the kernel side of the Internet SCSI (iSCSI) network protocol standard, the user land companion is iscontrol and permits access to remote virtual SCSI devices via cam.
Compile driver

Please note that FreeBSD 7.x has this driver compiled by default. You can skip this step if driver exists at /boot/kernel/iscsi_initiator.ko. To compile this driver into the kernel,
# cd /usr/src/sys/i386/conf
# cp GENERIC ISCSIKERNEL
# vi ISCSIKERNEL
Place the following lines in your kernel configuration file:
device iscsi_initiator
Save and close the file. Building a Kernel, type the following commands:
# cd /usr/src
# make buildkernel KERNCONF=ISCSIKERNEL
Install the new kernel:
# make installkernel KERNCONF=ISCSIKERNEL
Now reboot the system:
# reboot
Install iSCSI Initiator driver under FreeBSD

You need FreeBSD kernel driver for the iSCSI protocol. You need to use driver called /boot/kernel/iscsi_initiator.ko. You can load this driver by typing following command as root user:
# kldload -v iscsi_initiator.ko
Output:

Loaded iscsi_initiator.ko, id=6

Alternatively, to load the driver as a module at boot time, place the following line in /boot/loader.conf:
# vi /boot/loader.conf
# Beginning of the iSCSI block added by Vivek
iscsi_initiator_load="YES"
# End of the block added by Vivek
Save and close the file.
FreeBSD iscontrol command to login / negotiator / control for an iSCSI initiator session

Now, you need to use iscontrol command. First, do a discovery session and exit:
# iscontrol -d targetaddress=iSCSI-SERVER-IP-ADDRESS initiatorname=nxl
# iscontrol -v -d targetaddress=192.168.1.100 initiatorname=nxl
Please note down the list of available targetnames/targetadresses. Once you know the target name, edit /etc/iscsi.conf file:
# vi /etc/iscsi.conf
Append config directives as follows:

officeiscsi {
authmethod = CHAP
chapIName = YOUR-ISCSI-USERNAME
chapSecret = YOUR-ISCSI-PASSWORD
initiatorname = nxl
TargetName = iqn.XYZZZZZZZZZZZZZ # whatever "iscontrol -v -d " gives you
TargetAddress = 192.168.1.100:3260,1 # your iscsi server IP
}

Save and close the file.
Where,

* officeiscsi { : Start config for iSCSI.
* authmethod : Set authentication method to chap
* chapIName : Your username
* chapSecret : Your password
* initiatorname : if not specified, defaults to iqn.2005-01.il.ac.huji.cs:
* TargetName : is the name by which the target is known, not to be confused with target address, either obtained via the target administrator, or from a discovery session.
* TargetAddress : is of the form domainname[:port][,portal-group-tag] to quote the RFC: The domainname can be specified as either a DNS host name, a dotted-decimal IPv4 address, or a bracketed IPv6 address as specified in [RFC2732].
* } : End of config

Start an iSCSI session

The following command will read options from /etc/iscsi.conf, use the targetaddress found in the block nicknamed myiscsi, login and negotiate whatever options are specified, and start an iscsi-session.
# iscontrol -c /etc/iscsi.conf -n officeiscsi
Once you run the iscontrol command it should create a new device in /dev directory. To see the device name run dmesg command:
# dmesg
Format iSCSI volume

Now run sysinstall command to format just discovered iSCSI device name at /dev location:
# sysinstall
Select Custom > 3 Partition > Select iSCSI device name such as da1. Once formatted just mount device, enter:
# mkdir /iscsi
# mount /dev/da1s1 /iscsi
You may also need to update /etc/fstab file:
/dev/ad1s1 /iscsi ufs rw 3 3

Saturday, August 9, 2008

get in shape with little or no equipment:

http://lifehacker.com/400053/get-in-shape-with-little-or-no-equipment

Friday, August 8, 2008

ESXi - [Unsupported] Console Access

ESXi - [Unsupported] Console Access

To access the ESXi console in unsupported mode do the following.

1. Open the console of your ESXi host, you should see a screen that look something like the following ( altered to protect the innocent ):


2. Use the key-combo Alt+F1, and you'll bounce to a virutal terminal (vtty1) with some log messages in it. Though you won't get a response to any characters that you type in here type 'unsupported' and then hit enter.


3. Once you access the unsupported mode, you'll be greeted with a friendly reminder that you shouldn't be accessing the console without the help of your friendly neighborhood VMware support engineer. Enter your root password here and you'll have unfettered access to the console. Some of your old friends are still here like esxtop and esxcfg-mpath, and so are some new ones like esxcfg-locker.



Standard warnings apply here. You really shouldn't be messing around in here if you don't know what you're doing.