[libvirt] [RFC PATCH 0/3] Add MAC filtering to qemu
by Gerhard Stenzel
The following series of patches is a prototype implementation of a ebtables based MAC address filter. I hope to have addressed all the previous comments and I am still interested to get more feedback/comments.
At the moment, some defaults are set when libvirtd starts and when a domain is started or destroyed. The plan is to extend this filter capability to the API level and virsh command level. The plan is also to add more filtering features like VLAN filtering and QoS filtering.
Thanks, Gerhard
---
Gerhard Stenzel (3):
add MAC address based port filtering to qemu
add build support for ebtables wrapper
add ebtables wrapper
configure.in | 3
src/Makefile.am | 1
src/libvirt_private.syms | 27 +
src/qemu/qemu.conf | 3
src/qemu/qemu_conf.c | 85 ++++
src/qemu/qemu_conf.h | 8
src/qemu/qemu_driver.c | 44 ++
src/util/ebtables.c | 982 ++++++++++++++++++++++++++++++++++++++++++++++
src/util/ebtables.h | 134 ++++++
9 files changed, 1287 insertions(+), 0 deletions(-)
create mode 100644 src/util/ebtables.c
create mode 100644 src/util/ebtables.h
--
15 years, 1 month
[libvirt] [PATCH 0/5] Misc changes to domain driver stuff
by Daniel P. Berrange
The patches that follow make some changes to the domain driver
infrastructure, and the QEMU driver. The important goal is to
improve the concurrency of the QEMU driver, by allowing multiple
readers on the driver (change mutex to a rwlock) and removing
the O(n) locks on the virDomainObjPtr instances
These have not been heavily tested yet, beyond checking the TCK
passes with QEMU driver. I just send them now for early review,
while I continue to work on the rest of the QEMU monitor related
patches which this series supports.
The CIL object locking test also needs to be extended to understand
the idea of RWlocks instead of just mutexes so it can properly
validate this code
Daniel
15 years, 1 month
[libvirt] [PATCH] LXC complement PATH environment variable of a controller
by Ryota Ozaki
Hi,
lxc controller usually executes 'ip' command to control veths, however
now PATH environment variable of the controller is not set (logging
code resets environment variables all) and the execution will definitely
fail because the controller cannot find the executable.
This patch complements PATH with driver's one. The code is just copied
from qemu_conf.c
Thanks,
ozaki-r
>From c98136628c1ea0964191be976b23ac99d0f7bb7b Mon Sep 17 00:00:00 2001
From: Ryota Ozaki <ozaki.ryota(a)gmail.com>
Date: Wed, 14 Oct 2009 05:09:04 +0900
Subject: [PATCH] LXC complement PATH environment variable of a controller
* src/lxc/lxc_driver.c: without PATH, the controller will definitely
fail to call ip command
---
src/lxc/lxc_driver.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 0b614e3..783dfcc 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -1005,6 +1005,19 @@ static int lxcControllerStart(virConnectPtr conn,
lenv[lenvc++] = envval; ¥
} while (0)
+#define ADD_ENV_COPY(envname) ¥
+ do { ¥
+ char *val = getenv(envname); ¥
+ if (val != NULL) { ¥
+ ADD_ENV_PAIR(envname, val); ¥
+ } ¥
+ } while (0)
+
+ /*
+ * The controller may call ip command, so we have to remain PATH.
+ */
+ ADD_ENV_COPY("PATH");
+
log_level = virLogGetDefaultPriority();
if (virAsprintf(&tmp, "LIBVIRT_DEBUG=%d", log_level) < 0)
goto no_memory;
--
1.6.2.5
15 years, 1 month
[libvirt] [RFC] Support for CPUID masking
by Jiri Denemark
Hi,
We need to provide support for CPU ID masking. Xen and VMware ESX are examples
of current hypervisors which support such masking.
My proposal is to define new 'cpuid' feature advertised in guest
capabilities:
<guest>
...
<features>
<cpuid/>
</feature>
</guest>
When a driver supports cpuid feature, one can use it to mask/check for
specific bits returned by CPU ID as follows:
<domain>
...
<features>
<cpuid>
<mask level='hex' register='eax|ebx|ecx|edx'>MASK</mask>
</cpuid>
</features>
...
</domain>
Where
- level is a hexadecimal number used as an input to CPU ID (i.e. eax
register),
- register is one of eax, ebx, ecx or edx,
- and MASK is a string with the following format:
mmmm:mmmm:mmmm:mmmm:mmmm:mmmm:mmmm:mmmm with m being 1-bit mask for the
corresponding bit in the register.
There are three possibilities of specifying what values can be used for 'm':
- let it be driver-specific,
- define all possible values,
- define a common set of values and allow drivers to specify their own
additional values.
I think the third is the way to go as it lowers the confusion of different
values used by different drivers for the same purpose while maintaining the
flexibility to support driver-specific masks.
The following could be a good set of predefined common values:
- 1 force the bit to be 1
- 0 force the bit to be 0
- x don't care, i.e., use driver's default value
- T require the bit to be 1
- F require the bit to be 0
Some examples of what it could look like follow:
<capabilities>
...
<guest>
<os_type>xen</os_type>
...
<features>
<pae/>
<cpuid/>
</features>
</guest>
...
</capabilities>
<domain type='xen' id='42'>
...
<features>
<pae/>
<acpi/>
<apic/>
<cpuid>
<mask level='1' register='ebx'>
xxxx:xxxx:0000:1010:xxxx:xxxx:xxxx:xxxx
</mask>
<mask level='1' register='ecx'>
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx1x:xxxx
</mask>
<mask level='1' register='edx'>
xxx1:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
</mask>
<mask level='80000001' register='ecx'>
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx1x
</mask>
<mask level='80000008' register='ecx'>
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xx00:1001
</mask>
</cpuid>
</features>
...
</domain>
What are your opinions about this?
Thank for all comments.
Jirka
15 years, 1 month
[libvirt] [PATCH] Avoid crash in virBufferEscapeString
by Laine Stump
If virBufferEscapeString is called on a buffer that has 0 bytes of
space, a size of -1 will be passed to snprintf, resulting in a
segmentation fault. This patch checks for 0 space, and grows the
buffer if needed prior to determining size.
I discovered this when I accidentally made virBufferEscapeString the
first function to add something to a newly minted buffer.
---
src/util/buf.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/util/buf.c b/src/util/buf.c
index c802aa2..9681635 100644
--- a/src/util/buf.c
+++ b/src/util/buf.c
@@ -318,6 +318,12 @@ virBufferEscapeString(const virBufferPtr buf, const char *format, const char *st
}
*out = 0;
+ if ((buf->use >= buf->size) &&
+ virBufferGrow(buf, 100) < 0) {
+ VIR_FREE(escaped);
+ return;
+ }
+
size = buf->size - buf->use - 1;
while (((count = snprintf(&buf->content[buf->use], size, format,
(char *)escaped)) < 0) || (count >= size - 1)) {
--
1.6.2.5
15 years, 1 month
[libvirt] [PATCH] Don't copy old machines from a domain which has none
by Mark McLoughlin
If the the qemu and kvm binaries are the same, we don't include machine
types in the kvm domain info.
However, the code which refreshes the machine types info from the
previous capabilities structure first looks at the kvm domain's info,
finds it matches and then copies the empty machine types list over
for the top-level qemu domain.
That doesn't make sense, we shouldn't copy an empty machin types list.
* src/qemu/qemu_conf.c: qemudGetOldMachinesFromInfo(): don't copy an
empty machine types list.
---
src/qemu/qemu_conf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index ac63570..b881f1e 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -505,6 +505,9 @@ qemudGetOldMachinesFromInfo(virCapsGuestDomainInfoPtr info,
virCapsGuestMachinePtr *list;
int i;
+ if (!info->nmachines)
+ return 0;
+
if (!info->emulator || !STREQ(emulator, info->emulator))
return 0;
--
1.6.2.5
15 years, 1 month
[libvirt] Re: Libvir Xen and domain events
by Christopher Pyper
I have been looking into registering some domain events though the
python Libvir API. However, I am getting errors and I believe it may
be due to lack of event support in Xen. This is the error I am getting:
libvir: Xen error : this function is not supported by the hypervisor:
xenUnifiedDomainEventRegister
Traceback (most recent call last):
File "./testcallback.py", line 19, in ?
conn.domainEventRegister(callback,None)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 1578, in
domainEventRegister
if ret == -1: raise libvirtError ('virConnectDomainEventRegister
() failed', conn=self)
libvirt.libvirtError: this function is not supported by the
hypervisor: xenUnifiedDomainEventRegister
If this lack of support is the case, what would you recommend is the
best route for catching domain events? Currently, I am thinking of
just polling regularly and monitoring for changes in domain state.
Cheers.
Chris Pyper.
P.S. Libvir is awesome.
15 years, 1 month
[libvirt] Release of libvirt-0.7.2
by Daniel Veillard
This is an intermediate release to flush out one month worth of
development and patches, as we have another release scheduled for the
30th October.
It is available on ftp://libvirt.org/libvirt as usual and tagged in GIT
The main new features are AppArmor security driver and the possibility to
define new domain in the ESX driver. The code had a lot of cleanup,
including a big tree refactoring and a fairly long list of bug fixes:
Features:
- sVirt AppArmor security driver (Jamie Strandboge)
- Add public API definition for data stream handling (Daniel P. Berrange)
- ESX add esxDomainDefineXML() (Matthias Bolte)
- LXC: suspend/resume support (Ryota Ozaki)
- Big code tree cleanup (Daniel P. Berrange)
Documentation:
- Documentation and examples for SVirt Apparmor driver (Jamie Strandboge)
- Fix documentation and comment typos (Paolo Bonzini)
- Fix up a few typos in the tree. (Chris Lalancette)
- Fix a typo in virNetHasValidPciAddr() too (Mark McLoughlin)
- Fix a typo in virDiskHasValidPciAddr() (Jiri Denemark)
- Fix a number of small typos (Dan Kenigsberg)
- add doc for graphic and video elements (Florian Vichot)
- Fix up 'neccessary -> necessary' in a comment. (Chris Lalancette)
- Fix up comments for domainXML{To,From}Native. (Chris Lalancette)
- Simple fix of a comment in qemuStringToArgvEnv. (Chris Lalancette)
- Add a README file to src/ explaining the directory structure (Daniel P. Berrange)
- don't emit trailing blanks into generated and VC'd NEWS file (Jim Meyering)
Portability:
- Misc win32 build fixes (Daniel P. Berrange)
- Don't require full daemon install for libvirt python bindings (Daniel P. Berrange)
- Tweak specfile to fix RHEL6 rules & ESX/PHYP enablement (Daniel P. Berrange)
- Bug Fixes:
- network: Fix printing XML 'delay' attribute (Cole Robinson)
- Fix virFileReadLimFD/virFileReadAll to handle EINTR (Daniel P. Berrange)
- storage: Fix generating iscsi 'auth' xml (Cole Robinson)
- Fix QEMU restore from file in raw format (Daniel P. Berrange)
- Take domain type into account when looking up default machine (Mark McLoughlin)
- Fix schema to allow missing machine type (Mark McLoughlin)
- Fix stream abort upon I/O failure during migration (Daniel P. Berrange)
- Create /var/log/libvirt/{lxc,uml} dirs (Mark McLoughlin)
- nodedev: Add locking in nodeNumOfDevices (Cole Robinson)
- test: Throw a proper error in GetBridgeName (Cole Robinson)
- 526769 change logrotate config default to weekly (Daniel Veillard)
- Fix emission of domain events messages (Daniel P. Berrange)
- unbreak `make rpcgen' (Paolo Bonzini)
- unbreak migration (Paolo Bonzini)
- Fix USB device re-labelling (Mark McLoughlin)
- Avoid a libvirtd crash on broken input 523418 (Daniel Veillard)
- Re-label image file backing stores (Mark McLoughlin)
- Fix memory leaks in libvirtd's message processing (Matthias Bolte)
- Fix QEMU test suite with new VNC env variable (Daniel P. Berrange)
- VBox vboxDomainDestroy forgot to wait for completion (Pritesh Kothari)
- Vbox call OpenHardDisk with "" instead of NULL (Pritesh Kothari)
- Avoid double free in errors in virsh (Jim Fehlig)
- Fix crash in device hotplug cleanup code (Daniel P. Berrange)
- Maintain value of ctxt->node in virInterfaceDefParseDhcp (Laine Stump)
- Fix some XPath relative node resets (Daniel Veillard)
- Fix unitialized variable in qemudDomainDetachHostPciDevice() (Charles Duffy)
- ESX: Check if a datastore is accessible first (Matthias Bolte)
- Fix handling of Xen(ner) detection (Daniel P. Berrange)
- Fix xen driver refcounting. (Matthias Bolte)
- prevent attempt to call cat -c during virDomainSave to raw (Charles Duffy)
- Don't do virSetConnError when virDrvSupportsFeature is successful. (Chris Lalancette)
- Fix a double-free in qemudRunLoop() (Chris Lalancette)
- Fix leak in PCI hostdev hot-unplug (Mark McLoughlin)
- Fix net/disk hot-unplug segfault (Mark McLoughlin)
Improvements:
- schema: Update storage pool schema. (Cole Robinson)
- test: Activate interfaces specified through driver config file. (Cole Robinson)
- Rewrite example domain events programm for python (Daniel P. Berrange)
- Support a new peer-to-peer migration mode & public API (Daniel P. Berrange)
- LXC add augeas support for config file (Amy Griffis)
- LXC add driver config file lxc.conf (Amy Griffis)
- LXC do not truncate container log files on restart (Amy Griffis)
- LXC initialize logging configuration (Amy Griffis)
- Add debug for envp[] in virExecWithHook() (Amy Griffis)
- Add accessors for logging filters and outputs (Amy Griffis)
- Add virFileAbsPath() utility (Amy Griffis)
- LXC implement memory control APIs (Ryota Ozaki)
- Add a domain argument to SVirt *RestoreImageLabel (Jamie Strandboge)
- test: Support loading node device info from file/XML (Cole Robinson)
- test: Implement node device driver. (Cole Robinson)
- configure: Add explict --with-python option. (Cole Robinson)
- Tunnelled migration. (Chris Lalancette)
- Various monitor improvements for migration. (Chris Lalancette)
- 523639 Allows a <description> tag for domains (Daniel Veillard)
- Add src/util/storage_file.c to the POTFILES.in. (Chris Lalancette)
- Add a qemu feature flag for unix socket migration. (Chris Lalancette)
- Let remoteClientStream only do RX if requested. (Chris Lalancette)
- Introduce virStorageFileMetadata structure (Mark McLoughlin)
- Allow control over QEMU audio backend (Daniel P. Berrange)
- Handle data streams in remote client (Daniel P. Berrange)
- Handle outgoing data streams in libvirtd (Daniel P. Berrange)
- Handle incoming data streams in libvirtd (Daniel P. Berrange)
- Lots of cleanups and improvement on QEmu monitor code (Daniel P. Berrange)
- ESX add esxVI_Occurence enum to for occurences (Matthias Bolte)
- ESX add x86_64 detection based on the CPUID (Matthias Bolte)
- ESX add tests for the VMX to/from domain XML mapping (Matthias Bolte)
- ESX Add esxDomainXMLToNative() (Matthias Bolte)
- ESX Set challenge for auth callback to hostname (Matthias Bolte)
- ESX Add esxNodeGetFreeMemory() (Matthias Bolte)
- network: add 'bootp' and 'tftp' config (Paolo Bonzini)
- OpenVZ Fix a restriction about domain names (Yuji NISHIDA)
- Make pki_check.sh into an installed & supported tool (Daniel P. Berrange)
- ESX add support for vmxnet3 virtual device (Shahar Klein)
Cleanups:
- remote: Don't print a warning every time a remote call fails (Cole Robinson)
- storage: Report errors in FindPoolSources (Cole Robinson)
- LXC fix return code handling in lxcVmStart (Ryota Ozaki)
- Add a target for libvirt.devhelp (Daniel Veillard)
- Remove some auto-generated files (Daniel P. Berrange)
- Re-arrange doTunnelMigrate to simplify cleanup code (Daniel P. Berrange)
- Separate out code for sending tunnelled data (Daniel P. Berrange)
- Pull connection handling code out of doTunnelMigrate (Daniel P. Berrange)
- Refactor native QEMU migration code (Daniel P. Berrange)
- Don't force dconn to be NULL in virDomainMigrate (Daniel P. Berrange)
- Remove unneccessary uri_in parameter from virMigratePrepareTunnel (Daniel P. Berrange)
- Move the VIR_DRV_FEATURE* constants (Daniel P. Berrange)
- Fix configure.ac message vertical alignment (Daniel P. Berrange)
- cgroup: Fix -Werror breakage (Cole Robinson)
- Fix handling return value of qemuMonitorSetBalloon (Ryota Ozaki)
- Fix up "make check" (Chris Lalancette)
- Fix rebuilding of devhelp files (Daniel P. Berrange)
- Fix ordering of <exports> in API description file (Daniel P. Berrange)
- node conf: Make parsing routines consistent with other drivers (Cole Robinson)
- nodedev: Break out virNodeDeviceHasCap to node_conf (Cole Robinson)
- python: Add a newline after custom classes (Cole Robinson)
- python: Fix generated virInterface method names (Cole Robinson)
- python: Use a pure python implementation of 'vir*GetConnect' (Cole Robinson)
- python: Don't generate bindings for vir*Ref (Cole Robinson)
- python: Don't generate conflicting conn.createXML functions. (Cole Robinson)
- python: Remove use of xmllib in generator.py (Cole Robinson)
- python: Remove FastParser from generator. (Cole Robinson)
- Fix typo in Makefile.am breaking NEWS file generation (Daniel P. Berrange)
- Fix build in separate build directory (Jiri Denemark)
- Incorrect error message in virDomainNetDefParseXML (Florian Vichot)
- Fix a few 'make rpm' breakages (Daniel Veillard)
- Pass remote_message_header to the dispatch functions. (Chris Lalancette)
- Fix up some warnings from stream DEBUG statements. (Chris Lalancette)
- Fix apibuild.py warnings (Matthias Bolte)
- Change signature of remoteSendStreamData() to fix compile warning (Matthias Bolte)
- Add virStorageFileGetMetadata() helper (Mark McLoughlin)
- Move virStorageGetMetadataFromFD() to libvirt_util (Mark McLoughlin)
- Split virStorageGetMetadataFromFD() from virStorageBackendProbeTarget() (Mark McLoughlin)
- Move file format enum to libvirt_util (Mark McLoughlin)
- Remove hand-crafted UUID parsers (Daniel P. Berrange)
- Helper functions for processing data streams in libvirtd (Daniel P. Berrange)
- Standardize debugging messages in QEMU monitor code (Daniel P. Berrange)
- Remove low level monitor APIs from header file (Daniel P. Berrange)
- Rename qemudMonitorSendCont to qemuMonitorStartCPUs (Daniel P. Berrange)
- Pull QEMU monitor interaction out to separate file (Daniel P. Berrange)
- util.h needs libvirt.h for virConnectPtr (Mark McLoughlin)
- Fix API doc extractor to stop munging comment formatting (Daniel P. Berrange)
- Fix secret_driver compile warning, bug. (Charles Duffy)
- ESX remove phantom mode (Matthias Bolte)
- ESX replace esxUtil_EqualSuffix() with virFileHasSuffix() (Matthias Bolte)
- ESX Whitespace cleanup (Matthias Bolte)
- Fix up "make syntax-check" after the tree restructuring. (Chris Lalancette)
- Introduce virStrncpy. (Chris Lalancette)
- Ignore auto-generated header file (Daniel P. Berrange)
- Remove an unnecessary variable from remoteIOReadMessage(). (Chris Lalancette)
- Remove auto-generated header file from repo (Daniel P. Berrange)
- Move example XML files into examples/xml (Daniel P. Berrange)
- Remove all generated docs from source control (Daniel P. Berrange)
- Fix missing data file in qemuhelpdata (Daniel P. Berrange)
- Misc syntax-check fixes (Daniel P. Berrange)
- Move remote protocol definition into src/remote/ (Daniel P. Berrange)
- Move all shared utility files to src/util/ (Daniel P. Berrange)
- Move all XML configuration handling to src/conf/ (Daniel P. Berrange)
- Re-arrange python generator to make it clear what's auto-generated (Daniel P. Berrange)
- Remove obsolete files (Daniel P. Berrange)
- Move docs/examples into examples/ (Daniel P. Berrange)
- Remove unused images from docs/ directory (Daniel P. Berrange)
- Rename daemon main code (Daniel P. Berrange)
- Move config files to align with driver sources (Daniel P. Berrange)
- Move virsh into tools/ directory (Daniel P. Berrange)
- Move security drivers to src/security/ (Daniel P. Berrange)
- Move secret driver into src/secret/ (Daniel P. Berrange)
- Move netcf interface driver into src/interface/ (Daniel P. Berrange)
- Move network driver into src/network (Daniel P. Berrange)
- Move remote driver to src/remote/ (Daniel P. Berrange)
- Move test driver into src/test/ (Daniel P. Berrange)
- Move node device drivers to src/node_device/ (Daniel P. Berrange)
- Move storage drivers into src/storage/ (Daniel P. Berrange)
- Move OpenVZ driver to src/openvz/ (Daniel P. Berrange)
- Move UML driver to src/uml/ (Daniel P. Berrange)
- Move QEMU driver to src/qemu/ (Daniel P. Berrange)
- Move LXC driver into src/lxc/ (Daniel P. Berrange)
- Move xen driver code into src/xen/ directory (Daniel P. Berrange)
- Rename qemud/ directory to daemon/ (Daniel P. Berrange)
- Refactor libvirt.spec to allow client-only builds (Daniel P. Berrange)
Please give it a try, and thanks everybody for reports, patches or
documentation !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
15 years, 1 month
[libvirt]: Not able to login to container when cgroup is enabled
by Rishikesh
Hi All,
On F12 i was playing with libvirt support for container.
I am seeing two issue over here:
1> Not able to create a container when start cgconfig services.
2> When i stop cgconfig, then able to create a container, but seeing
few error messages to libvirtd daemon.
3> After creation of container through libvirt, i am not able to
touch any file or directory.
Attached: vm1.xml , through which i created container. I referred
following link:
http://libvirt.org/drvlxc.html
http://openvz.org/pipermail/devel/2008-September/014314.html
Detailed Bug Report:
When i create a container without starting "cgconfig" service, i am able
to create but getting some error message in libvirtd daemon:
[root@mx3950 ~]# libvirtd
14:47:24.556: warning : qemudStartup:565 : Unable to create cgroup for
driver: No such device or address
14:47:24.647: warning : lxcStartup:1462 : Unable to create cgroup for
driver: No such device or address
libvir: Linux Container error : failed to connect to client socket: No
such file or directory
libvir: Linux Container error : failed to connect to client socket: No
such file or directory
libvir: Linux Container error : failed to connect to client socket: No
such file or directory
But when i start cgconfig service, then i am not able to open console
for my container. Below is the detailed steps which i executed.
[root@mx3950 ~]# /etc/init.d/cgconfig stop
Stopping cgconfig service: [ OK ]
[root@mx3950 ~]# virsh -c lxc:/// define vm1.xml
error: Failed to define domain from vm1.xml
error: operation failed: domain 'vm1' is already defined with uuid
ef558ab3-54ea-5b95-205d-8c0096ae9a4f
[root@mx3950 ~]# virsh -c lxc:/// start vm1
Domain vm1 started
[root@mx3950 ~]# virsh -c lxc:/// console vm1
Connected to domain vm1
Escape character is ^]
sh-4.0# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 15:23 pts/4 00:00:00 /bin/sh
root 4 1 0 15:23 pts/4 00:00:00 ps -ef
sh-4.0# touch rishi
touch: cannot touch `rishi': Permission denied
sh-4.0# exit
exit
[root@mx3950 ~]# /etc/init.d/cgconfig start
Starting cgconfig service: [ OK ]
[root@mx3950 ~]# virsh -c lxc:/// start vm1
Domain vm1 started
[root@mx3950 ~]# virsh -c lxc:/// console vm1
Connected to domain vm1
Escape character is ^]
15:24:12.869: error : vshRunConsole:77 : unable to open tty /dev/pts/3:
No such file or directory
[root@mx3950 ~]#
Package List:
[root@mx3950 ~]# rpm -qa | grep -e libcgroup -e libvirt
libcgroup-0.34-2.fc12.x86_64
libvirt-0.7.1-1.fc12.x86_64
libvirt-client-0.7.1-1.fc12.x86_64
libvirt-python-0.7.1-1.fc12.x86_64
[root@mx3950 ~]# uname -a
Linux mx3950.in.ibm.com 2.6.31-14.fc12.x86_64 #1 SMP Tue Sep 15 03:48:57
EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
15 years, 1 month