[PATCH] Make the default disk be /dev/shm/vhostmd0.
[Here are three patches which I committed already (by accident). I'm posting them for review instead here. If there are problems we can revert or amend what was committed.] This first patch changes the default exported disk to be /dev/shm/vhostmd0 (instead of /dev/shm/vhostmd/disk0). Having the intermediate vhostmd directory is problematic because there is no good place to change the permissions on this directory, and if the permissions aren't made more permissive that the default then libvirt will fail to start KVM-based domains. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Richard W.M. Jones wrote:
[Here are three patches which I committed already (by accident). I'm posting them for review instead here. If there are problems we can revert or amend what was committed.]
This first patch changes the default exported disk to be /dev/shm/vhostmd0 (instead of /dev/shm/vhostmd/disk0).
Having the intermediate vhostmd directory is problematic because there is no good place to change the permissions on this directory, and if the permissions aren't made more permissive that the default then libvirt will fail to start KVM-based domains.
From 0e903207780030521c4dad7f41e5b7b748376d85 Mon Sep 17 00:00:00 2001 From: Richard Jones <rjones@trick.home.annexia.org> Date: Wed, 7 Oct 2009 10:49:02 +0100 Subject: [PATCH 1/4] Make the default disk be /dev/shm/vhostmd0.
Previously we used a subdirectory (/dev/shm/vhostmd/). However the permissions on the subdirectory had to be set by hand by the system administrator, and if the sysadmin didn't set them, then libvirt would fail to start the guest.
However by just putting the metrics disk into /dev/shm directly, the permissions can be controlled by vhostmd when it creates the device.
Not having the subdirectory is also simpler. --- README | 4 ++-- docs/man/vhostmd.8 | 4 ++-- libmetrics/libmetrics.c | 2 +- vhostmd.xml | 2 +- vhostmd/vhostmd.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-)
ACK -- To unsubscribe, e-mail: vhostmd+unsubscribe@opensuse.org For additional commands, e-mail: vhostmd+help@opensuse.org
participants (2)
-
Jim Fehlig
-
Richard W.M. Jones