Create VM instructions
This commit is contained in:
parent
19e81f189a
commit
952667b54e
1 changed files with 52 additions and 0 deletions
|
@ -0,0 +1,52 @@
|
||||||
|
Launch a VM
|
||||||
|
===========
|
||||||
|
|
||||||
|
Now that we have a namespace and image, it's time to start a deployment. This section will go through setting up a VM deployment from scratch that we'll use to setup Nextcloud.
|
||||||
|
|
||||||
|
---
|
||||||
|
> **_NOTE:_** If you have not done so already, at the top right switch the UI view to your namespace. If it says "All Namespaces", you'll see all the other resources in the project. Changing this now will show your own resources and help prevent you from accidentally touching someone else's during this demo.
|
||||||
|
---
|
||||||
|
|
||||||
|
## Launch a VM
|
||||||
|
|
||||||
|
On left navigation bar on the left side, click on [Virtual Machines](https://devranch.lsit.ucsb.edu/dashboard/harvester/c/c-m-h9z6hwtk/kubevirt.io.virtualmachine).
|
||||||
|
|
||||||
|
VMs that you create will show up here. To create one, click the [Create button](https://devranch.lsit.ucsb.edu/dashboard/harvester/c/c-m-h9z6hwtk/kubevirt.io.virtualmachine/create) on the top right.
|
||||||
|
|
||||||
|
At the top fill in the following details:
|
||||||
|
* Leave it as Single Instance
|
||||||
|
* Namespace: Change this to your namespace
|
||||||
|
* Name: Name for your VM (eg, nextcloud-demo)
|
||||||
|
* Description (optional): Describe what your VM is for, (eg, "Nextcloud Server")
|
||||||
|
* Leave "Use VM Template" unchecked (more on that in Section 4)
|
||||||
|
|
||||||
|
Fill in these sections using navigation on the left-hand side:
|
||||||
|
|
||||||
|
Basics:
|
||||||
|
* Set CPUs to 2
|
||||||
|
* Memory: 8 GB (If you want to skip Mariadb and use sqlite, use 4 instead)
|
||||||
|
* SSHKey: Leave blank for now
|
||||||
|
|
||||||
|
Volumes:
|
||||||
|
* Name: unique volume name (eg, nextcloud-root)
|
||||||
|
* Type: disk
|
||||||
|
* Image: Select the image you uploaded in the previous section or the OpenSUSE 15.6 image from harvester-public
|
||||||
|
* Size: 20
|
||||||
|
* Bus: VirtIO
|
||||||
|
* __Optional:__ Add two more 10GB volumes for database and nextcloud user data storage
|
||||||
|
|
||||||
|
Networks:
|
||||||
|
* Delete the default Management Network using the X on the top right. We won't need it for this demo.
|
||||||
|
* Add Network
|
||||||
|
* Name: nic-1 is fine, but something like "public-1" is intuitive
|
||||||
|
* Model: virtio
|
||||||
|
* Network: harvester-public/2176 (This will get us a DHCP *public* IP)
|
||||||
|
* Type: bridge
|
||||||
|
|
||||||
|
Node Scheduling, VM Scheduling, Advanced Options: Note the availability of things here but don't change anything for the sake of this demo. Also note that you could automate almost of the entire next section of this tutorial with cloud-config data here now.
|
||||||
|
|
||||||
|
Instance Labels (optional): set vmName to the Name at the top
|
||||||
|
|
||||||
|
Now click the blue "Create" button on the bottom right.
|
||||||
|
|
||||||
|
CONGRATS! You've just deployed your first Harvester VM. Now, we wait a minute or two while kube-virt gets storage, assigns the VM to a node, and starts it. This typically takes ~1-10 minutes.
|
Loading…
Reference in a new issue