Google Summer of Code - Redfish API implementation
by GUOQING LI
Hi libvirt crews
I am a 4th year Software Engineering student from ChiangMai University,
Thailand. Currently, I am doing a research internship at nara institute of
science and technology, Japan.
I have been working on a research that is related to the performance and
security characteristics of various container technologies like Linux
containers, gVisor , firecracker, kanta etc. It is supposed to be finished
by the middle of next April. I am hoping to get involved with libvirt
opensource project before I start my master program in October.
I am interested in the Redfish API implementation project suggested by Cédric
Bosdonnat. It's a nice modern RESTFUL JSON API which should not be very
challenging to work with Python. It seems like There is already a Redfish API
client <https://pythonhosted.org/python-redfish/readme.html> written in
Python, Do you think it would be a good idea to use it to test the API on
server side as i implemented through it ?
It would be great If I can get in touch with Cédric Bosdonnat and have
further discussion. Any suggestions about the project proposal would be
much appreciated.
Best regards,🙂
Lee
<https://www.dmtf.org/sites/default/files/standards/documents/DSP0266_1.9....>
4 years, 8 months
Problems with libvirt for MIPS
by Computers Issues
Hello.
It's my first time here, so I'm so sorry if I make mistakes with how I'm
sending or posting this.
I wanted to ask about some problems I've found with other people, working
with libvirt. We wanted to create a new virtual machine under MIPS
architecture, using Qemu and libvirt. We are able to create the machine,
and it boots, but never gets an IP. I'll leave the commands we've used, for
the case someone knows what could be wrong.
Qemu commands:
libvirt+ 41690 25.0 11.5 837532 147992 ? Sl 14:15 0:04
/usr/bin/qemu-system-mips -name guest=MIPS_32,debug-threads=on -S -object
secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-137-MIPS_32/master-key.aes
-machine malta,accel=tcg,usb=off,dump-guest-core=off -m 256 -realtime
mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid
eef94af7-4f20-4a00-9ae9-9b4133c1783b -display none -no-user-config
-nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-137-MIPS_32/monitor.sock,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-boot strict=on -kernel ~/vmlinux -append root=/dev/hda -device
piix3-usb-uhci,id=usb,bus=pci,addr=0x2 -drive
file=~/rootfs.ext2,format=raw,if=none,id=drive-ide0-0-0 -device
ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
-netdev tap,fd=26,id=hostnet0 -device
pcnet,netdev=hostnet0,id=net0,mac=52:54:00:09:a4:38,bus=pci,addr=0x1
-device virtio-balloon-pci,id=balloon0,bus=pci,addr=0x3 -device pcnet
-netdev user,id=net1 -msg timestamp=on
Thanks anyway!!!
4 years, 8 months
changing memory size with virsh setmem - results only visible in domain, not on host
by Lentes, Bernd
Hi,
i have a Linux domain (Ubuntu 14.04) where we like to be able to change the amount of usable memory.
We have a balloon device and statistics are switched in 5 sec. rhythm.
The domain shows very quickly changes (following top) when we change the memory size with setmem, but the host does not show changes in the use
of memory for the respective domain.
Is that expected behavior ?
Host is SLES 12 SP4, libvirt is 4.0.0-8.15.2
Bernd
--
Bernd Lentes
Systemadministration
Institute for Metabolism and Cell Death (MCD)
Building 35.34 - Raum 208
HelmholtzZentrum münchen
bernd.lentes(a)helmholtz-muenchen.de
phone: +49 89 3187 1241
phone: +49 89 3187 3827
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/mcd
Perfekt ist wer keine Fehler macht
Also sind Tote perfekt
Helmholtz Zentrum München
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
4 years, 8 months
KVM on CentOS 7 - sluggish performance with Win10 Guest
by Benjammin2068
Hey all,
I've been running a Win10 Pro (64bit) guest for some time now.... and originally it was pretty snappy and I had no complaints.
Somewhere in about the last 3-6 months I've been noticing sluggish performance -- but not overall.
The system is mostly remote so I do a lot of my admin via RDP or the local console with the KVM Manager.
I recently did a complete fresh install of Win10 Pro (1909. Previous install was 1607) and both show the same problem.
The ONLY real thing running on this VM is Milestone's surveillance system (standalone host).
Where I see the "sluggish" is:
Connecting to milestone mobile server (either through web browser or client). for the small number of cameras, the connection spool up takes like 15 seconds which is noticeably longer than other systems I have set up with more load/tasks in terms of cameras.
This used to be speedy and fine.
The other place I see sluggish operation is on the desktop doing some typical tasks and seeing "not responding" in the window of the task that goes away - but should it ever appear to begin with?
The system is a Supermicro motherboard with Dual Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz w/64GB
The Guest is provided with 20 cores in a config of 1 CPU, 10 cores - 2 threads per core.
There are dedicated NICs (dual NIC card) attached to the system via macvtap (and are not used by CentOS in any way except to pass through to this Guest)
I'm using QCOW2 for the base OS.
The storage volume for video are raw devices.
Once a process is running, performance seems fine... it seems to be starting processes or something.
I'm not sure -- and I'm not as intimate with KVM/libvirt as I'd like to be yet.
So I'm wondering if there's any performance tweaks I should know about.
I've read about using .img vs .qcow2 already.
I'm using virt-io drivers to some extent.... but is there anything else I'm missing?
Thanks in advance,
-Ben
4 years, 8 months
upgrading from fedora29 to fedora 31
by Thierry Parmentelat
Hi there
I am using libvirt+lxc on fedora
I just upgraded a couple boxes from f29 to f31
i am running into rather puzzling glitches on one of the boxes, and am having a hard time trying to figure what exactly is going wrong
symptom being that on the faulty box, my 3 containers startup correctly, but all of them stop after some random time shortly after (approx. in the 5-10 minutes)
in some cases I even lose one of the containers (its name no longer shows up in `virsh list —all` and I need to reboot the box to reinstate it
is there any known issue with libvirt/lxc on fedora 31 ?
*****
here’s the little that I’ve been able to figure out so far by myself
* I have turned on debugging of libvirtd as per the docs
log_filters="3:remote 4:event 3:util.json 3:rpc 1:*"
log_outputs="1:file:/var/log/libvirt/libvirtd.log”
and am digging in that log file, as well as the system journal, and the containers journals, to try and find some correlation;
* I have seen an error message saying this
> virNetSocketReadWire:1850 : End of file while reading data: Input/output error
and that could be related to the problem;
*****
this is really annoying and any hint would be hugely appreciated — thanks in advance
4 years, 8 months
Virtio-disk with driver from Microsoft from 2006 ?
by Lentes, Bernd
Hi,
i wanted to benchmark a windows guest, compare standard driver and virtio driver.
I installed the domain first with an IDE disk.
I followed https://pve.proxmox.com/wiki/Paravirtualized_Block_Drivers_for_Windows to install the virtIO driver.
In the device manager my VirtIO disk is recognized as a VirtIO SCSI disk from RedHat which seems ok for me.
But the driver is, following the device manager, a driver from Microsft from 21/06/2006, version 10.0.18362.1.
That's strange in my eyes. This driver is outdated and not from RedHat or Fedora, what i expected.
Also updating the driver and pointing to the CD, even the respective folder, didn't work.
It says the driver is the most recent.
I used the virtIO-ISO 0.1.173, Windows 10 64bit Edition 1903.
Bernd
--
Bernd Lentes
Systemadministration
Institute for Metabolism and Cell Death (MCD)
Building 35.34 - Raum 208
HelmholtzZentrum münchen
bernd.lentes(a)helmholtz-muenchen.de
phone: +49 89 3187 1241
phone: +49 89 3187 3827
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/mcd
Perfekt ist wer keine Fehler macht
Also sind Tote perfekt
Helmholtz Zentrum München
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
4 years, 8 months
Guests automatically stuck on pause
by JT Edwards
I have forced off the guest and started them again only to get this error
Error unpausing domain: internal error: unable to execute QEMU command
'cont': Resetting the Virtual Machine is required
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line
66, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1311,
in resume
self._backend.resume()
File "/usr/lib/python3/dist-packages/libvirt.py", line 2174, in resume
if ret == -1: raise libvirtError ('virDomainResume() failed', dom=self)
libvirt.libvirtError: internal error: unable to execute QEMU command
'cont': Resetting the Virtual Machine is required
Ubuntu:
5.4.0-14-generic #17-Ubuntu SMP Thu Feb 6 22:47:59 UTC 2020 x86_64 x86_64
x86_64 GNU/Linux
libvirt:
libvirtd (libvirt) 6.0.0
Thanks in advance
JT
4 years, 8 months
kvm presenting wrong CPU Topology for cache
by Satish Patel
Folks,
I am having major performance issue with my Erlang application running
on openstack KVM hypervisor and after so many test i found something
wrong with my KVM guest CPU Topology
This is KVM host - http://paste.openstack.org/show/790120/
This is KVM guest - http://paste.openstack.org/show/790121/
If you carefully observe output of both host and guest you can see
guest machine threads has own cache that is very strange
L2 L#0 (4096KB) + Core L#0
L1d L#0 (32KB) + L1i L#0 (32KB) + PU L#0 (P#0)
L1d L#1 (32KB) + L1i L#1 (32KB) + PU L#1 (P#1)
I believe because of that my erlang doesn't understand topology and
going crazy..
I have Ali Cloud and AWS and when i compare with them they are showing
correct CPU Topology the way physical machine showing, something is
wrong with my KVM look like.
I am running qemu-kvm-2.12 on centos 7.6 and i have tune my KVM at my
best level, like CPU vining, NUMA and cpu host-passthrough.
Thanks in advance for your help.
4 years, 8 months