Showing posts with label vmware player. Show all posts
Showing posts with label vmware player. Show all posts

Wednesday, August 17, 2011

migrate to VirtualBox from VMWare Server : sadly & happy to

I have been a loyal VMWare server 1.0 user since it became free in 2005. It is used to build various sandbox virtual machines on my Windows XP laptop at work. The guest OS include RHEL, CentOS, Fedora, Solaris 10, Windows server 2008,  Windows server 2003,  Windows XP & Windows Enterprise 7. 

One feature I like a lot is its capability, with an easy-to-use GUI, to modify network settings to choose subnets, DHCP lease, and port forwarding, etc.

After upgrading my home desktop to long-awaited CentOS 6 early this month, I could no longer compile & run VMWare server. Since my home PC runs a mini lab of 3~4 nodes to play with cobbler & puppet, I need to find a solution that can play the same vmware machine (VMDK storage). Virtualbox from Oracle (Sun/Virtualbox.org) seems to be a good choice, given its popularity in LinuxJounal's 2010 poll. 
  • The one RPM installation is great.
  • It uses DKMS to compile and it compiles successfully in one shot.
  • Guess OS support is up to date, with WIndows 7 and Server 2008. It does not differentiate versions of RHEL, RHL, Fedora though.
  • PXE capability comes from the extension pack. you'll need to download & load. The extension pack license is free only for evaluation or personal use.
  • Nowhere to find UI to modify network settings, other than choosing types of networking (NAT, bridged, etc.).
    • add NAT adapter, only when you need this VM go talk with the world linked to the host
    • add 'intnet' adapter and provides a meaningful name. This name apparently is used by Virtualbox to wire the other guest os into the same network, if they share the same name for their intnet adapter.
  • Virtualbox won't import vmware guest images as is, since it imports only Open Virtualization format. On the other hand, it does support VMDK format, such that you can create a new virtualbox and choose to use an existing virtual disk (the vmware guest image you intend to import or run from virtualbox).
  • Too bad the proxy preference do not extends to guests (behind the NAT). Instead, I had to configure http proxy at various places (profile.d, yum.conf, gnome) inside my CentOS 5 or CentOS 6 guests.
The other thing noteworthy is what type of controller Virtualbox associates your existing vmware disk (vmdk) to. It needs to match. Otherwise the working vmware image may fail to boot properly. It happened to me, when Virtualbox associated an IDE-based disk to SATA controller. Once I powered off the guest, then redid the association, I were able to boot up the image w/o a glitch from there on.

The installation & look & feel are pretty smooth & consitent & faster(?),on both a Windows 7 Enterprise x64 host (HP Elitebook laptop. 4G RAM) and a CentOS 6.0 i386 host (a Compaq PC, 2G RAM).  For now, I think I'll continue the path of migrating to VirtualBox. VMWare server will stay on for a bit, just in case I decide to roll-back.  I am definitely looking forward for taking advantage of the capability to take multiple snapshots, with notes!  It bothered me when I could keep only one snapshot and couldn't annotate what is this snapshot, with VMWare Server 1.x & 2.x

Saturday, August 26, 2006

windows 2003's RAID5 doesn't support hot-spare --- observed with help from the great VMWare Player

I finally found some scsi virtual disk image to be used for my Windows 2003 server, a virtual machine I set up inside the 'VMWare Player"  in prep for 70-290,  my first MCSE test. In the past weeks, I had a hard time to have more than 2 free (IDE) disks in order to simluate an environment where I can set up RAID5 volumes.

The successful count of the RAID-5 capability inside windows 2003 server:
  • lsiLogic is the controller type supported by the Windows 2003 server. busLogic is not supported w/o external driver.
  • run Device manager to remove the old/broken busLogic controller then re-scan for hardware change
  • run Disk Manager (diskmgmt.msc)
    •  initialize all four brand-new identical 500MB scsi disks
    • convert them all into dynamic disks
    • create a RAID-5 volume using 64MB on each disk: right click on one of them, select 'create a volume' from the pop-up menu, check 'RAID-5', select disks & sizes to create.
  • Nowhere, hot-spare is found in the create-a-volume wizard, or the resultant 3-disk RAID5 volume with one free dynamic disk available in the system
