[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] Bridging Wireless Cards for KVM
by Joshua McKee
Hi,
I hope this is the right place to ask this question. I was wondering if
there is a way to set up a KVM VM using an XML document as input into Virsh
that uses bridged networking over a wireless card.
I understand that wireless cards to not natively support, but I was able to
find a working solution here:
http://blog.ericwhite.ca/articles/2011/04/creating-a-wireless-bridge/.
The issue is, I can use this bridge by calling KVM directly. However, I
cannot figure out how to get this same configuration on an XML file that I
input into Virsh for the creation of a VM.
My understanding is that libvirt calls KVM/QEMU at some point, but I may be
mistaken.
Thanks,
Joshua
11 years, 2 months
[libvirt-users] How to insert vcpupin in guest xml file
by Peeyush Gupta
Hi all,
I am trying to add vcpupin in the guest xml file. I am working with openstack and the code I have is python bound. I investigated through the code and found that the elemets in xml file are set in get_guest_config function. Now the thing is I am not able to set vcpupin element. I mean I tried guest.cputune_vcpupin but it's not working.
Help me out, please!
Thanks.
~Peeyush Gupta
11 years, 3 months
[libvirt-users] libvirt-qemu/kvm passthru w/Intel 82598EB
by laurence.schuler
Hi,
I am trying to configure two identical systems with the following setup.
dom0: Centos 6 OS on Apple Xserve i7 server with PCI cards for 4GB FC
(LSI FC949ES) and 10GB Ethernet (Intel 82598EB)
dom1: Centos 5 OS with passthru mode of PCI 4GB FC and 10GB Ethernet
(ixgbe and mptfc blacklisted in dom0)
Everything starts ok, but networking in dom1 using the 10GB interface
has extremely high rtt w/ping tests (20-30ms avg).
I've tried a few tweaks I've discovered via googling, but nothing seems
to help. (run libvirt as root, set privilege mode, etc)
For validation, I have the same card in Dell hosts running Centos 6
natively and they get an avg rtt of .06ms or better. Furthemore the Dell
will contact the dom1 but the connection has rtt avg times of about 6ms.
With the ethernet interface on the motherboard of the Apple Xserve, I
will see rtt times of .06ms within the dom1's, so I think this points to
a problem with the Intel card passthru usage, perhaps interrupts handling?.
Does anyone know if I need to set any special options for the ixgbe
driver under libvirt?
TIA,
--
Laurence Schuler (Larry) Laurence.Schuler(a)nasa.gov
Systems Support ADNET Systems, Inc
Scientific Visualization Studio http://svs.gsfc.nasa.gov
NASA/Goddard Space Flight Center, Code 606.4 phone: 1-301-286-1799
Greenbelt, MD 20771 fax: 1-301-286-1634
Note: I am not a government employee and have no authority to obligate
any federal, state or local government to perform any action or payment.FC949ES
11 years, 3 months
[libvirt-users] Migration Clarification Request
by The PowerTool
I built a vm with the guest OS Windows XP. I have it running exactly the way I need it. Now I need to move it to a computer at another location.
My plan was to build the vm and then just copy the ISO and take it to the new system.
Specifications:
Host OS is a current/up-to-date Fedora 18
I used yum install @virtualization
I launched boxes in gnome and installed the guest system (XP)
After getting everything running to my specifications I started researching how to move the vm to another system. I have one question:
Referring to the information at: http://libvirt.org/migration.html
"
Migration of guests between hosts is a complicated problem"
Can someone please point me to documentation stating why migration is "a complicated problem"??
The vm is powered off. I didn't use encryption (that I'm aware of--and I hope that doesn't bite me but I can re-install if necessary).
gnome-boxes made this a pretty-simple setup and I like it. I know with about the same effort I can do this in VMWare, if necessary. I also know with VMWare I can create vm images that are portable and easily transported from system to system. If that is not the case with libvirt and gnome-boxes I'd like to understand why.
Even though gnome-boxes made the setup fairly easy I can see where it is still in it's infancy. I thought libvirt was more mature and seems to offer CL access to everything I need (which I really like).
Thanks, in-advance, for your help and consideration.
ThePowerTool
"You're darn right, more power."--Tim "the toolman" Taylor
11 years, 3 months
[libvirt-users] Finding out CPU topology
by Peeyush Gupta
Hi,
I have been trying to find out CPU topology using libvirt.
I understand that I can find out the number of cores/sockets/
threads etc through getCapabilities() function. What I am wondering
is that is there any function that can provide me the exact topology
like how many sockets, how many sockets per core and number of
threads per core, if applicable or may be info about numa cells.
Is there any mechanism to achieve this?
Thanks,
~Peeyush Gupta
11 years, 3 months
[libvirt-users] Defining VM with snapshots?
by Skardal, Harald
All,
Using Centos 6.4 with provided libvirt:
[root@node1 ~]# rpm -q libvirt
libvirt-1.0.1-2.el6.x86_64
Assume a VM with one or more live snapshots.
In virsh the VM snapshots can be listed.
With virsh:
- Stop and undefine this VM.
- Then define (and start) this VM.
The new VM does not have the list of snapshots.
Is there a way with virsh to rebuild the metadata such that libvirt "knows" about the snapshots in the "disk stack"?
Harald
11 years, 3 months
[libvirt-users] Oracle RAC in libvirt+KVM environment
by Timon Wang
We wan't to setup two Oracle instance and make RAC work on them.
Both VM are setup based on libvirt + KVM, we use a lvm lun which
formated in qcow2 format and set the shareable properties in the disk
driver like this:
<disk type='block' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source dev='/dev/81035c32-d2e4-4aaf-82fa-3e76ae587586/ca18f6a5-7c98-46ea-b562-9424e68a52f3'/>
<target dev='hda' bus='ide'/>
<shareable/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
But when we use it as shared data disk like we use iscsi/FC disk for
shared data disk, the disk can't be recognized as a share disk, and
RAC can't be setup in the environment.
Any body can give me some guild on this?
I am wondering shareable in the libvirt config really makes the disk shareable?
How can I setup the RAC environment in this situable?
I found that vmware and vbox can do this according to a blog post, I
am wondering if kvm has this ability to make a disk really shareable.
--
Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW
Blog: http://www.nohouse.net
11 years, 3 months
[libvirt-users] How to deal with LXC cgroup access control with apparmor ?
by 止语
I am playing with libvirt 1.1.1 (lxc)
when I was starting a LXC container, the process location of cgroup is pretty , just the root directory
from the process. But I could tune the cgroup in a container as an user that logged, This is not accepted...
I wonder how to restrict it with apparmor ,so one can not modify files in the cgroup fs, e.g the cpus or mem,
if i restrict it with "deny /sys/fs/cgroup/** wrklx," in apparmor ,the container woulld not start up .
"Permission denied", because that a process would mount the cgroup, it seems done by libvirt_lxc,
Any way to restrict the cgroup in the container or just not mount cgroup in the container ??
Any help would be appreciated, thanks .
11 years, 4 months