From da4ba10bd4180779f274e05304ea4a1c3004fae0 Mon Sep 17 00:00:00 2001 From: Julius Liu Date: Tue, 21 Mar 2023 17:01:50 -0700 Subject: [PATCH] chore. Update readme --- tools/hyperv/README.md | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/tools/hyperv/README.md b/tools/hyperv/README.md index 16fd2af..4f0e5d5 100644 --- a/tools/hyperv/README.md +++ b/tools/hyperv/README.md @@ -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 @ -- 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