[libvirt-users] some problem with snapshot by libvirt
by xingxing gao
Hi,all,i am using libvirt to manage my vm,in these days i am testing
the libvirt snapshot ,but meet some problem:
the snapshot was created from this command:
snapshot-create-as win7 --disk-only --diskspec
vda,snapshot=external --diskspec hda,snapshot=no
but when i tried to revert from the snapshot which created from the
above command ,i got error below:
virsh # snapshot-revert win7 1338041515 --force
error: unsupported configuration: revert to external disk snapshot not
supported yet
version:
virsh # version
Compiled against library: libvir 0.9.4
Using library: libvir 0.9.4
Using API: QEMU 0.9.4
Running hypervisor: QEMU 1.0.93
10 years, 1 month
[libvirt-users] redirecting guest stdio to the host
by Alexander Binun
Dear Friends,
I would ask you a question ; grateful in advance!
I have a program running on a VM guest. Its output is valuable (for VM introspection) so I want to let the host module know about it. I prefer to redirect ' stdio" of a guest into a device at the host (a text file or my device that has the name "mydev"
and the driver is written for it).
I have the XML definition file for my VM in /etc/libvirt/qemu. I have added the section:
<serial type="file">
<source path="/var/log/vm/vml.log"/>
<target port="0"/>
</serial>
into the /devices section.
That is I want the stdio to be streamed into the file /var/log/vm/vml.log at the host.
Then I run simple textual commands at the guest (ls, pwd and so on). But I do not see /var/log/vm/vml.log created at the host.
Please help me.
Thanks in advance,
Alexander Binun
>
> The command string for qemu will look like qemu -serial /dev/mydev ... But I would like to
> modify the libvirt definition XML file (in /etc/libvirt/qemu). Stefan notes in his blog
> (http://blog.vmsplice.net/2011/04/how-to-pass-qemu-command-line-options.html) that the options will
> look like:
---------- Forwarded message ----------
Date: Wed, 28 May 2014 18:06:10 +0300
From: Eric Blake <eblake(a)redhat.com>
To: Alexander Binun <binun(a)cs.bgu.ac.il>
Cc: Stefan Hajnoczi <stefanha(a)gmail.com>
yagel(a)cs.bgu.ac.il
kahilm(a)post.bgu.ac.il
qemu-devel(a)nongnu.org
boaz.menuhin(a)gmail.com
Paolo Bonzini <pbonzini(a)redhat.com>
markbl(a)post.bgu.ac.il
Subject: Re: excuse me for incorrect question...
On 05/28/2014 08:43 AM, Alexander Binun wrote:
> Eric, I aplogize for making your work complicated.
[You top-posted again]
No need to apologize - these lists exist to help people, and we were all
new once.
>
> Should I send questions to libvirt-users(a)redhat.com instead ? I would ask more questions.
Yes, if your questions are related to libvirt, then asking on a libvirt
list will get you a better audience that may have better answers to your
questions.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
On 05/28/2014 08:43 AM, Alexander Binun wrote:
> Eric, I aplogize for making your work complicated.
[You top-posted again]
No need to apologize - these lists exist to help people, and we were all
new once.
>
> Should I send questions to libvirt-users(a)redhat.com instead ? I would ask more questions.
Yes, if your questions are related to libvirt, then asking on a libvirt
list will get you a better audience that may have better answers to your
questions.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
10 years, 5 months
[libvirt-users] qemu+tls question
by Fl@sh
I`m generate TLS-certificates for my libvirtd and remote,
useing http://wiki.libvirt.org/page/TLSSetup .
>From console connect to remote host is success,
but from virt-manager -- no:
Unable to connect to libvirt.
Unable to read TLS confirmation: Input/output error
Verify that the 'libvirtd' daemon is running
on the remote host.
Libvirt URI is: qemu+tls://<remote_host>/system
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py",
line 1056, in _open_thread self._backend.open
(self._do_creds_password) File
"/usr/share/virt-manager/virtinst/connection.py", line 158,
in open open_flags) File
"/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in
openAuth if ret is None:raise libvirtError('virConnectOpenAuth
() failed') libvirtError: Unable to read TLS confirmation:
Input/output error
Any suggestions?
--
Fl@sh
10 years, 5 months
[libvirt-users] libvirt error
by abhishek jain
Hi
I need to run libvirt without ebtables support as it results in following
error while running VM....
sudo virsh start instance-0000000b
error: Failed to start domain instance-0000000b
error: Error while building firewall: Some rules could not be created for
interface tapf733e054-fe: Failure to execute command '$EBT -t nat -A
libvirt-J-tapf733e054-fe -j J-tapf733e054-fe-mac' : 'Unable to update the
kernel. Two possible causes:
1. Multiple ebtables programs were executing simultaneously. The ebtables
userspace tool doesn't by default support multiple ebtables programs
running
concurrently. The ebtables option --concurrent or a tool like flock can
be
used to support concurrent scripts that update the ebtables kernel
tables.
2. The kernel doesn't support a certain ebtables extension, consider
recompiling your kernel or insmod the extension.
.'.
Please help regarding this.
Thanks
Abhishek Jain
10 years, 5 months
[libvirt-users] Unable to migrate vm from redhat to ubuntu using virsh migrate
by Mani Devarajan
Hello All,
I am working on migrating the vm from redhat to ubuntu. the emulator value is as below.
Ubuntu: <emulator>/usr/bin/qemu-system-x86_64</emulator>
redhat: <emulator>/usr/libexec/qemu-kvm</emulator>
When i try to migrate from redhat, i get the following error. It would be great help if you can
suggest how to workaround the issue.
virsh migrate --live --verbose --persistent vm1 qemu+ssh://host-3/system
error: Cannot check QEMU binary /usr/libexec/qemu-kvm: No such file or directory
Thanks in advance,
Mani
10 years, 5 months
[libvirt-users] getting CPU usage of KVM
by Restituto Marcus Arevalo
Greetings sir,
I am currently taking up Computer Science in my school. I just
want to ask how do you get the CPU usage and Memory usage of the VMs
(I'm referring sir to the graphs that the Virtual Machine Manager is
displaying)? I need to get the numbers (the numbers are enough, I don't
need the graph) of these informations because I will be needing it for
my thesis. What suggestions can you give me? Like create a program in C or Java or Python using the libvirt API, etc. Your help will be much appreciated sir. Thank you very much.
regards,
Marco
P.S. I could explain what my thesis is all about in an email if you want/need sir. Thanks again
10 years, 5 months
[libvirt-users] Connecting to session instance without socket path is not supported by the ssh connection driver
by Theodotos Andreou
Hi all,
I have setup some Virtualbox VMs under my normal user session. When I
try to list the vbox machines locally I get:
$ virsh -c vbox:///session list
Id Name State
----------------------------------------------------
3 Ubuntu-MASS-controller running
When I try to list the machines from a remote location I get:
$ virsh -c vbox+ssh://theodotos@10.0.2.2/session list
setlocale: No such file or directory
error: failed to connect to the hypervisor
error: Operation not supported: Connecting to session instance without socket path is not supported by the ssh connection driver
I have setup public key authentication between the remote machine and
the VBox host.
Any idea what am I doing wrong?
10 years, 5 months
[libvirt-users] libvirt on OpenStack
by kerwin
Hi,
I am running OpenStack Cluster and use libvirt + cgroup to limit vm’s performance
https://wiki.openstack.org/InstanceResourceQuota
What I am confusing is..
1. After running a vm instance with some croup limit applied, I can’t find any related cgroup settings.
2. Can I change limit value after instance is running? like change disk_read_iops_sec from 10 to 20.
One of the xml file like below.
<domain type="kvm">
<uuid>27f49e5c-8ee0-4a09-8269-5fa31acd2983</uuid>
<name>instance-000000da</name>
<memory>2097152</memory>
<vcpu cpuset="1-12">1</vcpu>
<sysinfo type="smbios">
<system>
<entry name="manufacturer">Red Hat Inc.</entry>
<entry name="product">OpenStack Nova</entry>
<entry name="version">2013.2.3-1.el6</entry>
<entry name="serial">9fa4736a-2b02-11e1-a8e4-5cf3fcb968b4</entry>
<entry name="uuid">27f49e5c-8ee0-4a09-8269-5fa31acd2983</entry>
</system>
</sysinfo>
<os>
<type>hvm</type>
<boot dev="hd"/>
<smbios mode="sysinfo"/>
</os>
<features>
<acpi/>
<apic/>
</features>
<clock offset="utc">
<timer name="pit" tickpolicy="delay"/>
<timer name="rtc" tickpolicy="catchup"/>
</clock>
<cpu mode="host-model" match="exact"/>
<devices>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/data1/lib/nova/instances/27f49e5c-8ee0-4a09-8269-5fa31acd2983/disk"/>
<target bus="virtio" dev="vda"/>
<iotune>
<read_bytes_sec>25600000</read_bytes_sec>
<write_bytes_sec>40960000</write_bytes_sec>
</iotune>
</disk>
<interface type="bridge">
<mac address="fa:16:3e:49:04:ce"/>
<model type="virtio"/>
<source bridge="br-int"/>
<target dev="tape30b3c05-12"/>
<virtualport type="openvswitch">
<parameters interfaceid="e30b3c05-126c-45bd-ac31-e5eb5481a652"/>
</virtualport>
</interface>
<serial type="file">
<source path="/data1/lib/nova/instances/27f49e5c-8ee0-4a09-8269-5fa31acd2983/console.log"/>
</serial>
<serial type="pty"/>
<input type="tablet" bus="usb"/>
<graphics type="vnc" autoport="yes" keymap="en-us" listen="10.13.128.43"/>
</devices>
</domain>
✉ --
朴元奎
kerwin
10 years, 5 months
[libvirt-users] Reg : How to boot the external system checkpoint snapshots using KVM
by Gousemeera A.
Hi Team,
I have created a "External system checkpoint snapshot" using the
following link.
http://kashyapc.fedorapeople.org/virt/external-system-checkpoint-snapshot...
The disk and ram snapshot has been created successfully. The disk snapshot
have the QCOW2 file format,I tried to boot the disk snapshot (qcow2)file
using the KVM but it throws the error *" No bootable disk availble"*
message, also i tried to revert the snapshot it throws the *"external
snapshot revert not yet supported"* error message.
Versions details:
---------------
Libvirt - 1.0.5 (compiled)
Ubuntu - 12.04
I had the following doubts on snapshots.
1. It is possible to directly boot the external system check point
snapshots ???
2. Snapshot boot is supported in libvirt kvm ?
3. If snapshot boot is possible, what are the steps to do ?
can you please advice me .. Thanks in advance....
Please get back to me if you need any other clarifications...
--
*With Thanks & Regards,*
*Gousemeera*
+91-9842450796
10 years, 6 months