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
[docs] Fix cross-references in how-to guides (#4399)
The current implementation of internal linking to other pages/content
across the documentation set has been largely relative links.
Whilst this works and the link check CI passes, it does not scale well
over time. Usong the recommend Myst referencing standard is positive
because of the following reasons:
1. The links will still work even in situations where the linked
markdown page/file gets renamed or moved to a new folder
2. The user gets redirected to the exact heading in the destination page
3. Standardized naming of heading references.
MULTI-2157
This guide explains how to bridge an existing Multipass instance with the available networks.
9
9
10
10
```{caution}
11
11
This feature is available starting from Multipass version 1.14.
12
12
```
13
13
14
-
First, you need to select a Multipass-wide preferred network to bridge with (you can always change it later). To do so, list all available networks using the [`multipass networks`](/reference/command-line-interface/networks) command. The output will be similar to the following:
14
+
First, you need to select a Multipass-wide preferred network to bridge with (you can always change it later). To do so, list all available networks using the [`multipass networks`](reference-command-line-interface-networks) command. The output will be similar to the following:
15
15
16
16
```{code-block} text
17
17
Name Type Description
@@ -24,19 +24,19 @@ mpbr0 bridge Network bridge for Multipass
24
24
virbr0 bridge Network bridge
25
25
```
26
26
27
-
Set the preferred network (for example, `eth0`) using the [`set`](/reference/command-line-interface/set) command:
27
+
Set the preferred network (for example, `eth0`) using the [`set`](reference-command-line-interface-set) command:
28
28
29
29
```{code-block} text
30
30
multipass set local.bridged-network=eth0
31
31
```
32
32
33
-
Before bridging the network, you need to stop the instance (called `ultimate-grosbeak` in our example) using the [`stop`](/reference/command-line-interface/stop) command:
33
+
Before bridging the network, you need to stop the instance (called `ultimate-grosbeak` in our example) using the [`stop`](reference-command-line-interface-stop) command:
34
34
35
35
```{code-block} text
36
36
multipass stop ultimate-grosbeak
37
37
```
38
38
39
-
You can now ask Multipass to bridge your preferred network using the [`local.<instance-name>.bridged`](/reference/settings/local-instance-name-bridged) setting:
39
+
You can now ask Multipass to bridge your preferred network using the [`local.<instance-name>.bridged`](reference-settings-local-instance-name-bridged) setting:
40
40
41
41
```{code-block} text
42
42
multipass set local.ultimate-grosbeak.bridged=true
@@ -49,15 +49,15 @@ multipass set local.bridged-network=eth1
49
49
multipass set local.ultimate-grosbeak.bridged=true
50
50
```
51
51
52
-
Use the [`get`](/reference/command-line-interface/get) command to check whether an instance is bridged with the currently configured preferred network:
52
+
Use the [`get`](reference-command-line-interface-get) command to check whether an instance is bridged with the currently configured preferred network:
53
53
54
54
```{code-block} text
55
55
multipass get local.ultimate-grosbeak.bridged
56
56
```
57
57
58
58
After following the recipe above, the result should be `true`.
59
59
60
-
Now, [`start`](/reference/command-line-interface/start) the instance.
60
+
Now, [`start`](reference-command-line-interface-start) the instance.
This guide explains how to create instances with static IPs in a new network, internal to the host. With this approach, instances get an extra IP that does not change with restarts. By using a separate, local network we avoid any IP conflicts. Instances retain the usual default interface with a DHCP-allocated IP, which gives them connectivity to the outside.
> See also: [`launch`](/reference/command-line-interface/launch), [Instance](/explanation/instance)
4
+
> See also: [`launch`](reference-command-line-interface-launch), [Instance](explanation-instance)
5
5
6
6
This document demonstrates various ways to create an instance with Multipass. While every method is a one-liner involving the command `multipass launch`, each showcases a different option that you can use to get exactly the instance that you want.
7
7
8
8
## Create an instance
9
9
10
-
> See also: [`launch`](/reference/command-line-interface/launch), [`info`](/reference/command-line-interface/info)
10
+
> See also: [`launch`](reference-command-line-interface-launch), [`info`](reference-command-line-interface-info)
11
11
12
12
To create an instance with Multipass, run the command `multipass launch`. This launches a new instance, which is randomly named; for example:
13
13
@@ -32,7 +32,7 @@ Memory usage: 71.6M out of 985.4M
32
32
33
33
## Create an instance with a specific image
34
34
35
-
> See also: [`find`](/reference/command-line-interface/find), [`launch <image>`](/reference/command-line-interface/launch), [`info`](/reference/command-line-interface/info)
35
+
> See also: [`find`](reference-command-line-interface-find), [`launch <image>`](reference-command-line-interface-launch), [`info`](reference-command-line-interface-info)
36
36
37
37
To find out which images are available, run `multipass find`. Here's a sample output:
38
38
@@ -77,7 +77,7 @@ Mounts: --
77
77
78
78
## Create an instance with a custom name
79
79
80
-
> See also: [`launch --name`](/reference/command-line-interface/launch)
80
+
> See also: [`launch --name`](reference-command-line-interface-launch)
81
81
82
82
To launch an instance with a specific name, add the `--name` option to the command line; for example `multipass launch kinetic --name helpful-duck`:
83
83
@@ -88,7 +88,7 @@ Launched: helpful-duck
88
88
89
89
## Create an instance with custom CPU number, disk and RAM
90
90
91
-
> See also: [`launch --cpus --disk --memory`](/reference/command-line-interface/launch)
91
+
> See also: [`launch --cpus --disk --memory`](reference-command-line-interface-launch)
92
92
93
93
You can specify a custom number of CPUs, disk and RAM size using the `--cpus`, `--disk` and `--memory` arguments, respectively. For example:
## Create an instance with multiple network interfaces
113
113
114
-
> See also: [`launch --network`](/reference/command-line-interface/launch)
114
+
> See also: [`launch --network`](reference-command-line-interface-launch)
115
115
116
-
Multipass can create instances with additional network interfaces using the `multipass launch` command with the `--network` option. This is complemented by the [`networks`](/reference/command-line-interface/networks) command, that you can use to find available host networks to bridge with.
116
+
Multipass can create instances with additional network interfaces using the `multipass launch` command with the `--network` option. This is complemented by the [`networks`](reference-command-line-interface-networks) command, that you can use to find available host networks to bridge with.
117
117
118
118
This feature is only supported for images with [`cloud-init` support for v2 network config](https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html), which in turn requires [netplan](https://netplan.io/) to be installed, meaning that you'll require Ubuntu 17.10 and Ubuntu Core 16 (except `snapcraft:core16`) or later. More specifically, this feature is only supported in the following scenarios:
119
119
@@ -123,7 +123,7 @@ This feature is only supported for images with [`cloud-init` support for v2 netw
123
123
124
124
The `--network` option can be given multiple times to request multiple network interfaces beyond the default one, which is always present. Each time you add the `--network` option you also need to provide an argument specifying the properties of the desired interface:
125
125
126
-
-`name` - This is the only required value, used to identify the host network to connect the instance's device to (see [`networks`](/reference/command-line-interface/networks) for possible values).
126
+
-`name` - This is the only required value, used to identify the host network to connect the instance's device to (see [`networks`](reference-command-line-interface-networks) for possible values).
127
127
-`mode` - Either `auto` (default) or `manual`; with `auto`, the instance will attempt to configure the network automatically.
128
128
-`mac` - Custom MAC address to use for the device.
129
129
@@ -231,11 +231,11 @@ Another option is to install `NetworkManager`, but other network handlers need t
231
231
232
232
## Create an instance with a custom DNS
233
233
234
-
In some scenarios the default of using the system-provided DNS will not be sufficient. When that's the case, you can use the `--cloud-init` option to the [`launch`](/reference/command-line-interface/launch) command, or modify the networking configuration after the instance started.
234
+
In some scenarios the default of using the system-provided DNS will not be sufficient. When that's the case, you can use the `--cloud-init` option to the [`launch`](reference-command-line-interface-launch) command, or modify the networking configuration after the instance started.
235
235
236
236
### The `--cloud-init` approach
237
237
238
-
> See also: [`launch --cloud-init`](/reference/command-line-interface/launch)
238
+
> See also: [`launch --cloud-init`](reference-command-line-interface-launch)
239
239
240
240
To use a custom DNS in your instances, you can use this `cloud-init` snippet:
Copy file name to clipboardExpand all lines: docs/how-to-guides/manage-instances/launch-customized-instances-with-multipass-and-cloud-init.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ You can set up instances with a customized environment or configuration using th
6
6
Below are some common examples of using `cloud-init` with Multipass to create customized instances. The `cloud-init` file is provided by the Multipass team, but users are free to create and use their own personal `cloud-init` configurations.
> See also: [Instance](/explanation/instance), [`launch`](/reference/command-line-interface/launch), [`set`](/reference/command-line-interface/set), [Settings](/reference/settings/index)
4
+
> See also: [Instance](explanation-instance), [`launch`](reference-command-line-interface-launch), [`set`](reference-command-line-interface-set), [Settings](reference-settings-index)
5
5
6
-
This document shows further ways to customise an instance outside of the [`launch`](/reference/command-line-interface/launch) command using the Multipass [settings](/reference/settings/index).
6
+
This document shows further ways to customise an instance outside of the [`launch`](reference-command-line-interface-launch) command using the Multipass [settings](reference-settings-index).
7
7
8
8
(set-the-cpu-ram-or-disk-of-an-instance)=
9
9
## Set the CPUs , RAM or disk space of an instance
10
10
11
-
> See also: [`local.<instance-name>.cpus`](/reference/settings/local-instance-name-cpus), [`local.<instance-name>.disk)`](/reference/settings/local-instance-name-disk), [`local.<instance-name>.memory`](/reference/settings/local-instance-name-memory)
11
+
> See also: [`local.<instance-name>.cpus`](reference-settings-local-instance-name-cpus), [`local.<instance-name>.disk)`](reference-settings-local-instance-name-disk), [`local.<instance-name>.memory`](reference-settings-local-instance-name-memory)
12
12
13
13
You can set instance properties at `launch` time, but you can also update some of them after the instance has been created. Specifically, an instance’s memory, disk space, and the number of its CPUs are exposed via daemon settings: `local.<instance-name>.(cpus|disk|memory)`.
14
14
15
-
To modify one of this properties, first stop the instance and then issue the [`set`](/reference/command-line-interface/set) command. For example:
15
+
To modify one of this properties, first stop the instance and then issue the [`set`](reference-command-line-interface-set) command. For example:
16
16
17
17
```{code-block} text
18
18
multipass stop handsome-ling
@@ -63,7 +63,7 @@ Modifying instance settings is not supported when using the Hyperkit driver, whi
63
63
64
64
## Set the status of an instance to primary
65
65
66
-
> See also: [client.primary-name](/reference/settings/client-primary-name)
66
+
> See also: [client.primary-name](reference-settings-client-primary-name)
67
67
68
68
This section demonstrates how to set the status of an instance to primary. This is convenient because it makes this instance the default argument for several commands, such as `shell` , `start` , `stop` , `restart` and `suspend`, and also automatically mounts your $HOME directory into the instance.
Blueprints are deprecated and will be removed in a future release. You can achieve similar effects with cloud-init and other launch options. Find out more at: [Launch customized instances with Multipass and cloud-init](/how-to-guides/manage-instances/launch-customized-instances-with-multipass-and-cloud-init)
5
+
Blueprints are deprecated and will be removed in a future release. You can achieve similar effects with cloud-init and other launch options. Find out more at: [Launch customized instances with Multipass and cloud-init](how-to-guides-manage-instances-launch-customized-instances-with-multipass-and-cloud-init)
5
6
```
6
7
<!-- This is published as an Ubuntu Tutorial at this link: https://ubuntu.com/tutorials/running-a-container-with-the-docker-workflow-in-multipass -->
7
8
@@ -36,7 +37,7 @@ In this tutorial, you will see how to get started with the Docker blueprint by c
36
37
37
38
*Duration: 3 minutes*
38
39
39
-
Let's start by installing Multipass on your machine, following the steps in [How to install Multipass](/how-to-guides/install-multipass).
40
+
Let's start by installing Multipass on your machine, following the steps in [How to install Multipass](how-to-guides-install-multipass).
0 commit comments