Wednesday, June 29, 2011

Virtual Machine Manager, Windows VMs and "Unable to create cgroup"

For my project at work, I need to have a Windows machine or two laying around for testing. The cheapest, and easiest, for me is to have virtual machines on my laptop: one for Windows 2008 Server and one for Windows 7.

With the upgrade to Fedora 15 some issues came up with that environment. I had deleted my old VMs and wanted to create two new template VMs (ones I can keep and clone for when I need an actual working VM). So I downloaded the ISOs from my MSDN account and started the process of creating the VMs.

Only thing is, I was stopped in my tracks. After setting up the VM (32-bit, 1 CPU, 1024M RAM, 50G storage) I got the error:

Unable to create cgroup for Windows2k8Server: No such file or directory

and the whole VM creation stops right there. So filed a Bugzilla against Virtual Machine Manager to get it fixed. In talking with the lead developer I found that problem is not with Virtual Machine Manager but with systemd itself.

To work around this if you're hitting the problem, and until it can be fixed in systemd (Bugzilla), you need to just stop and then start the libvirtd process and then create your VM. After I did that it worked as expected.

1 comment:

  1. And a side-note. When the Win2k8 server finished installing and came up for the first time, it required a login name and password. After my initial confusion over that I entered "Administrator" as the login and no password and I was in.

    Great security...