Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUSB VM does not recover from "not enough memory" #1449
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 23, 2015
Member
No, it's most likely about: #1038
You can try to lower swiotlb kernel parameter, but most likely you'll
need to set USB VM autostart and reboot the machine.
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?
|
No, it's most likely about: #1038 You can try to lower swiotlb kernel parameter, but most likely you'll Best Regards, |
marmarek
added
the
bug
label
Dec 23, 2015
marmarek
added this to the Far in the future milestone
Jan 6, 2016
marmarek
added
the
C: xen
label
Jan 6, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bnvk
Jan 23, 2016
You can try to lower swiotlb kernel parameter, but most likely you'll
need to set USB VM autostart and reboot the machine.
@marmarek is that achieved with qvm-prefs -s usbdata kernelopts "nopat iommu=soft swiotlb=soft" ?
This same issue just happened following a different path of behavior:
- Create new VM
usbdata-2try to assign USB driver to it - See message about driver already being in use by
usbdata-1 - Shutdown
usbdata-1VM manually - Assign driver to
usbdata-2 - Neither VM will start up and instead show
qrexec-daemonerror
bnvk
commented
Jan 23, 2016
@marmarek is that achieved with This same issue just happened following a different path of behavior:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 25, 2016
Member
On Sat, Jan 23, 2016 at 10:40:32AM -0800, Brennan Novak wrote:
You can try to lower swiotlb kernel parameter, but most likely you'll
need to set USB VM autostart and reboot the machine.@marmarek is that achieved with
qvm-prefs -s usbdata kernelopts "nopat iommu=soft swiotlb=soft"?
Not swiotlb=soft but swiotlb=2048 (or some even lower value).
This same issue just happened following a different path of behavior:
- Create new VM
usbdata-2try to assign USB driver to it- See message about driver already being in use by
usbdata-1- Shutdown
usbdata-1VM manually- Assign driver to
usbdata-2- Neither VM will start up and instead show
qrexec-daemonerror
Generally it is hard to start a VM with PCI device after some Qubes
runtime, because of memory fragmentation. Some details are described
in #1038. There is a hacky workaround for that:
- Pause dynamic memory management: touch
/var/run/qubes/do-not-membalance - Get some big chunk of memory from dom0: xl mem-set 0 1500
- Start the VM: qvm-start usbdata-2
- Re-enable memory management: rm /var/run/qubes/do-not-membalance
You need to adjust value in step 2 to your needs, often having 1-2GB
free is enough (check free memory with xl info).
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?
|
On Sat, Jan 23, 2016 at 10:40:32AM -0800, Brennan Novak wrote:
Not
Generally it is hard to start a VM with PCI device after some Qubes
You need to adjust value in step 2 to your needs, often having 1-2GB Best Regards, |
bnvk commentedNov 23, 2015
I experienced this early while doing a bunch of stuff, so I shut everything down and rebooted my machine to re-test my assumptions. The conditions I encountered are:
USB VMis not running. Was shutdown intentionally.Out of of Memorrynotification shows upon launching a VMUSB VMand it fails due to no memoryUSB VMcan never boot upInstead of booting up, it shows the error:
I wonder if this is connected to #878 or #1148 ?