Commit 52036bac authored by Julien Muchembled's avatar Julien Muchembled

vm: use virtio-rng with host's /dev/urandom to fix boot delays with recent OS

parent d18bac82
...@@ -124,7 +124,10 @@ class BaseRecipe(EnvironMixin): ...@@ -124,7 +124,10 @@ class BaseRecipe(EnvironMixin):
raise raise
return ['qemu-system-' + ARCH, '-enable-kvm', '-drive', drive, return ['qemu-system-' + ARCH, '-enable-kvm', '-drive', drive,
'-smp', self.options.get('smp', '1'), '-m', str(mem), '-smp', self.options.get('smp', '1'), '-m', str(mem),
'-net', 'nic,model=virtio', '-net', net] '-net', 'nic,model=virtio', '-net', net,
# https://daniel-lange.com/archives/152-hello-buster.html
'-object', 'rng-random,filename=/dev/urandom,id=rng0',
'-device', 'virtio-rng-pci,rng=rng0']
@property @property
def ssh_key(self): def ssh_key(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment