Is it possible to use cockpit in order to create a windows VM ?

  • Hi, i m new on this forum, tho i'm using omv for quite a while but just as a quick-easy-nas solution OS setup, and so far this thing, imo, is the best. I left it to use a stock debian which i set up myself for the same purpose (minidlna, ftp server, kodi, anything usefull ..) but the administration was waaaay esiaer and omv5 with cockpit is quite attracting i must say, so i'm back on it because no kodi anymore. The only problem is that:
    i want to have a windows virutal machine on it because i want to host a game server which runs through steam but can also runs from only the game files (.exe), servers are free and open on this game(wreckfest), i allready looked into it, and i didn t found anybody succefully running this thing on linux, only windows.

    I know omv4 use virtualbox, and it can virtualize a windows but what about cockpit ? I didn't find anything on it ?(

    I also know this will probably consume a bit of time to answer my question, tho any usefull link would be perfect, usually i want to learn from my own but eh.. i cannot find anything usefull for me. Or maybe my only solution is to get it done with omv 4 because omv 5 isn't able to do that ?
    Anyway a big thanks to whome will brought me even a piece of answer (i'm from France btw, sry for any spelling mistake).

    • Official Post

    Cockpit is just a frontend for kvm which can easily virtualize Windows. I'm not sure why they removed the Windows options from the OS list but it shouldn't matter which one you pick. Have you tried just picking an option from the OS dropdown and installing Windows?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • thanks for answering, yes i tried but it didn t want to proceed. Maybe i'm doing it wrong and it should work anyway but, why offer that much OS options if it changes nothing ?

    I m looking into how to set up a windows vm on KVM, but all topics speak about virutal manager, which doesn't come (am I wrong ?) with the cockpit interface. What would be your recommandation for me, where should i dig to get it done :p

    • Official Post

    why offer that much OS options if it changes nothing ?

    It can help set defaults. VMware does the same thing. With VMware, it tells the guest agent how to talk to the OS.


    I m looking into how to set up a windows vm on KVM, but all topics speak about virutal manager, which doesn't come (am I wrong ?) with the cockpit interface.

    virt-manager is another app that is not a web app. So, you would have install it on a Linux desktop (not the OMV system) and connect to the OMV instance.

    What would be your recommandation for me, where should i dig to get it done :p

    I was hoping cockpit would fix this (windows used to be in the list) because I can't - https://github.com/cockpit-project/cockpit/issues/14904. Personally, I run OMV as a VM on proxmox. Then you could run Windows in a separate VM.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • virt-manager is another app that is not a web app. So, you would have install it on a Linux desktop (not the OMV system) and connect to the OMV instance.

    That's what i though, i know that omv is kind of "locked" so it's not possible to set up everything you want like on a debian.
    Actually it's funny that it's u coming to help me, I have read some of your post and saw that u did everything throug vm's. But they were one or two years old, though that maybe it had been updated.
    I'm currently trying to set this up on omv4 with the plugin virtualbox, from ur knowledge, this should work fine ? I m a bit scared that it will be too hard to set up everything correctly on a debian with enough security (i might messed up permission in order to make it work, i m a noob :/) and nowadays i can see that everybody has a bot trying to bruteforce ur personnal server xD

    • Official Post

    i know that omv is kind of "locked" so it's not possible to set up everything you want like on a debian.

    Actually OMV is not locked. We just highly recommend not installing a desktop environment which does limit some of the packages you install.


    Actually it's funny that it's u coming to help me, I have read some of your post and saw that u did everything throug vm's. But they were one or two years old, though that maybe it had been updated.

    I do a lot with VMs but I have around 10 arm boards running OMV some times with no VMs involved there.

    I'm currently trying to set this up on omv4 with the plugin virtualbox, from ur knowledge, this should work fine ?

    Yep. I used Virtualbox for many years. It is just difficult to maintain a plugin when it isn't in the Debian Buster repo.


    nowadays i can see that everybody has a bot trying to bruteforce ur personnal server

    If you don't expose your OMV server to the internet, that shouldn't be a problem.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi ! Sorry i wasn't available those last few days, i'm back on it. I actually set up all this on omv4 and it's running perfectly ! VM's are so powerfull.
    Just to answer to your previous post, i have to make it reachable from the internet, that's half of the purpose of this server, for my friends and me.
    All of this ofc, thanks to you, i would probably be still looking for the good solution without your advice !
    I will give a shot to your tutorial in order to set up this on cockpit, thank you again to remind that i was in need and bring this up here ! Ur the best.

  • @ryecoaaron,


    Thanks for sharing the guide.

    I managed to installed Windows 10.

    However, I'm tried to create a bridge adapter, but received an error.

    Note: I'm currently using a bond0 in OMV.




    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Edited 2 times, last by tinh_x7 ().

    • Official Post

    conf.service.drivemon

    Not sure what drivemon is but it is causing the problem. I would remove it.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    where do I find its dir to remove it ?

    Do you have a drivemon plugin installed?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Is there something named drivemon in /srv/salt/omv/deploy/collectd/plugins?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Should I delete 'drivemon' ?

    Yes or move it to a filename without an .sls extension.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I'm try to connect to the VM via RDP.

    I've tried: Bridge to LAN, and direct attachment, but still can't connect via RDP.

    I can only connect to it via the console.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Edited once, last by tinh_x7 ().

  • Hello tinh_x7,


    I also suffered from your experience. If you use a linux-platform as desktop-OS: I was much happier installing Virtual Machine Manager, Cockpit does by far not cover what it should do.


    ---

    I installed on the server client:

    sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager qemu-utils virtinst libvirt-daemon

    ---


    on the server and on the client:

    sudo apt install ncat -> client and server installing!!

    ---


    In virtual machine manager you can then choose via GUI for RDP the protocol 'spice'. Please note that you need to choose in the Virtual Machine Manager in "Display Spice" the dropdown 'all interfaces', otherwise you run again into the Cockpit-issue. If you specify also a TLS-port you have a fixed address for your external viewer; in my case Remmina.


    Additionally, for Windows there is a helper file from Fedora, which you install when Windows is running:


    https://fedorapeople.org/group…downloads/archive-virtio/


    Choose the latest directory, and run the ISO inside Windows, it will install a lot of useful things.


    If you need/want I can provide you my config-file; in which is in xml cleartext everything visible, and can also easily be imported by virsh define ConfigFileVirtualMachine.xml


    ---

    For _CREATING_ a Qemu-Disk in the terminal, skipping the hellish Cockpit:


    qemu-img create -f qcow2 /srv/dev-disk-by-label-8TBMai2020/VirtualMachines/Win10/Win10.qcow2 500G


    creates a machine in the path /srv/.. , the file is called Win10.qcow2, maximal size 500G (it is dynamically growing, with all its advantages and disadvantages)

    ---


    For _INSTALLING_ the Operating System I used:

    virt-install --name=Win10 --vcpus=1 --ram=8000 --init=/srv/ --os-variant=win10 --cdrom=/srv/dev-disk-by-label-6TBDisk1/Software/Microsoft/Windows_10_Install-ISO/Win10-Install.iso --disk=/srv/dev-disk-by-label-8TBMai2020/VirtualMachines/Win10/Win10.qcow2,format=qcow2


    Obviously, most of the things are self-explanatory. Can all be changed later in the Virtual Machine Manager.


    I personally cancel with Ctrl+c then the installation in the terminal, modify then afterwards in particular the network-interface manually in the network bridge, entering manually the name br0, setting VIRTIO to the HDDs and run the machine again.


    ----

    Hope that helps a bit.

  • instead of using omv to host VM's, why dont you run esxi with omv as a vm, then you can run as many vm's as your machine can handle?

    i am currently running esxi 6.7 on a dell power edge r510 with 64 gigs ram, 12 cores, 24 threads and a 20 tb raid 5 array. if you shop ebay you can grab this setup in parts for a bout 300 to 400 bucks.


    Dave

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!