[libvirt-users] failed to pivot job for disk vdc
by Nerijus Baliunas
Hello,
I did a virsh snapshot-create-as --domain meta sn1 --diskspec
vda,file=/var/lib/libvirt/images/meta-sn1.qcow2 --disk-only
--atomic --no-metadata
Then I successfully blockcommitted 2 disks:
virsh blockcommit meta vda --active --verbose --pivot
virsh blockcommit meta vdb --active --verbose --pivot
But when doing
virsh blockcommit meta vdc --active --verbose --pivot
I got:
Block commit: [100 %]error: failed to pivot job for disk vdc
error: block copy still active: disk 'vdc' not ready for pivot yet
Domain snapshot sn1 created
And now it looks like this:
virsh domblklist meta
Target Source
------------------------------------------------
vda /var/lib/libvirt/images/meta.qcow2
vdb /var/lib/libvirt/images/meta-home.qcow2
vdc /var/lib/libvirt/images/meta-pgsql.sn1
How do I make vdc to be the initial disk, not the snapshot one?
Regards,
Nerijus
8 years, 10 months
[libvirt-users] How to retrieve legacy cgroups location ?
by Jean-Pierre Ribeauville
Hi,
As told in "Control Groups Resource Management" libvirt page :
Legacy cgroups layout
Prior to libvirt 1.0.5, the cgroups layout created by libvirt was different from that described above, and did not allow for administrator customization. Libvirt used a fixed, 3-level hierarchy libvirt/{qemu,lxc}/$VMNAME which was rooted at the point in the hierarchy where libvirtd itself was located. So if libvirtd was placed at /system/libvirtd.service by systemd, the groups for each virtual machine / container would be located at /system/libvirtd.service/libvirt/{qemu,lxc}/$VMNAME. In addition to this, the QEMU drivers further child groups for each vCPU thread and the emulator thread(s). This leads to a hierarchy that looked like
I'm trying to retrieve this layout :
$ROOT
|
+- system
|
+- libvirtd.service
|
+- libvirt
|
+- qemu
| |
| +- vm1
| | |
| | +- emulator
| | +- vcpu0
| | +- vcpu1
| |
| +- vm2
| | |
| | +- emulator
| | +- vcpu0
| | +- vcpu1
| |
| +- vm3
| |
| +- emulator
| +- vcpu0
| +- vcpu1
How may I find where systemd has placed libvirtd ?
I use libvirt 0.10.2 on a RHEL6 2.6.32-431.el6.x86_64
Thx for help.
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville(a)axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P Pensez à l'environnement avant d'imprimer.
8 years, 10 months
[libvirt-users] virsh can't support VM offline blockcommit
by justlibvirt@gmail.com
Hi everyone!
I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to test qemu snapshot features:
I tried virsh blockcommit when VM offline, the virsh blockcommit failed: the error messase as below:
error: Requested operation is not valid: domain is not running
when I start the VM, the virsh blockcommit work fine!
my question is:we need virsh support blockcommit when VM offline。how do?
we test qemu snapshot as follows:
we need create snapshot of the cycle,and by virsh blockcommit merge snapshot chain,but when VM offline, the virsh blockcommit will fail, someone suggest me:when VM offline,may use qemu-img commit to submit snapshot turn,but qemu-img can't modify snapshot chain backing relation,it need we use qemu-img rebase amend snapshot‘s backingfile, the main question is when we use qemu-img rebase modify snapshot's backingfile, if someone start the VM, it will may lead to VM filesystem readonly。
we should how to solve the question? thanks!
justlibvirt(a)gmail.com
8 years, 10 months
[libvirt-users] How to find memory utilization percent of kvm guest?
by suyog jadhav
I currently use following approach but its failing
Find Max memory using following API
vdgiRet = virDomainGetInfo(domPtr, infoPtr);
memTotal = infoPtr->memory;
Find current utilization using following API
rVal = virDomainMemoryStats (domPtr, memStats, VIR_DOMAIN_MEMORY_STAT_NR, 0) ;
for (i = 0; i < rVal; i++)
{
if (memStats[i].tag == 7)
memUsed = memStats[i].val;
}
Which is the value of "VIR_DOMAIN_MEMORY_STAT_RSS = 7"
Then I calculate util as (memUsed/memTotal)
But the value of memUsed exceeds value of memTotal by small amount resulting in memUtil to be around 101 %.
I understand that VIR_DOMAIN_MEMORY_STAT_RSS is Resident Set Size of the process running the domain.
How do I Calculate the current memory utilization using alternate way?
8 years, 10 months
[libvirt-users] How can I set the advertised value of MTU for virbr0 interface?
by George Trakatelis
Hi all,
I want to set the advertised value of MTU
for virbr0 interface on a Fedora 21 host to 1454
to accommodate the installation of new VMs for testing purposes.
The aforementioned host is an OpenStack VM actually,
which explains the need for a lower than 1500 MTU.
I noticed Pieter Hollants' patch to set
dhcp-option=<number>,"<value>" for an interface,
but it seems that it has not been implemented yet.
Is there a possibility to have such an option?
George
8 years, 10 months
[libvirt-users] net.ipv4.conf.all.forwarding
by lejeczek
hi everybody
I'd like to ask how libvirtd influences
net.ipv4.conf.all.forwarding, would you know?
I've noticed that if I use host's bridge, therefor there is
no <forward mode= > in my network then
"net.ipv4.conf.all.forwarding" goes back to 0.
Is this intended I wonder? Looks like libvirt decides it's
user responsibility now.
many thanks
8 years, 10 months
[libvirt-users] openvz driver
by Volker Janzen
Hi,
I've a question regarding the openvz driver. I noticed that the virsh dumpxml output does not contain the memory settings. E.g.:
<domain type='openvz'>
<name>104</name>
<uuid>ad2e9d0b-d242-482a-8640-5102e49d0f9b</uuid>
<memory unit='KiB'>0</memory>
<currentMemory unit='KiB'>0</currentMemory>
<vcpu placement='static'>2</vcpu>
<os>
<type>exe</type>
<init>/sbin/init</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
</devices>
</domain>
Can someone explain why this data is missing? As far as I know the driver reads the container configuration files, which contains the missing information.
Regards
Volker
Viele Grüße
Volker
8 years, 10 months
[libvirt-users] noVNC with qemu over ssh
by Digimer
Hi all,
I have a little webserver interface for managing VMs running on a RHEL
6 based HA cluster hosting KVM/qemu VMs. I'd like to use noVNC to
provide access to the hosted VMs, but I am not finding much information
on how to do this (or rather, I can't find it in the large number of
ovirt related posts).
Has anyone done this or could someone point me in the right direction
to docs on how to do this? Trying to even get direct access isn't
getting me far (/usr/bin/novnc_server --vnc localhost:5900 -> click URL
-> enter password, hangs on "Starting VNC handshake").
Thanks!
PS - while testing, iptables and selinux are disabled... I'm trying to
get a most basic setup working
--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
8 years, 10 months
[libvirt-users] Libvirt from source problem
by Muhammad Asif
Hi Geeks,
When I install libvirt from source, there is no libvirtd. how can i start
or restart libvirt deamon. Moreover it give some permission error. What
issue can be.
Thanks
8 years, 10 months
[libvirt-users] Libvirt-LXC, container get stuck if it prints too much logs in the console
by Bertrand NOEL
Hi,
I am creating containers using libvirt-lxc. My problem is that a process
at bootup gets stuck at some point. My usecase is Puppet, but I can
reproduce with a loop in bash. I noticed it is stuck until I connect to
the console of the container (virsh -c lxc:/// console id). Then after
disconnecting the console, waiting some times, the process gets stuck
again. The more the process outputs to the console, the quicker it
becomes stuck.
To test that behavior, at bootup (in rc.local), in a loop I curl some
server that I monitor. In my server logs I can see requests stops after
some time.
(I tweaked rc.local systemd service to output to console)
Host and container are CentOS 7.1
Libvirt v1.2.8
Below is my libvirt.xml
<domain type="lxc">
<uuid>9fbe3d43-e1b4-4244-8dab-b42995ab7403</uuid>
<name>instance-000002f6</name>
<memory>4194304</memory>
<vcpu>2</vcpu>
<os>
<type>exe</type>
<cmdline>console=tty0 console=ttyS0</cmdline>
<init>/sbin/init</init>
</os>
<clock offset="utc"/>
<devices>
<filesystem type="mount">
<source dir="/root/rootfs"/>
<target dir="/"/>
</filesystem>
<interface type="bridge">
<mac address="02:16:3E:00:F6:0E"/>
<source bridge="virbr0"/>
</interface>
<console type="pty"/>
</devices>
</domain>
8 years, 10 months