You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next set provide the ability to run as a full GUI environment on macOS or Windows using the Microsoft Remote Desktop viewer or Remmina on Linux. The are based on the previous terminal oriented VMs but add the "ubuntu-desktop" and "xrdp" package to handle the remote displays. For you to use the GUI versions your VM accounts need to have a password associated with them. You can use the `multipass shell` command to get a shell and then use `sudo passwd USERNAME` to set the password for "USERNAME" (e.g. ubuntu, rsdoiel).
22
22
23
-
On a M1 Mac running under Monterey you can then use a web browser from the remote displayed VM to test services inside the VM without exposing it to your host machine.
24
-
23
+
If you would like to have a Ubuntu Desktop available for use in your multipass VM Ihave provided several examples.
25
24
start-dev-gui-vm.bash, dev-gui-init.yaml
26
25
: A development GUI environment for Golang 1.18, uses 4 cores and 8G of RAM
27
26
28
27
start-invenio-gui-vm.bash, invenio-gui-init.yaml
29
28
: A development GUI environment for Invenio-RDM, uses 4 cores and 8G of RAM
30
29
31
30
32
-
33
31
Multipass
34
32
---------
35
33
@@ -133,6 +131,28 @@ Like previous example access with the `multipass` shell command.
133
131
134
132
A more complete exploration of running InvenioRDM is found in the [InvenioRDM-Setup](InvenioRDM-Setup.html)
135
133
134
+
General purpose Bash scripts
135
+
----------------------------
136
+
137
+
I have provided three Bash scripts for starting/launching, getting info and stopping your multipass VM.
138
+
139
+
1. start-vm.bash - starts an existing or launches a new virtual machine based on a related cloud init YAML file
140
+
2. stats-vm.bash - will return information about the machine (i.e. it runs `multipass info $MACHINE`)
141
+
3. stop-vm-.bash - will stop the machine
142
+
143
+
If you've devined a primary name for the machine the Bash scripts can be used without any additoinal parameters. If
144
+
you provide a machine name as a parameter then the scripts will work with that machine name.
145
+
146
+
For creating new machines (aka multipass launch) the start-vm.bash script looks for a cloud init YAML file that
147
+
defines the new machine. By default it first looks for the name `$MACHINE-local.yaml` and if that is not available
148
+
it looks for `$MACHINE-init.yaml`. The `*-init.yaml` files provided in this repository are a good starting point but
149
+
the cloud init support in multipass goes much further. The YAML file called `dev-server-local.yaml` is provided as an
150
+
example of including full login setup for the developers in the DLD group of Caltech Library. This includes setting them
151
+
up with sudo access, assigning them to additoinal groups and enabling login via SSH keys hosted on GitHub. By using the
152
+
filename convension of `*-init.yaml` I can provide a general purpose machine definition while allowing for local modification
153
+
via a version of the same file matching `*-local.yaml`.
"description": "This is a collection of Bash scripts and cloud-init YAML files to be used with multipass for generating virtual machines useful for software development in libraries and archives.",
0 commit comments