[libvirt-users] Using certtool to generate certificates for ESXi
by Shiva Bhanujan
Hello,
I'm using certtool to generate the server certificates for ESXi -
http://libvirt.org/remote.html#Remote_TLS_CA. I just copy the server
certificate and key as /etc/vmware/ssl/rui.crt and /etc/vmware/ssl/rui.key.
And then use virsh to connect from a CentOS 6.4 VM running on it - "virsh
-c esx://<esx IP>. I get the following error -
error: internal error curl_easy_perform() returned an error: Peer
certificate cannot be authenticated with known CA certificates (60) : Peer
certificate cannot be authenticated with known CA certificates
error: failed to connect to the hypervisor
is there something basic that I'm missing?
Regards,
Shiva
10 years, 10 months
[libvirt-users] USB passthrough to WinXP guest - WinXP ignores it
by E Gerlach
WinXP ignores a USB passthrough!
Hello,
I need a persistent passthrough of a USB-device:
Bus 001 Device 020: ID 04e6:5311 SCM Microsystems, Inc.
I added <hostdev mode='subsy.... </hostdev> like this
to xml file:
[...]
<on_crash>restart</on_crash>
<devices>
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x04e6'/>
<product id='0x5311'/>
</source>
</hostdev>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
[...]
/var/log/libvirt/qemu/win-xp-prof.log:
=====================================
2013-11-02 12:26:42.007+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name win-xp-prof -uuid 5217ba2d-0d7d-1579-74a6-a1ad8439dda3 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win-xp-prof.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/win-xp-prof.img,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=20,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:7f:d8:80,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/4
The enty seems to be ignored completely. Where is
my configuration fault?
Maybe extra module need to be loaded? - In installed
WinXP with virt-manager.
Host: debian wheezy, kernel 3.10,
libvirt-bin 0.9.12-11
qemu-kvm 1.1.2
tia
Ekkard
10 years, 10 months
Re: [libvirt-users] [Qemu-devel] About VM fork in QEMU
by Xinyang Ge
>>> External snapshots (via the blockdev-snapshot-sync QMP command) can be
>>> taken in a matter of milliseconds if you only care about disk state.
>>> Furthermore, if you want to take a snapshot of both memory and disk
>>> state, such that the clone can be resumed from the same time, you can do
>>> that with a guest downtime that only lasts as long as the
>>> blockdev-snapshot-sync, by first doing a migrate to file then doing the
>>> disk snapshot when the VM pauses at the end of migration. Resuming the
>>> original guest is fast; resuming from the migration file is a bit
>>> longer, but it is still the fastest way possible to resume from a
>>> memory+disk snapshot. If you need anything faster, then yes, you would
>>> have to write patches to qemu to attempt cloning via fork() that makes
>>> sure to modify the active disk in use by the fork child so as not to
>>> interfere with the fork parent.
>>
>> I think migrating memory to file then doing external disk snapshot is
>> exactly what we want. Since we are using libvirt to manage different
>> VMs, could you give us some specific guides (or references) that how
>> we could migrate memory state to file using virsh interfaces and do
>> external snapshots?
>
> virsh snapshot-create-as $dom $name --live --memspec /path/to/memoryfile
I have tried this command on libvirt v1.1.3 and it returns "error:
invalid argument: qemuDomainSnapshotCreateXML: unsupported flags
(0x100)". Looks like --live is not supported yet. Could you let us
know which version we should of libvirt we should use in order to use
this feature?
Thanks,
Xinyang
--
Xinyang GE
Department of Computer Science & Engineering
The Pennsylvania State University
Homepage: http://www.cse.psu.edu/~xxg113/
10 years, 10 months
[libvirt-users] Fwd: Help regarding virsh domifstat
by Rohit Bhat
Hi,
I need a small help. I am working on a project where i have to monitor
network activity of a VM running on KVM.
I am interested in how much data is going into the VM and how much
data is coming out of the VM. I checked on the net and found out virsh
domifstat is the way to go about it.
1. But looks like these stats also include bytes related to control
traffic for the VM. Is there a way to exclude that? I just want the
size of actual data transfers.
2. Is there a way by which i can report the data transfer of VM with
the outside world (outside hypervisor) only while excluding data
transfer with any other VM on the same host or with the host itself?
Thanks,
Rohit
10 years, 10 months
[libvirt-users] libvirt_lxc causes cpu 100% usage
by jj zhong
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
....
10 years, 10 months