[libvirt-users] ceph rbd pool and libvirt manageability (virt-install)
by Jelle de Jong
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everybody,
I created a rbd pool and activated it, but I can't seem to create
volumes in it with virsh or virt-install?
# virsh pool-dumpxml myrbdpool
<pool type='rbd'>
<name>myrbdpool</name>
<uuid>2d786f7a-2df3-4d79-ae60-1535bcf1c6b5</uuid>
<capacity unit='bytes'>6997998301184</capacity>
<allocation unit='bytes'>10309227031</allocation>
<available unit='bytes'>6977204658176</available>
<source>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
<name>libvirt-pool</name>
<auth type='ceph' username='libvirt'>
<secret uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
</source>
</pool>
# virt-install --version
1.0.1
# virsh --version
1.2.9
I ended using virsh edit ceph-test.powercraft.nl and making creating
the disk manually.
<disk type='network' device='disk'>
<auth username='libvirt'>
<secret type='ceph' uuid='029a334e-ed57-4293-bb99-ffafa8867122'/>
</auth>
<source protocol='rbd' name='libvirt-pool/kvm01-storage'>
<host name='ceph01.powercraft.nl' port='6789'/>
<host name='ceph02.powercraft.nl' port='6789'/>
<host name='ceph03.powercraft.nl' port='6789'/>
</source>
<target dev='vdc' bus='virtio'/>
</disk>
I use virt-install a lot to define, import and undefine domains, how
can I use virt-install to manage my rdb disks?
Kind regards,
Jelle de Jong
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iJwEAQECAAYFAlV1xlQACgkQ1WclBW9j5HkbPQP+PjNrzvlqysslOp2Yk7wH4Mxy
2sh2dn96G0KOAHEeEn3BN6IWlnD1TADZbHdpTtMwkdv48Xwn0sP1s+3QDM4pb3gP
n+z+dVxS8FouDIy/eiso3IBCj3g4TWbEX8ZHqs3jKqe0lZgAXBzB9xYSUowcEBrZ
ddkPbr8p8ozWyOG+9V8=
=lkK7
-----END PGP SIGNATURE-----
6 years, 2 months
[libvirt-users] virRandomBits - not very random
by Brian Rak
I just ran into an issue where I had about 30 guests get duplicate mac
addresses assigned. These were scattered across 30 different machines.
Some debugging revealed that:
1) All the host machines were restarted within a couple seconds of each
other
2) All the host machines had fairly similar libvirtd pids (within ~100
PIDs of each other)
3) Libvirt seeds the RNG using 'time(NULL) ^ getpid()'
This perfectly explains why I saw so many duplicate mac addresses.
Why is the RNG seed such a predictable value? Surely there has to be a
better source of a random seed then the timestamp and the pid?
The PID seems to me to be a very bad source of any randomness. I just
ran a test across 60 of our hosts. 43 of them shared their PID with at
least one other machine.
6 years, 5 months
[libvirt-users] No way to stop virStream error after guest stop
by JosÉ Luis Valencia Gutierrez
Hello everyone,
I am opening a virChannel(unix) to a domain and receiving data with a
non-blocking virStream using events, when the connected domain gets
stopped(which deletes the channel unix socket) by calling destroy,
shutdown, pause or migrate on that domain, with the stream open the read
event is triggered repeatedly, and virStreamRecv returns 0 bytes indicating
EOF but neither virStreamFinish nor virStreamFinish is working to stop
the stream to trigger the event . Each time the event is called I got this
errors.
libvirt: I/O Stream Utils error : this function is not supported by
the connection driver: virStreamRecv
libvirt: I/O Stream Utils error : this function is not supported by
the connection driver: virStreamFinish
libvirt: I/O Stream Utils error : this function is not supported by
the connection driver: virStreamEventRemoveCallback
Is there other way to stop getting this errors? or perhaps this is a bug.
Thanks in advance.
Jose Valencia
7 years, 5 months
[libvirt-users] Hopefully simple question
by Leroy Tennison
Is there a way to determine what the hypervisor default NIC is? I'm
using kvm/libvirt/qemu. If this is the wrong forum please please reply
with that.
7 years, 5 months
[libvirt-users] can't establish more than 1000 connections with virsh
by dw
Hi:
I'm trying to connect with libvirtd with virsh from a remote PC,but
only can establish 1000 connections.
If try more connections,prompt:
"error: failed to connect to the hypervisor
error: Failed to open file '/etc/libvirt/libvirt.conf': Too many
open files"
I tried in another PC,also get the same prompt.
Anybody know why?
Thanks!
environment:
libvirt:libvirt-2.0.0-10.el7
OS:centos7.3
7 years, 6 months
[libvirt-users] nwfilter - how to protect VM's
by Thiago Oliveira
Hello guys!
I have just one physical NIC (eth0) and some libvirt networks. Each network
created represents one customer and it is working fine. My question is how
can I protect between the customer's networks?
For example: The host 192.168.2.2 from the network 192.168.2.0/30 can not
access any VM in others networks but the 192.168.2.2 can access 192.168.0.1
because it is the gateway to the internet and this host can receive
incoming connections from the internet.
I would like to tag with VLAN for example but I don't have sure if this is
the best way.
See below my route table
[image: Imagem inline 1]
Thank you guys.
Thiago
7 years, 6 months
[libvirt-users] How to show underlying QEMU command line using virsh
by Roman Storozhenko
Hello, everybody
I use virt to run my VM's and QEMU as a hypervisor. There is a file
describing my virtual machine:
/etc/libvirt/qemu/centos7.0.xml
As you know it contains xml representation of my VM. Is there any way to
show underlying qemu command that virsh runs using that file? For
example:
qemu-system-x86-64 -m 1024 -smp 2 -...
If no, is there any way to figure it out during VM run ?
---
Thanks in advance,
Roman Storozhenko
7 years, 6 months
[libvirt-users] How to set guest console size in libvirt configuration options?
by Roman Storozhenko
Hello, everybody
I use virsh to run my VM and QEMU as a hypervisor.
When I connect to it, it shows me a console with a some predefined size.
I know that I am able to update grub configuration to pass the correct
size as a kernel command line option or use stty something like:
stty rows 62 cols 213
and it's resizes correctly.
But is there any way to define the console's size outside the guest, in
the VM's configuration?
---
Thanks in advance,
Roman Storozhenko
7 years, 6 months
[libvirt-users] How to fit with Apparmor when upgrade to new libvirt version?
by Eddie Yen
Hi everyone, this is my first post at this mailing list.
I have a question about upgrading libvirt, but also can fit to Apparmor.
For example, I already installed KVM + libvirt from apt-get on Ubuntu 14.04.
But the libvirt version is 1.2.9, so I want upgrade to 1.3.4 manually.
Search the Internet, only few posts show how to edit so that can launch VM
with Apparmor enabled.
Most of posts says disable Apparmor is good idea, but I don't want to do
that.
I already done these things:
1. Replace apparmor profiles from examples/apparmor into /etc/apparmor.d
2. Use --with-apparmor and --with-apparmor-profiles to compile.
But I still get virt-aa-helper DENIED message when I try to launch VM.
Any ideas?
Many thanks,
Eddie.
7 years, 6 months