Skip to content
Sean Ryan edited this page Nov 1, 2019 · 16 revisions

Home

notes

Config of the Ubuntu Hyper-V VM on Windows

  • Created 'manually' not using the Quick option, so can configure hard drive size

    • Network Adapter: Default Switch
    • [after VM created] Secure Boot disabled (so Ubuntu ISO can boot)
    • NOT log in automatically as that could block RDP from connecting successfully (only 1 terminal session at a time)
  • memory:

    • basic VM: 3 Gb seems enough
    • with large site and containers: 14 Gb so docker containers in Ubuntu don't cause VM to freeze up
      • (maybe less memory would work, but 4 Gb also froze)
    • dynamic memory OFF as tends to grow too much
  • CPU:

    • set 4 virtual processors (50% of the physical cores)
    • reserve the 50% of CPU by setting Processor | Virtual machine reserve (percentage) to 100
  • Hard drive:

    • basic VM: 10 Gb is fine (5 Gb free)
    • large site and containers: 40 Gb or 60 Gb in size (20 Gb was not enough long-term)
    • Hosted on SSD

Getting Fullscreen on Windows 10

[worked] RDP into Ubuntu running xrdp

summary:

  1. Install xrdp
./extra-install-xrdp.sh
  1. logout (or reboot)
  2. do NOT login again
  3. Windows box: run mstsc
  4. Type in the IP address
  5. Connect
  6. enter Ubuntu user credentials
  7. connect using Xorg session
  • A. Make sure you’re not already logged on to the Ubuntu desktop… best thing is to restart and don’t logon
  • B. If you try Xorg session and it quickly disconnect… select the X11rdp from the drop-down list.. it will hang and not fully logon… close the session and try the Xorg session again… that time it will work… but keep prompting you to authenticate (prompt: Authentication is required to create a color managed device)… you can cancel the prompt windows…
  • C. Restart again if step B doesn’t work right away.

note: With RDP, copy-paste is possible

https://websiteforstudents.com/connect-to-ubuntu-16-04-17-10-18-04-desktop-via-remote-desktop-connection-rdp-with-xrdp/

[failed] Stackoverflow about setting up a VNC server so can RDP from Windows (or Unix)

https://askubuntu.com/questions/234856/unable-to-do-remote-desktop-using-xrdp

Article about using the docker on the HOST machine

(I could not get this to connect)

Article about using (NOT running) docker inside a VM hosted on Windows:

https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4

Also has another way of installing docker, that could avoid issue with hard-coding docker-compose version ?

references

similar project

https://github.com/snwh/ubuntu-post-install

preseeding Ubuntu install

https://www.google.com/url?sa=t&source=web&rct=j&url=https://help.ubuntu.com/lts/installation-guide/example-preseed.txt&ved=2ahUKEwjgkInxks7fAhVFYlAKHcXOCTMQFjADegQIChAB&usg=AOvVaw2hMxoDlC6bBQNpChX_ySHd