[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] XP and virtio
by Mauricio Tavares
So I need to create a XP vm. I am using lvm logical volumes for
its disk, so I am using virtio. I got the iso in
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/images/,
but how do I feed it to the XP install? I did try to mount it as a
floppy and it hung there on "please wait"; I guess that means it did
not like a 70MB iso as its floppy. But it also does not seem to want
to look for the drivers if I mount the .iso as a CD. What else can I
try?
10 years, 4 months
[libvirt-users] multicast traffic no longer working after reboot
by Dennis Jacobfeuerborn
Hi,
today a couple of Hypervisors got restarted due to a power outage. While
the systems and the VMs on the are running fine multicast traffic
between the guests is no longer working.
I generate multicast udp packet using iperf in the guest and check on
the host using tcpdump:
tcpdump vnet0 => multicast packets are visible
tcpdump vlanbr8 => multicast packets are visible
tcpdump em1.8 => no multicast packets visible
vlanbr8 is the bridge, vnet0 the interface of the guest and em1.8 the
physical interface for vlan 8.
I compared the settings in /sys/class/net/vlanbr8/bridge/multicast_*
with a system where multicast works fine and see no differences. brctl
showstp also shows "mc router" to be 1 for both interfaces and the
bridge. All settings in /proc/sys/net/bridge/* are 0.
Any ideas why the bridge doesn't seem to forward multicast packets?
iperf with unicast udp also works fine so it's just multicast that is
the problem.
Regards,
Dennis
10 years, 4 months
[libvirt-users] problem when using qemu 2.0.0 + libvirt 1.2.6
by weiwei li
Hi
I got a problem when using qemu 2.0.0 + libvirt 1.2.6 . It just can not
define a kvm vm successfully , errors like this :
# virsh define 5ab4f49c-c99f-4dbd-9d7d-17a946b4c5a7.xml
error: Failed to define domain from 5ab4f49c-c99f-4dbd-9d7d-17a946b4c5a7.xml
error: unknown OS type hvm
After several tries, i found that
Qemu2.0 /qemu-kvm1.2+ libvirt1.0.2 and lower version is ok
Qemu2.0 /qemu-kvm1.2+ libvirt1.0.3 and higher version is failed
I have checked system as bellows:
1 kvm,kvm_intel modules are loaded(centos 6.2 /kernel 2.6.32)
2 bios is ok for hvm
3 qemu is installed and emulator path in xml config file is correct
4 I also tried to install glusterfs-devel-3.2.7-1.el6.x86_64 and rebuild
qemu , no use.
5 virsh capabilities can not get guest capabilities in the failure scenario
so ,why Qemu2.0 /qemu-kvm1.2+ libvirt1.0.3 and above version could not work?
thanks,
weiwei
10 years, 4 months
[libvirt-users] missing libvirt-sock and libvirt-bin after compile libvirt 1.2.6
by Yuanzhen Gu
Good morning there,
I compiled and installed libvirt latest version 1.2.6, previously I have
apt-get install libvirt-bin, which should be virsh --version: 0.9.8.
after apt-get purge libvirt-bin, I compile the libvirt 1.2.6 and installed
it, when configure, I did:
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
--with-esx=yes
I have compiled qemu and installed too, and make a symbolic link to
/usr/bin/qemu-system-x86_64
but my question is even I launch a vm in qemu, $virsh list showed nothing,
further more,
1) if I use virtual machine manager, it get connection failiure, due to
socket to '/var/run/libvirt/libvirt-sock'; No such file of dirctory.
2). there is missing libvirt-bin under /etc/init.d/, after compile and
installed libvirt 1.2.6
3). I tried to start libvirtd daemon, sudo /usr/sbin/libvirtd/start
shows "/usr/sbin/libvirtd: unexpected, non-option, command line
arguments"
4). I've checked /var/log/libvirt/libvirtd.log
which shows cannot find suitable emulator for x86_64
I've stuck here for whole afternoon yesterday, any help or suggestion is
highly appreciated !! thanks a lot in advance !
Best,
Yuanzhen
Best,
Yuanzhen
Best,
Yuanzhen
10 years, 4 months
[libvirt-users] VM not booting with physical hardware attached
by Pierre Schweitzer
Dear all,
I'm looking for a bit of help with a problematic VM. We have an
hypervisor which has 4 eth ports. 3 are already used, and I wanted to
pass the 4th one directly to a VM (which is fully working without it).
So, I modified the XML accordingly (which matches our hardware), adding:
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x03' slot='0x00' function='0x3'/>
</source>
</hostdev>
I also activated Intel IOMMU in Linux (and rebooted). Then, I issued a
virsh start <domain>.
libvirt is able to fire the VM, but then the OS inside doesn't boot at
all. I tried to go deeper into debugging and it seems that the VM cannot
pass SeaBIOS anymore. It gets stuck in seabios, it seems. No "Booting"
sentence displayed, only version of SeaBIOS, when I watch VNC ouput.
I tried to use <bios useserial='yes'/> with a console to the VM. Nothing
is displayed on the console.
Here are the specs of the machine:
-> Ubuntu 12.04LTS up to date
-> libvirt 0.9.8-2ubuntu17.19
-> kvm 1.0+noroms-0ubuntu14.15
-> seabios 0.6.2-0ubuntu2.1
The ethernet card I try to attach is:
Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe
Its PCI ID being: 14e4:1657
What are the possibilities to debug this issue? What are the
possibilities to fix it as well?
Thanks to everyone helping!
With my best regards,
--
Pierre Schweitzer <pierre(a)reactos.org>
System & Network Administrator
Senior Kernel Developer
ReactOS Deutschland e.V.
10 years, 4 months
[libvirt-users] lxc arp doesn't work at start for several seconds
by Jonathan Rudenberg
I’m running into an issue with libvirt-lxc networking. I have an init program that configures the eth0 interface with an IP and gateway when the container starts. I noticed that programs running in the container encountered “no route to host” errors and looked into it further. What I found is that ARP packets are not making it onto the gateway during the first few seconds of the container’s life.
I have created a repro case that demonstrates this issue: https://github.com/titanous/libvirt-arp-bug
All it does is configure eth0 and then ARPs the bridge IP. There are no ARP responses for ~4s and then everything starts working.
The linked repo also contains pcap files from the veth and the bridge showing that the ARP packets are sent over the veth but don’t show up on the bridge.
I’ve tested and run into this issue 100% of the time on Ubuntu 14.04 with libvirt 1.2.2 and Linux 3.13.0-32 as well as Fedora 20 with libvirt 1.1.3.5 and Linux 3.15.6-200.
Any help would be appreciated, and I’m happy to provide more details if they would be useful.
Thanks,
Jonathan
10 years, 4 months
[libvirt-users] Running domain-update memory not working
by usha basavaraju
>>> vm=co.lookupByName('test1')
>>> vm.info()
[1, 524288L, 524288L, 1, 20400000000L]
>>> vm.setMemoryFlags(509952,1) # Live memory
0
>>> vm.info()
[1, 524288L, 524288L, 1, 21430000000L]
>>> vm.setMemoryFlags(509952,0) --- ## current memory
0
>>> vm.info()
[1, 524288L, 524288L, 1, 21430000000L]
>>> vm.XMLDesc()
Not updating .. but api call not throwing any error..
What is the correct procedure for updating
10 years, 4 months
[libvirt-users] [libivrt-user]problem when using qemu 2.0.0 + libvirt 1.2.6
by weiwei li
Hi
I got a problem when using qemu 2.0.0 + libvirt 1.2.6 . It just can not
define a kvm vm successfully , errors like this :
# virsh define 5ab4f49c-c99f-4dbd-9d7d-17a946b4c5a7.xml
error: Failed to define domain from 5ab4f49c-c99f-4dbd-9d7d-17a946b4c5a7.xml
error: unknown OS type hvm
after several tries, i found that
Qemu2.0 /qemu-kvm1.2+ libvirt1.0.2 and lower version is ok
Qemu2.0 /qemu-kvm1.2+ libvirt1.0.3 and higher version is failed
I have checked system as bellows:
1 kvm,kvm_intel modules are loaded(centos 6.2 /kernel 2.6.32)
2 bios is ok for hvm
3 qemu is installed and emulator path in xml config file is correct
4 I also tried to install glusterfs-devel-3.2.7-1.el6.x86_64 and rebuild
qemu , no use.
so ,why Qemu2.0 /qemu-kvm1.2+ libvirt1.0.3 and above version could not work?
thanks,
vary much
liweiwei
10 years, 4 months
[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