1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="vmencryption-encryption">
|
---|
4 | <title>Encrypting a VM</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>Encrypting a VM can be done either using <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/> or the
|
---|
8 | <userinput>VBoxManage</userinput>. To encrypt an unencrypted VM with <userinput>VBoxManage</userinput>, use: </p>
|
---|
9 | <pre xml:space="preserve">VBoxManage encryptvm <varname>uuid</varname>|<varname>vmname</varname> setencryption --new-password <varname>filename</varname>|- \
|
---|
10 | --cipher <varname>cipher-ID</varname> --new-password-id <varname>ID</varname>
|
---|
11 | </pre>
|
---|
12 | <p>To supply the encryption password, point <userinput>VBoxManage</userinput> to the file where the password is
|
---|
13 | stored or specify <codeph>-</codeph> to let <userinput>VBoxManage</userinput> prompt for the password on the
|
---|
14 | command line. </p>
|
---|
15 | <p>The cipher parameter specifies the cipher to use for encryption and can be either <codeph>AES-128</codeph> or
|
---|
16 | <codeph>AES-256</codeph>. The appropriate mode of operation, such as GCM, CTR, or XTS will be selected by the VM
|
---|
17 | depending on the encrypting component. The specified password identifier can be freely chosen by the user and is
|
---|
18 | used for correct identification when supplying multiple passwords for the VM. </p>
|
---|
19 | </body>
|
---|
20 |
|
---|
21 | </topic>
|
---|