No wonder 'VMWare Player' is voted the best technology of the year by some IT pro magzine. Using 'VMWare Player', I just inserted a few entries to the .vmx configuration file claiming I have a few new disks and a SCSI controller now, on a suspended server. One the server is resumed, the controller & the disks are detected and installed properly. Can you imagine the hassle I would have had in a non-virtualized world. Arghhhhhhhhhhhhhh....
  • buy a busLogic SCSI controller, only to find it doesn't work.
  • waste time searching for proper driver, or return it and get a lsiLogic one to try my luck.
  • buy 4 scsi disk to set up 3-disk RAID5, only to find the 4th disk can't be used as hot-spare anyway
  • shutdown os, power off the box, open the case, screw driver, struggling with free dribe bays & cables, etc.
To have four SCSI disks on a SCSI controller, I just add the following to my blah.vmx:
---x------cut----------cut-----x------cut------------x----
scsi0.virtualDev = "lsilogic"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "sda.vmdk"
scsi0:0.deviceType = "disk"
scsi0:1.present = "TRUE"
scsi0:1.fileName = "sdb.vmdk"
scsi0:1.deviceType = "disk"
scsi0:2.present = "TRUE"
scsi0:2.fileName = "sdc.vmdk"
scsi0:2.deviceType = "disk"
scsi0:3.present = "TRUE"
scsi0:3.fileName = "sdd.vmdk"
scsi0:3.deviceType = "disk"
---x------cut----------cut-----x------cut------------x----

VMWare player automatically added a few lines to the blah.vmx file after my lines too:
---x------cut----------cut-----x------cut------------x----
scsi0:0.redo = ""
scsi0:1.redo = ""
scsi0:2.redo = ""
scsi0:3.redo = ""
scsi0.present = "TRUE"
---x------cut----------cut-----x------cut------------x----

Sunday, August 20, 2006

fedora core 5 -- better SELinux policy

Tonight I created a virtual machine inside my vmware player, with 256M ram and 10G hard disk, to install Fedora Core 5 from the DVD Andy@redhat handed out at the Intel/Redhat breakfast seminar series. The installation wizard has some good selection menus for SELinux set-up.

This reminds me of what I read in FC5's release notes that the targeted policy in RHEL4 (or CentOS 4 or FC4) is now deprecated. Plus the integration of Zen and JBoss, FC5 now began to look like a larger bite. Ken @ worldspan is certified for RHL 8 and he said he will take RHCE once RHEL 5 is out. wonder if I should pair up with him to get my heart-thorn over with.

Wednesday, August 16, 2006

scsi disk image by QEmu for VMWare Player for a Windows 2003 guest

I need to have at least three spare disks to check out the RAID5 in Windows 2003 server, a guest OS running inside VMWare player with Windows XP as the host OS. I usually use QEMU's qemu-img command to create IDE disk images. However, VMWare player declined to take IDE2, and declined to allow me to use IDE1:0 (the cd-rom) as a disk device.


So, I thought I'd just use SCSI disks then. Not so fast, they say. QEMU doesn't support SCSI disk image. A Romaian hacker reported an altered qemu-img to create SCSI disk image. Unfortunately, his link on 'hack a day' returned a 404 error. not sure how far I want to go to get more than three spare disks for the RAID5 configuration practice needed for my MCP 70-290.

Ignoring the warning about the disks are IDE disks labeled as SCSI disks, I booted up the server. found-new-hardware wizard started. a driver was found but an 'aged' one, thus Windows 2003 server fails to install the new hardware named 'Buslogic multimaster scsi adapater' or something like that. bummer. I guess I'd just give it up for now, and take their words for it?


Wednesday, August 02, 2006

netscaler EE9000 based on Freebsd 4.9

courtesy of a friend, I borrowed a Netscaler (now Citrix) EE9000 load balancer. An 80G SATA drive at the rear end of the pizza-box and a 256M CompactFlash card too. pretty amusing the 'quick-start guide' doesn't say these network configuration is targeted at which network socket. got to admit, it was quick glance.

connected the enclosed null modem serial cable (DB-9 to DB-9) to a nearby Linux boxen. power it up, logon, and saw 'uname -a' as below:
FreeBSD ns 4.9-NETSCALER-6.1 FreeBSD 4.9-NETSCALER-6.1 .

This motivates me to search for pre-made image for VMware player. unfortunately, most sites only have FreeBSD 6.0 or 6.1. wonder if the difference worthy to do the download/install myself. I mainly want to have FreeBSD installation to test disaster recovery or read some man pages, and some 'dangerous' tricks a good system engineer won't attempt on a production server.