0422.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running a Ubuntu Server VM in Virtualbox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Linux,Virtualbox,Virtual Machine,VM,i12bretro,Tutorial,How To,Ubuntu Server,Ubuntu">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running a Ubuntu Server VM in Virtualbox">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Running a Ubuntu Server VM in Virtualbox</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Download Ubuntu Server&nbsp;<a href="https://ubuntu.com/download" target="_blank">Download</a></li>
  26. <li>Launch Virtualbox</li>
  27. <li>Create a New VM by selecting Machine &gt; New
  28. <p>Name: Ubuntu Server<br />
  29. Machine Folder: C:\VMs<br />
  30. Type: Linux<br />
  31. Version: Ubuntu (64-bit)<br />
  32. Memory Size: 2048MB<br />
  33. Hard disk: Create a virtual hard disk now</p>
  34. </li>
  35. <li>Click Create</li>
  36. <li>On the Create Virtual Hard Disk dialog
  37. <p>Name the virtual disk image Ubuntu Server.vdi<br />
  38. File size: 30 GB<br />
  39. Hard disk file type: VDI<br />
  40. Storage on physical hard disk: Dynamically Allocated</p>
  41. </li>
  42. <li>Click Create</li>
  43. <li>Select the VM and Click Settings</li>
  44. <li>Select System &gt; Processor</li>
  45. <li>Give the VM at least 2 processors</li>
  46. <li>Select Network</li>
  47. <li>Set the attached to dropdown to Bridged Adapter</li>
  48. <li>Select Storage</li>
  49. <li>Click on the CD-ROM drive</li>
  50. <li>Select the disc dropdown to the right &gt; Choose a virtual optical disc file...</li>
  51. <li>Browse to and select the downloaded Ubuntu Server .iso file</li>
  52. <li>Click OK</li>
  53. <li>Make sure the Ubuntu Server VM is selected and click Start &gt; Normal</li>
  54. <li>Select a language &gt; Press Enter</li>
  55. <li>Select a keyboard layout &gt; Arrow down to select Done &gt; Press Enter</li>
  56. <li>Press Enter to accept the network configuration</li>
  57. <li>Leave the proxy address empty &gt; Press Enter</li>
  58. <li>Leave the mirror address the default value &gt; Press Enter</li>
  59. <li>Leave the storage configuration default &gt;&nbsp;Arrow down to select Done &gt; Press Enter</li>
  60. <li>Press Enter to accept the storage configuration</li>
  61. <li>Arrow down to select Continue &gt; Press Enter</li>
  62. <li>Complete the profile form &gt;&nbsp;Arrow down to select Done &gt; Press Enter</li>
  63. <li>Press spacebar to select installing the SSH server &gt;&nbsp;Arrow down to select Done &gt; Press Enter</li>
  64. <li>Use spacebar to select any additional software installations&nbsp;&gt;&nbsp;Arrow down to select Done &gt; Press Enter</li>
  65. <li>Wait while Ubuntu copies files and installs</li>
  66. <li>Once the installation completes &gt; Arrow down to select Reboot Now &gt; Press Enter</li>
  67. <li>If the reboot gets stuck, manually restart the VM by select Machine &gt; Reset</li>
  68. <li>Welcome to Ubuntu Server</li>
  69. </ol>
  70. <h2>Optional Steps</h2>
  71. <ol>
  72. <li>Log in with the credentials setup during the installation</li>
  73. <li>Run the following commands to install updates
  74. <div class="codeBlock">sudo apt&nbsp;update<br />
  75. sudo apt&nbsp;upgrade -y<br />
  76. sudo apt&nbsp;clean</div>
  77. </li>
  78. <li>Select Devices &gt; Insert Guest Additions CD image...</li>
  79. <li>Run the following commands to install VirtualBox Guest Additions
  80. <div class="codeBlock">sudo mkdir /media/cdrom<br />
  81. sudo mount /dev/cdrom /media/cdrom<br />
  82. sudo apt&nbsp;dkms build-essential linux-headers-generic linux-headers-$(uname -r)<br />
  83. sudo&nbsp;/media/cdrom/VBoxLinuxAdditions.run<br />
  84. sudo reboot</div>
  85. </li>
  86. <li>The VM will reboot</li>
  87. <li>Log back into Ubuntu Server</li>
  88. </ol>
  89. </div>
  90. </div>
  91. </body>
  92. </html>