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
|Open a VNC (Virtual Network Client) connection to a virtual machine instance. Access the graphical console of a virtual machine instance through a VNC which requires a remote viewer on your local machine.
88
+
|Open a Virtual Network Client (VNC) connection to a VMI.
89
+
90
+
Accessing the graphical console of a VMI through VNC requires a remote viewer on your local machine.
|Specify a port number to run the proxy on the specified port, if that port is available. If a port number is not specified, the proxy runs on a random port.
104
+
You can use `virtctl vmexport` commands to create, download, or delete a volume exported from a VM, VM snapshot, or persistent volume claim (PVC).
|Create a `VirtualMachineExport` CR and then download the volume defined in the CR.
135
+
|===
136
+
137
+
[id='vm-memory-dump-commands_{context}']
138
+
== VM memory dump commands
139
+
140
+
You can use the `virtctl memory-dump` command to output a virtual machine (VM) memory dump on a PVC. You can specify an existing PVC or use the `--create-claim` flag to create a new PVC.
141
+
142
+
.Prerequisites
143
+
144
+
* The PVC volume mode must be `FileSystem`.
145
+
* The PVC must be large enough to contain the memory dump.
146
+
+
147
+
The formula for calculating the PVC size is `(VMMemorySize + 100Mi) * FileSystemOverhead`, where `100Mi` is the memory dump overhead.
148
+
149
+
* You must enable the hot plug feature gate in the `HyperConverged` custom resource by running the following command:
|`virtctl memory-dump get <vm_name> --claim-name=<pvc_name>`
173
+
|Save the memory dump of a VM on a PVC. The memory dump status is displayed in the `status` section of the `VirtualMachine` resource.
174
+
175
+
Optional:
176
+
177
+
* `--create-claim` creates a new PVC with the appropriate size. This flag has the following options:
178
+
179
+
** `--storage-class=<storage_class>`: Specify a storage class for the PVC.
180
+
** `--access-mode=<access_mode>`: Specify `ReadWriteOnce` or `ReadWriteMany`.
181
+
182
+
|`virtctl memory-dump get <vm_name>`
183
+
|Rerun the `virtctl memory-dump` command with the same PVC.
184
+
185
+
This command overwrites the previous memory dump.
186
+
187
+
|`virtctl memory-dump remove <vm_name>`
188
+
|Remove a memory dump.
189
+
190
+
You must remove a memory dump manually if you want to change the target PVC.
191
+
192
+
This command removes the association between the VM and the PVC, so that the memory dump is not displayed in the `status` section of the `VirtualMachine` resource. The PVC is not affected.
193
+
|===
194
+
195
+
[id='image-upload-commands_{context}']
196
+
== Image upload commands
197
+
198
+
You can use the `virtctl image-upload` commands to upload a VM image to a data volume.
199
+
200
+
.`virtctl image-upload` commands
201
+
[width="100%",cols="1a,2a",options="header"]
202
+
|===
203
+
|Command |Description
82
204
|`virtctl image-upload dv <datavolume_name> --image-path=</path/to/image> --no-create`
83
-
|Upload a virtual machine image to a data volume that already exists.
205
+
|Upload a VM image to a data volume that already exists.
84
206
85
207
|`virtctl image-upload dv <datavolume_name> --size=<datavolume_size> --image-path=</path/to/image>`
86
-
|Upload a virtual machine image to a new data volume.
208
+
|Upload a VM image to a new data volume of a specified requested size.
209
+
|===
210
+
211
+
[id='environment-information-commands_{context}']
212
+
== Environment information commands
87
213
214
+
You can use `virtctl` to view information about versions, file systems, guest operating systems, and logged-in users.
215
+
216
+
.`virtctl` environment information commands
217
+
[width="100%",cols="1a,2a",options="header"]
218
+
|===
219
+
|Command |Description
88
220
|`virtctl version`
89
-
|Display the client and server version information.
221
+
|View the `virtctl` client and server versions.
90
222
91
223
|`virtctl fslist <vmi_name>`
92
-
|Return a full list of file systems available on the guest machine.
224
+
|View the file systems available on a guest machine.
93
225
94
226
|`virtctl guestosinfo <vmi_name>`
95
-
|Return guest agent information about the operating system.
227
+
|View information about the operating systems on a guest machine.
96
228
97
229
|`virtctl userlist <vmi_name>`
98
-
|Return a full list of logged-in users on the guest machine.
0 commit comments