Thursday, November 06, 2008

F10-beta Error Kickstarting VM

Here's a tremendously perplexing bug. When attempting to kickstart a VM install from the command line, the kickstart dies with any error that it can not read from /dev/sdb.

First oddity is a warning that "The partition table on device sdb was unreadable" and needed to be initialized. This message has always been a anomoly solved by simply responding "Yes". Unfortunately, this time it is for a non-existent /dev/sdb.

After a too long delay, the second warning states "Input/output error during write on /dev/sdb" with the options of Retry / Ignore / Cancel. When I ignore, Anaconda throws exception 11.3.0.50 for KeyError: 'sdb'.

For some reason, virt-install was reserving 3876 MB of disk space for an sdb partition, but not creating the sdb1.

A dozen attempts at a kickstart %pre work around later, broke for dinner, and watched a free HD OnDemand Bond movie (Dalton). When I walk back to the system, the kicktart had worked. It turns out, this time, the kickstart worked. This one, however, was executed via the gui wizard. I examined the log files, and found the difference.

Doesn't work:
virt-install -n vinci -r 256 -f /dev/img/vm02f8
-l /vinf/ISO/Fedora-8-x86_64-DVD.iso -b virbr1
-x "ks=ftp://192.168.169.13/ks/vinci.cfg"

Works:
virt-install -n vinci -r 256 -f /dev/img/vm02f8
-l ftp://192.168.169.13/f8-64 -b virbr1
-x "ks=ftp://192.168.169.13/ks/vinci.cfg"

Can you see the difference? Look at -l. The first (bad) is attempting a local install from an ISO. The second (good) is using an extracted image via FTP.

Now the sad part: I can't report it as a bug, since I can't solve the problem. I do however have a work around, which moves me forward. It doesn't help the developer's with their code problems, but then I'm not a programmer.

Wednesday, November 05, 2008

F10-beta Network Bridge

With a little direction from a fellow Fedora'r, I've finally got the last piece of the F10-beta virtualization suite working.

By default, KVM (I hate that name... a KVM is a type of switch) creates a bridge process between the physical NICs and the virtual machines. The bridge process handles DHCP on an internal subnet and NATs the VMs to the physical world. In other words, virbr0 emulated a Linksys or D-Link home router. This works fine for outbound communications, but does not lend itself to connecting to virtual servers.

What is needed is the ability to route from an external address to a VM. This means slaving an ethernet to a bridge, assigning them to the same network, and establishing a route between the physical card and the bridge. To accomplish this, I created the following script:
[root@adama network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@adama network-scripts]# cat ifcfg-virbr1
#!/bin/sh

IF="eth1"
NET="192.168.69"
HOST="11"
BR="virbr1"

brctl addbr $BR
ifconfig $IF 0.0.0.0
brctl addif $BR $IF
ifconfig $BR $NET.$HOST netmask 255.255.255.0 up
route add -net $NET.0 netmask 255.255.255.0 $BR
route add default gw $NET.1 $BR

exit 0
First the script location. By placing it in network-scripts, it is sourced at boot and service network restart. The name is not relevant except for the minor detail that the ifcfg's are executed alphabetically, so the filename has to start with letter FOX or higher.

Second, the script uses variables for portability. Notice that $NET.$HOST form an IP address. This will end up being the primary interface on the system, as the last command will switch the server's default route to the bridged interface.

Fianlly, I would suspect there is a way to embed this into the virtlibd subsystem. At this time that is not a priority and I think this may provide more flexibility. I say that because adding this script to a kickstart is simply the addition of a cat >> x << EOFcommand in post.

Tuesday, November 04, 2008

Palm Centro: Documents To Go Registration

My Palm Tungsten had a nice feature called Documents To Go that allowed Excel spreadsheets (and Word, et al) to be modified and synchronized with a Windows desktop. When I found that Sprints version of the Palm Centro came bundled with the product, I was very please. Everything worked flawlessly, until about a month ago.

The Centro displayed a notification that there was a new version of Documents To Go, and I should click "OK" to be automatically upgraded over the air. Being a good user, I clicked "OK". The upgrade bumped me up to V10, then prompted for the Registration Number or Activation Key. Of course, I had neither, so by handheld dropped to the eval mode. So sad.

Contacted vendor DataViz. Waste of time. Contacted Sprint. One very smart lady suggested I redownload the software from the Sprint website and reinstall. Good idea! Unfortunately, it wanted a Registration Number or Activation Key, also. Called Sprint again. Waste of time. They didn't have the keys.

At first I though I'd delete the application and install the Tungsten version.
1. Press the Home key.
2. Press the Menu key, and select Delete...
3. Scroll to "Documents" and click Delete.

I decided to factory default the box and start over. And a funny thing happened-- It didn't work, yet it fixed the problem. Here's what I did:
*** WARNING *** HotSync First ***
1. Remove back of handheld.
2. Pull data card.
3. Press and hold the red power button on the front of the phone.
4. When the screen goes black, continue to hold the power button, and remove the battery.
5. Say the "Mary Had a Little Lamb" ryhme.
6. Insert the battery.

When the handheld booted, I expected it to have lost all my info, but it was still there. Further, when I went to Documents To Go, it was back in the registered mode. It seems the reset as listed above replaced the factory default binaries, but left my data. Yeah!

The moral of the story: Document your registration number:
1. Press the Home key.
2. Goto Main, select Documents.
3. Press the Menu key, and select Options.
4. Scroll to Registration Info...

Monday, November 03, 2008

D-Link DIR-628 Wireless Router

It's taken a while, but I think I've got the new router fully operational. I had a Linksys WRT54G, but its WAN link died. (Second one, each lasted about a year, the "B" version might have lasted two years.) I was reluctant to get another Linksys, so I went to Best Buy to get a NetGear. Turns out the D-Link was about $30 less.

Discounting a configuration error on my part that cost me almost two hours, most of the set-up went well. I did get frustrated by the fact that the firmware upgrade did not seem as obvious as it should have been. In this case, it is imperative the firmware is patched. Try this:
1. From the top menu (horizontal) select Tools.
2. From the left menu (verticle), select Firmware.
3. Click Check Now, and follow the onscreen instruction.
Simple, huh. Can't explain it, but it took me a while to find that.

The one other D-Link issue that perplexed me, requires a picture:Without going into the details as to why my network is segmented, the problem was that only the stations on the D-Link local loop could see each other. Kitten and Hyperbole are wireless, and Doggett is plugged directly into the hub. Therefore, their OS's could recognize each other.

The other three systems are behind two ethernet switches. Neither the XP system or the two wireless Vista stations could see the others. As two are XP and Scully FC6, I couldn't blame this on Vista.

I knew it had to be a firewall issue, and after thinking about it, I realized that all stations could ping each other. The problem was simply a Windows thing-- that meant NetBIOS. If NetBIOS broadcasts were not being relayed, the IP's would talk, but Windows could not do WINS name resolution.

Sure enough: clicking Setup and Network Settings lead to a NetBIOS Announcement checkbox. After the reboot needed by many of D-Link's features, all the systems could see each other. All is right with the physical world. Now, back to the virtual...

Add a Shared Printer to Vista

Argh! Since I replaced the Wireless router, I have to redo all the printer configurations. I love the way Vista has created a new verity of printer that never existed before. We use to have local printers and remote printers. Now Vista subdivides remote printers as network and shared.

Ok... fine. A local printer is plugged into you computer. A network printer is a standalone device that you communicate with by IP address. A shared printer is connected to the back of someone else's computer, and we talk to it remotely across the network. And here's the brilliant part: the shared printer is considered local, because it is local to somebody. WTF?

I hacked these instructions from WugNet:

1.) Verify that File and print sharing is turned on and properly configured on the XP machine.
2.) Locate and notate the Win XP computer name (i.e. "Desktop") (Found in System Properties in the Computer Name tab)
3.) Locate and notate the printer share name on the XP computer (i.e. "Printer") (Found under the Sharing tab on the Printer Properties page)
4.) On the Vista machine launch the "Add a Printer" wizard
5.) Choose "Add a local printer"
6.) Select "Create a new port" radio button and choose "Local Port" from the drop down menu
7.) Press Next
8.) In the "Enter Port Name:" box enter the following: \\Desktop\Printer
where "Desktop" = the computer name from step 2 and "Printer" = the printer share name from step 3.
9.) Select the Printer driver from the list provided or use the "Have Disk" button to install the correct Vista driver if it is not in the built-in list. It is critical that the driver you use is Vista compatible.
10.) Press next
11.) Give the printer a distinct name and choose whether to set as the default.
12.) Press Next
13.) Print a test page to verify functionality.
14.) Press Finish
15.) Enjoy network printing !!

