[libvirt] [PATCH 1/2] Parallels driver was renamed to Virtuozzo. Replace old name by new one on libvirt site
by Sergey Bronnikov
---
docs/api.html.in | 2 +-
docs/drivers.html.in | 2 +-
docs/drvparallels.html.in | 24 ++++++++++++------------
docs/formatdomain.html.in | 6 +++---
docs/index.html.in | 2 +-
docs/schemas/domaincommon.rng | 2 +-
docs/sitemap.html.in | 4 ++--
7 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/docs/api.html.in b/docs/api.html.in
index 5c64db1..c38bed2 100644
--- a/docs/api.html.in
+++ b/docs/api.html.in
@@ -330,7 +330,7 @@
daemon through the <a href="remote.html">remote</a> driver via an
<a href="internals/rpc.html">RPC</a>. Some hypervisors do support
client-side connections and responses, such as Test, OpenVZ, VMware,
- Power VM (phyp), VirtualBox (vbox), ESX, Hyper-V, Xen, and Parallels.
+ Power VM (phyp), VirtualBox (vbox), ESX, Hyper-V, Xen, and Virtuozzo.
The libvirtd daemon service is started on the host at system boot
time and can also be restarted at any time by a properly privileged
user, such as root. The libvirtd daemon uses the same libvirt API
diff --git a/docs/drivers.html.in b/docs/drivers.html.in
index a1d4240..be7483b 100644
--- a/docs/drivers.html.in
+++ b/docs/drivers.html.in
@@ -32,7 +32,7 @@
<li><strong><a href="drvxen.html">Xen</a></strong></li>
<li><strong><a href="drvhyperv.html">Microsoft Hyper-V</a></strong></li>
<li><strong><a href="drvphyp.html">IBM PowerVM (phyp)</a></strong></li>
- <li><strong><a href="drvparallels.html">Parallels</a></strong></li>
+ <li><strong><a href="drvvirtuozzo.html">Virtuozzo</a></strong></li>
<li><strong><a href="drvbhyve.html">Bhyve</a></strong> - The BSD Hypervisor</li>
</ul>
diff --git a/docs/drvparallels.html.in b/docs/drvparallels.html.in
index 927cc40..28c8242 100644
--- a/docs/drvparallels.html.in
+++ b/docs/drvparallels.html.in
@@ -2,43 +2,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
- <h1>Parallels Cloud Server driver</h1>
+ <h1>Virtuozzo driver</h1>
<ul id="toc"></ul>
<p>
- The libvirt Parallels driver can manage Parallels Cloud Server starting from version 6.0.
+ The libvirt vz driver can manage Virtuozzo starting from version 6.0.
</p>
<h2><a name="project">Project Links</a></h2>
<ul>
<li>
- The <a href="http://www.parallels.com/products/server/baremetal/sp/">Parallels Cloud Server</a> Virtualization Solution.
+ The <a href="http://www.odin.com/products/virtuozzo/">Virtuozzo</a> Solution.
</li>
</ul>
- <h2><a name="uri">Connections to the Parallels Cloud Server driver</a></h2>
+ <h2><a name="uri">Connections to the Virtuozzo driver</a></h2>
<p>
- The libvirt Parallels driver is a single-instance privileged driver, with a driver name of 'parallels'. Some example connection URIs for the libvirt driver are:
+ The libvirt Virtuozzo driver is a single-instance privileged driver, with a driver name of 'virtuozzo'. Some example connection URIs for the libvirt driver are:
</p>
<pre>
-parallels:///system (local access)
-parallels+unix:///system (local access)
-parallels://example.com/system (remote access, TLS/x509)
-parallels+tcp://example.com/system (remote access, SASl/Kerberos)
-parallels+ssh://root@example.com/system (remote access, SSH tunnelled)
+vz:///system (local access)
+vz+unix:///system (local access)
+vz://example.com/system (remote access, TLS/x509)
+vz+tcp://example.com/system (remote access, SASl/Kerberos)
+vz+ssh://root@example.com/system (remote access, SSH tunnelled)
</pre>
<h2><a name="example">Example guest domain XML configuration</a></h2>
<p>
- Parallels driver require at least one hard disk for new domains
+ Virtuozzo driver require at least one hard disk for new domains
at this time. It is used for defining directory, where VM should
be created.
</p>
<pre>
-<domain type='parallels'>
+<domain type='vz'>
<name>demo</name>
<uuid>54cdecad-4492-4e31-a209-33cc21d64057</uuid>
<description>some description</description>
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index d0c1741..6874ccf 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -2773,7 +2773,7 @@
attribute provides the format type. For example, LXC
supports a type of "loop", with a format of "raw" or
"nbd" with any format. QEMU supports a type of "path"
- or "handle", but no formats. Parallels driver supports
+ or "handle", but no formats. Virtuozzo driver supports
a type of "ploop" with a format of "ploop".
</li>
</ul>
@@ -5038,13 +5038,13 @@ qemu-kvm -net nic,model=? /dev/null
<p>
You can provide the amount of video memory in kibibytes (blocks of
1024 bytes) using <code>vram</code>. This is supported only for guest
- type of "libxl", "parallels", "qemu", "vbox", "vmx" and "xen". If no
+ type of "libxl", "vz", "qemu", "vbox", "vmx" and "xen". If no
value is provided the default is used. If the size is not a power of
two it will be rounded to closest one.
</p>
<p>
The number of screen can be set using <code>heads</code>. This is
- supported only for guests type of "parallels", "kvm", "vbox" and "vmx".
+ supported only for guests type of "vz", "kvm", "vbox" and "vmx".
</p>
<p>
For guest type of kvm the optional attribute <code>ram</code>
diff --git a/docs/index.html.in b/docs/index.html.in
index c94f444..7b0c149 100644
--- a/docs/index.html.in
+++ b/docs/index.html.in
@@ -72,7 +72,7 @@
The <a href="http://libvirt.org/drvphyp.html">IBM PowerVM</a> hypervisor
</li>
<li>
- The <a href="http://libvirt.org/drvparallels.html">Parallels</a> hypervisor
+ The <a href="http://libvirt.org/drvirtuozzo.html">Virtuozzo</a> hypervisor
</li>
<li>
The <a href="http://libvirt.org/drvbhyve.html">Bhyve</a> hypervisor
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 1120003..a926b75 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -200,7 +200,7 @@
<value>hyperv</value>
<value>vbox</value>
<value>phyp</value>
- <value>parallels</value>
+ <value>vz</value>
<value>bhyve</value>
</choice>
</attribute>
diff --git a/docs/sitemap.html.in b/docs/sitemap.html.in
index a9fa945..7e3746e 100644
--- a/docs/sitemap.html.in
+++ b/docs/sitemap.html.in
@@ -259,8 +259,8 @@
<span>Driver for IBM PowerVM</span>
</li>
<li>
- <a href="drvparallels.html">Parallels</a>
- <span>Driver for Parallels Cloud Server</span>
+ <a href="drvvirtuozzo.html">Virtuozzo</a>
+ <span>Driver for Virtuozzo</span>
</li>
<li>
<a href="drvbhyve.html">Bhyve</a>
--
2.3.2 (Apple Git-55)
9 years, 1 month
[libvirt] [PATCH] qemu: add a check for nodeset in qemuDomainSetNumaParamsLive
by Luyao Huang
We will try to set the node to cpuset.mems without check if
it is available, since we already have helper to check this.
Call virNumaNodesetIsAvailable to check if node is available,
then try to change it in the cgroup.
Signed-off-by: Luyao Huang <lhuang(a)redhat.com>
---
src/qemu/qemu_driver.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index fa655b5..45dfca0 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -9977,6 +9977,9 @@ qemuDomainSetNumaParamsLive(virDomainObjPtr vm,
goto cleanup;
}
+ if (!virNumaNodesetIsAvailable(nodeset))
+ goto cleanup;
+
/* Ensure the cpuset string is formatted before passing to cgroup */
if (!(nodeset_str = virBitmapFormat(nodeset)))
goto cleanup;
--
1.8.3.1
9 years, 1 month
[libvirt] [PATCH] fix vol-create when target allocation=0
by Chunyan Liu
Regression is introduced by commit e30297b0. After that, it will
report "Cannot fill file" error with following xml file:
<volume>
<name>virtinst-vmlinuz-xen.tP1NHh</name>
<capacity>4343792</capacity>
<allocation>0</allocation>
<target>
<format type="raw"/>
<nocow/>
</target>
</volume>
Because of this, installing xen pv guest with virt-manager fails.
Reason is: posix_fallocate(int fd, off_t offset, off_t len) will
return EINVAL when len is equal to 0. So, this patch adds a check
before calling safezero().
Signed-off-by: Chunyan Liu <cyliu(a)suse.com>
---
src/storage/storage_backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index db49739..2a265af 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -455,7 +455,7 @@ createRawFile(int fd, virStorageVolDefPtr vol,
pos = inputvol->target.capacity - remain;
}
- if (need_alloc) {
+ if (need_alloc && (vol->target.allocation > pos)) {
if (safezero(fd, pos, vol->target.allocation - pos) < 0) {
ret = -errno;
virReportSystemError(errno, _("cannot fill file '%s'"),
--
2.1.4
9 years, 1 month
[libvirt] [PATCH] storage: only run safezero if allocation is > 0
by Guido Günther
While a zero allocation in safezero should be fine it isn't when we use
posix_fallocate which returns EINVAL on a zero allocation.
While we could skip the zero allocation in safezero_posix_fallocate it's
an optimization to do it for all allocations.
This fixes vm installation via virtinst for me which otherwise aborts
like:
Starting install...
Retrieving file linux... | 5.9 MB 00:01 ...
Retrieving file initrd.gz... | 29 MB 00:07 ...
ERROR Couldn't create storage volume 'virtinst-linux.sBgds4': 'cannot fill file '/var/lib/libvirt/boot/virtinst-linux.sBgds4': Invalid argument'
---
No idea while this didn't show up earlier though.
src/storage/storage_backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index db49739..0418473 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -455,7 +455,7 @@ createRawFile(int fd, virStorageVolDefPtr vol,
pos = inputvol->target.capacity - remain;
}
- if (need_alloc) {
+ if (need_alloc && (vol->target.allocation - pos > 0)) {
if (safezero(fd, pos, vol->target.allocation - pos) < 0) {
ret = -errno;
virReportSystemError(errno, _("cannot fill file '%s'"),
--
2.1.4
9 years, 1 month
[libvirt] compressed stream support
by Vasiliy Tolstov
I want to able to get VolumeUpload and VolumeUpload compressed on the
fly (for example to minimize network load)
Some times ago i ask this question in this list, and get some
suggestions from developers.
But as i see, May be not good to detect compressor from libvirt
config, but create new stream functions that have in flags somewhere
compressor type.
So when data uploaded/downloaded stream Recv/Send functions able to
compress/decompress on the fly.
But i'm not understand some things:
1) user run volumedownload with offset (uncompressed size) and length.
But when user recieve data - resulted len < requested len. How to deal
with this?
2) how to display progress when downloading/uploading data? in case of
uncompressed size thing very simple (i know all size and transfered),
but in case of compressed data how to determine progress ?
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
9 years, 1 month
[libvirt] [PATCH] virDomainRename: Extended API documentation
by Tomas Meszaros
Signed-off-by: Tomas Meszaros <exo(a)tty.sk>
---
src/libvirt-domain.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 5c8bf2b..60e0def 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -8783,6 +8783,11 @@ virDomainIsPersistent(virDomainPtr dom)
* argument. Depending on each driver implementation it may be
* required that domain is in a specific state.
*
+ * There might be some attributes and/or elements in domain XML that if no
+ * value provided at XML defining time, libvirt will derive their value from
+ * domain name. These are not updated by this API. Users are strongly advised
+ * to change these after the rename was successful.
+ *
* Returns 0 if successfully renamed, -1 on error
*/
int
--
2.1.0
9 years, 1 month
[libvirt] [PATCH] selinux: fix compile errors
by Guido Günther
Remove unused variable, tag unused parameter and adjust return type.
introduced by 3f48345f7ec0c44b8ce2371cab454d2118f830b4
CC security/libvirt_security_manager_la-security_selinux.lo
security/security_selinux.c: In function 'virSecuritySELinuxDomainSetDirLabel':
security/security_selinux.c:2520:5: error: return makes pointer from integer without a cast [-Werror]
security/security_selinux.c:2514:9: error: unused variable 'ret' [-Werror=unused-variable]
security/security_selinux.c:2509:59: error: unused parameter 'mgr' [-Werror=unused-parameter]
---
src/security/security_selinux.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
index d4bfee7..d2e5aa2 100644
--- a/src/security/security_selinux.c
+++ b/src/security/security_selinux.c
@@ -2505,13 +2505,12 @@ virSecuritySELinuxGetSecurityMountOptions(virSecurityManagerPtr mgr,
return opts;
}
-static char *
-virSecuritySELinuxDomainSetDirLabel(virSecurityManagerPtr mgr,
+static int
+virSecuritySELinuxDomainSetDirLabel(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
virDomainDefPtr def,
const char *path)
{
virSecurityLabelDefPtr seclabel;
- int ret = -1;
seclabel = virDomainDefGetSecurityLabelDef(def, SECURITY_SELINUX_NAME);
if (!seclabel || !seclabel->relabel)
--
2.1.4
9 years, 1 month
[libvirt] [sandbox 0/3] Getting dhcp to work on openSUSE
by Cédric Bosdonnat
Hi all,
Two of these patches are getting dhclient and netconfig to work
properly in virt-sandboxes running on openSUSE. af_packet module
is required to get dhclient to run and /dev/fd is needed to get
openSUSE's netconfig and network script to properly update
/etc/resolv.conf.
Cédric Bosdonnat (3):
Add af_packet module for dhclient to work
Only show dhclient output in debug mode.
Create /dev/fd symlink to /proc/self/fd
libvirt-sandbox/libvirt-sandbox-builder-machine.c | 2 ++
libvirt-sandbox/libvirt-sandbox-init-common.c | 10 +++++++++-
libvirt-sandbox/libvirt-sandbox-init-qemu.c | 6 ++++++
3 files changed, 17 insertions(+), 1 deletion(-)
--
2.1.4
9 years, 1 month
[libvirt] [PATCH v2 0/3] virt-aa-helper: allow to add R/O files in restricted dirs
by Guido Günther
Hi,
the purpose of these patches is to make it possible to put
files in restricted_rw that are under a directory that is
already in restricted. It was only possible to add the to
overrides before so they ended up being rw.
Sorry for the incomplete series this morning, hopefully this looks better. The
tests pass here and I've added an additional patch checking the new file.
Cheers,
-- Guido
Guido Günther (2):
virt-aa-helper: document --probing and --dry-run
virt-aa-helper: Simplify restriction logic
intrigeri (1):
virt-aa-helper: allow access to /usr/share/ovmf/
src/security/virt-aa-helper.c | 34 ++++++++++++++++++++++------------
tests/virt-aa-helper-test | 9 +++++++++
2 files changed, 31 insertions(+), 12 deletions(-)
--
2.1.4
9 years, 1 month