Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:libvirt [2018/07/27 13:27] – [Create a New Virtual Machine] officefuss:libvirt [2021/12/22 14:48] – [The VirtIO Pseudo-Random Generator] office
Line 389: Line 389:
 ====== The VirtIO Pseudo-Random Generator ====== ====== The VirtIO Pseudo-Random Generator ======
  
-Guest machines can be configured to use the host random hardware for pseudo-random number generation. In order to do this you will either need ''egd'' or ''haveged'' to generate more entropy.+Guest machines can be configured to use the host random hardware for pseudo-random number generation. First, edit the virtual machine domain configuration and add the following configuration lines: 
 +<code xml> 
 +    <rng model='virtio'
 +      <backend model='random'>/dev/random</backend> 
 +    </rng>  
 +</code> 
 + 
 +Next, install the ''rng-tools'' package: 
 +<code bash> 
 +apt-get install rng-tools 
 +</code> 
 +and start ''rngd'': 
 +<code bash> 
 +systemctl restart rng-tools 
 +</code>
  
 ===== Haveged ===== ===== Haveged =====
Line 618: Line 632:
 ====== Passing Plan 9 Permissions ====== ====== Passing Plan 9 Permissions ======
  
-Given a passed-through folder defined in the domain configuration file:+ 
 +===== Access Mode Mapped ===== 
 + 
 +The following configuration changes for the domain have to be made: 
 +<code xml> 
 +    <filesystem type='mount' accessmode='mapped'> 
 +      <source dir='/mnt/cdrom'/> 
 +      <target dir='cd'/> 
 +    </filesystem> 
 +</code> 
 + 
 +===== Access Mode Passthrough ===== 
 + 
 +For passthrough access mode, the following configuration change has to be made for the domain:
 <code xml> <code xml>
     <filesystem type='mount' accessmode='passthrough'>     <filesystem type='mount' accessmode='passthrough'>
Line 626: Line 653:
 </code> </code>
  
-virtual machines running under ''qemu'' / ''kvm'' have to be started as root. To accomplish that, edit ''/etc/default/libvirt/qemu.conf'' and set:+Virtual machines running under ''qemu'' / ''kvm'' have to be started as root. To accomplish that, edit ''/etc/default/libvirt/qemu.conf'' and set:
 <code> <code>
 user = "root" user = "root"
Line 637: Line 664:
 </code> </code>
 has to be added to ''/etc/default/libvirt/qemu.conf''. has to be added to ''/etc/default/libvirt/qemu.conf''.
 +
 +===== Mounting the Share =====
  
 Once the virtual machine boots, the share can then be automatically mounted by adding the following line: Once the virtual machine boots, the share can then be automatically mounted by adding the following line:
Line 648: Line 677:
   * ''posixacl'' turns on passing POSIX ACLs (very convenient for using ''getfacl'' and ''setfacl'' to fine tune permissions).   * ''posixacl'' turns on passing POSIX ACLs (very convenient for using ''getfacl'' and ''setfacl'' to fine tune permissions).
  
 +====== Setting Custom Interface Name for Bridge Networking Mode ======
 +
 +libvirt allows using:
 +<code>
 +<target dev='...'/>
 +</code>
 +
 +to set the custom name for bridge interfaces such as ''vnet0'', ''vnet1'', etc... 
 +
 +However, if the name of the interface contains the substring ''vnet'', libvirt will ignore the entry and will not save it, for instance, setting the interface name with:
 +<code>
 +<target dev='vnet888'/>
 +</code>
 +
 +will just be ignored by libvirt.
 +
 +To resolve this issue, use a more custom-tailored interface name, for instance:
 +<code>
 +<target dev='mynet0'/>
 +</code>
 +
 +without containing the ''vnet'' substring.
 +
 +====== Strange Windows Install Errors ======
 +
 +One easy workaround for a BSoD on a fresh Windows install complaining about ''IRQL_NOT_LESS_OR_EQUAL'' or reaching a fatal error is to increase the RAM available above $3GiB$.
  

fuss/libvirt.txt · Last modified: 2023/08/21 09:09 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.