Sunday, November 02, 2008

Vista Blocks Wireless Connections

Thank you Vista from saving me from myself. It astounds me at the things that goes through the 'softies heads. Upon replacing my wireless router, the Vista laptops refuse to connect because the wireless access point's security setting (or something) had changed. Of course there is no way to override and no way to delete the previous information.

I found a link at Intel that suggested that if it doesn't work, try it again. It didn't say how many times. Not too helpful. Even more interesting is the fact that the only reference on Microsoft's site is people posting to a forum. No helpful responses. Because... Its not broke-- It is you that are broke. Simply change the wireless network, and it will work. How dare you ask Vista to comply with your wishes... Bitch.

So what's the hack this time?

1. In the Connect to Network window you will see:
The settings on this computer for the network do
not match the requirements of the network

2. Right click over the red "X" and right click on properties.
3. Verify the setting on the Connection tab.
4. Reconfigure the settings on the Security tab.
5. Click OK, and the red "X" should clear, and the message should change to Security-enabled network.
6. If the security setting are correct, the message should indicate Acquiring IP Address, then Connected.

It may take several attempts to get the correct combination of security settings.

Dynex DX-NRUTER Wireless Router

My Linksys has been down for a week. It had been dying a slow an miserable death for about a month. Unfortunately, this was my third Linksys, and I was reluctant to buy another. I ran down to Best Buy and got a Dynex DX-NRUTER for $59, on sale.

Man... It sucked big time. I could not connect from thirty feet out and the hub ports connected to 10M. Other than that it was $30 less than the next competitor, I can't say anything good about this thing. I took it back the next morning.

I'm now connected to a D-Link, and it seems to be running... okay... for now. one minor problem I need to research. Stay tuned.

Wednesday, October 29, 2008

Trillian and IM Spam

Something has happened this week that has sky rocketed the amount of instant messenger spam I've been getting. I've got a constant stream of this crap now. To combat this, I've had to block all but known contacts. It took me a few minutes to figure out how to do this on Trillian:
1. Fire up all connections
2. Right click on the connection status light
3. Select Connection Preferences
4. Click the Privacy tab
5. Adjust as needed

Monday, October 20, 2008

Procmail Tutorial

As long as procmail has been around, you think there would be several high quality Howto's. Instead, I've found allot of misinformation. As I tried to solve what should have been a simple SPAM filtering issue, I found perlcode.org's Procmail Tutorial. Problem solved.

(It was :0 B: to do a body search.)

Wednesday, October 15, 2008

F10-beta Virtualization: native -vs- hosted

More evidence that the Fedora 10 Beta virtualization technology, KVM, is a hosted solution rather than the native solution provided by Xen in versions 5 through 8. In FC6, restarting the virtualization library deamon (libvirtd), was a standard troubleshooting technique. In F10, it crashs the VM, since the VM is running inside the deamon.

FC6 using Xen:
[root@baltar ~]# xm list
Name           ID Mem VCPUs State
Domain-0     0   141         1       r-----
valhalla         5     95         1       -b----
[root@baltar ~]# service libvirtd restart
Stopping libvirtd daemon:       [ OK ]
Starting libvirtd daemon:       [ OK ]
[root@baltar ~]# xm list
Name           ID Mem VCPUs State
Domain-0     0   141         1       r-----
valhalla         5     95         1       -b----
[root@baltar ~]#
The VM survives.

F10-Beta running KVM:
[root@adama ~]# virsh list
Id Name             State
----------------------------------
14 vinci             running

[root@adama ~]# service libvirtd restart
Stopping libvirtd daemon:       [ OK ]
Starting libvirtd daemon:       [ OK ]
[root@adama ~]# virsh list
Id Name             State
----------------------------------

[root@adama ~]#
The VM dies.

The moral: don't bounce libvirtd.