Activate storage during domain migration
by e-m@mailbox.org
Hi,
I have a block storage which I only want to be mounted on a single node.
I know that there are many possibilities for shared storage usage but I
want to know if the following is possible (using the API).
- Have a domain running on node-A
- Initialize a migration for that domain to node-B
- Run a hook or something just before the domain starts on node-B to:
- unmount storage on node-A
- mount/prepare storage on node-B
Thanks and best regards,
Etienne
1 year
Libvirt
by Gk Gk
Hi All,
I am trying to collect memory, disk and network stats for a VM on kvm host.
It seems that the statistics are not matching what the OS inside the VM is
reporting. Why is this discrepancy ?
Is this a known bug of libvirt ? Also I heard that libvirt shows cumulative
figures for these measures ever since the VM was created. Also I tested by
creating a new vm and comparing the stats without a reboot . Even in this
case, the stats dont agree. Can someone help me here please ?
Thanks
Kumar
1 year
Issue accidentally creating a '--type' defined pool
by Joshua Blake
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 /]# virsh pool-list
Name State Autostart
------------------------------
isos active yes
jblake active yes
[root@vh01 /]# virsh pool-destroy '--type'
error: command 'pool-destroy' doesn't support option --type
I can't also create a new "default" type because the directory exists
for this defined '--type'
[root@vh01 /]# virsh pool-define-as --name default --type dir --target
/data/storage/
error: Failed to define pool default
error: operation failed: Storage source conflict with pool: '--type'
[root@vh01 /]# virsh pool-delete "--type"
error: command 'pool-delete' doesn't support option --type
Any help would be greatly appreciated.
1 year, 1 month
Question about encryption and tls
by Kamil Jońca
(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
qemu+tls://bambus.kjonca/system?pkipath=...
(and on bambus in /etc/libvirt/libvirtd.conf) I set
key_file = ...
cert_file = ...
ca_file = ...
But after connect and lauching (on bambus) vm I tried to snif traffic to
bambus:5900 on client) and wireshark was able to detect "VNC"
protocol (BTW not spice?), so I am confused.
should I configure in /etc/libvirt/qemu.conf
spice_tls option and certificates ?
KJ
1 year, 1 month
Re: Help ! libvirt
by Bhasker C V
Adding libvirt mailing list
apologies for cross-posting
libvirt version: 9.7.0-1
On Thu, Sep 21, 2023 at 8:39 AM john doe <johndoe65534(a)mail.com> wrote:
> On 9/21/23 09:32, Bhasker C V wrote:
> > I am getting an error with libivrt when I create a VM
> >
> > ```
> > $ sudo virsh create ./win11.xml
> > error: Failed to create domain from ./win11.xml
> > error: internal error: mishandled storage format 'none'
> >
> > ```
> >
> > This is after I have done a dist-upgrade (was working fine before)
> > debian trixie.
> >
> > error message says
> > qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal error:
> > mishandled storage format 'none'
> >
>
> You might want to post this as well to the Libvirt mailing list.
>
> --
> John Doe
>
>
1 year, 2 months
virtio-mem with virt-install to share memory between guest and host on-demand
by Daniel Krajnik
Hi
I'm trying to Passthrough a GPU to a VM and have it still share its free
memory with the host (just like it would with virtio-balloon). Is this
something virtio-mem is capable of? I've tried to run it, but it
immediately took over 9GB of memory:
virt-install --name test --cpu
cell0.cpus=0,cell0.memory=4194304,cell1.cpus=1,cell1.memory=4194304
--memory maxMemory=65536,maxMemory.slots=8 --memdev
model=virtio-mem,target.node=0,target.block=2048,target.size=1000 --disk
size=400 --network network=ai
--location=/tmp/debian-12.1.0-amd64-netinst.iso --os-variant=debian11
--graphics none --extra-args "console=ttyS0
Best wishes,
Daniel
1 year, 2 months
CAN virtualization
by Sánta, Márton (ext)
Dear Users,
I use KVM with libvirt 9.0.0. The host and guest OS-es are also AGL needlefish images. I am currently trying to virtualize a CAN driver and provide virtual machines access to the physical CAN channels.
I started with the virtual network handling as CAN interface is a network interface, I tried to find analogies, solutions like "traditional" network handling but it did not work.
I also tried out to define a nodedev device via .xml config file. The interesting thing is, that when I list all the available nodedev devices with 'virsh nodedev-list', I can see 'net_can0' and 'net_can1' on the output as 'net' type device but I cannot attach these devices to the guests, and I do not know how to define it in the guest .xml file. I tried out many different things, but when I try to add it as a 'hostdev' device with different mode and type settings, I always get an error (e.g. not a PCI device or not supported device type etc.). It would be long to write down all the configurations I tried out, so my first question would be that does anybody know how could I provide access to guests to the physical CAN interfaces? The aim is to be able to send CAN messages from guest OS-es. If no direct access is possible, it would be also OK to have access to virtual CAN interfaces on the host and then transfer messages to the physical CAN channel.
Thank you in advance for an early reply!
Best regard,
Márton Sánta
This transmission is intended solely for the addressee and contains confidential information.
If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system.
Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like.
1 year, 2 months
how to build libvirt-go-module statically
by Jiatong Shen
Hello community,
I want to know how to build libvirt-go-module statically? My go version
is 1.17 and libvirt-go-module version is v1.9007.0. Thank you very much for
the help.
--
Best Regards,
Jiatong Shen
1 year, 2 months