Skip to content

Commit

Permalink
chore. Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusl committed Mar 22, 2023
1 parent 6bb9e14 commit da4ba10
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions tools/hyperv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,6 @@ to an Azure VM as well.
## Instructions

1) Start an admin powershell prompt
2) Run the command from this directory, `.\create-dev-box.ps1 -VMRoot D:\dev -VMType overlaybd -VMName mirrortestvm`
3) After the script completes wait a minute or two for the VM to initialize
4) Open Hyper-V manager and a new VM should be running
5) Double click on the VM, when prompted for username enter `chief` (TODO: Temporary common username)
6) Choose a new password and login
7) Double check cloud-init is finished,
1. `sudo su`, must be root to check the logs
2. `tail -f /var/log/cloud-init-output.log`, the last message should say finished and if it's not complete tail should be following it to completion
8) Reboot the machine, `reboot` -- This is so that you can see the ip address from the Hyper-V Manager. It will be under the networking tab.

### Connecting to the VM

You can either connect through the Hyper-V manager, or through your own terminal. If you connect through the Hyper-v manager you will be missing some quality of life features, but it's fast and easy.

If you want to connect through terminal there are some steps you need to complete before that is possible.

1) First you need to add your public ssh-key to the VM, currently this might be a bit of a pain and is something that can be automated by the script but that's required
2) Next open up a powershell prompt on the host. It's important that you do not try to ssh from a WSL machine, because you won't be able to resolve the IP.
3) Find the ip address in the Hyper-V manager
4) ssh to the machine, likely will need to specify <username>@<ip> -- This experience will be improved eventually.

2) Run the command from this directory, `.\create-dev-box.ps1 -VMRoot D:\dev -VMType overlaybd -VMName mirrortestvm -EnableSSH $true`
3) Wait for the VM to reboot (A VM will not have an IP Address listed in Hyper-V Manager before being rebooted)
4) Open a PS terminal, and ssh w/ `ssh yourusername@ipaddress` this should prompt you for your ssh-key password

0 comments on commit da4ba10

Please sign in to comment.