Vmctl.Usage 8.9 KB

1234567891011121314151617181920212223242526
  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=1627536685
  7. host=125.224.28.113
  8. name=Vmctl.Usage
  9. rev=4
  10. targets=Shell.ShellPutty,Openbsd.Vmminstall
  11. text=(:title Using vmctl:)%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.%0a%0a!! Connect to the Virtual Machine%0a%0aConnect to the guest, username.host.example.com.%0a# For Linux/Mac, open up a terminal and run @@$ ssh username@username.host.example.com@@ -- note that the hostname is username.host.example.com and '''not''' host.example.com.%0a# For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@username.host.example.com@@ -- note that the hostname is username.host.example.com and '''not''' host.example.com.%0a%0a!! Manage the Virtual Machine%0a%0aConnect to the host, which runs the hypervisor. For IRCNow, this host is host.example.com.%0a# For Linux/Mac, open up a terminal and run @@$ ssh username@host.example.com@@ -- note that the hostname is host.example.com and '''not''' username.host.example.com.%0a# For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@host.example.com@@ -- note that the hostname is host.example.com and '''not''' username.host.example.com.%0a%0a'''NOTE''': The host is '''not''' your personal VM. Your personal VM is a guest inside the host, and will have the name username.host.example.com, not host.example.com. The guest lives inside the host, so in order to create the guest, you must first log in to the host.%0a%0aAttach:vmminstall-1.png%0a%0aOnce inside the host (host.example.com), you can control your virtual machine using the following commands. %3cvm-name> is most likely your username.%0a%0a# To view the [[https://man.openbsd.org/cu|serial console]] to [[openbsd/vmminstall|install, upgrade, or repair]] the system:%0a%0a[@%0a$ vmctl console %3cvm-name>%0a@]%0a%0aTo shutdown the VM:%0a%0a[@%0a$ vmctl stop %3cvm-name>%0a@]%0a%0aTo boot the VM:%0a%0a[@%0a$ vmctl start %3cvm-name>%0a@]%0a%0aTo pause the VM:%0a%0a[@%0a$ vmctl pause %3cvm-name>%0a@]%0a%0aTo unpause the VM:%0a%0a[@%0a$ vmctl unpause %3cvm-name>%0a@]%0a%0aAt 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!! Install, Upgrade, Repair%0a%0aIf you need to upgrade, install, or repair OpenBSD, you will also want to check out the [[Openbsd/vmminstall|VMM Install Guide]].%0a%0a!! See Also%0a%0a|| [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmminstall|VMM Install Guide]] ||%0a
  12. time=1634451284
  13. title=Using vmctl
  14. author:1634451284=jrmu
  15. diff:1634451284:1634451246:=21c21%0a%3c Once inside the host (host.example.com), you can control your virtual machine using the following commands. %3cvm-name> is most likely your username.%0a---%0a> Once inside the host (coconut.ircnow.org), you can control your virtual machine using the following commands. %3cvm-name> is most likely your username.%0a
  16. host:1634451284=125.224.28.113
  17. author:1634451246=jrmu
  18. diff:1634451246:1634451240:=
  19. host:1634451246=125.224.28.113
  20. author:1634451240=jrmu
  21. diff:1634451240:1627536685:=7,10c7,10%0a%3c Connect to the guest, username.host.example.com.%0a%3c # For Linux/Mac, open up a terminal and run @@$ ssh username@username.host.example.com@@ -- note that the hostname is username.host.example.com and '''not''' host.example.com.%0a%3c # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@username.host.example.com@@ -- note that the hostname is username.host.example.com and '''not''' host.example.com.%0a%3c %0a---%0a> Connect to the guest, username.coconut.ircnow.org.%0a> # For Linux/Mac, open up a terminal and run @@$ ssh username@username.coconut.ircnow.org@@ -- note that the hostname is username.coconut.ircnow.org and '''not''' coconut.ircnow.org.%0a> # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@username.coconut.ircnow.org@@ -- note that the hostname is username.coconut.ircnow.org and '''not''' coconut.ircnow.org.%0a> %0a13,17c13,17%0a%3c Connect to the host, which runs the hypervisor. For IRCNow, this host is host.example.com.%0a%3c # For Linux/Mac, open up a terminal and run @@$ ssh username@host.example.com@@ -- note that the hostname is host.example.com and '''not''' username.host.example.com.%0a%3c # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@host.example.com@@ -- note that the hostname is host.example.com and '''not''' username.host.example.com.%0a%3c %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.host.example.com, not host.example.com. The guest lives inside the host, so in order to create the guest, you must first log in to the host.%0a---%0a> 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> %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
  22. host:1634451240=125.224.28.113
  23. author:1627536685=jrmu
  24. diff:1627536685:1627536685:=1,61d0%0a%3c (:title Using vmctl:)%0a%3c %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.%0a%3c %0a%3c !! Connect to the Virtual Machine%0a%3c %0a%3c Connect to the guest, username.coconut.ircnow.org.%0a%3c # For Linux/Mac, open up a terminal and run @@$ ssh username@username.coconut.ircnow.org@@ -- note that the hostname is username.coconut.ircnow.org and '''not''' coconut.ircnow.org.%0a%3c # For Windows, you can use [[Shell/ShellPutty|PuTTY]]. For hostname, put @@username@username.coconut.ircnow.org@@ -- note that the hostname is username.coconut.ircnow.org and '''not''' coconut.ircnow.org.%0a%3c %0a%3c !! Manage the Virtual Machine%0a%3c %0a%3c 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@@ -- 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%3c %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 %0a%3c Attach:vmminstall-1.png%0a%3c %0a%3c Once inside the host (coconut.ircnow.org), you can control your virtual machine using the following commands. %3cvm-name> is most likely your username.%0a%3c %0a%3c # To view the [[https://man.openbsd.org/cu|serial console]] to [[openbsd/vmminstall|install, upgrade, or repair]] the system:%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 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%3c %0a%3c !! Install, Upgrade, Repair%0a%3c %0a%3c If you need to upgrade, install, or repair OpenBSD, you will also want to check out the [[Openbsd/vmminstall|VMM Install Guide]].%0a%3c %0a%3c !! See Also%0a%3c %0a%3c || [[https://man.openbsd.org/vmctl|vmctl(8)]] || [[openbsd/vmminstall|VMM Install Guide]] ||%0a
  25. host:1627536685=38.87.162.8