[libvirt-users] Automated hashdeep and upgrade for VMs
by Sean Alexandre
Are there any utilities or scripts that automate the process of upgrading VMs,
along with other maintenance such as doing a hashdeep check of system files?
The key features I'm looking for would do something like:
- A: Shut down VM.
- B: Do a hashdeep check of system files.
- C: Optionally restore VM from a previous backup.
- D: Restart VM.
- E: Upgrade packages.
- F: Shut down VM.
- G: Backup VM (for next "C".)
- H: Run hashdeep on system files (for next "B".)
- I: Restart VM.
Other features, but less important, would backup/restore application files as
well.
11 years
[libvirt-users] libvirt_lxc causes cpu 100% usage
by 止语
libvirt_lxc causes cpu 100% usage?
libvirt version : 1.1.1
I don't know what happend, any help would be appreciated.
thx
top - 07:39:44 up 1 day, 2:13, 2 users, load average: 4.72, 4.59, 4.51
Tasks: 243 total, 4 running, 239 sleeping, 0 stopped, 0 zombie
%Cpu0 : 33.1 us, 1.3 sy, 0.0 ni, 64.6 id, 0.7 wa, 0.0 hi, 0.3 si, 0.0 st
%Cpu1 : 41.1 us, 3.0 sy, 0.0 ni, 55.3 id, 0.7 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 18.0 us, 2.0 sy, 0.0 ni, 79.7 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
%Cpu3 : 94.8 us, 5.2 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 55.7 us, 7.5 sy, 0.0 ni, 36.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu5 : 66.1 us, 4.3 sy, 0.0 ni, 29.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu6 : 16.8 us, 1.0 sy, 0.0 ni, 82.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu7 : 7.2 us, 0.7 sy, 0.0 ni, 92.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 1972112 total, 1894912 used, 77200 free, 236576 buffers
KiB Swap: 10485744 total, 0 used, 10485744 free, 574544 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15750 root 20 0 10448 2080 1216 R 100.3 0.1 1322:38 libvirt_lxc
27517 root 20 0 10448 2032 1200 R 99.3 0.1 1273:44 libvirt_lxc
25250 root 20 0 10480 2048 1200 R 99.0 0.1 1277:31 libvirt_lxc
....
11 years
[libvirt-users] cannot attach device using libvirt
by song
Hello guys:
I am using libvirt 0.9.4 on a CentOS 6.3 server.The operation of attach
device won't work.It states "error:Operation failed.Device hotplug is
not supported." When issue attach device command, there's nothing happen
in guest dmesg log.
Anybody came across this problem?
Any help will be appreciated!
11 years
Re: [libvirt-users] kvm/libvirt can't use vmdk files? qemu: 'vmdk' invalid format
by Hammad Siddiqi
Dear All,
While trying to run kvm VM using vmdk disk on 6.4 , I got into the
following error,
error: Failed to create domain from vmdkvm.xml
error: internal error process exited while connecting to monitor: qemu-kvm:
-drive
file=/mnt/vmdkTOKVM/vmdkTOKVM.vmdk,if=none,id=drive-ide0-0-0,format=vmdk,cache=none:
'vmdk' invalid format
upon further digging I came across this thread (
https://www.redhat.com/archives/libvirt-users/2011-November/msg00044.html)
also qemu-kvm shows that vmdk is supported but all in vain
Even if I try running with command line instead of XML I get error though
it says it is supported
[root@vmdkTOKVM]# /usr/libexec/qemu-kvm -drive
file=/mnt/vmdkTOKVM/vmdkTOKVM.vmdk,format=?
Supported formats: raw cow qcow vdi vmdk cloop dmg bochs vpc vvfat qcow2
qed parallels nbd blkdebug host_cdrom host_floppy host_device file
[root@vmdkTOKVM]# /usr/libexec/qemu-kvm -drive
file=/mnt/vmdkTOKVM/vmdkTOKVM.vmdk,format=vmdk
qemu-kvm: -drive file=/mnt/XOcom-prx-kvm/XOcom-prx-kvm.vmdk,format=vmdk:
'vmdk' invalid format
The packages being used are:
qemu-img-0.12.1.2-2.355.0.1.el6_4.9.x86_64
qemu-kvm-0.12.1.2-2.355.0.1.el6_4.9.x86_64
qemu-kvm-tools-0.12.1.2-2.355.0.1.el6_4.9.x86_64
libvirt-0.10.2-18.el6_4.14.x86_64
Any help in this regard will highly be apprectiated.
Thank you
Hammad Siddqi
11 years
[libvirt-users] hotplug is not supported
by song
Hello everybody:
I am using libvirt 0.9.4 on centos 6.4,when I am trying to attach disk
to a running vm, it shows :
error: operation failed: drive hotplug is not supported
Any body ever come across this problem?
11 years
[libvirt-users] Exploring linbvirt.
by cooldharma06
hi,
i am started to exploring libvirt. i am using the version libvirt-1.1.3 and
i want to know (or) find the path how the libvirt is creating VM with xen
(libxl) in the source. Any guide or reference is available for this. How i
can find the path of calling sequence for other operations(api). Guide me
to get some idea on debugging the libvirt.
Regards,
cooldharma06
11 years
[libvirt-users] help with VM migration problem: getfd, SCM_RIGHTS
by Joe Linoff
Hi,
I am getting the following error when I try to migrate two VM's on my network using virt-manager:
Unable to migrate guest: internal error unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS
All of the other VM's work just fine. There are 18 and I tested all of them.
Version info
OS: CentOS 6.4 (2.6.32-358.23.2) [the hypervisors and the guests]
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 0.12.1
It looks like this might be related to bug 731243 in the red hat bug DB but that was for 0.9.4.
If it is related to SELinux permissions, where can I look to fix it?
I ran "sealert -a /var/log/audit/audit.log" on the source hypervisor, the destination hypervisor and on the VM itself but no alerts were reported.
Any hints would be greatly appreciated, I am not sure what to try next.
Thanks,
Joe
11 years
Re: [libvirt-users] migrate & virtlockd
by NEVEU Stephane
Up.
Any ideas ?
Thank you
De : NEVEU Stephane
Envoyé : lundi 14 octobre 2013 10:46
À : libvirt-users(a)redhat.com
Objet : migrate & virtlockd
Hi all,
I'm testing virtlockd with libvirt 1.1.3 and it seems I can't migrate my VMs from the first to my second kvm node (on a NFS storage). Virtlockd is locking my qcow2 :
Error : resource busy Lockspace resource 'ea3jkj78.....' is locked
As a result my VM is paused.
How can I fix this behavior ?
Thank you for your help.
11 years