Run existing windows install as a flatpaked VM

as the title says I want to run my windows install I have on a seperate nvme disk in a vm. I will be using this just to run the odd windows app that does not play nicley in WINE. I do not need GPU passtrough or anything like that (I really don't even care about passing the disk natively as a pcie device for better performance) ujust setup-virtualization uses virt-manager correct? this is kinda overkill for my use case. would it be possible to achive what I want with the simple flatpaked gnome boxes?
Solution:
welp You cannot use the Flatpak/Flathub version as it doesn’t currently support emulating a TPM. so your limted to windows 10 it seems with boxes also suposidly usb pass trough doesn't work because flatpak
Jump to solution
38 Replies
HikariKnight
HikariKnight5mo ago
gnome boxes dont think so, dont use it myself but gnome boxes is designed to be a more simplistic "i just want a VM, BOOM!" kinda gui so the configuration will be extremely limited. This is why we default to virt-manager since it lets you configure like 90% of what you need (the remaining 10% being exotic things or experimental stuff which requires modifying the xml file and the majority of people will not need that)
zany130
zany130OP5mo ago
yeah looking into boxes it seems it does have usb passthrough but thats it. I don't see any option to even inport a virtual machine image or anything much less specify a disk
HikariKnight
HikariKnight5mo ago
in virt manager you can set the disk to raw and point to the whole disk (not partition), let me grab a screenshot example
zany130
zany130OP5mo ago
the next setup up would be orcale virtualbox but that would have to be overlayed as well i think so at that point im better off with virt manager
HikariKnight
HikariKnight5mo ago
No description
HikariKnight
HikariKnight5mo ago
No description
HikariKnight
HikariKnight5mo ago
type="raw" use SATA as the bus type since its an existing install
zany130
zany130OP5mo ago
yeah back when i was using garuda I had it setup with virtmanger. I just wanted to avoid overlaying more stuff and the worning about updates being slower concerns me as updates are already pretty slow
HikariKnight
HikariKnight5mo ago
also windows will be angry at you for booting it in a VM
zany130
zany130OP5mo ago
wdym?
HikariKnight
HikariKnight5mo ago
hardware change, windows doesnt like drastic hardware change and can invalidate your license
zany130
zany130OP5mo ago
never really had that prob. worse thats happend is sometimes I broke the boot loader i might just convert my windows install to a fully virtual machine image instead of being a disk i can also dualboot. I had it like that so when I want to play a windows game I would just dualboot into windows but I almost never do that tried single GPU passtrough once and it wasn't a great experince
HikariKnight
HikariKnight5mo ago
was the gpu passthrough with 1 gpu on the system only?
zany130
zany130OP5mo ago
yeah don't have a second GPU
HikariKnight
HikariKnight5mo ago
yeah that experience will be shit its why we have the hard requirement of 2 gpus for the vfio stuff if you got only 1 or a laptop youre on your own
zany130
zany130OP5mo ago
thats why I had the dualboot setup ,but I can't rember the last time I needed windows for playing a game. Usually only use it for controller update tools and maybe photshop and things like that
HikariKnight
HikariKnight5mo ago
well either way virt-manager is the best route unless you need a super simple VM
zany130
zany130OP5mo ago
well looks like boxes can't install windows 11? :BSOD:
zany130
zany130OP5mo ago
No description
HikariKnight
HikariKnight5mo ago
pretty much what i use it for probably lacks tpm support?
zany130
zany130OP5mo ago
yeah probaly I know I had to pass my board tpm module on virt-manager
HikariKnight
HikariKnight5mo ago
i emulate it with swtpm because my hw doesnt support win11
zany130
zany130OP5mo ago
https://www.ctrl.blog/entry/how-to-win11-in-gnome-boxes.html lol looks like i need the edk2-ovmf package which means I would have to overlay it prob. screw that going with virt man
How to run Windows 11 in GNOME Boxes (with UEFI and TPM2 emulation)
Windows 11 needs some extra config to run as a virtual machine in GNOME Boxes. Get it setup with UEFI secure boot, TPM 2.0 emulation, and accelerated drivers.
From An unknown user
From An unknown user
From An unknown user
HikariKnight
HikariKnight5mo ago
although my vms are win10 for now yeah we overlay that with the ujust
zany130
zany130OP5mo ago
by defualt? or after I run the virtualization setup? if i have to overlay more things onto the system anyway. It would just be better to just use the virt-manager setup in ujust
HikariKnight
HikariKnight5mo ago
after running it i make a custom deck image to just include it on my image since i actually need it constantly
Solution
zany130
zany1305mo ago
welp You cannot use the Flatpak/Flathub version as it doesn’t currently support emulating a TPM. so your limted to windows 10 it seems with boxes also suposidly usb pass trough doesn't work because flatpak
zany130
zany130OP5mo ago
so virt-manger it is
zany130
zany130OP5mo ago
so even if I wanted to use windows 10 in boxes I would still need to overlay the rpm version of that if I want usb passtrough and edk2-ovmf for windows 11 support
HikariKnight
HikariKnight5mo ago
yep think so and you still need to have qemu installed too i believe
zany130
zany130OP5mo ago
yup so my whole "i don't want virt-manager because its going to bloat the system and slow the upgrade procsses" is moot have to overlay stuff anyway unless I want a SUPER basic vm with absoutly no passtrough abillity
HikariKnight
HikariKnight5mo ago
or make a custom image super easy
zany130
zany130OP5mo ago
that to lol
HikariKnight
HikariKnight5mo ago
im dead serious its super easy
HikariKnight
HikariKnight5mo ago
BlueBuild
The easiest way to build your own desktop Linux images.
The BlueBuild project creates accessible tools for you to create, configure & build custom images of atomic Fedora distributions.
HikariKnight
HikariKnight5mo ago
easiest way if you dont want to mess with a containerfile
zany130
zany130OP5mo ago
okay looks intresting ill check it out if not just to learn how all this works. really new to the fedora atomic model
HikariKnight
HikariKnight5mo ago
blue-build has their own discord as they are separate from ublue but its a nice way if you want it kind of declarative through yaml "i want to base my image on X and i want to remove Y but install Z and run these scripts to modify the files on the system before shipping" i use it to enable the sddm login screen on my deck image as an example there is also the ublue method using a containerfile listed here https://discord.com/channels/1072614816579063828/1087140957096517672/1268596952640000043 with my example of what to do after the FROM line in the containerfile if you wanted to enable SDDM on deck images
Want results from more Discord servers?
Add your server