Qubes 3.1: qvm-revert-template-changes fails for HVM template.

65 views
Skip to first unread message

sudod...@gmail.com

unread,
Dec 31, 2015, 4:49:14 AM12/31/15
to qubes-users
Trying to revert a HVM template in Qubes R3.1 RC1 I get this error message:

[user@dom0 ~]$ sudo qvm-revert-template-changes winxp
Traceback (most recent call last):
File "/bin/qvm-revert-template-changes", line 142, in <module>
main()
File "/bin/qvm-revert-template-changes", line 66, in main
oldcow_img = vm.rootcow_img + '.old'
TypeError: unsupported operand type(s) for +: 'instancemethod' and 'str'


'vm.rootcow_image' is not a string but: <bound method QubesTemplateHVm.rootcow_img of <QubesTemplateHVm at 0x181edd0 qid=36 name='winxp'>>, so string concatenation fails.

I don't get this error if the vm is a normal PV template.

Has someone an idea how to fix that?

Marek Marczykowski-Górecki

unread,
Jan 4, 2016, 8:05:38 AM1/4/16
to sudod...@gmail.com, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Not yet. Tracking here:
https://github.com/QubesOS/qubes-issues/issues/1573

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWim4cAAoJENuP0xzK19csDZ0IAJRnRCQc1EzFbZ631YNgSPir
fmHGks9tECaS6nq2wI/QWs8hKoGr1T7yTigAagbre7LfgEsPlLSgZCvfN2+G8OSH
TWhiUpG2+Dx9M4uA/YAoTcrtMNw4swztYWs7kvMv2IfMHBKkzViyhw6kx8CWuula
e0XKj9orquesvUPmjbC+KzzMqolRSjEokW0soQhpz8GVwbUDB7d4K3sC+7RbN9r7
XRAabhU10gv3XIi+zt0JzQF28yGUwl6wuFUEK69O6oH9lBaFA5ojfu4SOp0Rm0nP
LkWPhuS85/E2H28oD6L/JnSzjNTlPexf3PUoHfXSxlLsXUn3kWRdkdrswwmYfcg=
=nN+s
-----END PGP SIGNATURE-----

sudod...@gmail.com

unread,
Jan 8, 2016, 3:04:27 PM1/8/16
to qubes-users, sudod...@gmail.com
I get a very similar error when trying to run qvm-trim-template on a Windows VM:

Traceback (most recent call last):
File "/usr/bin/qvm-trim-template", line 160, in <module>
main()
File "/usr/bin/qvm-trim-template", line 78, in main
rootcow_old = tvm.rootcow_img + '.old'
TypeError: unsupported operand type(s) for +: 'instancemethod' and 'str'

I didn't yet test updates in current-testing. Do they solve that problem too?

Marek Marczykowski-Górecki

unread,
Jan 8, 2016, 5:58:26 PM1/8/16
to sudod...@gmail.com, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Yes.


- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWkD8KAAoJENuP0xzK19csNsQH/j2MZfgjZwQATJr0wmOzOFcY
rC1sABkUiR3/i01zj/cDA5DmRdPF/3k84wRg+t0ySyZTzynuA+ikoKYjGoYZ4Gw8
vwfyV6CgTGyOhISMENNtrnSOMeeXFzUli3hB7FaYzKJo5Pb5RXRfXgVxsweqcmmM
vZovUVRW1eWBotqUdtS1jxin4O795lHsCDgZNOB580gIu1w9FUILPM0VdaRhDJAZ
PG9Cr2npUU1EwjgsmTPEMQfSSOuCFsYs+2kvTtLPByyYBeNmQW57Fk3AKeO8f/+8
eKIWg1jwbPEjl/4m6cRl52igHHGt1OO92LkyqXQomV+28q9RhY2lU0dtN6vHC/w=
=gC/z
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages