Re: Issue accidentally creating a '--type' defined pool

2023-10-04 Thread Michal Prívozník
On 9/29/23 11:40, Joshua Blake wrote: > Hello, > > I seem to have accidentally created a pool called "--type", but it > doesn't appear in 'virsh pool-list'. See below. > > [root@vh01 /]# virsh pool-define-as --name --type dir --target > /data/storage/ > Pool --type defined > > [root@vh01 /]#

Re: Help ! libvirt

2023-09-22 Thread Michal Prívozník
On 9/22/23 10:34, Andrea Bolognani wrote: > On Fri, Sep 22, 2023 at 06:33:06AM +0100, Bhasker C V wrote: >> I finally fixed it. >> The issue seems to be with the tpm-tis/cpu backend (wonder why it shows up >> with a different error) >> For the sake of community, I am attaching the new xml file so

Re: Question about encryption and tls

2023-09-11 Thread Michal Prívozník
On 9/10/23 13:00, Kamil Jońca wrote: > (Posted few days ago on qemu group but no reactions) > > Do I understand correctly that ssl shoudl be configured independently > for libvirt and each hypervisor? > I asked because I configured libvirt connection as > >

Re: Does libvirt support intra-host KVM migration?

2023-08-17 Thread Michal Prívozník
On 8/16/23 22:55, Eric Wheeler wrote: > Hello all, I'm reposting this to the libvirt-users list: > > I looked around for documentation on intra-host KVM migration but haven't > found much. For example, this could be useful to "migrate" VM to run on > an upgraded version of `qemu-kvm` without

Re: virsh not connecting to libvertd ?

2023-06-16 Thread Michal Prívozník
On 6/12/23 20:17, Jerry Buburuz wrote: > > Just found my issue. > > After I removed the cephfs mounts it worked! > > I will debug ceph. > > I assumed because I could touch files on mounted cephfs it was working. > > Now virsh list works! Out of curiosity. Do you perhaps have a storage pool

Re: Changing EFI boot order via API

2023-06-16 Thread Michal Prívozník
On 6/12/23 15:38, Lukas Zapletal wrote: > Hello, > > I would like to be able to change the boot order of an EFI VM via > libvirt API. Specifically, I am looking into configuring a VM to boot > over HTTP UEFI Boot or HTTPS UEFI Boot (also available as HTTP IPv4 in > the firmware). > > Is this

Re: Invalid value '-1' for 'cpu.max': Invalid argument - a result of?

2023-05-17 Thread Michal Prívozník
On 5/16/23 14:57, lejeczek wrote: > hmm, I've decommissioned that test-lab, whichever version is there in > oVirt stable... I might try again later. Okay. > ps. it does not take up much off the underlying hardware - as a VM, a > few gigs and few cores. > I know. It's not matter of hardware

Re: Invalid value '-1' for 'cpu.max': Invalid argument - a result of?

2023-05-16 Thread Michal Prívozník
On 5/15/23 15:35, lejeczek wrote: > > > On 15/05/2023 12:06, Michal Prívozník wrote: >> On 5/14/23 07:35, lejeczek wrote: >>> Hi guys. >>> >>> In hope that an expert read this - what is, can be, the below a >>> result of? >>> >>

Re: ignored ?

2023-05-16 Thread Michal Prívozník
On 5/15/23 19:07, lejeczek wrote: > Hi guys. > > I have a domain definition with this: > ... >   >     >     value='name=opt/com.coreos/config,file=/00-VMs/oshift1node.ign'/> >   > > > at the bottom of xml. > 'virsh' creates domain a okey but in VM I do not see ignition happened - > it's

Re: PHP API

2023-05-15 Thread Michal Prívozník
<https://libvirt.org/html/libvirt-libvirt-common.html#virTypedParameterPtr> > params, >int nparams, >unsigned int > flags)intvirDomainBlockPull (virDomainPtr > <https://libvirt.org/html/lib

Re: Invalid value '-1' for 'cpu.max': Invalid argument - a result of?

2023-05-15 Thread Michal Prívozník
On 5/14/23 07:35, lejeczek wrote: > Hi guys. > > In hope that an expert read this - what is, can be, the below a result of? > > 12284 still running (86040) > Invalid value '-1' for 'cpu.max': Invalid argument This looks like a string coming from libvirt. When setting CGroups, from

Re: how to get domain name into the logs - ?

2023-05-09 Thread Michal Prívozník
On 5/8/23 11:02, lejeczek wrote: > Hi guys. > > I have libvirt/qemu setup with pretty vanilla settings and my logs, a > snippet, look like this: > > ... > migration successfully aborted > internal error: qemu unexpectedly closed the monitor: This ^^^ is error message produced by libvirt and as

Re: PHP API

2023-05-03 Thread Michal Prívozník
On 4/30/23 20:29, Simon Fairweather wrote: > Hi Michal > > Are there plans to implement  snapshot create_as version of the > following function where XML could be passed? Honestly, there are no plans for libvirt-php. I maintain it in my spare time and implement features as somebody requests

Re: Option Flags

2023-03-23 Thread Michal Prívozník
On 3/23/23 10:35, Simon Fairweather wrote: > Hi  > > Are the flags documented? can this function be used to  specify  same > as virsh undefine --nvram "name of VM" > > libvirt_domain_undefine_flags($res, $flags) > > [Since version (null)] > > Function is used to undefine(with flags) the domain

Re: virsh domifaddr --domain domname --source {lease, arp} not showing results with ipv6

2023-03-21 Thread Michal Prívozník
On 3/21/23 16:50, Natxo Asenjo wrote: > hi, > > On Tue, Mar 21, 2023 at 3:40 PM Michal Prívozník <mailto:mpriv...@redhat.com>> wrote: > > On 3/19/23 20:21, Natxo Asenjo wrote: > > hi, > > > > I have configured a routed network on my lap

Re: virsh domifaddr --domain domname --source {lease, arp} not showing results with ipv6

2023-03-21 Thread Michal Prívozník
On 3/19/23 20:21, Natxo Asenjo wrote: > hi, > > I have configured a routed network on my laptop with a ipv6 subnet and > dnsmasq is handing out ipv6 addresses to my vms and it works really wel, > but finding out which ips have been used is not as easy as with ipv4. > > [root@lenovo ~]# virsh

Re: ACLs problem on /dev/kvm

2023-02-28 Thread Michal Prívozník
[Please keep the list CCed for benefit of the community] On 2/27/23 16:58, Sánta, Márton (ext) wrote: > Dear Michal, > > Thank you for your quick help, this worked for me but I would like to use the > latest version if it is possible. Do you know how to upgrade my libvirt > version in yocto? I

Re: ACLs problem on /dev/kvm

2023-02-22 Thread Michal Prívozník
On 2/21/23 09:47, Sánta, Márton (ext) wrote: > Dear All, > >   > > I have started to work with libvirt a few weeks ago, but I have some > problem with starting a virtual machine. Currently, I am using an > *embedded arm64 device* with a *Linux* built with *Yocto*. I managed to > install *lbvirt

Re: Unable to set XATTR trusted.libvirt.security.dac Operation not supported

2023-02-06 Thread Michal Prívozník
On 2/6/23 10:49, Simon Fairweather wrote: > Thanks Michal, following your suggestion on FS It looks like a fuse > 3.13.0 issue, if I use drive mount point it works. Should have checked > this first. > No problem. Do you have a link to a bug report perhaps? I'd like to check to see if it's worth

Re: Unable to set XATTR trusted.libvirt.security.dac Operation not supported

2023-02-06 Thread Michal Prívozník
On 2/2/23 20:05, Simon Fairweather wrote: > Running with Kernel 6.1.8  > > QEMU 7.1 libvirt 8.7 > > setting remeber_owner = 0 resolves the issue but was working ok on > kernel 6.0.x. > > root@computenode:~# cat  /etc/libvirt/qemu.conf | grep reme > # Whether libvirt should remember and restore

Re: libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Michal Prívozník
On 1/31/23 20:17, Dipanjan Das wrote: > > > On Tue, 31 Jan 2023 at 22:49, Michal Prívozník <mailto:mpriv...@redhat.com>> wrote: > > On 1/31/23 13:43, Dipanjan Das wrote: > > Hello, > > > > I am getting the follo

Re: libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Michal Prívozník
On 1/31/23 13:43, Dipanjan Das wrote: > Hello, > > I am getting the following error message when trying to run a VM with > the emulatorpin cpuset set to a value - > > "cannot set CPU affinity on process 78: Invalid argument". > > Note that removing the emulatorpin leads to the VM running

Re: virConnectGetDomainCapabilities

2023-01-13 Thread Michal Prívozník
On 1/7/23 16:15, Simon Fairweather wrote: > Hi > > Is there a php api version for this? There is now: https://gitlab.com/libvirt/libvirt-php/-/commit/af33dcf01243b81fe1d9b23ab105c1ba157cd9af Michal

Re: libvirt_connect_get_nic_models

2023-01-02 Thread Michal Prívozník
On 12/28/22 10:09, Simon Fairweather wrote: > Hi  > > Can you confirm that I source get an array of these when running this > api call, currently I just get a return of false > Yeah, this is because as of QEMU's commit [1] (contained in QEMU-4.1.0 release) the format in which list is reported

Re: libvirt_connect_get_machine_types

2022-12-07 Thread Michal Prívozník
On 12/7/22 11:27, Simon Fairweather wrote: > Awesome, thanks!  Aaand it's done. https://libvirt.org/sources/php/ Michal

Re: libvirt_connect_get_machine_types

2022-12-07 Thread Michal Prívozník
On 12/6/22 20:13, Simon Fairweather wrote: > Thanks for the update. What does this mean? > > The only problem is that QEMU feeds us PPM which is not wired to PHP > really. > > We are using this patch to remove imageMagik as it is not required for > our needs. > Eric - I strip out the requirement

Re: libvirt_connect_get_machine_types

2022-12-06 Thread Michal Prívozník
On 12/6/22 13:57, Simon Fairweather wrote: > When will 0.5.7 be released? Yeah, I should probably do the release soon as there is a lot of changes. But firstly, I'd like to get rid of imagick dependency as it's not strictly needed (only used in examples/ for downscaling the screenshots of running

Re: libvirt_connect_get_machine_types

2022-12-06 Thread Michal Prívozník
On 12/6/22 09:41, Simon Fairweather wrote: > Hi Michal, > > There is an issue with keys generated in the function adding null to the > end of each key, I have created an issue with a patch from Eric at LimeTech. > > https://gitlab.com/libvirt/libvirt-php/-/issues/7 >

Re: libvirt_connect_get_machine_types

2022-12-05 Thread Michal Prívozník
On 12/4/22 18:18, Simon Fairweather wrote: > Using the following > > php: version 8.1.13 > php-libvirt: version 0.5.6 (build 2) > > libvirt 8.7.0 > QEMU 7.1.0 > > virsh capabilities works fine. > > > Any known issues with php 8 for this function, others seem to be working > fine. Hey, I

Re: domain_qemu_agent_command($domain,$cmd,$timeout,$flags)

2022-11-16 Thread Michal Prívozník
On 11/16/22 09:07, Simon Fairweather wrote: > Thanks, But is is not in the list here. > > https://libvirt.org/php/api-reference.html > Ah, fixed now. Thanks for the report. Michal

Re: domain_qemu_agent_command($domain,$cmd,$timeout,$flags)

2022-11-16 Thread Michal Prívozník
On 11/15/22 18:21, Simon Fairweather wrote: > libvirt_domain_interface_addresses()  this doesn't seem to be in the php > api reference. I'm not sure what you mean. It was added ~3 years ago: https://gitlab.com/libvirt/libvirt-php/-/commit/97a86d8428b5d189a0dd09c86be8c7cfee05a463 It's in

Re: domain_qemu_agent_command($domain,$cmd,$timeout,$flags)

2022-11-15 Thread Michal Prívozník
On 11/15/22 14:44, Simon Fairweather wrote: > Hi Michal, > > Can you advise why the following warning is logged for this command: > domain_qemu_agent_command($res, > '{"execute":"guest-network-get-interfaces"}', 10, 0) ; > > warning : qemuDomainObjTaintMsg:6464 : Domain id=1 name='HA' >

Re: domain_qemu_agent_command($domain,$cmd,$timeout,$flags)

2022-10-26 Thread Michal Prívozník
On 10/25/22 20:04, Simon Fairweather wrote: > Should there be a way to suppress errors using the flags? > >  error : qemuDomainAgentAvailable:8411 : Guest agent is not responding: > QEMU guest agent is not connected > > > Or is there a libvirt function to check connection status or another way?

Re: Virtual Networking

2022-10-26 Thread Michal Prívozník
On 10/25/22 17:03, Armin Lepir wrote: > Hi  > > I am using libvrt for the first time. Im building a KVM for multiple > Virtual OS instances. > > The problem i have is with your official documentation for Virtual > Networking. > > https://wiki.libvirt.org/page/VirtualNetworking >

Re: failed to load seccomp syscall filter in kernel: Operation canceled

2022-10-25 Thread Michal Prívozník
On 10/25/22 02:38, Jiatong Shen wrote: > Hello community, > >    I am operating an openstack cluster where applications (libvirt/nova > etc) are running using containers. The compute node's arch is aarch64 > (phytium 2500), when there are virtual machines around 60 or 70, I > failed to boot new

Re: hook script for changing disk definition before guest start

2022-10-24 Thread Michal Prívozník
On 10/21/22 15:30, Gionatan Danti wrote: > Hi all, > due to this [1] I am trying to change a guest's disk definition from > "pool volume" to "file" via hook scripts. This is downright libvirt bug and needs to be fixed. For the libvirt developers on CC: when starting a domain, the QEMU driver

Re: MemoryBacking options

2022-10-24 Thread Michal Prívozník
y-devices > > > On Mon, Oct 17, 2022 at 9:06 AM Michal Prívozník <mailto:mpriv...@redhat.com>> wrote: > > [please keep the list on CC for benefit of the community] > On 10/16/22 09:58, Simon Fairweather wrote: > > Thanks Michal, Are there any

Re: MemoryBacking options

2022-10-17 Thread Michal Prívozník
[please keep the list on CC for benefit of the community] On 10/16/22 09:58, Simon Fairweather wrote: > Thanks Michal, Are there any known issues with Memory Backing. We have > QEMU 7.1 and libvirt 8.7. > > If just Memory Backing is set the VM Freezes after a couple of hours and > the allocated

Re: MemoryBacking options

2022-10-10 Thread Michal Prívozník
On 10/8/22 11:10, Simon Fairweather wrote: > Hi, > > Is there any documentation that states which options can be used > together with each other. > > > > > ... > > > > > > > > > > > > > ... > > All of them can be used together

Re: Why host device disappear in libvirt doman xml?

2022-09-29 Thread Michal Prívozník
[Once again, please keep the list on CC] On 9/29/22 04:59, 陈新隆 wrote: > Thanks for the detail explanation, it's very helpful.  > > I guess : > 1. virsh dumpxml outputs the live xml(or active xml)  Yes, if domain is running then it outputs the live XML, otherwise it outputs the inactive XML. For

Re: Why host device disappear in libvirt doman xml?

2022-09-28 Thread Michal Prívozník
e something that user specifically wanted and I believe nobody likes those "smart" tools that get in your way. > 2. After a host device is hot-unplugged, will libvirtd aware of it then > remove the related `hostdev` element from xml ?  Yes. I believe the reasoning is seen in the pr

Re: [Question] Should libvirt update live xml accordingly when guest mac is changed?

2022-09-26 Thread Michal Prívozník
On 8/30/22 05:22, Fangge Jin wrote: > Hi > > I met an issue when testing trustGuestRxFilters: > Attach a macvtap interface with trustGuestRxFilters=’yes’ to vm, then > change interface mac address in vm. > Should libvirt update interface mac in live vm xml accordingly? If not, > vm network will

Re: Why host device disappear in libvirt doman xml?

2022-09-26 Thread Michal Prívozník
On 9/26/22 15:06, 陈新隆 wrote: > > > > I'm using Kubevirt to manage my virtual machine instances. When I using > Kubevirt to create a vm(with two GPUs), kubevirt will generate a libvirt > guest domain xml for this vm which includes two GPUs, the

Re: NUMA node - Memory Only

2022-08-09 Thread Michal Prívozník
On 8/9/22 12:55, Jin Huang wrote: > Hi, everyone > I built the libvirt 8.6.0 on my Ubuntu 20 system with the options like this: > meson build -Dsystem=true -Ddriver_interface=enabled > -Ddriver_libvirtd=enabled -Ddriver_network=enabled -Ddriver_qemu=enabled > -Ddriver_remote=enabled

Re: NUMA node - Memory Only

2022-08-05 Thread Michal Prívozník
On 8/5/22 11:25, Jin Huang wrote: > Hi, libvirt-users > How could I set up a memory-only and no-cpu NUMA node for the qemu-VM > with the XML file? > > Seems each NUMA cell has to be bundled with some specific cpuids. > If I write the element like this, it is wrong. > > >   >     >     >   >

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 10:07, Jiatong Shen wrote: > thank you very much for reply. I have got another question which is off > topic. > Am I able to get vm's process id through libvirt api? Unfortunately, no. We specifically try to avoid telling users this information so that they are not tempted to go behind

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 09:48, Jiatong Shen wrote: > Thank you very much for reply. Initially my thought of uptime is equal > to executing to `uptime` inside a virtual machine.  > as for the second case, where virtual machine is paused for a period, > does libvirt expose an api to get how long qemu process >

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 08:49, Jiatong Shen wrote: > Hello community, > >    I would like to know if there is an api to get a virtual machine's > uptime. Thank you in advance for the help. There's no such API because not even qemu guest agent has an explicit API for that. However, it has an API to execute

Re: Testing DKIM handling

2022-07-15 Thread Michal Prívozník
On 7/15/22 14:37, dberra...@yahoo.com wrote: > Hopefully the final test message, as DKIM is believed to be  correctly > handled on the mailing lists now > Yay!  Michal

Re: Domain XML of a restored VM

2022-06-13 Thread Michal Prívozník
On 6/10/22 15:31, Tomáš Golembiovský wrote: > Hi, > > I am looking for clarification on what exactly is happening to the > domain XML when resuming a suspended VM. We would like to make sure we > don't lose any configuration and we also see some unexpected behavior. > > The VM with the name/UUID

Re: something (qemu?) is leaking

2022-05-23 Thread Michal Prívozník
On 5/23/22 11:19, lejeczek wrote: > Hi guys. > > I do a simple thing which should be easy to reproduce. > > -> $ virt-install -n rum1 --virt-type kvm --os-variant centos8 --memory > $((4*1024)) --disk=/VMs3/rum1.qcow2,device=disk,bus=virtio --network > network=10_3_1,model=virtio

Re: Virtiofs xattr options on domain xml

2022-05-19 Thread Michal Prívozník
On 5/19/22 00:53, ksobrenat32 wrote: > Hi! > > I have a debian 11 (bullseye) machine running libvirtd version 7.0.0 and > a RHEL 9 virtual machine that I need to share a disk and though about > virtiofs. > > The disk is a btrfs disk and I have successfully mount it with: > >     >   >

Re: Updating domains definitions via API

2022-05-16 Thread Michal Prívozník
On 5/16/22 14:52, Darragh Bailey wrote: > So perhaps this is less a bug with the loader/nvram XML element handling > and more a documentation bug and a possible enhancement that possibly > the virDomainDefineXMLFlags could consider accepting a flag to verify the > returned domain XML is

Re: Updating domains definitions via API

2022-05-16 Thread Michal Prívozník
On 5/16/22 12:46, Darragh Bailey wrote: > > On Mon 16 May 2022, 10:10 Michal Prívozník, <mailto:mpriv...@redhat.com>> wrote: > > On 5/14/22 21:23, Darragh Bailey wrote: > > > > On Fri, 13 May 2022 at 00:17, Darragh Bailey >

Re: Problem calling 'virsh' in a script

2022-05-16 Thread Michal Prívozník
On 5/15/22 17:48, Digimer wrote: > Hi all, > >   I've got a series of programs that monitor various things on a CentOS > Stream 8 VM host. All of these scripts work when called directly. > However, when I have a parent program that calls all the little programs > in series, I found that some

Re: Updating domains definitions via API

2022-05-16 Thread Michal Prívozník
On 5/14/22 21:23, Darragh Bailey wrote: > > On Fri, 13 May 2022 at 00:17, Darragh Bailey > wrote: > > Hi, > > On Thu 12 May 2022, 21:34 Laine Stump, > wrote: > > The virDomainDefineXMLFlags API (and also the

Re: Debugging hanging libvirt

2022-04-04 Thread Michal Prívozník
On 4/1/22 21:55, Tobias Hofmann (tohofman) wrote: > Hi Daniel, > >   > > Thank you to Peter and you for the analysis – that was very helpful. > > Indeed, it can happen that we restart the firewall during this scenario > on our system so I think I can debug from here. > >   > > By the way, you

Re: virDomainCoreDump output format

2022-03-29 Thread Michal Prívozník
On 3/23/22 14:19, Shelly Kagan wrote: > Hi all, > I have a small question regarding virDomainCoreDump. > In the documentation[1] it is stated that the output is of format RAW. > After implementing a function using this command the output file > format that I see is ELF. I understand those formats

Re: PHP Warning: libvirt_domain_new(): Cannot get installation XML

2022-03-29 Thread Michal Prívozník
On 3/24/22 21:48, Benjamin Smith wrote: > Despite great success at using php-libvirt with other functions, I have > been entirely unsuccessful in getting it to create a new domain/machine. > Any time I do, and with virtually anything I try, I get the above error > message.  > > Running PHP 7.4

Re: how to reliably shutdown domains ?

2022-03-09 Thread Michal Prívozník
On 3/8/22 20:25, Lentes, Bernd wrote: > Hey guys, > > i have a two-node cluster with around 20 domains. Cluster-Software is > pacemaker and corosync, OS is SLES 12 SP5. > The scripts for starting/stopping the domains use virsh. Is there a way to > reliably shutdown the domains via virsh ? > I'm

Re: Number of the max supported VFs are different

2022-03-07 Thread Michal Prívozník
On 3/3/22 03:55, Yalan Zhang wrote: > Hi there, > > I have an Intel X520 network card, and I find the max supported VFs are > different. > Please check below outputs: > > # lspci -vvv -s 04:00.0 > 04:00.0 Ethernet controller: Intel Corporation Ethernet 10G 2P X520 > Adapter (rev 01) > ... >  

Re: About RO connection

2022-03-07 Thread Michal Prívozník
On 3/2/22 03:28, Xingbo Kan wrote: > Dear developers and users: > Is there any standard or convention of which kind of APIs could > be invoked by RO connection? If there is any, please tell me in > detail, thanks a lot! Your best bet is to look at public API implementation [1] and see if

Re: libvirtd file descriptors leaking

2022-03-01 Thread Michal Prívozník
On 3/1/22 12:40, Дмитрий wrote: > Any update on this issue? Does anyone have a success on reproducing that? > Should I upgrade/downgrade/sidegrade? > > Additional info: > > I am using CentOS 8 Stream, but with kernel > > 5.14.15-1.el8.elrepo.x86_64 #1 SMP Tue Oct 26 11:45:20 EDT 2021 x86_64

Re: QEMU args generation order with libvirt

2022-02-28 Thread Michal Prívozník
On 2/28/22 08:51, M, Shivakumar wrote: > Hello, > >   > > We are trying to bring up the Android VM with Libvirt, as part of this > exercise it is advised to keep Replay Protected Memory Block (RPMB) > device as the first virtio device in the QEMU arg list, as the secure > storage daemon in

Re: libvirtd file descriptors leaking

2022-02-22 Thread Michal Prívozník
On 2/22/22 16:36, Дмитрий wrote: > # lsof -p $(cat /run/libvirtd.pid) > run1 > # virt-df -d kvm3586 > # lsof -p $(cat /run/libvirtd.pid) > run2 > # diff run1 run2 > 196a197 >> libvirtd 3618992 root 54u unix 0x902dc0c58440 0t0 99330533 >> type=STREAM > I wonder whether this is

Re: random but often VMs' - BUG: soft lockup

2022-02-22 Thread Michal Prívozník
On 2/22/22 09:48, lejeczek wrote: > Hi guys > > I see this often(perhaps once a day) on VMs: > > ... watchdog: BUG: soft -lockup - CPU#1 stuck for xxXXxxs! [swapper/1:0] I used to see these when I suspended the host with guests running. But in your case, because of the "swapper" suffix I

Re: Hugepages -- "Memory backend 'pc.ram' not found"

2022-02-22 Thread Michal Prívozník
On 2/21/22 17:12, Charles Polisher wrote: Hey, please the list on CC for benefit of others, e.g. when somebody runs into the same problem they can find the discussion in the archive. > On 2/21/22 01:54, Michal Prívozník wrote: > >> On 2/20/22 04:07, Charles Polisher wrot

Re: Hugepages -- "Memory backend 'pc.ram' not found"

2022-02-21 Thread Michal Prívozník
On 2/20/22 04:07, Charles Polisher wrote: > Hello, > > After defining hugepages, as documented at > https://libvirt.org/formatdomain.html#memory-backing , > when I start the guest, I get a dialogue > box that says: > >     Error starting domain: internal error: qemu unexpectedly >     closed the

Re: libvirtd daemon missing in LFS

2022-02-14 Thread Michal Prívozník
On 2/14/22 10:09, Sai Kiran Kumar Reddy wrote: > Hi Peter, > > Thanks for your inputs. I have looked at all the dependencies and built > libvirt with the appropriate dependencies enabled. I am able to run > virt-manager also, without any errors. I am trying to create a VM using > virsh. I get an

Re: qemu+ssh connections to a remote libvirt fail as ssh banner configured

2022-02-10 Thread Michal Prívozník
On 2/10/22 09:02, Daniel P. Berrangé wrote: > On Thu, Feb 10, 2022 at 09:52:52AM +0800, Yalan Zhang wrote: >> Hi there, >> >> I have a system configured with ssh login banner like as below: >> # cat ~/.bashrc >> ... >> echo >>

Re: error during host deploy

2022-01-11 Thread Michal Prívozník
On 1/11/22 11:13, Dana Elfassy wrote: > In the last one I don't see a link to download the RPM, can you check? You have to click on the arch you are interested in, for instance x86_64 is the following link: https://koji.fedoraproject.org/koji/taskinfo?taskID=81062428 And if you don't want to

Re: error during host deploy

2022-01-10 Thread Michal Prívozník
On 1/10/22 15:08, Michal Prívozník wrote: > On 1/10/22 13:04, Dana Elfassy wrote: >> sorry, I missed your last reply >> I didn't reproduce it yet, but fedora rpm would be great. just in case  >> thanks >> > > Here you go: > Ooops, wrong link. This one is corr

Re: error during host deploy

2022-01-10 Thread Michal Prívozník
On 1/10/22 13:04, Dana Elfassy wrote: > sorry, I missed your last reply > I didn't reproduce it yet, but fedora rpm would be great. just in case  > thanks > Here you go: https://koji.fedoraproject.org/koji/buildinfo?buildID=1867760 Michal

Re: error during host deploy

2021-12-22 Thread Michal Prívozník
On 12/22/21 08:44, Dana Elfassy wrote: > Thanks, > Is it possible that you create an rpm with this fix so I can use it on > the test runs and try to reproduce? Oh, sure. Is fedora rpm fine? Michal

Re: error during host deploy

2021-12-21 Thread Michal Prívozník
On 12/20/21 11:34, Dana Elfassy wrote: > Hi, > While running a test case of adding hosts on ovirt system tests there > was a failure while the following command was executed: > vdsm-tool configure --force > > On libvirtd log I found this error: > > 2021-12-17 00:11:41.753+: 28031: error :

Re: Best way to install guest when it is not listed in output of osinfo-query os

2021-12-20 Thread Michal Prívozník
On 12/20/21 06:52, john doe wrote: > Hello all, > > I would like to install Debian Bullseye using virt-install, as part of > the command I usually specify the OS used with the option '--os-variant'. > This works great untill Buster ('debian10'), but now the guest is > Bullseye ('debian11') and is

Re: Libvirt on little.BIG ARM systems unable to start guest if no cpuset is provided

2021-12-14 Thread Michal Prívozník
gt;> >> On Mon, 13 Dec 2021 at 15:02, Qu Wenruo wrote: >>> >>> >>> >>> On 2021/12/13 21:17, Michal Prívozník wrote: >>>> On 12/11/21 02:58, Qu Wenruo wrote: >>>>> Hi, >>>>> >>>>> Recently

Re: Libvirt on little.BIG ARM systems unable to start guest if no cpuset is provided

2021-12-13 Thread Michal Prívozník
>> >> Thanks Peter for throwing us under the big-little bus! ;-) >> >>> >>> On Mon, 13 Dec 2021 at 15:02, Qu Wenruo wrote: >>>> >>>> >>>> >>>> On 2021/12/13 21:17, Michal Prívozník wrote: >>>

Re: Libvirt on little.BIG ARM systems unable to start guest if no cpuset is provided

2021-12-13 Thread Michal Prívozník
On 12/11/21 02:58, Qu Wenruo wrote: > Hi, > > Recently I got my libvirt setup on both RK3399 (RockPro64) and RPI CM4, > with upstream kernels. > > For RPI CM4 its mostly smooth sail, but on RK3399 due to its little.BIG > setup (core 0-3 are 4x A55 cores, and core 4-5 are 2x A72 cores), it >

Re: virsh create fails with "Unable to find any firmware to satisfy 'efi'" for aarch64 guest on macOS

2021-11-30 Thread Michal Prívozník
On 11/30/21 11:40, Andrea Bolognani wrote: > On Tue, Nov 30, 2021 at 09:54:38AM +0100, Michal Prívozník wrote: >> On 11/30/21 06:49, Nathan Vander Wilt wrote: >>> Ah, but it looks like the arm64 -> VIR_ARCH_AARCH64 patch >>> is still in limbo? AFAICT that's

Re: virsh create fails with "Unable to find any firmware to satisfy 'efi'" for aarch64 guest on macOS

2021-11-30 Thread Michal Prívozník
On 11/30/21 06:49, Nathan Vander Wilt wrote: > On Mon, Nov 29, 2021 at 2:28 AM Ján Tomko wrote: >> Can you try with the latest libvirt? >> 7.10.0-rc2 was just tagged today and should be out this week: >> https://listman.redhat.com/archives/libvirt-announce/2021-November/msg2.html > > Ah, but

Re: virsh create fails with "Unable to find any firmware to satisfy 'efi'" for aarch64 guest on macOS

2021-11-30 Thread Michal Prívozník
On 11/30/21 06:33, Nathan Vander Wilt wrote: > On Fri, Nov 26, 2021 at 11:08 PM Michal Prívozník wrote: >> Since you are providing the path to both UEFI image and varstore you can >> drop this 'firmware="efi"' attribute. It's what's causing troubles here. > > Tha

Re: migrate libvirt config between machines

2021-11-30 Thread Michal Prívozník
On 11/29/21 17:37, daggs wrote: > Greetings, > > I'd like to migrate my current libvirt config from one machine to another, > what is the best way to do so? > > Thanks > Do you mean domain/network/... XMLs or {libvirtd,qemu,...}.config files? For the former I suggest 'virsh dumpxml $dom >

Re: virsh create fails with "Unable to find any firmware to satisfy 'efi'" for aarch64 guest on macOS

2021-11-26 Thread Michal Prívozník
On 11/27/21 00:08, Nathan Vander Wilt wrote: > I am having trouble when I `virsh create test.xml` with an aarch64 > guest on a macOS (Apple Silicon) host. I've wrestled with a variety of > issues but the one I simply haven't been able to get past is this > regarding the UEFI firmware: > > error:

Re: Libvirt + Debian Live = Heart Attack

2021-11-24 Thread Michal Prívozník
On 11/24/21 16:01, Elias Mobery wrote: > Hello Michal, thank you for the reply! > > I've carefully tested everything you suggested, thanks. > > I set dynamic_ownership=0 and use these hooks during the live build for > permissions. (I googled a lot, and apparently libvirt needs the images > to be

Re: Libvirt + Debian Live = Heart Attack

2021-11-23 Thread Michal Prívozník
On 11/23/21 17:25, Elias Mobery wrote: > > Hi everyone! > > I've built a Debian Live ISO with packages qemu and libvirt to run a VM > in the live environment. > > The guest images are placed in  /var/lib/libvirt/images and 2GB each. > > Everything works great, except for one issue. > > When

Re: Questions on device-added and device-removed events

2021-11-23 Thread Michal Prívozník
On 11/18/21 07:37, Han Han wrote: > Hi developers, > When the guest OS is booting, the event for live attachment could be > caught by libvirt, while the event for live detachment could not. > Version: > libvirt-7.9 > qemu-kvm-6.1 > > Steps: > Terminal 1: > ➜  ~ virsh event --loop --all > >

Re: how to use vhost-user-vsock

2021-11-23 Thread Michal Prívozník
On 11/16/21 14:54, Jiatong Shen wrote: > Hello community, > >   I am looking for a way to configure vhost-user-vsock using libvirt, > but looks like it is not written in doc. How can I use vhost-user-vsock > using libvirt? Thank you. > Libvirt has basic support for vsock:

Re: another upgrade another vm issue

2021-10-29 Thread Michal Prívozník
On 10/28/21 8:40 PM, daggs wrote: > Greetings, > > so I've upgraded my server and yet again, one of my vm lost a functionally. > there is no usable sound card. > xml: https://dpaste.com/CVR5M75VH > in vm: https://snipboard.io/aZ7Dcf.jpg > > outputs: > utils_server /home/igor # qemu-system-x86_64

Re: VM paused during multipath iSCSI reservation

2021-10-14 Thread Michal Prívozník
On 10/13/21 2:54 PM, Vojtech Juranek wrote: > Hi, > I'm trying to find the root cause for BZ #1898049 [1]. When setting up > Windows HA > cluster on Windows Server VMs run on top of oVirt, Windows cluster validator > runs couple of tests > and fails during test "Validate SCSI-3 Persistent

Re: security driver mismatch blocks live migration..

2021-09-20 Thread Michal Prívozník
On 9/18/21 4:39 AM, Jiatong Shen wrote: > Hello community, > > I am seeing following error during performing a live migration > > libvirtError: unsupported configuration: Unable to find security driver for > model apparmor > > The root cause is the destination libvirtd runs inside a container

Re: virsh domifaddr domain does not show static IP

2021-09-12 Thread Michal Prívozník
On 9/10/21 4:07 AM, Kaushal Shriyan wrote: > > > Is there a way to find out the Static IP address if the KVM Guest VM > instance is shut off? Thanks in advance.  > This strongly depends on where you configure the static IP. If it's a libvirt managed network then you can just dump the network

Re: Question The order of the output of virsh guestinfo --filesystem

2021-08-23 Thread Michal Prívozník
On 8/23/21 1:19 PM, liuyd.f...@fujitsu.com wrote: > Hi all. > > I'm curious about the output order of virsh guestinfo --filesystem. > Is the output random? > virsh guestinfo output. > It is not sorted by  name or total-bytes/used-bytes It's in whatever order the guest agent reported. And

Re: Usage of virsh commands on guest lxc container are failing

2021-08-05 Thread Michal Prívozník
On 8/4/21 8:51 AM, Yuva Raj wrote: > Hi Team, > > I am new to the Qemu/KVM, libvirt and these technologies. > Hypervisor is running on linux kernel with libvirtd version 1.3.2. > I am trying to spawn LXC ubuntu(21.04) container using virsh -c lxc:// > commands on the hypervisor and ubuntu

Re: ERROR Couldn't find hvm kernel for Ubuntu tree.

2021-08-05 Thread Michal Prívozník
On 8/4/21 5:21 PM, Kaushal Shriyan wrote: > Hi, > > #cat /etc/redhat-release > CentOS Linux release 7.8.2003 (Core) > #virt-install --version > 1.5.0 > #virt-install -n snipeitassetmanagementubuntu --ram 8096 --vcpus 2 > --virt-type kvm --os-type linux --os-variant ubuntu18.04 --graphics none >

Re: investigate locks on a domain

2021-07-20 Thread Michal Prívozník
On 7/20/21 11:17 AM, Peter Krempa wrote: > On Tue, Jul 20, 2021 at 15:52:58 +0800, Jiatong Shen wrote: >> Hello community, >> >> I am seeing following log in production, >> >> 2021-07-20 07:43:49.417+: 3918294: error : >> qemuDomainObjBeginJobInternal:4945 : Timed out during operation: cannot

Re: openVswitch won't get to a virtual IP

2021-07-14 Thread Michal Prívozník
On 7/14/21 3:54 PM, lejeczek wrote: > Hi guys. > > Among all the mailing lists I'm subscriber of this one I thought, would > where chances to find 'openvswitch'+'libvirtd' experts to share thoughts > & suggestions should be grater. > > A case: > a) all guests are KVM. > b) I have NM managed OVS

Re: DAC & glusterFS - errors

2021-07-08 Thread Michal Prívozník
On 7/5/21 11:28 PM, lejeczek wrote: > Hi guys > > I'm trying to spin up a VM whose image is on a GlusterFS vol, and I fail: > > -> $ virsh create /var/lib/pacemaker/conf.d/win10Pro.xml > error: Failed to create domain from /var/lib/pacemaker/conf.d/win10Pro.xml > error: failed to initialize

Re: unaccessible directory in lxcContainerResolveSymlinks

2021-06-23 Thread Michal Prívozník
On 6/23/21 11:28 AM, Priyanka Gupta wrote: > Hi, > > If I try to add only /flash (without dir subdirerctory) into the XML, it > works fine for me. > Does it matter what sort of permissions(user/grp) /flash/dir has? A-ha! It can happen that root can't access some directories even though a

Re: unaccessible directory in lxcContainerResolveSymlinks

2021-06-23 Thread Michal Prívozník
On 6/23/21 11:08 AM, Priyanka Gupta wrote: > Hi Michal, > > This is how snippets from my XML looks like. Full XML at the end of the > mail..  >     /usr/sbin/libvirt_lxc >     >       >       >     >     >       >       >     > > The issue I am facing is, my container doesnt start. Fails

  1   2   >