2015-11-29 16:55:20 -05:00
|
|
|
---
|
2021-03-13 13:06:18 -05:00
|
|
|
lang: en
|
2015-11-29 16:55:20 -05:00
|
|
|
layout: doc
|
2021-10-09 11:52:24 -04:00
|
|
|
permalink: /doc/upgrade/3.1/
|
2015-11-29 16:55:20 -05:00
|
|
|
redirect_from:
|
2021-10-09 11:52:24 -04:00
|
|
|
- /doc/upgrade-to-r3.1/
|
2015-11-29 16:55:20 -05:00
|
|
|
- /en/doc/upgrade-to-r3.1/
|
|
|
|
- /doc/UpgradeToR3.1/
|
|
|
|
- /doc/UpgradeToR3.1rc1/
|
2021-03-13 13:06:18 -05:00
|
|
|
ref: 155
|
2021-06-16 02:19:45 -04:00
|
|
|
title: Upgrading to R3.1
|
2015-11-29 16:55:20 -05:00
|
|
|
---
|
|
|
|
|
2016-01-12 20:04:51 -05:00
|
|
|
**Before attempting either an in-place upgrade or a clean installation, we
|
|
|
|
strongly recommend that users [back up their systems](/doc/backup-restore/).**
|
|
|
|
|
|
|
|
Current Qubes R3.0 systems can be upgraded in-place to the latest R3.1
|
2015-11-29 16:55:20 -05:00
|
|
|
by following the procedure below.
|
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
## Upgrade all Template and Standalone VM(s)
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-06-18 05:16:40 -04:00
|
|
|
By default, in Qubes R3.0, there is only one template. However, users are
|
2021-06-18 05:29:28 -04:00
|
|
|
free to create more templates for special purposes, as well as standalones.
|
|
|
|
More information on using multiple templates, as well as standalones, can be
|
2016-01-12 20:04:51 -05:00
|
|
|
found [here](/doc/software-update-vm/). The steps described in this
|
|
|
|
section should be repeated in **all** the user's Template and Standalone VMs.
|
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
### Upgrade Fedora templates:
|
2016-01-12 20:04:51 -05:00
|
|
|
|
2021-06-18 05:29:28 -04:00
|
|
|
1. Open a terminal in the template (or standalone). (E.g., use Qubes VM
|
2016-01-12 20:04:51 -05:00
|
|
|
Manager's right-click menu, choose "Run Command in VM," and type
|
|
|
|
`gnome-terminal` there.)
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
2. Install the `qubes-upgrade-vm` package:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo yum install qubes-upgrade-vm
|
|
|
|
```
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
3. Proceed with a normal upgrade in the template:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo yum upgrade
|
|
|
|
```
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-06-18 05:16:40 -04:00
|
|
|
4. Shut down the template.
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
### Upgrade Debian (and Whonix) templates:
|
2016-01-12 20:04:51 -05:00
|
|
|
|
2021-06-18 05:29:28 -04:00
|
|
|
1. Open a terminal in the template (or standalone). (E.g., use Qubes VM
|
2016-01-12 20:04:51 -05:00
|
|
|
Manager's right-click menu, choose "Run Command in VM," and type
|
|
|
|
`gnome-terminal` there.)
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
2. Update repository definition:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo cp /etc/apt/sources.list.d/qubes-r3.list /etc/apt/sources.list.d/qubes-r3-upgrade.list
|
|
|
|
sudo sed -i 's/r3.0/r3.1/' /etc/apt/sources.list.d/qubes-r3-upgrade.list
|
|
|
|
```
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
3. Proceed with a normal update in the template:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get dist-upgrade
|
|
|
|
```
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
4. Remove unnecessary now file:
|
2016-01-15 19:23:40 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/qubes-r3-upgrade.list
|
|
|
|
```
|
2016-01-15 19:23:40 -05:00
|
|
|
|
2021-06-18 05:16:40 -04:00
|
|
|
5. Shut down the template.
|
2016-01-12 20:04:51 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
## Upgrading dom0
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2016-01-12 20:04:51 -05:00
|
|
|
**Important:** Do not perform the steps described in this section until **all**
|
|
|
|
your Template and Standalone VMs have been upgraded as described in the previous
|
|
|
|
section. Also, do not shut down `sys-net` or `sys-firewall`, since you will not
|
|
|
|
be able to start them again until after the entire in-place upgrade procedure is
|
|
|
|
complete.
|
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
1. Open a terminal in Dom0. (E.g., Start -\> System Settings -\> Konsole.)
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
2. Upgrade dom0 to R3.1:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo qubes-dom0-update --releasever=3.1
|
|
|
|
```
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2016-01-12 20:04:51 -05:00
|
|
|
At this point, most of the `qvm-*` tools will stop working until after you
|
|
|
|
reboot the system.
|
2015-12-06 23:25:58 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
3. If the previous step completed successfully, your `qubes-core-dom0` version
|
2016-01-12 20:04:51 -05:00
|
|
|
should be `3.1.4` or higher. If it's not, repeat the previous step with the
|
|
|
|
`--clean` option.
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
4. Reboot dom0.
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2016-01-12 20:04:51 -05:00
|
|
|
The system may hang during the reboot. If that happens, do not panic. All
|
|
|
|
the filesystems will have already been unmounted at this stage, so you can
|
|
|
|
simply perform a hard reboot (e.g., hold the physical power button down
|
|
|
|
until the machine shuts off, wait a moment, then press it again to start it
|
|
|
|
back up).
|
|
|
|
|
|
|
|
Please note that if you use [Anti Evil Maid](/doc/anti-evil-maid), it won't be
|
|
|
|
able to unseal the passphrase the first time the system boots after performing
|
|
|
|
this in-place upgrade procedure since the Xen, kernel, and initramfs binaries
|
|
|
|
will have changed. Once the system boots up again, you can reseal your Anti Evil
|
|
|
|
Maid passphrase to the new configuration. Please consult the Anti Evil Maid
|
|
|
|
[documentation](/doc/anti-evil-maid) for instructions on how to do that.
|
|
|
|
|
2016-09-25 08:58:55 -04:00
|
|
|
If you use USB VM, you may encounter problem with starting it on updated Xen
|
|
|
|
version (because of strict default settings). Take a look at
|
2021-04-17 04:57:16 -04:00
|
|
|
[User FAQ](/faq/#i-created-a-usb-vm-and-assigned-usb-controllers-to-it-now-the-usb-vm-wont-boot)
|
2016-09-25 08:58:55 -04:00
|
|
|
for details.
|
|
|
|
|
2016-01-12 20:04:51 -05:00
|
|
|
Once you have upgraded dom0, you can install new templates from Qubes R3.1
|
|
|
|
repositories, in particular the new default Fedora 23 template:
|
2015-11-29 16:55:20 -05:00
|
|
|
|
2021-03-13 12:03:23 -05:00
|
|
|
```
|
|
|
|
sudo qubes-dom0-update qubes-template-fedora-23
|
|
|
|
```
|