Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
building_debian_virtual_machine [2019/03/25 17:29] warmachine created |
building_debian_virtual_machine [2019/03/25 17:59] (current) warmachine |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Building a Debian Virtual Machine ====== | ====== Building a Debian Virtual Machine ====== | ||
| - | __**Create the VM**__\\ | + | <color #ed1c24>__**Create the VM**__</ |
| Open Hyper-V Manager \\ | Open Hyper-V Manager \\ | ||
| New -> Virtual Machine\\ | New -> Virtual Machine\\ | ||
| Line 9: | Line 9: | ||
| **Configure networking for your virtual switch**\\ | **Configure networking for your virtual switch**\\ | ||
| This assumes you've created one, if not, go into virtual switch manager, create one, and assign it to a physical port that has a connection.\\ | This assumes you've created one, if not, go into virtual switch manager, create one, and assign it to a physical port that has a connection.\\ | ||
| - | **set disk space**\\ | + | **Set disk space**\\ |
| 4gb is usually fine for small applications, | 4gb is usually fine for small applications, | ||
| - | **installation | + | **Installation |
| - | install an operating system from a bootlable cd/DVD-Rom, image file, path to ISO\\ | + | install an operating system from a bootlable cd/ |
| + | [[https:// | ||
| right click on your VM, connect\\ | right click on your VM, connect\\ | ||
| + | <color # | ||
| + | Choose CLI install\\ | ||
| + | **Some General Settings**\\ | ||
| + | English\\ | ||
| + | United States\\ | ||
| + | American English\\ | ||
| + | Give it a hostname\\ | ||
| + | Input your domain name (this can be blank)\\ | ||
| + | Create root password\\ | ||
| + | Create a new user\\ | ||
| + | Create a new password\\ | ||
| + | Set the timezone\\ | ||
| + | **Hard drive and Installation Options**\\ | ||
| + | Partition disks -> Guided -> Use entire disk -> All files in one partition -> Finish\\ | ||
| + | Answer " | ||
| + | Wait for fxxxing ever\\ | ||
| + | Answer " | ||
| + | United States\\ | ||
| + | ftp.us.debian.org\\ | ||
| + | Leave proxy blank -> continue\\ | ||
| + | Wait some more\\ | ||
| + | Answer " | ||
| + | **Installation Configuration Options**\\ | ||
| + | Un-check (spacebar) Debian desktop --seriously, | ||
| + | Un-check printserver\\ | ||
| + | Check SSH server\\ | ||
| + | Check standard system utilities\\ | ||
| + | Continue\\ | ||
| + | Wait even more\\ | ||
| + | Answer " | ||
| + | Choose device " | ||
| + | <color # | ||
| + | Login with root/pw\\ | ||
| + | apt-get install sudo -y | ||
| + | usermod -aG sudo // | ||
| + | logout | ||
| + | Login with newusername | ||
| + | sudo bash | ||
| + | sudo nano / | ||
| + | leave loopback\\ | ||
| + | remove dhcp\\ | ||
| + | obviously the IP, subnet mask, dns, etc.. will all determine on your network configuration. This is an example with a Class C, one internal DNS, one external.\\ | ||
| + | # The primary network interface | ||
| + | auto eth0 | ||
| + | iface eth0 inet static | ||
| + | address 192.168.1.40 | ||
| + | netmask 255.255.255.0 | ||
| + | network 192.168.1.0 | ||
| + | broadcast 192.168.1.255 | ||
| + | gateway 192.168.1.1 | ||
| + | dns-nameservers 192.168.1.33 208.67.222.222 | ||
| + | (Ctrl +x) (y , enter) //--This saves the document// | ||
| + | sudo reboot | ||
| + | At this point stop using hyper-V terminal and ssh into the IP address you selected. Your Debian VM is setup. Now you can install whatever tools and software you wish and put it to use. | ||
Last modified: le 2019/03/25 17:29
