fix gcloud dev machine setup docs
@@ -125,7 +125,7 @@ set up a Ubuntu-based VM on GCE with nested KVM enablement can be found in GCE
</p>
</details>
- ```
+ ```console
$ gcloud config set project ${FC_PROJECT}
$ gcloud config set compute/region ${FC_REGION}
$ gcloud config set compute/zone ${FC_ZONE}
@@ -138,7 +138,7 @@ set up a Ubuntu-based VM on GCE with nested KVM enablement can be found in GCE
so you should use a recent Linux distribution image - such as Ubuntu 18
(used in the commands below), or equivalent.
- ```
+ ```console
$ FC_VDISK=disk-ub18
$ FC_IMAGE=ub18-nested-kvm
$ gcloud compute disks create ${FC_VDISK} \
@@ -150,7 +150,15 @@ set up a Ubuntu-based VM on GCE with nested KVM enablement can be found in GCE
1. Now we create the VM:
- ```
+ Keep in mind that you will need an instance type that supports nested
+ virtualization. `E2` and `N2D` instances will not work. If you want to use
+ a `N1` instance (default in some regions), make sure it uses at least a
+ processor of the `Haswell` architecture by specifying
+ `--min-cpu-platform="Intel Haswell"` when you create the instance.
+ Alternatively, use `N2` instances (such as with
+ `--machine-type="n2-standard-2").
+
+ ```console
$ FC_VM=firecracker-vm
$ gcloud compute instances create ${FC_VM} --zone ${FC_ZONE} \
--image ${FC_IMAGE}
@@ -158,7 +166,7 @@ set up a Ubuntu-based VM on GCE with nested KVM enablement can be found in GCE
1. Connect to the VM via SSH.
- ```
+ ```console
$ gcloud compute ssh ${FC_VM}
```
@@ -166,13 +174,13 @@ set up a Ubuntu-based VM on GCE with nested KVM enablement can be found in GCE
(you will be propmpted for a passphrase - can just keep it empty) and
uploaded to GCE. Done! You should see the prompt of the new VM:
- ```
+ ```console
ubuntu@firecracker-vm:~$
```
1. Verify that VMX is enabled, enable KVM
- ```
+ ```console
$ grep -cw vmx /proc/cpuinfo
1
$ sudo setfacl -m u:${USER}:rw /dev/kvm
