Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert Win10 VirtualBox File to HVM #4323

Closed
e6lk7dqzm83p opened this issue Sep 20, 2018 · 10 comments
Closed

Unable to convert Win10 VirtualBox File to HVM #4323

e6lk7dqzm83p opened this issue Sep 20, 2018 · 10 comments

Comments

@e6lk7dqzm83p
Copy link

e6lk7dqzm83p commented Sep 20, 2018

Qubes OS version:

R4.0

Affected component(s):

Following the instructions here:
https://www.qubes-os.org/doc/hvm/ (go to the "Converting VirtualBox VM to HVM" section)
does not yield a functionally Windows HVM.


Steps to reproduce the behavior:

This documentation is inconsistent with that found at https://www.qubes-os.org/doc/windows-vm/, when using the correct documentation I entered:
qvm-create win10 --class StandaloneVM --label red --property virt_mode=hvm --property kernel ='' --root-move-from /home/user/win10-root.img

followed by qvm-prefs win10 memory 8192 and qvm-prefs win10 maxmem 8192

Performing qvm-start win10 yields a "no bootable device" error.

I noticed that the win10 HVM has a Private storage max. size of 2048MiB and a System storage max. size of 10240, inspite of the fact the root image (win10-root.img) is ~41GB.

Expected behavior:

The win10 VirtualBox Image is successfully converted to an HVM.

Actual behavior:

Performing qvm-start win10 yields a "no bootable device" error.

General notes:


Related issues:

@marmarek
Copy link
Member

marmarek commented Sep 20, 2018

What version of qubes-core-admin-client package do you have? Similar issue is fixed in QubesOS/updates-status#681 (#3422)

@Shie2doo
Copy link

Shie2doo commented Sep 23, 2018

Hello. I use updated Qubes R4.0 and have the same problem. I also found it is related to #3838.
I tried to solve it by creating a blank VM, extend its root volume, and dd copy win10-root.img into it, but I have got the same result - "No bootable device".

qvm-create --class StandaloneVM --property virt_mode=hvm --property memory=4096 --property maxmem=4096 --property kernel='' --property debug=true -P hdd --label red win10
qvm-volume extend win10:root 19g
qvm-volume extend win10:root 28g
qvm-volume extend win10:root 37g
qvm-volume extend win10:root 46g
	// I have read that better not extend more than 10g.
sudo dd if=win10-root.img of=/dev/hddvg/vm-win10-root bs=1M status=progress oflag=sync
qvm-start win10

@e6lk7dqzm83p
Copy link
Author

@marmarek how do I check that? I do appear to have no pending updates, so I think my system is on the latest version.

Has anyone been able to get Windows working in Qubes 4.0 (even if I have to buy a license and use an ISO file) and if so could they post a link to instructions on how to do it? I need Windows for work so any help would be greatly appreciated.

Thank you!

@e6lk7dqzm83p
Copy link
Author

@marmarek I just did sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing and repeated the steps above for win10. I still got a no bootable device error, but this time it appears the VM is the right size (about 41GB).

@marmarek
Copy link
Member

marmarek commented Oct 2, 2018

Was that Windows installed in EFI mode? It won't work on Qubes HVM...
You may want to look at https://www.qubes-os.org/doc/windows-vm/#qubes-40---windows-vm-installation
The Qubes Windows Tools are quite unstable, but you can use Windows without them.

@e6lk7dqzm83p
Copy link
Author

Hi,

I'm unsure, as I used the VM images here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ (as referenced in https://www.qubes-os.org/doc/hvm/#converting-virtualbox-vm-to-hvm). I used the Win10 image (as there is no longer an x64 Win 7 template), so it's possible that was installed in EFI mode.

I'll try with the x86 Win7 installation and report back. Sorry for the delayed response...

@e6lk7dqzm83p
Copy link
Author

Hi,
I tried with the x86 Win7 using the IE8 template and while it installs I get a blue screen; it may be that converting any of the VMs that Microsoft provides won't work (which would be contrary to the current Qubes documentation).

I don't have a Windows installer right now to try a fresh Windows install and would rather not spend a few hundred dollars to do an experiment (but may do it anyway).

Any thoughts on this?

@e6lk7dqzm83p
Copy link
Author

Hi,

I bought a Windows 10 Pro USB drive and was unable to boot a standalone VM from it. I'm not sure what the issue is.

@e6lk7dqzm83p
Copy link
Author

I'm going to close this, as the issue appears to be the setup of the VMs. I got Windows 10 working doing a fresh install (though I did find some issues).

I'd suggest updating the documentation to not use the test VMs provided by Microsoft. I have found some issues with Windows in Qubes and will post those issues separately.

@andrewdavidwong
Copy link
Member

I'd suggest updating the documentation to not use the test VMs provided by Microsoft.

The documentation is a community effort. Please help us improve it by submitting a pull request:

https://www.qubes-os.org/doc/doc-guidelines/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants