[libvirt-users] ceph rbd pool and libvirt manageability (virt-install)
by Jelle de Jong
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everybody,
I created a rbd pool and activated it, but I can't seem to create
volumes in it with virsh or virt-install?
# virsh pool-dumpxml myrbdpool
<pool type='rbd'>
<name>myrbdpool</name>
<uuid>2d786f7a-2df3-4d79-ae60-1535bcf1c6b5</uuid>
<capacity unit='bytes'>6997998301184</capacity>
<allocation unit='bytes'>10309227031</allocation>
<available unit='bytes'>6977204658176</available>
<source>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
<name>libvirt-pool</name>
<auth type='ceph' username='libvirt'>
<secret uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
</source>
</pool>
# virt-install --version
1.0.1
# virsh --version
1.2.9
I ended using virsh edit ceph-test.powercraft.nl and making creating
the disk manually.
<disk type='network' device='disk'>
<auth username='libvirt'>
<secret type='ceph' uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
<source protocol='rbd' name='libvirt-pool/kvm01-storage'>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
</source>
<target dev='vdc' bus='virtio'/>
</disk>
I use virt-install a lot to define, import and undefine domains, how
can I use virt-install to manage my rdb disks?
Kind regards,
Jelle de Jong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iJwEAQECAAYFAlV1xlQACgkQ1WclBW9j5HkbPQP+PjNrzvlqysslOp2Yk7wH4Mxy
2sh2dn96G0KOAHEeEn3BN6IWlnD1TADZbHdpTtMwkdv48Xwn0sP1s+3QDM4pb3gP
n+z+dVxS8FouDIy/eiso3IBCj3g4TWbEX8ZHqs3jKqe0lZgAXBzB9xYSUowcEBrZ
ddkPbr8p8ozWyOG+9V8=
=lkK7
-----END PGP SIGNATURE-----
6 years, 1 month
[libvirt-users] virRandomBits - not very random
by Brian Rak
I just ran into an issue where I had about 30 guests get duplicate mac
addresses assigned. These were scattered across 30 different machines.
Some debugging revealed that:
1) All the host machines were restarted within a couple seconds of each
other
2) All the host machines had fairly similar libvirtd pids (within ~100
PIDs of each other)
3) Libvirt seeds the RNG using 'time(NULL) ^ getpid()'
This perfectly explains why I saw so many duplicate mac addresses.
Why is the RNG seed such a predictable value? Surely there has to be a
better source of a random seed then the timestamp and the pid?
The PID seems to me to be a very bad source of any randomness. I just
ran a test across 60 of our hosts. 43 of them shared their PID with at
least one other machine.
6 years, 4 months
[libvirt-users] stream finish throws exception via python API
by Shahar Havivi
Hi,
The following snippet works fine e.g. receiving the data but when calling
stream.finish() we get the following error:
stream = con.newStream()
vol.download(stream, 0, 0, 0)
buf = stream.recv(1024)
stream.finish()
libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally
Traceback (most recent call last):
File "./helpers/kvm2ovirt", line 149, in <module>
download_volume(vol, item[1], diskno, disksitems, pksize)
File "./helpers/kvm2ovirt", line 102, in download_volume
stream.finish()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 5501, in finish
if ret == -1: raise libvirtError ('virStreamFinish() failed')
libvirt.libvirtError: internal error: I/O helper exited abnormally
Am I doing something wrong?
Thank you,
Shahar.
7 years, 10 months
[libvirt-users] unhelpful error message on failed "virsh migrate"
by Andreas Buschmann
Hello,
I have two servers where I can push VMs from one to the other by issuing
the command
virsh migrate --live --persistent --copy-storage-all --verbose \
test6 qemu+ssh://kvmhost2/system
on kvmhost1. I can get the VM back by issuing the equivalent command on
kvmhost2:
virsh migrate --live --persistent --copy-storage-all --verbose \
test6 qemu+ssh://kvmhost1/system
After an update (on behalf of the glibc bug) it only works for some VMs
and fails for others. The error message is unhelpful:
virsh --debug 4 migrate --live --persistent --copy-storage-all --verbose \
vmware-mgmt qemu+ssh://kvmhost1/system
error: internal error: info migration reply was missing return status
Is there a way to get a more helpful error message?
migrating VMs only works for a very limited subset of the VMs on the
system in the direction kvmhost2 --> kvmhost2
Stopping the VMs, copying them over to kvmhost1 and restarting still
works, and I can even migrate them back.
How do I debug this problem?
One possible way would be to stop all VMs on kvmhost2, manually copy
them to kvmhost1 and start them
and afterwards reinstall all packages
(or the whole Server if that doesn't help)
But that would be a workaround, and I still would not know what the
problem is.
The system is CentOS 7.2 now and was CentOS 7.1 before the upgrade, with
the qemu-kvm-rhev repo added for qemu.
Mit freundlichen Gruessen
Andreas Buschmann
--
Andreas Buschmann
[Senior Systems Engineer]
net.DE AG
8 years, 4 months
[libvirt-users] domain disk used
by zyp
Hi,all,
i used the libvirt Python API in OpenStack environment,Now how to get disk usage size of domain(It is used size,not total size,can get total size using blockInfo(),)? How to get a memory usage of Domain Windows?
I hope get help from you!
Very Thanks !
Leo Tod
8 years, 4 months
[libvirt-users] migrate local storage to ceph | exchanging the storage system
by Björn Lässig
TLDR: Why is virsh migrate --persistent --live domain
qemu+ssh://root@host/system --xml domain.ceph.xml
not persistent and what could i do about it?
Hi,
after years of beeing pleased with local storage and migrating the
complete storage from one host to another, it was time for ceph.
After setting up a cluster and testing it, its time now for moving a lot
of VMs on that type of storage, without a disturbance if possible.
So I 'virsh dumpxml domain > domain.ceph.xml', edit the file, replace
// ---- old ---- //
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='domain.img'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</disk>
// ---- with new ---- //
<disk type='network' device='disk'>
<driver name='qemu' type='raw'/>
<auth username='libvirt'>
<secret type='ceph' uuid='53e4ba03-5ad0-4f1e-b69e-897afba272ff'/>
</auth>
<source protocol='rbd' name='libvirt/domain'>
<host name='cephmon0' port='6789'/>
<host name='cephmon1' port='6789'/>
<host name='cephmon2' port='6789'/>
</source>
<backingStore/>
<target dev='vda' bus='virtio'/>
<boot order='1'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</disk>
Now i'm calling:
root@host_a:~# virsh migrate --verbose --p2p --copy-storage-all
--persistent --change-protection --abort-on-error --undefinesource
--live domain qemu+ssh://root@host_b/system --xml domain.ceph.xml
This takes its time to copy everything into ceph, but when its over, i
never have to migrate Terabytes of Storage again.
But its not over.
The new domain definition on host_b is not persistent and after a
shutdown, local storage is used again.
What do i have todo, to make this change persistent, or is there a
better way for doing this?
(i am using libvirt 1.2.9)
Thanks in advance
Björn Lässig
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
8 years, 4 months
Re: [libvirt-users] Windows Server 2008 - KVM
by Thiago Oliveira
Hi there!
I have installed a new VM with Win2k8 and the serial virtio driver works
fine. I don´t know why the other VM the BSOD happen!
About the performance, I had the impression that only one core is
used.....PID 8301 is a linux VM with 4 VCPU and 2 GB of RAM...
2016-05-25 3:39 GMT-03:00 Dominique Ramaekers <
dominique.ramaekers(a)cometal.be>:
>
>
> *Van:* Thiago Oliveira [mailto:cpv.thiago@gmail.com]
> *Verzonden:* dinsdag 24 mei 2016 20:14
> *Aan:* Dominique Ramaekers
> *CC:* libvirt-users(a)redhat.com
> *Onderwerp:* Re: [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi there!
>
>
>
> I will do soon the disk config, but first I will do some labs.
>
>
>
> I´m trying to install the virtio driver to comunicate using qemu-agent but
> when the driver is installed, the BSOD happens (win2k8 R2).
>
> I tried with virtio-drivers version 100, 110 and 117, both happens BSOD.
>
>
>
> Do you has a tip ? :)
>
>
>
> Can’t really help you there… I’ve installed the virtio drivers on numerus
> Windows systems going from Windows-XP to Windows Server 2012R2. Never had
> BSOD…
>
> I do remember having some trouble with the QXL graphics driver on one
> specific version of virtio, but that’s all and that should be resolved…
>
>
>
>
>
> Thanks buddy!
>
>
>
> 2016-05-20 10:23 GMT-03:00 Dominique Ramaekers <
> dominique.ramaekers(a)cometal.be>:
>
>
>
>
>
> *Van:* Thiago Oliveira [mailto:cpv.thiago@gmail.com]
> *Verzonden:* vrijdag 20 mei 2016 15:07
> *Aan:* Dominique Ramaekers
> *CC:* libvirt-users(a)redhat.com
> *Onderwerp:* Re: [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi there!
>
>
>
> Although the guest has 2GB memory, the windows guest was adjusted to
> support this.
>
>
>
> I guess that the LVM is the best choice! I will save all images to other
> disk and re-build the partition with LVM. Do you recomend to use ext4 or
> zfs ?
>
> You’ll have to convert the qcow to raw, create a LVM-volume (don’t create
> a file system on the volume), and dd the raw tot he LVM volume…
>
>
>
> - About the apparmor, I have my doubts, I will try to disable and see what
> will happen!
>
> - About the tablet input device, I removed! Some forums say that
> consuming idle cpu time. I know… Never could have verivied this…
>
> - About the guest agent, I have installed, but the first service can´t
> start!
>
> The error says: *A timeout was reached (30000 milliseconds) while waiting
> for the QEMU Guest Agent service to connect.*
>
> You’ll have to include the qemu-ga directives in the xml, that should do
> the trick:
>
> <channel type='unix'>
>
> <source mode='bind'/>
>
> <target type='virtio' name='org.qemu.guest_agent.0'/>
>
> </channel>
>
>
>
> [image: Imagem inline 1]
>
>
>
> I´m using the virtio-win-0.1.117.iso, but I don´t know if this is updated.
>
>
>
> Thanks for your reply and your help!
>
>
>
> Thiago Oliveira
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2016-05-20 8:31 GMT-03:00 Dominique Ramaekers <
> dominique.ramaekers(a)cometal.be>:
>
> Please check virtual memory usage in the guest. 2Gb memory is very low. I
> think your Windows guest is ‘swapping’ constantly. This combined with the
> less performant qcow format… Reading and writing to qcow takes up host cpu…
>
>
>
> I don’t go under 3,5Gb for Windows Guests…
>
>
>
> Tip: Take the time to learn LVM. Changing from an image file to LVM really
> pays off. I have a virtual host with RAID10 local storage. Changing to LVM
> gave me more than 25% performance boost.
>
>
>
> For the rest, it seems ok.
>
>
>
> Less important:
>
> I have disabled apparmor security. This was done while using an older
> version of virsh and I had trouble with apparmor. I don’t know if apparmor
> has big performance influence.
>
>
>
> Wasn’t there a tablet input device? Did you delete this device? I think
> it’s better to leave it. It has something to do with mouse usage in
> virt-viewer or vnc…
>
>
>
> Install the guest agent on the guest and insert the needed XML-directives.
> It gives you more possibilities managing your guest like a backup with
> external snapshots.
>
>
>
>
>
>
>
> *Van:* Thiago Oliveira [mailto:cpv.thiago@gmail.com]
> *Verzonden:* vrijdag 20 mei 2016 13:07
> *Aa**n:* Dominique Ramaekers
> *CC:* libvirt-users(a)redhat.com
> *Onderwerp:* Re: [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi there!
>
>
>
> Sure......see below.
>
>
>
> # virsh version
>
> Compiled against library: libvirt 1.3.1
>
> Using library: libvirt 1.3.1
>
> Using API: QEMU 1.3.1
>
> Running hypervisor: QEMU 2.5.0
>
>
>
> # uname -a
>
> Linux 4.4.0-22-generic #40-Ubuntu 16
>
>
>
>
>
> <domain type='kvm' id='8'>
>
> <name>W2k8</name>
>
> <uuid>a148a0b7-eefb-9a5b-8e83-8efaf19f9899</uuid>
>
> <description>None</description>
>
> <memory unit='KiB'>2097152</memory>
>
> <currentMemory unit='KiB'>2097152</currentMemory>
>
> <vcpu placement='static'>2</vcpu>
>
> <resource>
>
> <partition>/machine</partition>
>
> </resource>
>
> <os>
>
> <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
>
> <boot dev='hd'/>
>
> <boot dev='cdrom'/>
>
> <bootmenu enable='yes'/>
>
> </os>
>
> <features>
>
> <acpi/>
>
> <apic/>
>
> <pae/>
>
> </features>
>
> <cpu mode='host-passthrough'>
>
> <topology sockets='1' cores='2' threads='1'/>
>
> </cpu>
>
> <clock offset='localtime'/>
>
> <on_poweroff>destroy</on_poweroff>
>
> <on_reboot>restart</on_reboot>
>
> <on_crash>restart</on_crash>
>
> <devices>
>
> <emulator>/usr/bin/kvm-spice</emulator>
>
> <disk type='file' device='disk'>
>
> <driver name='qemu' type='qcow2' cache='none' io='native'/>
>
> <source file='/mnt/VM_SAS/w2k8.img'/>
>
> <backingStore/>
>
> <target dev='vda' bus='virtio'/>
>
> <alias name='virtio-disk0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
>
> </disk>
>
> <disk type='file' device='disk'>
>
> <driver name='qemu' type='raw'/>
>
> <source file='/mnt/VM_SAS/second_HD.raw'/>
>
> <backingStore/>
>
> <target dev='vdb' bus='virtio'/>
>
> <alias name='virtio-disk1'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/>
>
> </disk>
>
> <disk type='file' device='cdrom'>
>
> <driver name='qemu' type='raw'/>
>
> <backingStore/>
>
> <target dev='hda' bus='ide' tray='open'/>
>
> <readonly/>
>
> <alias name='ide0-1-1'/>
>
> <address type='drive' controller='0' bus='1' target='0' unit='1'/>
>
> </disk>
>
> <controller type='pci' index='0' model='pci-root'>
>
> <alias name='pci.0'/>
>
> </controller>
>
> <controller type='ide' index='0'>
>
> <alias name='ide'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x1'/>
>
> </controller>
>
> <controller type='usb' index='0'>
>
> <alias name='usb'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x2'/>
>
> </controller>
>
> <interface type='network'>
>
> <mac address='52:54:00:c3:c9:f3'/>
>
> <source network='network_win' bridge='virbr0'/>
>
> <target dev='vnet1'/>
>
> <model type='virtio'/>
>
> <alias name='net0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
>
> </interface>
>
> <serial type='pty'>
>
> <source path='/dev/pts/1'/>
>
> <target port='0'/>
>
> <alias name='serial0'/>
>
> </serial>
>
> <console type='pty' tty='/dev/pts/1'>
>
> <source path='/dev/pts/1'/>
>
> <target type='serial' port='0'/>
>
> <alias name='serial0'/>
>
> </console>
>
> <input type='mouse' bus='ps2'/>
>
> <input type='keyboard' bus='ps2'/>
>
> <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>
>
> <listen type='address' address='0.0.0.0'/>
>
> </graphics>
>
> <video>
>
> <model type='cirrus' vram='16384' heads='1'/>
>
> <alias name='video0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
>
> </video>
>
> <memballoon model='virtio'>
>
> <alias name='balloon0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
>
> </memballoon>
>
> </devices>
>
> <seclabel type='dynamic' model='apparmor' relabel='yes'>
>
> <label>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</label>
>
> <imagelabel>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</imagelabel>
>
> </seclabel>
>
> </domain>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2016-05-20 3:57 GMT-03:00 Dominique Ramaekers <
> dominique.ramaekers(a)cometal.be>:
>
>
>
>
>
> *Van:* libvirt-users-bounces(a)redhat.com [mailto:
> libvirt-users-bounces(a)redhat.com] *Namens *Thiago Oliveira
> *Verzonden:* vrijdag 20 mei 2016 4:09
> *Aan:* libvirt-users(a)redhat.com
> *Onderwerp:* [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi folks!
>
>
>
> When I start the Windows Server 2008 guest, the host cpu grown up
> the utilization and the host load average too. Are there some tips to
> use Windows Server with libvirt?
>
>
>
> Thanks,
>
> Thiago
>
>
>
>
>
> Could you send the XML and the result of ‘virsh version’?
>
>
>
>
>
>
>
8 years, 4 months
Re: [libvirt-users] Windows Server 2008 - KVM
by Thiago Oliveira
Hi there!
Although the guest has 2GB memory, the windows guest was adjusted to
support this.
I guess that the LVM is the best choice! I will save all images to other
disk and re-build the partition with LVM. Do you recomend to use ext4 or
zfs ?
- About the apparmor, I have my doubts, I will try to disable and see what
will happen!
- About the tablet input device, I removed! Some forums say that consuming
idle cpu time.
- About the guest agent, I have installed, but the first service can´t
start!
The error says:
*A timeout was reached (30000 milliseconds) while waiting for the QEMU
Guest Agent service to connect.*
[image: Imagem inline 1]
I´m using the virtio-win-0.1.117.iso, but I don´t know if this is updated.
Thanks for your reply and your help!
Thiago Oliveira
2016-05-20 8:31 GMT-03:00 Dominique Ramaekers <
dominique.ramaekers(a)cometal.be>:
> Please check virtual memory usage in the guest. 2Gb memory is very low. I
> think your Windows guest is ‘swapping’ constantly. This combined with the
> less performant qcow format… Reading and writing to qcow takes up host cpu…
>
>
>
> I don’t go under 3,5Gb for Windows Guests…
>
>
>
> Tip: Take the time to learn LVM. Changing from an image file to LVM really
> pays off. I have a virtual host with RAID10 local storage. Changing to LVM
> gave me more than 25% performance boost.
>
>
>
> For the rest, it seems ok.
>
>
>
> Less important:
>
> I have disabled apparmor security. This was done while using an older
> version of virsh and I had trouble with apparmor. I don’t know if apparmor
> has big performance influence.
>
>
>
> Wasn’t there a tablet input device? Did you delete this device? I think
> it’s better to leave it. It has something to do with mouse usage in
> virt-viewer or vnc…
>
>
>
> Install the guest agent on the guest and insert the needed XML-directives.
> It gives you more possibilities managing your guest like a backup with
> external snapshots.
>
>
>
>
>
>
>
> *Van:* Thiago Oliveira [mailto:cpv.thiago@gmail.com]
> *Verzonden:* vrijdag 20 mei 2016 13:07
> *Aa**n:* Dominique Ramaekers
> *CC:* libvirt-users(a)redhat.com
> *Onderwerp:* Re: [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi there!
>
>
>
> Sure......see below.
>
>
>
> # virsh version
>
> Compiled against library: libvirt 1.3.1
>
> Using library: libvirt 1.3.1
>
> Using API: QEMU 1.3.1
>
> Running hypervisor: QEMU 2.5.0
>
>
>
> # uname -a
>
> Linux 4.4.0-22-generic #40-Ubuntu 16
>
>
>
>
>
> <domain type='kvm' id='8'>
>
> <name>W2k8</name>
>
> <uuid>a148a0b7-eefb-9a5b-8e83-8efaf19f9899</uuid>
>
> <description>None</description>
>
> <memory unit='KiB'>2097152</memory>
>
> <currentMemory unit='KiB'>2097152</currentMemory>
>
> <vcpu placement='static'>2</vcpu>
>
> <resource>
>
> <partition>/machine</partition>
>
> </resource>
>
> <os>
>
> <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
>
> <boot dev='hd'/>
>
> <boot dev='cdrom'/>
>
> <bootmenu enable='yes'/>
>
> </os>
>
> <features>
>
> <acpi/>
>
> <apic/>
>
> <pae/>
>
> </features>
>
> <cpu mode='host-passthrough'>
>
> <topology sockets='1' cores='2' threads='1'/>
>
> </cpu>
>
> <clock offset='localtime'/>
>
> <on_poweroff>destroy</on_poweroff>
>
> <on_reboot>restart</on_reboot>
>
> <on_crash>restart</on_crash>
>
> <devices>
>
> <emulator>/usr/bin/kvm-spice</emulator>
>
> <disk type='file' device='disk'>
>
> <driver name='qemu' type='qcow2' cache='none' io='native'/>
>
> <source file='/mnt/VM_SAS/w2k8.img'/>
>
> <backingStore/>
>
> <target dev='vda' bus='virtio'/>
>
> <alias name='virtio-disk0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
>
> </disk>
>
> <disk type='file' device='disk'>
>
> <driver name='qemu' type='raw'/>
>
> <source file='/mnt/VM_SAS/second_HD.raw'/>
>
> <backingStore/>
>
> <target dev='vdb' bus='virtio'/>
>
> <alias name='virtio-disk1'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/>
>
> </disk>
>
> <disk type='file' device='cdrom'>
>
> <driver name='qemu' type='raw'/>
>
> <backingStore/>
>
> <target dev='hda' bus='ide' tray='open'/>
>
> <readonly/>
>
> <alias name='ide0-1-1'/>
>
> <address type='drive' controller='0' bus='1' target='0' unit='1'/>
>
> </disk>
>
> <controller type='pci' index='0' model='pci-root'>
>
> <alias name='pci.0'/>
>
> </controller>
>
> <controller type='ide' index='0'>
>
> <alias name='ide'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x1'/>
>
> </controller>
>
> <controller type='usb' index='0'>
>
> <alias name='usb'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x2'/>
>
> </controller>
>
> <interface type='network'>
>
> <mac address='52:54:00:c3:c9:f3'/>
>
> <source network='network_win' bridge='virbr0'/>
>
> <target dev='vnet1'/>
>
> <model type='virtio'/>
>
> <alias name='net0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
>
> </interface>
>
> <serial type='pty'>
>
> <source path='/dev/pts/1'/>
>
> <target port='0'/>
>
> <alias name='serial0'/>
>
> </serial>
>
> <console type='pty' tty='/dev/pts/1'>
>
> <source path='/dev/pts/1'/>
>
> <target type='serial' port='0'/>
>
> <alias name='serial0'/>
>
> </console>
>
> <input type='mouse' bus='ps2'/>
>
> <input type='keyboard' bus='ps2'/>
>
> <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>
>
> <listen type='address' address='0.0.0.0'/>
>
> </graphics>
>
> <video>
>
> <model type='cirrus' vram='16384' heads='1'/>
>
> <alias name='video0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
>
> </video>
>
> <memballoon model='virtio'>
>
> <alias name='balloon0'/>
>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
>
> </memballoon>
>
> </devices>
>
> <seclabel type='dynamic' model='apparmor' relabel='yes'>
>
> <label>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</label>
>
> <imagelabel>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</imagelabel>
>
> </seclabel>
>
> </domain>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2016-05-20 3:57 GMT-03:00 Dominique Ramaekers <
> dominique.ramaekers(a)cometal.be>:
>
>
>
>
>
> *Van:* libvirt-users-bounces(a)redhat.com [mailto:
> libvirt-users-bounces(a)redhat.com] *Namens *Thiago Oliveira
> *Verzonden:* vrijdag 20 mei 2016 4:09
> *Aan:* libvirt-users(a)redhat.com
> *Onderwerp:* [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi folks!
>
>
>
> When I start the Windows Server 2008 guest, the host cpu grown up
> the utilization and the host load average too. Are there some tips to
> use Windows Server with libvirt?
>
>
>
> Thanks,
>
> Thiago
>
>
>
>
>
> Could you send the XML and the result of ‘virsh version’?
>
>
>
8 years, 4 months
[libvirt-users] Issue with fsfreeze with qemu agent.
by Dominique Ramaekers
Hi,
I use external snapshots to backup my guests. I use the 'quiesce' option to flush and frees the guest file system with the qemu guest agent.
With the exeption of one guest, this procedure works fine. On the 'unwilling' guest, I get this error message:
"ERROR 2016-05-25 00:51:19 | T25-bakVMSCmsrvVH2 | fout: internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': failed to freeze /: Device or resource busy"
I don't think this is not some sort of time-out error, because activation of the fsfreeze and the error message happen immediately after each other:
$ grep qemu-ga syslog.1
May 25 00:51:19 CmsrvMTA qemu-ga: info: guest-fsfreeze called
This is the only entry of the qemu guest agent in syslog.
The difference of this guest in compresence with other, is that this guest runs postfix + amavis + spammassasin + clamav
Any help would be appreciated.
More info:
$ sudo virsh version
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Gebruikte API: QEMU 1.3.1
Draaiende hypervisor: QEMU 2.5.0
$ virsh qemu-agent-command CmsrvMTA '{"execute": "guest-info"}'
{"return":{"version":"2.5.0", ... ,{"enabled":true,"name":"guest-fstrim","success-response":true},{"enabled":true,"name":"guest-fsfreeze-thaw","success-response":true},{"enabled":true,"name":"guest-fsfreeze-status","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze-list","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze","success-response":true}, ... }
For making an external snapshot, I use this command:
$ virsh snapshot-create-as --domain CmsrvMTA sn1 --disk-only --atomic --quiesce --no-metadata --diskspec vda,file=/srv/poolVMS/CmsrvMTA.sn1
Greetings,
Dominique.
8 years, 4 months
[libvirt-users] Windows, qemu.agent is it possible to shut down services in running windows server?
by Marko Weber | 8000
Hi List,
i installed qemu-agent on a windows server and it is working as
expected.
I can send via virsh commands. I already performed successful an online
backup of an windows server.
Now my question is, is it possible to execute commands on the windows
server via qemu-agent?
I want to shutdown the MSSQL Service before doing backups.
Is that possible? i dont find any helpful pages in net.
Any hints & tipps are welcome
Marko
--
zbfmail - Mittendrin statt nur Datei!
OpenDKIM, SPF, DSPAM, Greylisting, POSTSCREEN, AMAVIS, Mailgateways
Mailfiltering, SMTP Service, Spam Abwehr, MX-Backup, Mailserver Backup
Redundante Mailgateways, HA Mailserver, Secure Mailserver
8 years, 4 months