Thursday, September 12, 2013

Accessing KVM instances via Virt-Manager on OS X

Getting X11 to run on OS X via xQuartz is a fairly painless process.  You just have to download it from here and install it.

There is no virt-manager native equivalent for OS X so the best way is to run X over SSH and remotely access virt-manager.  However there are a couple of gotchas that I experienced as the remote linux server I was accessing needed a few more packages to make this work.

Enable Remote Access to Virt-Manager via an OS X Machine

Install xauth

When connecting to a remote server via ssh with the -X option, the following error is displayed:

    X11 forwarding request failed on channel 0

To resolve this install xauth:

    [root@host ~]# yum -y install xorg-x11-xauth

Install Fonts

Virt-Manager is a X application which is capable to manage RHEL's XEN, QEMU/KVM, LXC service. Similar to other X application, it could be launched remotely via X11 Forwarding.

However, it happens that garbage fonts will be shown if the host is not installed with appropriate font package. To fix this, package dejavu-lgc-sans-fonts have to be installed.

    [root@host ~]# yum -y install dejavu-lgc-sans-fonts

Saturday, September 07, 2013

VirtualBox and OS X Mavericks

If you're like me and  one of those that like to live on the bleeding edge, you've probably installed Mavericks already.

While I haven't played with too many of the new features, I did stumble across an issue with VirtualBox that is a bit of a nuisance.   The gist of it is in this ticket, but in general Mavericks fully stops using the legacy StartupItems piece of OS X.

StartupItems no longer exist in Mac OS 10.9 Mavericks. StartupItems was deprecated 8 years ago. Host-only adapters (and possibly other functionality) cannot be used in Mac OS 10.9.
Temporary work around: sudo /Library/StartupItems/VirtualBox/VirtualBox start (Must be run after each restart)
 This is important for VirtualBox as, among other things, this is how it starts its networking services that provides the ability for host-only adapters.  A bit of a nuisance and hopefully the issue gets resolved soon.