0470.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Virtual Machines on Debian/Ubuntu using QEMU, libvirt and Virt Manager</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="VM,Virtual Machines,Installation,Hypervisor,Home Lab,Home Lab Ideas,Install Guide,Linux,Debian,Ubuntu,QEMU,VirtMan,LibVirt,VMs,Virtual Machine Host,VM Host,Run Virtual Machines On Linux,Run Virtual Machines On Debian,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Virtual Machines on Debian/Ubuntu using QEMU, libvirt and Virt Manager">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="08/06/2023 09:50:53 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Running Virtual Machines on Debian/Ubuntu using QEMU, libvirt and Virt Manager</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Run the following commands in a terminal window
  28. <div class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install available software updates<br />
  31. sudo apt upgrade -y<br />
  32. # install qemu<br />
  33. sudo apt install qemu qemu-kvm qemu-system qemu-utils -y<br />
  34. # install libvirt<br />
  35. sudo apt install libvirt-clients libvirt-daemon-system virtinst -y<br />
  36. # install virt-manager UI<br />
  37. sudo apt install virt-manager -y</div>
  38. </li>
  39. <li>Launch Virt-Manager from the applications menu</li>
  40. <li>When prompted, enter the sudo password</li>
  41. <li>Click the Create VM button</li>
  42. <li>Select an installation method, Local install media in the example</li>
  43. <li>Click the Forward button</li>
  44. <li>Browse to the installation media</li>
  45. <li>If the operating system is not found automatically, uncheck the Automatically detect checkbox and use the search box to manually set the OS</li>
  46. <li>Click the Forward button</li>
  47. <li>Set the amount of memory and number of CPUs for the VM</li>
  48. <li>Click the Forward button</li>
  49. <li>Enter the size of the virtual disk to be created for the VM</li>
  50. <li>Click the Forward button</li>
  51. <li>Enter a name for the VM</li>
  52. <li>Click the Finish button</li>
  53. <li>If prompted, select Yes to start the virtual network interface</li>
  54. </ol> </div>
  55. </div>
  56. </body>
  57. </html>