Openbsd.Vmminstall 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=w3m/0.5.3+git20210102
  3. author=jrmu
  4. charset=UTF-8
  5. csum=
  6. ctime=1607255356
  7. host=38.87.162.8
  8. name=Openbsd.Vmminstall
  9. rev=27
  10. targets=Shell.ShellPutty,Openbsd.Install68,Openbsd.Bsdrd,Openbsd.Staticnet,Openbsd.Vi,Openbsd.Vmmuser
  11. text=(:redirect Vmm.install:)%0a(:title OpenBSD VMM Install Guide:)%0a%0aThis is a quick OpenBSD install guide for VMM.%0a%0a'''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/faq4.html|Installation Guide]]%0a%0a# [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server (a dedicated server). Your virtual machine is a guest which lives inside the host. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a # For Linux/Mac, open up a terminal and run @@$ ssh username@coconut.ircnow.org@@ -- note that the hostname is coconut.ircnow.org and '''not''' username.coconut.ircnow.org.%0a # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@coconut.ircnow.org@@ -- note that the hostname is coconut.ircnow.org and '''not''' username.coconut.ircnow.org.%0a# '''NOTE''': The host is '''not''' your personal VM. Your personal VM is a guest inside the host, and will have the name username.coconut.ircnow.org, not coconut.ircnow.org. The guest lives inside the host, so in order to create the guest, you must first log in to the host.%0a# Once inside the host (coconut.ircnow.org), type @@vmctl console %3cVM name>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup. Your VM name is most likely your username.\\%0aAttach:vmminstall-1.png%0a# At any time, if you want to escape the serial console, type @@~.@@ (tilde followed by a period) or @@~^d@@ (tilde followed by ctrl+d). '''Note''': ^d is ctrl+d. Sometimes, you may need to press enter a few times before the @@~.@@ or @@~^d@@ combination works. On some keyboards, you may need to type @@~~.@@ (two tildes followed by a period).%0a# You can safely ignore the error message @@Boot failed: not a bootable disk@@. By default, your virtual machine will boot from the OpenBSD ISO image when there is no operating system installed. After the OS is installed, your virtual machine will automatically boot from hard disk instead of ISO image. There is no need to mount/unmount the ISO image.\\%0aAttach:vmminstall-2.png%0a# Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]].\\%0aAttach:vmminstall-5.png%0a%0a!! Upgrade/Reinstall%0a%0a# If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a# If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username. Afterwards:\\%0a[@%0acd ~/%0arm %3cVM name>.qcow2 # The VM name is probably your username%0avmctl create -s 20G %3cVM name>.qcow2%0avmctl start %3cVM name>%0avmctl console %3cVM name>%0a@]\\%0aAttach:vmminstall-3.png%0a# During [[openbsd/install68|installation]], here are the networking values you need for [[openbsd/staticnet|static networking]]:%0a # IPv4 address: 38.87.162.xxx, subnet mask 255.255.255.0 -- replace 38.87.162.xxx with your assigned IP address%0a # IPv6 address: 2602:fccf:1:1xxx::, subnet /64 -- replace 2602:fccf:1:1xxx:: with your assigned subnet%0a # Default IPv4 gateway/router: 38.87.162.1%0a # Default IPv6 gateway/router: 2602:fccf:1::1%0a%0aFollow the installation guide: [[https://wiki.ircnow.org/index.php?n=Openbsd.Install69]]%0a%0a!! Bug fixes%0a%0aVMM appears to have a bug where VMs lose network connectivity after a few hours. Here is one workaround.%0a%0aEdit your crontab by typing @@crontab -e@@ ('''NOTE''': the default text editor is [[openbsd/vi|vi]]). Type @@G@@ (capital G) to scroll to the bottom, then type @@o@@ (lowercase o) to add a new line at the bottom, then paste this line:%0a%0a[@%0a@reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.87.162.1; done' \;%0a@]%0a%0aPress @@[Esc]@@, then type @@:wq@@ (colon, then w, then q) then press enter to save the file.%0a%0aAfterwards, to ensure it runs right away, execute this once:%0a%0a[@%0a/usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.87.162.1; done' \;%0a@]%0a%0aThis helps ensure that a ping runs in the background to keep the network alive.%0a%0a!! See Also%0a%0a|| [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmmuser|VMM User Guide]] ||%0a
  12. time=1627536494
  13. title=OpenBSD VMM Install Guide
  14. author:1627536494=jrmu
  15. diff:1627536494:1626410450:=1d0%0a%3c (:redirect Vmm.install:)%0a
  16. host:1627536494=38.87.162.8
  17. author:1626410450=jrmu
  18. diff:1626410450:1624967124:=32,36c32,36%0a%3c # IPv4 address: 38.87.162.xxx, subnet mask 255.255.255.0 -- replace 38.87.162.xxx with your assigned IP address%0a%3c # IPv6 address: 2602:fccf:1:1xxx::, subnet /64 -- replace 2602:fccf:1:1xxx:: with your assigned subnet%0a%3c # Default IPv4 gateway/router: 38.87.162.1%0a%3c # Default IPv6 gateway/router: 2602:fccf:1::1%0a%3c %0a---%0a> # IPv4 address: 38.81.163.xxx, subnet mask 255.255.255.0 -- replace 38.81.163.xxx with your assigned IP address%0a> # IPv6 address: 2001:550:3402:1:xxx::, subnet /64 -- replace 2001:550:3402:1:xxx:: with your assigned subnet%0a> # Default IPv4 gateway/router: 38.81.163.129%0a> # Default IPv6 gateway/router: 2001:550:3402:1::1%0a> %0a46c46%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.87.162.1; done' \;%0a---%0a> @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a54c54%0a%3c /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.87.162.1; done' \;%0a---%0a> /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a61c61%0a%3c || [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmmuser|VMM User Guide]] ||%0a---%0a> || [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmmuser|VMM User Guide]] ||%0a\ No newline at end of file%0a
  19. host:1626410450=38.87.162.8
  20. author:1624967124=mistera
  21. diff:1624967124:1624965672:=37c37%0a%3c Follow the installation guide: [[https://wiki.ircnow.org/index.php?n=Openbsd.Install69]]%0a---%0a> Follow the installation guide:[[https://wiki.ircnow.org/index.php?n=Openbsd.Install68]]%0a
  22. host:1624967124=204.111.39.57
  23. author:1624965672=mistera
  24. diff:1624965672:1607341097:=36,37d35%0a%3c %0a%3c Follow the installation guide:[[https://wiki.ircnow.org/index.php?n=Openbsd.Install68]]%0a
  25. host:1624965672=204.111.39.57
  26. author:1607341097=jrmu
  27. diff:1607341097:1607340098:=7c7%0a%3c # [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server (a dedicated server). Your virtual machine is a guest which lives inside the host. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a---%0a> # [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a
  28. host:1607341097=198.251.81.119
  29. author:1607340098=jrmu
  30. diff:1607340098:1607339988:=15c15%0a%3c Attach:vmminstall-2.png%0a---%0a> Attach:vmminstall-3.png%0a30c30%0a%3c Attach:vmminstall-3.png%0a---%0a> Attach:vmminstall-2.png%0a
  31. host:1607340098=198.251.81.119
  32. author:1607339988=jrmu
  33. diff:1607339988:1607339438:=18,20d17%0a%3c %0a%3c !! Upgrade/Reinstall%0a%3c %0a31,42c28,32%0a%3c # During [[openbsd/install68|installation]], here are the networking values you need for [[openbsd/staticnet|static networking]]:%0a%3c # IPv4 address: 38.81.163.xxx, subnet mask 255.255.255.0 -- replace 38.81.163.xxx with your assigned IP address%0a%3c # IPv6 address: 2001:550:3402:1:xxx::, subnet /64 -- replace 2001:550:3402:1:xxx:: with your assigned subnet%0a%3c # Default IPv4 gateway/router: 38.81.163.129%0a%3c # Default IPv6 gateway/router: 2001:550:3402:1::1%0a%3c %0a%3c !! Bug fixes%0a%3c %0a%3c VMM appears to have a bug where VMs lose network connectivity after a few hours. Here is one workaround.%0a%3c %0a%3c Edit your crontab by typing @@crontab -e@@ ('''NOTE''': the default text editor is [[openbsd/vi|vi]]). Type @@G@@ (capital G) to scroll to the bottom, then type @@o@@ (lowercase o) to add a new line at the bottom, then paste this line:%0a%3c %0a---%0a> %0a> **Please note**: This is the host machine, not your VM. The host machine is running OpenBSD but your guest VPS can run any OS.%0a> %0a> Once you log in, you can access the serial console:%0a> %0a44c34%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a---%0a> $ vmctl console %3cvm-name>%0a47,50c37,38%0a%3c Press @@[Esc]@@, then type @@:wq@@ (colon, then w, then q) then press enter to save the file.%0a%3c %0a%3c Afterwards, to ensure it runs right away, execute this once:%0a%3c %0a---%0a> To shutdown the VM:%0a> %0a52c40%0a%3c /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a---%0a> $ vmctl stop %3cvm-name>%0a55c43,195%0a%3c This helps ensure that a ping runs in the background to keep the network alive.%0a---%0a> To boot the VM:%0a> %0a> [@%0a> $ vmctl start %3cvm-name>%0a> @]%0a> %0a> To pause the VM:%0a> %0a> [@%0a> $ vmctl pause %3cvm-name>%0a> @]%0a> %0a> To unpause the VM:%0a> %0a> [@%0a> $ vmctl unpause %3cvm-name>%0a> @]%0a> %0a> To escape serial console, type ~~. %0a> %0a> ----%0a> %0a> To connect to your VM, you will be given an IP address. In case you forget, your IP address can be found by running $ dig username.coconut.ircnow.org. Our default gateway is 38.81.163.129.%0a> %0a> For convenience, you can log in to your VPS as follows:%0a> %0a> [@%0a> $ ssh username@username.coconut.ircnow.org%0a> @]%0a> %0a> Please note that this hostname is different from the host; there is an extra username in username.coconut.ircnow.org.%0a> %0a> ----%0a> %0a> To reinstall OpenBSD 6.6:%0a> %0a> [@%0a> $ ssh username@coconut.ircnow.org%0a> $ cd ~%0a> $ rm username.qcow2%0a> $ vmctl create -s 20G username.qcow2%0a> $ vmctl start username%0a> $ vmctl start username%0a> $ vmctl console username%0a> @]%0a> %0a> Make sure to configure static networking as well as to set up ping in the background as outlined below.%0a> %0a> ----%0a> %0a> For OpenBSD, here is how you statically assign your IP address:%0a> %0a> Inside /etc/hostname.vio0:%0a> %0a> [@%0a> inet 38.81.163.xxx 255.255.255.0%0a> @]%0a> %0a> Replace 38.81.163.xxx with your assigned IP address.%0a> %0a> Inside /etc/mygate:%0a> %0a> [@%0a> 38.81.163.129%0a> @]%0a> %0a> For Alpine:%0a> %0a> To restart networking:%0a> %0a> [@%0a> # service networking restart%0a> @]%0a> %0a> For Debian:%0a> %0a> [@%0a> systemctl restart networking%0a> @]%0a> %0a> Inside /etc/network/interfaces:%0a> %0a> [@%0a> source /etc/network/interfaces.d/*%0a> %0a> # The loopback network interface%0a> auto lo%0a> iface lo inet loopback%0a> %0a> # The primary network interface%0a> auto enp0s2%0a> iface enp0s2 inet static%0a> address 38.81.163.x%0a> netmask 255.255.255.0%0a> gateway 38.81.163.129%0a> @]%0a> %0a> ----%0a> %0a> Losing network connectivity:%0a> %0a> For OpenBSD, put this in your crontab:%0a> %0a> [@%0a> @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a> @]%0a> %0a> Afterwards, to ensure it runs right away, execute this once:%0a> %0a> [@%0a> /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a> @]%0a> %0a> For Debian:%0a> %0a> [@%0a> @reboot /usr/bin/tmux new -d 'while true; do /usr/bin/ping -i5 38.81.163.129; done' \;%0a> @]%0a> %0a> Afterwards, to ensure it runs right away, execute this once:%0a> %0a> [@%0a> /usr/bin/tmux new -d 'while true; do /usr/bin/ping -i5 38.81.163.129; %0a> @]%0a> %0a> For Alpine:%0a> %0a> [@%0a> @reboot /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.81.163.129; done' \;%0a> @]%0a> %0a> Afterwards, to ensure it runs right away, execute this once:%0a> %0a> [@%0a> /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.81.163.129; done' \;%0a> @]%0a> %0a> ----%0a> %0a> To reinstall OpenBSD:%0a> %0a> First, log in to the host:%0a> %0a> [@%0a> $ ssh username@coconut.ircnow.org%0a> $ vmctl stop username%0a> $ rm username.qcow2%0a> $ vmctl create -s 20G username.qcow2%0a> $ vmctl start username%0a> $ vmctl console username%0a> @]%0a> %0a> Then, do the installation as usual.%0a
  34. host:1607339988=198.251.81.119
  35. author:1607339438=jrmu
  36. diff:1607339438:1607339382:=18c18%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a---%0a> # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.\\%0a27a28%0a> %0a
  37. host:1607339438=198.251.81.119
  38. author:1607339382=jrmu
  39. diff:1607339382:1607339192:=18,26c18,19%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.\\%0a%3c # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username. Afterwards:\\%0a%3c [@%0a%3c cd ~/%0a%3c rm %3cVM name>.qcow2 # The VM name is probably your username%0a%3c vmctl create -s 20G %3cVM name>.qcow2%0a%3c vmctl start %3cVM name>%0a%3c vmctl console %3cVM name>%0a%3c @]\\%0a---%0a> # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a> # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a28d20%0a%3c %0a
  40. host:1607339382=198.251.81.119
  41. author:1607339192=jrmu
  42. diff:1607339192:1607335209:=15c15%0a%3c Attach:vmminstall-3.png%0a---%0a> Attach:vmminstall-2.png%0a20c20%0a%3c Attach:vmminstall-2.png%0a---%0a> Attach:vmminstall-3.png%0a
  43. host:1607339192=198.251.81.119
  44. author:1607335209=jrmu
  45. diff:1607335209:1607333423:=16,19c16,18%0a%3c # Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]].\\%0a%3c Attach:vmminstall-5.png%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a%3c # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a---%0a> # Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]].%0a> # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a> # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a20a20,35%0a> %0a> %0a> %0a> Attach:vmminstall-4.png%0a> Attach:vmminstall-5.png%0a> %0a> %0a> You can run any Linux or BSD-based operating system on your VPS as a guest inside OpenBSD.%0a> %0a> You will be given a username and password for your account. This will create a username on our host system:%0a> %0a> [@%0a> $ ssh username@coconut.ircnow.org%0a> @]%0a> %0a> ECDSA key fingerprint is SHA256:a0LIR/BRZkpYqMho/YvkISPEm7vkus5QfOSqAeu+tYc.%0a
  46. host:1607335209=38.81.163.7
  47. author:1607333423=jrmu
  48. diff:1607333423:1607332844:=15c15%0a%3c Attach:vmminstall-2.png%0a---%0a> Attach:vmminstall-3.png%0a19c19%0a%3c Attach:vmminstall-3.png%0a---%0a> Attach:vmminstall-2.png%0a
  49. host:1607333423=38.81.163.7
  50. author:1607332844=jrmu
  51. diff:1607332844:1607332658:=14,15d13%0a%3c # You can safely ignore the error message @@Boot failed: not a bootable disk@@. By default, your virtual machine will boot from the OpenBSD ISO image when there is no operating system installed. After the OS is installed, your virtual machine will automatically boot from hard disk instead of ISO image. There is no need to mount/unmount the ISO image.\\%0a%3c Attach:vmminstall-3.png%0a22c20%0a%3c %0a---%0a> Attach:vmminstall-3.png%0a
  52. host:1607332844=38.81.163.7
  53. author:1607332658=jrmu
  54. diff:1607332658:1607332627:=15,16c15%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a%3c # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a---%0a> # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.\\%0a22a22,23%0a> %0a> # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a
  55. host:1607332658=38.81.163.7
  56. author:1607332627=jrmu
  57. diff:1607332627:1607332572:=15a16%0a> %0a17,18d17%0a%3c %0a%3c %0a
  58. host:1607332627=38.81.163.7
  59. author:1607332572=jrmu
  60. diff:1607332572:1607332015:=11,12c11%0a%3c # Once inside the host (coconut.ircnow.org), type @@vmctl console %3cVM name>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup. Your VM name is most likely your username.\\%0a%3c Attach:vmminstall-1.png%0a---%0a> # Once inside the host (coconut.ircnow.org), type @@vmctl console %3cVM name>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup. Your VM name is most likely your username.%0a16c15%0a%3c %0a---%0a> Attach:vmminstall-1.png%0a
  61. host:1607332572=38.81.163.7
  62. author:1607332015=jrmu
  63. diff:1607332015:1607331733:=19d18%0a%3c Attach:vmminstall-5.png%0a
  64. host:1607332015=38.81.163.7
  65. author:1607331733=jrmu
  66. diff:1607331733:1607330339:=16,18d15%0a%3c Attach:vmminstall-2.png%0a%3c Attach:vmminstall-3.png%0a%3c Attach:vmminstall-4.png%0a
  67. host:1607331733=38.81.163.7
  68. author:1607330339=jrmu
  69. diff:1607330339:1607329577:=
  70. host:1607330339=38.81.163.7
  71. author:1607329577=jrmu
  72. diff:1607329577:1607326296:=14,16c14%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.\\%0a%3c Attach:vmminstall-1.png%0a%3c %0a---%0a> # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a18,19c16,27%0a%3c %0a%3c %0a---%0a> Attach:install68-1.png%0a> %0a> %0a> (:title OpenBSD Install Guide:)%0a> %0a> This is a quick install guide for OpenBSD 6.8 on BuyVM.%0a> %0a> Use your web browser to go to [[https://manage.buyvm.net]]. Use the username and password that was given you.%0a> %0a> # Click on the [Power State] button, then [Power Off] the server. Any time new changes to hardware apply (upgrading RAM, CPUs, patches), you must hard power off and then boot the VPS. '''WARNING''': Make sure notify your users in advance, then power off your server by running @@$ doas shutdown -p now@@ -- or else you may lose data!\\%0a> Attach:install-panel-01.png%0a> # Click on Settings.%0a
  73. host:1607329577=38.81.163.7
  74. author:1607326296=jrmu
  75. diff:1607326296:1607324985:=11c11%0a%3c # Once inside the host (coconut.ircnow.org), type @@vmctl console %3cVM name>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup. Your VM name is most likely your username.%0a---%0a> # Once inside the host (coconut.ircnow.org), type @@vmctl console %3cusername>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup.%0a13,15c13,15%0a%3c # Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]].%0a%3c # If you want to upgrade or reinstall the operating system, follow the [[openbsd/bsdrd|bsd.rd]] install guide. In this case, you will want to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system automatically boots by accident, you will, you will want to restart the system. You can log in and then run @@$ doas shutdown -r now@@ to reboot.%0a%3c # If you want to delete your existing virtual machine and start from scratch, exit the serial console by typing @@~.@@ or @@~^d@@. Then, shut down your virtual machine by typing @@vmctl stop %3cVM name>@@ -- your VM name is most likely your username.\\%0a---%0a> # Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]]. '''Note''': Make sure to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system does automatically boot, you will want to restart the system.%0a> # You can log in and then run @@$ doas shutdown -r now@@ to try to reboot the system.%0a> by typing ~. and then.%0a
  76. host:1607326296=38.81.163.7
  77. author:1607324985=jrmu
  78. diff:1607324985:1607261456:=12c12%0a%3c # At any time, if you want to escape the serial console, type @@~.@@ (tilde followed by a period) or @@~^d@@ (tilde followed by ctrl+d). '''Note''': ^d is ctrl+d. Sometimes, you may need to press enter a few times before the @@~.@@ or @@~^d@@ combination works. On some keyboards, you may need to type @@~~.@@ (two tildes followed by a period).%0a---%0a> # At any time, if you want to escape the serial console, type @@~.@@ (tilde followed by a period). Sometimes, you may need to press enter a few times before the @@~.@@ combination works. On some keyboards, you may need to type @@~~.@@ (two tildes followed by a period).%0a
  79. host:1607324985=38.81.163.7
  80. author:1607261456=jrmu
  81. diff:1607261456:1607256974:=8,9c8,9%0a%3c # For Linux/Mac, open up a terminal and run @@$ ssh username@coconut.ircnow.org@@ -- note that the hostname is coconut.ircnow.org and '''not''' username.coconut.ircnow.org.%0a%3c # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@coconut.ircnow.org@@ -- note that the hostname is coconut.ircnow.org and '''not''' username.coconut.ircnow.org.%0a---%0a> # For Linux/Mac, open up a terminal and run @@$ ssh username@coconut.ircnow.org@@%0a> # For Windows, you can use [[Shell/ShellPutty|PuTTY]].%0a11,15c11,12%0a%3c # Once inside the host (coconut.ircnow.org), type @@vmctl console %3cusername>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see the virtual machine during bootup.%0a%3c # At any time, if you want to escape the serial console, type @@~.@@ (tilde followed by a period). Sometimes, you may need to press enter a few times before the @@~.@@ combination works. On some keyboards, you may need to type @@~~.@@ (two tildes followed by a period).%0a%3c # Once you see the bootup screen, follow the normal [[openbsd/install68|install instructions]]. '''Note''': Make sure to type something immediately after you see the boot prompt to prevent the system from automatically booting. If the system does automatically boot, you will want to restart the system.%0a%3c # You can log in and then run @@$ doas shutdown -r now@@ to try to reboot the system.%0a%3c by typing ~. and then.%0a---%0a> # Once inside, type @@vmctl console %3cusername>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see %0a> # At bootup, type @@boot@@, then press enter. Or wait a few seconds to boot automatically.\\%0a
  82. host:1607261456=125.231.38.251
  83. author:1607256974=jrmu
  84. diff:1607256974:1607256594:=7c7%0a%3c # [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a---%0a> # || [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a10,11d9%0a%3c # '''NOTE''': The host is '''not''' your personal VM. Your personal VM is a guest inside the host, and will have the name username.coconut.ircnow.org, not coconut.ircnow.org. The guest lives inside the host, so in order to create the guest, you must first log in to the host.%0a%3c # Once inside, type @@vmctl console %3cusername>@@ in order to open up the [[https://man.openbsd.org/cu|serial console]]. The serial console will allow you to see %0a
  85. host:1607256974=125.231.38.251
  86. author:1607256594=jrmu
  87. diff:1607256594:1607256295:=7,9c7%0a%3c # || [[https://man.openbsd.org/vmm|VMM(4)]] is a hypervisor, which allows us to run multiple virtual machines inside a single physical server. You will first need to connect to the host, which runs the hypervisor. For IRCNow, this host is coconut.ircnow.org.%0a%3c # For Linux/Mac, open up a terminal and run @@$ ssh username@coconut.ircnow.org@@%0a%3c # For Windows, you can use [[Shell/ShellPutty|PuTTY]].%0a---%0a> # First, you'll want to boot up from the install ISO. Please consult the [[Openbsd/buyvm|BuyVM]], [[vps/intro|VMM]], and [[Openbsd/bsdrd|bsd.rd]] install guides.%0a
  88. host:1607256594=125.231.38.251
  89. author:1607256295=jrmu
  90. diff:1607256295:1607255356:=1,4c1,4%0a%3c (:title OpenBSD VMM Install Guide:)%0a%3c %0a%3c This is a quick OpenBSD install guide for VMM.%0a%3c %0a---%0a> (:title OpenBSD 6.8 Install Guide:)%0a> %0a> This is a quick install guide for OpenBSD 6.8.%0a> %0a197,201c197%0a%3c Then, do the installation as usual.%0a%3c %0a%3c !! See Also%0a%3c %0a%3c || [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmmuser|VMM User Guide]] ||%0a\ No newline at end of file%0a---%0a> Then, do the installation as usual.%0a\ No newline at end of file%0a
  91. host:1607256295=125.231.38.251
  92. author:1607255356=jrmu
  93. diff:1607255356:1607255356:=1,197d0%0a%3c (:title OpenBSD 6.8 Install Guide:)%0a%3c %0a%3c This is a quick install guide for OpenBSD 6.8.%0a%3c %0a%3c '''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/faq4.html|Installation Guide]]%0a%3c %0a%3c # First, you'll want to boot up from the install ISO. Please consult the [[Openbsd/buyvm|BuyVM]], [[vps/intro|VMM]], and [[Openbsd/bsdrd|bsd.rd]] install guides.%0a%3c # At bootup, type @@boot@@, then press enter. Or wait a few seconds to boot automatically.\\%0a%3c Attach:install68-1.png%0a%3c %0a%3c %0a%3c (:title OpenBSD Install Guide:)%0a%3c %0a%3c This is a quick install guide for OpenBSD 6.8 on BuyVM.%0a%3c %0a%3c Use your web browser to go to [[https://manage.buyvm.net]]. Use the username and password that was given you.%0a%3c %0a%3c # Click on the [Power State] button, then [Power Off] the server. Any time new changes to hardware apply (upgrading RAM, CPUs, patches), you must hard power off and then boot the VPS. '''WARNING''': Make sure notify your users in advance, then power off your server by running @@$ doas shutdown -p now@@ -- or else you may lose data!\\%0a%3c Attach:install-panel-01.png%0a%3c # Click on Settings.%0a%3c You can run any Linux or BSD-based operating system on your VPS as a guest inside OpenBSD.%0a%3c %0a%3c You will be given a username and password for your account. This will create a username on our host system:%0a%3c %0a%3c [@%0a%3c $ ssh username@coconut.ircnow.org%0a%3c @]%0a%3c %0a%3c ECDSA key fingerprint is SHA256:a0LIR/BRZkpYqMho/YvkISPEm7vkus5QfOSqAeu+tYc.%0a%3c %0a%3c **Please note**: This is the host machine, not your VM. The host machine is running OpenBSD but your guest VPS can run any OS.%0a%3c %0a%3c Once you log in, you can access the serial console:%0a%3c %0a%3c [@%0a%3c $ vmctl console %3cvm-name>%0a%3c @]%0a%3c %0a%3c To shutdown the VM:%0a%3c %0a%3c [@%0a%3c $ vmctl stop %3cvm-name>%0a%3c @]%0a%3c %0a%3c To boot the VM:%0a%3c %0a%3c [@%0a%3c $ vmctl start %3cvm-name>%0a%3c @]%0a%3c %0a%3c To pause the VM:%0a%3c %0a%3c [@%0a%3c $ vmctl pause %3cvm-name>%0a%3c @]%0a%3c %0a%3c To unpause the VM:%0a%3c %0a%3c [@%0a%3c $ vmctl unpause %3cvm-name>%0a%3c @]%0a%3c %0a%3c To escape serial console, type ~~. %0a%3c %0a%3c ----%0a%3c %0a%3c To connect to your VM, you will be given an IP address. In case you forget, your IP address can be found by running $ dig username.coconut.ircnow.org. Our default gateway is 38.81.163.129.%0a%3c %0a%3c For convenience, you can log in to your VPS as follows:%0a%3c %0a%3c [@%0a%3c $ ssh username@username.coconut.ircnow.org%0a%3c @]%0a%3c %0a%3c Please note that this hostname is different from the host; there is an extra username in username.coconut.ircnow.org.%0a%3c %0a%3c ----%0a%3c %0a%3c To reinstall OpenBSD 6.6:%0a%3c %0a%3c [@%0a%3c $ ssh username@coconut.ircnow.org%0a%3c $ cd ~%0a%3c $ rm username.qcow2%0a%3c $ vmctl create -s 20G username.qcow2%0a%3c $ vmctl start username%0a%3c $ vmctl start username%0a%3c $ vmctl console username%0a%3c @]%0a%3c %0a%3c Make sure to configure static networking as well as to set up ping in the background as outlined below.%0a%3c %0a%3c ----%0a%3c %0a%3c For OpenBSD, here is how you statically assign your IP address:%0a%3c %0a%3c Inside /etc/hostname.vio0:%0a%3c %0a%3c [@%0a%3c inet 38.81.163.xxx 255.255.255.0%0a%3c @]%0a%3c %0a%3c Replace 38.81.163.xxx with your assigned IP address.%0a%3c %0a%3c Inside /etc/mygate:%0a%3c %0a%3c [@%0a%3c 38.81.163.129%0a%3c @]%0a%3c %0a%3c For Alpine:%0a%3c %0a%3c To restart networking:%0a%3c %0a%3c [@%0a%3c # service networking restart%0a%3c @]%0a%3c %0a%3c For Debian:%0a%3c %0a%3c [@%0a%3c systemctl restart networking%0a%3c @]%0a%3c %0a%3c Inside /etc/network/interfaces:%0a%3c %0a%3c [@%0a%3c source /etc/network/interfaces.d/*%0a%3c %0a%3c # The loopback network interface%0a%3c auto lo%0a%3c iface lo inet loopback%0a%3c %0a%3c # The primary network interface%0a%3c auto enp0s2%0a%3c iface enp0s2 inet static%0a%3c address 38.81.163.x%0a%3c netmask 255.255.255.0%0a%3c gateway 38.81.163.129%0a%3c @]%0a%3c %0a%3c ----%0a%3c %0a%3c Losing network connectivity:%0a%3c %0a%3c For OpenBSD, put this in your crontab:%0a%3c %0a%3c [@%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a%3c @]%0a%3c %0a%3c Afterwards, to ensure it runs right away, execute this once:%0a%3c %0a%3c [@%0a%3c /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129; done' \;%0a%3c @]%0a%3c %0a%3c For Debian:%0a%3c %0a%3c [@%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /usr/bin/ping -i5 38.81.163.129; done' \;%0a%3c @]%0a%3c %0a%3c Afterwards, to ensure it runs right away, execute this once:%0a%3c %0a%3c [@%0a%3c /usr/bin/tmux new -d 'while true; do /usr/bin/ping -i5 38.81.163.129; %0a%3c @]%0a%3c %0a%3c For Alpine:%0a%3c %0a%3c [@%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.81.163.129; done' \;%0a%3c @]%0a%3c %0a%3c Afterwards, to ensure it runs right away, execute this once:%0a%3c %0a%3c [@%0a%3c /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.81.163.129; done' \;%0a%3c @]%0a%3c %0a%3c ----%0a%3c %0a%3c To reinstall OpenBSD:%0a%3c %0a%3c First, log in to the host:%0a%3c %0a%3c [@%0a%3c $ ssh username@coconut.ircnow.org%0a%3c $ vmctl stop username%0a%3c $ rm username.qcow2%0a%3c $ vmctl create -s 20G username.qcow2%0a%3c $ vmctl start username%0a%3c $ vmctl console username%0a%3c @]%0a%3c %0a%3c Then, do the installation as usual.%0a\ No newline at end of file%0a
  94. host:1607255356=38.81.163.7