Bookmarks for December 21st through December 24th

These are my links for December 21st through December 24th:

Bookmarks for December 15th through December 21st

These are my links for December 15th through December 21st:

Bookmarks for December 13th through December 14th

These are my links for December 13th through December 14th:

Bookmarks for June 20th through December 13th

These are my links for June 20th through December 13th:

Lucid libvirt

Lucid does not seem to work well with libvirt/kvm, there are several bugs that seem to be fixed in Maverick but not in Lucid.

From syslog:

error : qemuSetupCgroup:1955 : Unable to create cgroup for DOMAIN: No such file or directory
error : qemuRemoveCgroup:2045 : internal error Unable to find cgroup for DOMAIN#012

Re: [libvirt] FYI, “Unable to create cgroup for …”

This is a bug in systemd. It periodically scans all mounted cgroups
and deletes any directories which don’t contain any attached processes.
Needless to say this breaks libvirt, and possibly other apps, which
don’t expect 3rd parties to be deleting their directories.

https://bugzilla.redhat.com/show_bug.cgi?id=678555

Best solution for this that I’ve found on lucid is: Bug 696218 – Unable to create cgroup: No such file or directory

I was able to solve it by modifying the configuration in the file
/etc/libvirt/qemu.conf:

 cgroup_controllers = [ ]

setgid, setuid needed by /etc/apparmor.d/abstractions/libvirt-qemu

=== modified file 'apparmor.d/abstractions/libvirt-qemu'
--- apparmor.d/abstractions/libvirt-qemu 2010-04-30 15:33:20 +0000
+++ apparmor.d/abstractions/libvirt-qemu 2010-05-12 17:26:56 +0000
@@ -8,6 +8,8 @@
   capability dac_override,
   capability dac_read_search,
   capability chown,
+ capability setgid,
+ capability setuid,

Libvirt/kvm permissions/ownership issue on upgrade from Karmic to Lucid and error: operation failed: failed to retrieve chardev info in qemu with ‘indev’

libvirtError: internal error unable to start guest: libvir: QEMU
error : cannot set ownership

or

 error: operation failed: failed to retrieve chardev info in qemu with 'indev'

Add the following to /etc/libvirt/qemu.conf:

# The user ID for QEMU processes run by the system instance
#user = "libvirt-qemu"
user = "root"

# The group ID for QEMU processes run by the system instance
group = "kvm"

map serial port throws “chardev: opening backend “tty” failed”

There seems to be a problem with the apparmor profile of libvirt (see bug #54579). After adding the line to /etc/apparmor.d/abstractions/libvirt-qemu and reloading the profile it worked for me.

/dev/ttyS* rw,

Few other links:

Random MAC address for libvirt

Snippet for generating a random MAC address. Useful if adding interfaces to a libvirt xml define file.

MACADDR="52:54:$(dd if=/dev/urandom count=1 2>/dev/null | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4/')";
echo $MACADDR
echo "
<interface type='bridge'>
<mac address='$MACADDR'/>
<source bridge='br233'/>
<model type='virtio'/>
</interface>
"

Windows BSOD and BIOS Checksum error

If you have a BSOD crash and the BIOS defaults after a checksum error, make sure you check the SATA ACHI/IDE settings. Otherwise window will not boot and you’ll get confused.

KDC reply did not match expectations while getting initial credentials

Seems kinit is particular:

I had similar problems. I figured out that krb5.conf requires the realm names to be in upper case. I have converted the domain names (wherever it appears in krb5.conf) to uppercase.

[root@LinuxLS logicalfuzz]# kinit myaccount@corp.example.com
Password for myaccount@corp.example.com:
kinit(v5): KDC reply did not match expectations while getting initial credentials
[root@LinuxLS logicalfuzz]# kinit myaccount@CORP.EXAMPLE.COM
Password for myaccount@CORP.EXAMPLE.COM:
[root@LinuxLS logicalfuzz]#

Bookmarks for June 14th through June 20th

These are my links for June 14th through June 20th:

Bookmarks for June 12th through June 14th

These are my links for June 12th through June 14th:


Warning: require_once(/home/emptysands/stateless.geek.nz/wp-content/themes/copyblogger/footer.php) [function.require-once]: failed to open stream: Permission denied in /home/emptysands/stateless.geek.nz/wp-includes/template.php on line 441

Fatal error: require_once() [function.require]: Failed opening required '/home/emptysands/stateless.geek.nz/wp-content/themes/copyblogger/footer.php' (include_path='/home/emptysands/stateless.geek.nz/wp-content/plugins/openid/lib:.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/emptysands/stateless.geek.nz/wp-includes/template.php on line 441