Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

Tuesday, March 3, 2009

Deadwood snapshot update

As I was working on figuring out why the maximum_cache_elements test was not working, eyeballing the DwHash.c file, I realized that the program that makes a compressed "hash" of a string only used the first four bytes and the length of the string to determine the hash. I have fixed this bug, and will make tests to make sure this code is OK.

I have also fixed the maximum_cache_elements test (it was the test that was configured wrong, not a bug in the Deadwood program), and added a basic man page for DwTcp.

It can be downloaded at the usual place, maradns.org/deadwood.
Well, I found a bug in the Windows version of VMware player that the Linux player doesn't have. It would seem that any attempt to use my webcam in the guest OS when Windows is the host causes VMware to crash (core dump, I have to turn on the guest OS again, etc). The exact same webcam works with the exact same virtual machine when 64-bit Linux is the host.

Go figure. I will see if VMware 2.0 (instead of 2.5) has this issue; probably. Most likely, I will have to just install Skype and the webcam driver in my Windows XP host OS so I can have videochats with my girlfriend, family, and friends on Skype.

Monday, February 9, 2009

MaraDNS webpage update

I got a report that download links on the MaraDNS web page did not work after Saturday's web page update; I have fixed this issue and people should be able to download MaraDNS from the web page again.

I will make sure the 1.3.13 package doesn't have this issue with its internal copy of the webpage which I sometimes update to the server.

Another report is that the Windows port of MaraDNS only parses the first 1024 bytes of a mararc file. This is an issue I will only resolve if someone is willing to sponsor me working on this; I'm moving away from MaraDNS and towards using Deadwood as a recursive resolver and currently not actively working on MaraDNS, unless there is a security bug, or someone is willing to sponsor their feature request or bugfix.

Right now, I have two geek projects that I am at various stages of resolving:
  • Getting a multiregion DVD player for Linux. The issue is that my girl has a mix of Region 1 (US) and Region 4 (Latin America) DVDs, and we're having issues with only being able to play Region 4 DVDs. I've downloaded a bunch of packages, but still haven't been able to figure out a way of doing this directly (just insert the DVD and go) or indirectly (convert the DVD in to a .mp4 file or what not).

  • There are some lingering issues with the CentOS guest operating system. There was an issue with an attached USB mouse moving far too quickly; the workaround is xset m 1/2.

    Another issue is that the font used for the menubar in Firefox is small and unpleasant to look at; fixing this with gnome-font-properties is not possible because gnome-settings-daemon won't start. I deleted everything gnome-related from the VMware image and the current workaround is to use Firefox as little as possible in the CentOS guest, but instead use it on the host (Ubuntu) or in one of the Windows guests.

    I'm slowly downloading a CentOS 5.2 32-bit DVD, and will probably try reinstalling CentOS 5.2 as a guest OS myself later on this week; homefully the open VMware tools are mature enough to allow me to resize the X window and cut-and-paste between the guest and the host.

Saturday, February 7, 2009

MaraDNS snapshot update: Webpage updated

After finally getting VMware player to work in Linux, I am able to get back to finishing up the XeroBank-sponsored MaraDNS development. I have updated a new version of MaraDNS, which simply updates the MaraDNS.org webpage. I no longer have a roadmap page, since the page is outdated and the most current information about MaraDNS is right here on the blog. I have added a list of sponsors whose generosity make continued MaraDNS development and improvements possible.

The only work I have to do before releasing MaraDNS 1.3.13 is to re-verify that all of the regressions pass, and to perform a standard stress test I like to do before making a new MaraDNS release. The release should be done next week sometime.

The snapshot can be downloaded by clicking on this link



The reason for the delay in making a new snapshot of MaraDNS is because I decided to use Linux again. Ubuntu Linux, even. It took me the last three days to make the appropriate backups, install Ubuntu, and then struggle with getting VMplayer to work in Ubuntu 8.10.

I had a number of problems with VMware player, which I have touched on in previous blog entries. One is that the CentOS 5.2 guest was not correctly set up to handle key repeat speed in a consistent manner. I fixed this by adding divider=10 clocksource=acpi_pm to all of the kernel entries in /etc/grub.conf (in the guest operating system); here is what my grub.conf looks like:


default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title CentOS (2.6.18-92.1.22.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet divider=10 clocksource=acpi_pm

initrd /initrd-2.6.18-92.1.22.el5.img

title CentOS (2.6.18-92.1.1.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet divider=10 clocksource=acpi_pm

initrd /initrd-2.6.18-92.1.1.el5.img

title CentOS (2.6.18-92.el5)

root (hd0,0)

kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet divider=10 clocksource=acpi_pm

initrd /initrd-2.6.18-92.el5.img


Note that this solution is CentOS-specific; search on vmware.com's web site for the "magic recipe" to add to other distributions' kernels.

Another is that the arrow keys and a bunch of other keys do not work. There are two solutions posted various places on the internet; the one that works best for me is the one where we just define all of the keys that don't work with VMware player. I added the following lines to /etc/vmware/config (in the host operating system):


xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
xkeymap.keycode.107 = 0x137 # Print Scrn


Finally, I had serious problems with sound playback stuttering, making it impossible for me to play back all of a single .mp3 file in my Windows XP guest operating systems. I fixed this problem by adding the following lines to the .vmx file for my Windows XP guest operating systems (this is a modification to the relevant .vmx file on the host operating system):


sound.virtualDev = "es1371"
sound.highPriority = TRUE
sound.buffering = "10000000000.0"
sound.copyDelayFactor = "1000000.0"
sound.directSound = "false"
sound.ignoreOverflows = "true"
sound.maxLength = "2048"
sound.smallBlockSize = "1024"
sound.virtualrealcorrection = "10000000000.0"
pciSound.priorityBoost = "true"


I also have these lines describing sound in the /etc/vmware/config file:


sound.Autodetect = true
sound.fileName = "-1"
sound.maxLength = 64
sound.smallBlockSize = 32


But I don't think this second batch of lines help; I had problems until adding the first batch of sound-related lines to my .vmx files.

And, oh, it's only possible to play sound on one VMware guest at a time, and not while playing sounds from other sources. I only use one VMware guest at a time that needs sound (my CentOS 5.2 guest doesn't), and have disabled all sounds in my host's Gnome user interface.

Now, observe that all of these issues are Linux-specific issues. I tested; the Windows XP 32-bit host doesn't have any of these issues (except for the CentOS one, which is caused by the Linux kernel). This is my annoyance with Linux: Things just work on Windows. Things don't work on Linux without spending days tweaking things, for a variety of reasons, mainly serious problems with Linux's sound architecture.

This is why I'm going to use a minimum of applications in Linux; the only real application I will use is VMware, and just do all my work from inside virtual machines I set up. This way, I only have the headache of configuring a minimum of applications:
  • The VMware player
  • The firewall (I will describe how I set up ufw to protect my system in a future blog entry)
  • The core operating system (including things like the sound card, the networking, the video card, etc.)
To be fair, each release of Ubuntu results in more and more things just working; there used to be issues with getting wireless networking to work that are now as simple as configuring wireless in the GUI to resolve. The video card and sound (except inside VMware) also just worked without any hassle, complete with the default resolution being the resolution of my LCD monitor (As I recall, this was an issue in earlier versions of Ubuntu).

So, yeah, progress is being made in Linux. It might even be ready for the end-user desktop one of these years.

Friday, February 6, 2009

VMware update: Keyboard repeat problem solved

Well, playing around with VMware some more, I have discovered some issues which I have been working on fixing.

One is that the CentOS 5.2 guest had some issues with the keyboard repeat rate being inconsistent. This problem made the system nay-to-impossible to be productive on. After much struggle, and extensive Google searching, and trial and error, I found the solution was to add some parameters to the guest kernel:

divider=10 clocksource=acpi_pm

Edit /etc/grub.conf and add these two parameters to all of the lines marked kernel. Next, reboot the guest OS.

Once I did this, the issue seems to have gone away (knock on wood).

The other issue is with stuttering sound when playing a mp3 in the Windows guest OS. This issue does not appear to affect all applications; I was able to talk to my girlfriend over SkyPE in a Windows guest OS for an hour last night without any stuttering.

I haven't found a solution to this issue yet; some people indicate that VMware player 2.0 doesn't have this issue, so I will see if I get get better results from VMware player 2.0.5 instead of 2.5. I will let people know if I can resolve the Windows sound issue; my gut instinct is that this is caused by Linux, since sound in Linux is a bloody mess.

Update: The sound problem doesn't exist when using Windows XP as a host. So, this is a Linux-specific problem. Did I mention that the sound is a lot quieter in Linux than it is in Windows on the same machine? Linux sound is a disaster; until basic desktop functionality like sound works, Linux will stay in the server back room.

Second update: OK, after much prodding around on the internet, I found some useful information over at Sanbarrow.com. I added the following to the .vmx file for my Windows XP virtual machine, and it appears to resolve the issue:

sound.virtualDev = "es1371"
sound.highPriority = TRUE
sound.buffering = "10000000000.0"
sound.copyDelayFactor = "1000000.0"
sound.directSound = "false"
sound.ignoreOverflows = "true"
sound.maxLength = "2048"
sound.smallBlockSize = "1024"
sound.virtualrealcorrection = "10000000000.0"
pciSound.priorityBoost = "true"

As a related issue, adding this to /etc/vmware/config resolves the keyboard issue, and appears to be the best fix:

xkeymap.nokeycodeMap = true

Final update: The reason why I didn't have any problems with Skype last night is because I was using a USB headset. When a USB headset is connected to a guest OS, the guest OS talks directly to the USB headset and doesn't use the host's sound card, so the stuttering problems don't exist when using a headset.

Indeed, it's possible to have one guest play a song or what not while another guest plays sound through the USB headset at the same time.

Thursday, February 5, 2009

I'm using Linux again!

I'm using Linux again. Now, in light of my numerous rants of Linux's problems, what motivated me to use it again.

VMware.

Basically, instead of having to struggle to make every single half-baked Linux app or Linux port to work, the only things that need to work are the sound card, the networking card, and the VMware client. I don't have to worry about things like, say, Flash working in Firefox (I can just use my VMware Windows XP image and install Flash there where it will simply work), or trying to figure out how to back up my Nokia phone in Linux (I can just do it in VMware with the tools that came with my phone).

The stuff generally just worked, with only a little more bother to get everything going than it would have in Windows; Ubuntu is making progress. There's a bug that bites VMware player for Linux, but the fix has been plastered all over the web. Skype doesn't work, since I'm using the 64-bit Ubuntu and Skype is only available as a 32-bit binary, but it works just fine in the VMware image (the XP version) and I was able to talk over an hour without too many problems with the sound dropping out, which was probably caused by problems with our internet connections.

I have the 64-bit Linux host and a few 32-bit virtual machines. This keeps entropy and bitrot to an absolute minimum; I can have multiple virtual machines for different tasks; I already have two XP virtual machines: One for work (with Microsoft Office) and one for personal use (with SkyPE and a couple of video games). I'll probably set up another one just for transferring files to and from my phone and setting up my phone; it's only about 4 gigs of hard disk space for me to add another VM to use, and a little over 512 megs of ram to run a VM instance.

So, I get the best of both worlds: I get the ease of setup of Windows XP, and I get the stability and security of Linux. Since I'm using VMs, instead of installing all applications on a single real instance of Windows XP, the bitrot that makes Windows slower to start up and run programs is almost non-existent. It's a very nice setup.

I also have updated the VMware image I use for MaraDNS development to use another CentOS 5.2 image that includes the VMware tools (albeit in an outdated form with some annoyances), making it more convenient to use X with the image. Indeed, instead of trying to make the outdated Fvwm1 window manager (that is great for my software development workflow) work with all of the new tools that need Gnome hints and what not, I just use Fvwm1 in the CentOS image and Gnome when I'm in the non-virtual Ubuntu system.

VMplayer has a full screen mode where the only hint I'm not in a virtual machine is when I touch the top of the screen, causing the VMware toolbar to appear (which lets me close, minimize, or make the virtual machine again). With the tools installed on the guest OS (the OS running on VMware's simulated computer), I can seamlessly resize the VMware window, and move the mouse in and out of the window.

It's a very slick setup. Yes, it takes more memory and hard disk space, but I have enough of both. It lets me keep things cleaner and with less bitrot, and lets me work in the environment that is best for the task at hand, instead of hacks trying to fit a square peg in a round hole, such as Cygwin's X server, or trying to use modern Linux applications with Fvwm1.