0420.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Arch Linux Install Guide Using VirtualBox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="VirtualBox,Virtual Machine,i12bretro,How To,Tutorial,Arch,Arch Linux,Linux">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Arch Linux Install Guide Using 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>Arch Linux Install Guide Using VirtualBox</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Download Arch Linux <a href="https://archlinux.org/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: Arch<br />
  29. Machine Folder: C:\VMs<br />
  30. Type: Linux<br />
  31. Version: Arch (64-bit)<br />
  32. Memory Size: 4096 MB<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 Arch.vdi<br />
  38. File size: 40 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 Display</li>
  47. <li>Slide the Video Memory to 128 MB</li>
  48. <li>Select Network</li>
  49. <li>Set the attached to dropdown to Bridged Adapter</li>
  50. <li>Select Storage</li>
  51. <li>Click on the CD-ROM drive</li>
  52. <li>Select the disc dropdown to the right &gt; Choose a virtual optical disc file...</li>
  53. <li>Browse to and select the downloaded Arch .iso file</li>
  54. <li>Click OK</li>
  55. <li>Make sure the Arch VM is selected and click Start &gt; Normal</li>
  56. <li>At the Arch Linux menu, select Arch Linux install medium &gt; Press Enter</li>
  57. <li>Run the following commands to install Arch Linux on the VBOX HARDDISK
  58. <div class="codeBlock"># list disk drives, note the identifier for VBOX HARDDISK<br />
  59. fdisk -l<br />
  60. # partition the drive, change the identifier if needed<br />
  61. fdisk /dev/sda<br />
  62. # create a new partition<br />
  63. n<br />
  64. # set the partition type to primary<br />
  65. p<br />
  66. # default sector<br />
  67. 2048<br />
  68. # set the partition size<br />
  69. +40GB<br />
  70. # create a swap partition<br />
  71. n<br />
  72. # set the partition type to primary<br />
  73. p<br />
  74. # default sector<br />
  75. Press Enter to accept default<br />
  76. # set the partition size<br />
  77. Press Enter to accept default<br />
  78. # write the partitions<br />
  79. w<br />
  80. # print out the partitions<br />
  81. fdisk -l<br />
  82. # create ext4 root partition<br />
  83. mkfs.ext4 /dev/sda1<br />
  84. # confirm proceeding with the change if prompted<br />
  85. y<br />
  86. # create swap partition<br />
  87. mkswap /dev/sda2<br />
  88. # confirm proceeding with the change if prompted<br />
  89. y<br />
  90. # mount the root partition<br />
  91. mount /dev/sda1 /mnt<br />
  92. # enable swap<br />
  93. swapon /dev/sda2<br />
  94. # run pacstrap installation<br />
  95. pacstrap /mnt base linux linux-firmware<br />
  96. # generate fstab file<br />
  97. genfstab -U /mnt &gt;&gt; /mnt/etc/fstab<br />
  98. # change root to the /mnt directory<br />
  99. arch-chroot /mnt<br />
  100. # set the hostname<br />
  101. echo archlinux-vm &gt; /etc/hostname<br />
  102. # install grub bootloader<br />
  103. pacman -S grub<br />
  104. grub-install /dev/sda<br />
  105. # create grub config<br />
  106. grub-mkconfig -o /boot/grub/grub.cfg<br />
  107. # install gnome desktop environment<br />
  108. pacman -S gnome<br />
  109. # enable required services<br />
  110. systemctl enable gdm.service<br />
  111. systemctl enable NetworkManager.service<br />
  112. # set root passwd<br />
  113. passwd<br />
  114. # shutdown<br />
  115. exit<br />
  116. shutdown now</div>
  117. </li>
  118. <li>Right click the Arch Linux VM &gt; Settings...</li>
  119. <li>Select Storage from the left navigation menu</li>
  120. <li>Remove the Arch Linux installation medium from the optical drive</li>
  121. <li>Click OK</li>
  122. <li>Right click the Arch Linux VM &gt; Start &gt; Normal Start</li>
  123. <li>At the gnome login, login with username root and the password set during the installation</li>
  124. </ol>
  125. <h2>Install VirtualBox Guest Additions (Optional)</h2>
  126. <ol>
  127. <li>Run the following command in a terminal window
  128. <div class="codeBlock">pacman -S virtualbox-guest-utils</div>
  129. </li>
  130. </ol>
  131. </div>
  132. </div>
  133. </body>
  134. </html>