0702.html 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run a DD-WRT VM on Proxmox VE</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="DD-WRT Proxmox Tutorial,DD-WRT Proxmox VM,How To Virtualize DD-WRT,Virtualize DD-WRT Router,Can You Virtualize DD-WRT,DD-WRT,Virtualization,Virtual,VM,Virtual DD-WRT,Virtualize DD-WRT,Server,Router,Home Server,Home Lab,Install Guide,Hypervisor,Self-Hosted,DD-WRT VM,DD-WRT Setup,DD-WRT Installation,Homelab,Security,IT Security,Proxmox 7,Homelab Ideas,Open Source,Proxmox VE,Linux,Debian,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run a DD-WRT VM on Proxmox VE">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="03/21/2022 08:47:01 PM" />
  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>Run a DD-WRT VM on Proxmox VE</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is DD-WRT?</h2>
  26. <blockquote>DD-WRT is a Linux based alternative OpenSource firmware suitable for a great variety of WLAN routers and embedded systems. The main emphasis lies on providing the easiest possible handling while at the same time supporting a great number of functionalities within the framework of the respective hardware platform used.<em> -<a href="https://dd-wrt.com/" target="_blank">https://dd-wrt.com/</a></em></blockquote>
  27. <h2>Creating the VM</h2>
  28. <ol>
  29. <li>Open a web browser and navigate to the ProxMox web UI https://ProxMoxDNSorIP:8006/</li>
  30. <li>Click the Create VM button at the top right</li>
  31. <li>On the General tab, name the VM DD-WRT and set a VM ID (144 in this example) &gt; click Next</li>
  32. <li>On the OS tab select Do not use any media and set the Guest OS Type to Linux and Version to 5.x - 2.6 Kernel &gt; click Next</li>
  33. <li>On the System tab click Next</li>
  34. <li>On the Hard Disk tab set the Disk size to 0.001 &gt; click Next</li>
  35. <li>On the CPU tab set the number of CPU cores and the Type to host &gt; click Next</li>
  36. <li>On the Memory tab set the amount of memory to 256 MiB and uncheck Ballooning Device &gt; click Next</li>
  37. <li>On the Network tab set the Model field to Intel E1000, Uncheck the Firewall box &gt; click Next</li>
  38. <li>On the Confirm tab review the settings and click Finish</li>
  39. <li>Select the newly created DD-WRT VM from the left navigation panel</li>
  40. <li>Select Hardware from the left sub-navigation menu</li>
  41. <li>Click the Hard Disk to select it</li>
  42. <li>Click the Detach button at the top of the main content window to detach the hard disk from the VM</li>
  43. <li>Click the Unused disk to select it</li>
  44. <li>Click the Remove button at the top of the main content window to permanently delete it</li>
  45. <li>Click the CD/DVD Drive to select it</li>
  46. <li>Click the Remove button at the top of the main content window to permanently delete it</li>
  47. </ol>
  48. <h2>Setting Up the DD-WRT Disk</h2>
  49. <ol>
  50. <li>Select the Proxmox node name in the left navigation menu</li>
  51. <li>Click Shell in the left sub-navigation</li>
  52. <li>Run the following commands in the terminal
  53. <div class="codeBlock CMD"># lookup the latest stable version number<br />
  54. # download dd-wrt image<br />
  55. wget https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2020/11-03-2020-r44715/x86_64/dd-wrt_x64_public_vga.image<br />
  56. # rename the extracted img<br />
  57. mv ./dd-wrt_x64_public_vga.image ./dd-wrt.raw<br />
  58. # increase the raw disk to 512 MB<br />
  59. qemu-img resize -f raw ./dd-wrt.raw 512M<br />
  60. # import the disk to the dd-wrt vm<br />
  61. # update the vm id and storage device as needed<br />
  62. # usage: qm importdisk #vm id# #source file# #target storage#<vmid><storage><br />
  63. qm importdisk 144 dd-wrt.raw HDD_500GB</storage></vmid></div>
  64. </li>
  65. <li>Once the disk import completes, select the DD-WRT VM from the left navigation menu &gt; Hardware</li>
  66. <li>Double click the Unused Disk &gt; Set the Bus/Device to SATA &gt; Click the Add button</li>
  67. <li>Select Options from the left sub-navigation menu</li>
  68. <li>Double click Boot Order</li>
  69. <li>Check the Enabled box next to the hard disk</li>
  70. <li>Drag the Hard disk up to the top of the boot order &gt; Click OK</li>
  71. <li>Double click Use tablet pointer &gt; Uncheck the Enabled box &gt; Click OK</li>
  72. <li>Click the Start button in the top right of the screen</li>
  73. <li>Click the Console link to watch the boot process</li>
  74. <li>Wait for the text to stop scrolling and press Enter</li>
  75. <li>Login with username root and password admin</li>
  76. <li>Run the following commands to set the local IP address, network mask and gateway (update with IPs in your local subnet)
  77. <div class="codeBlock CMD"># set the bridge IP and netmask<br />
  78. ifconfig br0 10.10.27.155 netmask 255.255.255.0<br />
  79. # set the default gateway<br />
  80. add route default gw 10.10.27.27</div>
  81. </li>
  82. <li>Open a new browser tab and navigate to http://IPofVM, http://10.10.27.155 in the example</li>
  83. <li>At the login screen, enter the username root and the password set above &gt; Click the Login button</li>
  84. <li>Enjoy DD-WRT running in Proxmox</li>
  85. </ol>
  86. </div>
  87. </div>
  88. </body>
  89. </html>