GithubHelp home page GithubHelp logo

Comments (6)

 avatar commented on May 23, 2024

I found out that with libvirt 1.3 I can use:
-device virtio-rng-pci
to supply a hardware random number generator to the VM.
Anyway to specify some devices within the terraform resources would be appreciated.

from terraform-provider-libvirt.

dmacvicar avatar dmacvicar commented on May 23, 2024

@fisabelle What do you mean with emulator CPU type? Can you paste the ps output that shows the qemu command line libvirt is using?

from terraform-provider-libvirt.

 avatar commented on May 23, 2024

Hi.
This is what is being used:

/usr/libexec/qemu-kvm -name centos7_vm_domain_78,debug-threads=on -S -machine pc-i440fx-rhel7.2.0,accel=kvm,usb=off -m 4096 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 692e3a40-54e3-4921-a27e-77e943ea58e4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-54-centos7_vm_domain_78/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -no-acpi -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/home/vmstore/ramdisk/centos7_vm_disk_78,format=qcow2,if=none,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=45,id=hostnet0,vhost=on,vhostfd=47 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a1:a3:78,bus=pci.0,addr=0x3 -spice port=5909,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on

For some reason, I'm experiencing long delays during the initialization of a keystore component in my VM. At first I though this to be due to the CPU type selection but it turned out to be due to the default random number generator in the VM, it is very slow to accumulate data.

I noticed that if I use: -device virtio-rng-pci as an extra device in my VM, this process if much faster.

So, this is why I want to be able to specify additional device specifications in the terraform resource file.

Thank you.
François.

from terraform-provider-libvirt.

flavio avatar flavio commented on May 23, 2024

I think this bug can be closed, the latest code adds a virtio random generator to all the domains.

from terraform-provider-libvirt.

 avatar commented on May 23, 2024

That's excellent! I'll try it as soon as possible.

Le 15 oct. 2016 3:17 PM, "Flavio Castelli" [email protected] a
écrit :

I think this bug can be closed, the latest code adds a virtio random
generator to all the domains.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARnXvdG7S-tBTGyaLFGl6HIe8mNBwSkHks5q0SbXgaJpZM4IspCX
.

from terraform-provider-libvirt.

 avatar commented on May 23, 2024

Tried it today. works well for me, thank you.

2016-10-15 15:18 GMT-04:00 François Isabelle [email protected]
:

That's excellent! I'll try it as soon as possible.

Le 15 oct. 2016 3:17 PM, "Flavio Castelli" [email protected] a
écrit :

I think this bug can be closed, the latest code adds a virtio random
generator to all the domains.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARnXvdG7S-tBTGyaLFGl6HIe8mNBwSkHks5q0SbXgaJpZM4IspCX
.

from terraform-provider-libvirt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.