Tip: Faster reboot

252 views
Skip to first unread message

Jon Solworth

unread,
Dec 29, 2016, 4:01:07 PM12/29/16
to qubes-users
To speed up reboot from dom0 type

qvm-shutdown --all --wait
reboot

Its much faster than a restart from the login screen

Jon

Foppe de Haan

unread,
Dec 29, 2016, 4:24:44 PM12/29/16
to qubes-users

In my experience, 95% of the wait time is caused by sys-usb and sys-net taking forever to shut down. I just kill those, then reboot.

Andrew David Wong

unread,
Dec 29, 2016, 11:08:18 PM12/29/16
to Foppe de Haan, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
(Reposting my comments on #1581 and #1826.)

FWIW, I've been using simple shutdown and reboot scripts to work
around this issue (I think since I first started using Qubes). Here's
an example:

```
#!/bin/bash
qvm-shutdown --wait --all \
- --exclude=sys-net \
- --exclude=sys-firewall \
- --exclude=sys-usb \
- --exclude=sys-whonix \
- --exclude=sys-vpn \
- --exclude=sys-etc \
qvm-shutdown --wait --all
sleep 3
shutdown now
```

Works every time. The idea is to exclude all service VMs from the
first pass of qvm-shutdown so that it doesn't jam up (#1826), so if
you use VPN VMs, exclude those too. (This works for me even if there
are more than 5 VMs still running after the first pass.)

If you're really in a hurry, you can use substitute qvm-kill for
sys-usb and sys-net, as Foppe suggested.

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYZd2GAAoJENtN07w5UDAwJfcP/i1Te9M0+2yHs0g2JzmpTnel
xYolg5seZLIa8mVe/cgyMKh4HDpTDUzFQUAOXb74RaCNz3v0BM0RDkZWoEB+XkzY
u0nGnuuJxKMaj4jQCcZGmUspG0M2aArwmedjyCuaIqcNNNiNu/O7jNcAWpplbsRi
6m2j7tjYOgVWnJBvPcpNxbmxjxyPDnGALr2NxSCvWICVCVe/vuo5NzVwJZTVxiTH
F1OxRCxRyPP2RztpgCIsWdUAonnrEhEm8zcsGsZkc89y7YI91sA9R5T4LeEEU6d/
8KnQWjG7Azx61QdSpnBPlbq61QZVA63pCSB5z2ZvkqXxCSxDdsmOZ0We1QmoKg61
FjJwwuBlvqbDrDS/LavB4/QcIF4n2TLCxlt2Eekm2mvoC/v6oIpsow9UIT4njcwF
78JsDJiVbvpBCZI6OvfH0OdD98mjgjvfkFP4Gz4eNRPc1JzHea52VeVLLQMmp5FC
DuF+4+nR4MAi4tmYb9deWxQ65D8bMYb0iF0pl4/FmOqovvGdu5iTZY+XLQN4Ohl/
iQk+gJFP+XQzLjpxfUIZbfUuP/XioPCWR5Xgsjg/IiIHxd8ZfIsFp8dTp9w3lxfT
V04I1Vimk1H1vqiCDCKXbjr+2C3URlPQZW8etqggF9BHAwyWz4JgdHOMj0bMCzDl
/9/s7ZKkx9fzV0KsPjwq
=Shf4
-----END PGP SIGNATURE-----

Jarle Thorsen

unread,
Dec 30, 2016, 6:47:12 AM12/30/16
to qubes-users, 0spin...@gmail.com
> FWIW, I've been using simple shutdown and reboot scripts to work
> around this issue (I think since I first started using Qubes). Here's
> an example:
>
> ```
> #!/bin/bash
> qvm-shutdown --wait --all \
> - --exclude=sys-net \
> - --exclude=sys-firewall \
> - --exclude=sys-usb \
> - --exclude=sys-whonix \
> - --exclude=sys-vpn \
> - --exclude=sys-etc \
> qvm-shutdown --wait --all
> sleep 3
> shutdown now

I guess there is some formatting problems here? The '-' in the beginning of all the --exclude lines should be removed I think?

Jon Solworth

unread,
Dec 30, 2016, 10:03:12 AM12/30/16
to qubes-users
Is it possible to substitute Andrew's shutdown for the login screens shutdown?

Pawel Debski

unread,
Dec 30, 2016, 1:50:42 PM12/30/16
to qubes-users
W dniu piątek, 30 grudnia 2016 16:03:12 UTC+1 użytkownik Jon Solworth napisał:
> Is it possible to substitute Andrew's shutdown for the login screens shutdown?

Yeah. Would be great usability improvement if we had it as default install of Qubes. Could you, Qubes folks, please log it as "usability feature request" for next Qubes release?

PD

Andrew David Wong

unread,
Dec 31, 2016, 11:46:21 AM12/31/16
to Jarle Thorsen, qubes-users, 0spin...@gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Correct. Enigmail automatically inserts them. (It also automatically removes them, so if you were using Enigmail, you wouldn't see them.)

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYZ+DQAAoJENtN07w5UDAwczAQAMJnigNypSSRznR64vBGxqhn
2cTaGf3zSMYiAQ1VfRzLYDOSJFi3CCCBOIFbopp1ughMRkLx0zEvsPD6/fY9ZhIU
HzKcMiz8rqxBY7MNmNqj6ESHM8qRKdCHHbl+rJPjlNNk0lUPu0cXGI0YaSpDQQfc
6kWK+hEDzgoLrmaC/MiIyqyNZeOPl02gBQbAt1c1rzQAve9aaH573hyElS+n8ad8
fr9gVadQqrE2TyxtF6u6VSDWE6VpS3TyRaek4HIvk3sEBBUaPkSDa3E+1N5YlGp4
P+0l45DBeMeOwsGJks8BjL/uNs80HW9ioc+gmWcKWzHD/+XHTkl2g2Ul+iAGJZA6
pHV+GQlbSCcqn3p4dbwOg1dM/ztBB83N1eeJ7dUqvvaCjkJ0JYfY4WQMbw9hfcsS
Wc7vXj1sepNrexEt+FwP0wNS5fHrFdmdvWEjlC/PBcd3ay7CQ5NFqYEd2TIqt9Mz
2id+qJ3Lf28ksc3Z8lV6yreRjyEPl7LDreeTjrLQzOlYxJymJ3KIHtkO1WmFbdcR
YP2LZ84GIjnGIVPojKDbEZsT5+oWHAx1F805YY0yJVmqIZNQplymjFC2FF7FWcMC
k+WEHdTFkKZf+A2j5GkuZ9LIKdRNkK/jkSUpn6C/pgmI2SnkcnZG1KzICjaNS8v9
hpWwwtHmVru0MtymCBm6
=IaS0
-----END PGP SIGNATURE-----

Andrew David Wong

unread,
Dec 31, 2016, 11:54:42 AM12/31/16
to Pawel Debski, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Added as a comment to the issue I reference above:

https://github.com/QubesOS/qubes-issues/issues/1581#issuecomment-269873202

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYZ+LHAAoJENtN07w5UDAw6i8P/1uJF5f2URvwVTTOPIDRkuu6
ufoiPpdSehZ1pjpkuzK7dRrE6B5jGzRdA0nbZIFfbHxr1UPp0yaEiZh9DtOZYSFC
c5SgQM23xtp8A9YvzNBwkM53k6+NWtqRBtSQftl3olPMUzQ5vpMk4u1+hs82v03V
dxyWywrYlzUI7mmDVZINIchKa/cVdaOIYVLaSPJDwhQk6yv1fzUboL6OcUu5OcU0
I7AmsxuAiIBruQqTwKPdqIC4674O1IcUOr2tahp8IeqW3h35rVes2gwMuVUxXOtY
QZ0j2J/xbpOQW2gFkz0KLlj6s2msZjlk2uaEMVKy+r8DsuW235+bM6FVRJuntYFO
MgU2mq/Q2zVN4gW7wwSuy23+EjA1LxbxdojQCNdD+cTapy09NTGAPiLPcKDcg0uI
QSv/Fwna3rGhGQOyAHnpNQyisLDwOVRYf/3DficI3EYJ+K5zxAd1YMvvrUQnWiPp
2Bc+NcJy+MGiPwgHxykx+xHq9rk603FEsGtQK0Iai2c6z+tny/g0sKdgDNBe6edl
Wcs95eaXoPLym1jOJHYCgRiHTH9BJyw9Nbi5cyT1TDhlbhHT77Ed/1iJlfK4Mtxy
t3Q1tyNFafN+1UxK8n+flA9UacwBP1MSpoFExu2gk/J5QHTOZgKi6p5qW9g+0Jg4
w3Zt2M4lEHlkTw/Iskhd
=v5+m
-----END PGP SIGNATURE-----

5sgnts+7bz...@guerrillamail.com

unread,
Dec 31, 2016, 1:36:04 PM12/31/16
to qubes...@googlegroups.com
I've also noticed that VMs that has pci devices assigned tend to be much more slower on the shutdown/reboot it seems that hang a long time, to the point that a pop up message appears stating if the user wants to kill the respective vms.
With the appvms that have no pci devices attached, they are much more faster in the reboot/shutdown

----
Sent using Guerrillamail.com
Block or report abuse: https://www.guerrillamail.com/abuse/?a=UFR2AB5NVqcQmh2U93EQdRjCStifx8dDiadNcQ%3D%3D


Reply all
Reply to author
Forward
0 new messages