How to Virtualise an Existing Windows Install using Proxmox

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 99

  • @paologucci225
    @paologucci225 Рік тому +17

    i was thinking you were gonna convert the windows install to a virtual image for proxmox. But this tuto is also good, just not what i was looking for. Nice Job

    • @EverythingbySam
      @EverythingbySam  Рік тому +3

      You could create a backup of the virtual machine then restore it to a different drive if that is what you want to achieve.

    • @MichaelMantion
      @MichaelMantion 6 місяців тому +2

      @@EverythingbySam Do you have a video showing how to make a backup and restoring to a different drive? would be useful. Im sure I could figure it out but lots of people would likely do this.

    • @EverythingbySam
      @EverythingbySam  6 місяців тому +2

      @@MichaelMantion I will consider making it as a couple of people have asked. I have just been really busy lately so it might take a while.

    • @monoham1
      @monoham1 6 місяців тому +2

      @@EverythingbySam Please make this or at least leave instructions! following this video and substituting the physical drive for a qcow conversion from a VHDx backup only gets you to the recovery screen and I'm not sure where to go from there! specifically you get "INACCESSIBLE BOOT DEVICE" then you do windows repair and change the devices in that blue and black DOS screen

  • @ZhyDuck-f9g
    @ZhyDuck-f9g 11 місяців тому +2

    Gotta say thanks x1000 man, you saved me from having to buy another hard drive, clone it with clone Zilla, uploading the iso to proxmox then trying to run it like that. Now I didn’t even have to buy a hard drive or extra anything. Thanks!

  •  Рік тому +3

    Great job!! And to think that the whole time I was trying to copy the operating systems into Proxmox without knowing this simpler solution. Thank you very much!

  • @ivaltierrez
    @ivaltierrez 11 місяців тому +2

    Hi,
    I rarely leave any comments on videos. But, I have to say. Your video rocks! Extremely helpful. I followed it step by step and I got it to work. Amazing! It saved me a lot of time given that I was thinking of creating a backup and go from there. Thank you so much! Please keep up the good work. Subscribed!!!!

    • @EverythingbySam
      @EverythingbySam  11 місяців тому +1

      Hello!
      Firstly, thank you, I appreciate the feedback.
      I do always wonder if I am being clear and informative in all my videos and like to hear when people manage to successfully implement whatever I am trying to teach.

  • @XUB4
    @XUB4 7 місяців тому +1

    Thakns dude, I've been searching for it for a long time and you explained it almost perfectly. Huge props to You!!

  • @Darkk6969
    @Darkk6969 Рік тому +1

    That's pretty cool. Nice thing about this setup is you can do a backup. And then restore to a different server's storage so you can remove the SSD.

    • @EverythingbySam
      @EverythingbySam  Рік тому +5

      Yup, it also gives you the flexibility for you to clone the drive to a bigger drive if you run out of space then pass that back through like nothing changed really.

  • @amzadhosein1017
    @amzadhosein1017 4 місяці тому

    Thank you!!!! I used this tutorial, and had a couple of things that weren't like in your video:
    1. My disk by id script just WOULD NOT WORK. I figured it was the id itself so I used "ls -l /dev/disk/by-id/" to find my disk id (ignoring partition) and the issue was it was "nvme" instead of "ata".
    2. The UEFI did not boot, but changing to Default (SeaBIOS) worked
    I'm actually mid-way through the instructions, but so far my windows machine has booted, so I'm happy :). THANKS!

    • @EverythingbySam
      @EverythingbySam  4 місяці тому

      The NVME script is in the description but I probably should have mentioned it sorry.

  • @raysutton2310
    @raysutton2310 7 місяців тому

    Massive Thank You!!! I've tried about 5 or 6 different ways to convert a physical Windows 10 to a Proxmox VM over the past week and this was the only way that resulted in a bootable machine that didn't crap out on a sytem repair.
    Rather than assembling the disk by-id path yourself, you can in the shell use "ls /dev/disk/by-id" find the 'root' entry (ends with the serial number) and cut/past the ID from there. In my case it was nvme-... rather than ata-... which caused some initial confusion.

    • @EverythingbySam
      @EverythingbySam  7 місяців тому

      I do have the NVMe syntax listed in the description although it’s probably not that obvious sorry.

    • @raysutton2310
      @raysutton2310 7 місяців тому +1

      @@EverythingbySam no problem, I got everything working including GPU and USB port passthrough for my 4K HDMI KVM switch, shows up fine in Windows (attached VNC console to check) with the correct vendor/product ID but have been totally unable to get it to work in Windows. Its there showing all the correct HID devices but when I switch to the dedicated KVM channel I have video but no KBD/Mouse. Pondering next steps but may have to give up & use RDP.

  • @Warrorar
    @Warrorar 10 місяців тому +2

    Great Guide, but small not: If the drive is an nvme drive, it does not start with "ata-", but with "nvme-" which can also be checked easily by going to the shell and cd into /dev/disks/by-id/
    Other than that, amazing Guide! You helped me get into Proxmox :)

    • @EverythingbySam
      @EverythingbySam  10 місяців тому

      I have that listed in the description

    • @Warrorar
      @Warrorar 10 місяців тому

      . @EverythingbySam damn, i'm so sorry, your video was so straight forward that i was not even in need of the description. I appologize.

    • @EverythingbySam
      @EverythingbySam  10 місяців тому +1

      @@Warrorar It’s all good mate. As long as your comment has the correct information (which it did of course) there is nothing wrong with restating something as it may help someone in the future.

  • @Godalor
    @Godalor 6 місяців тому

    Wonderful video, exactly what I wanted, thanks!
    Just one thing: if I want to import multiple Nvmes or SATA Devices, do I need to -scsi2 or -sata2 for the second ones or is the -sata1 argument are regular term? In my mind it's the denomination that the VM config uses for the device and needs -sata1, -sata2, -sata3 for further devices... am I right?

    • @EverythingbySam
      @EverythingbySam  6 місяців тому +1

      Yup that’s correct, just increase the number for each additional drive otherwise you will mount the new drive over the top of the exisiting drive if you use the same number.

  • @JARVIS1187
    @JARVIS1187 Рік тому

    Thanks so much! I am planning to do the exact same thing in the near future with my home-server installation of Windows Server 2022.

  • @BorisZech
    @BorisZech Рік тому

    Thank you for this concise explanation. One question: why don't you install the VirtIO drivers in the natively booted Windows before virtualising it? Would Windows crash if it had these drivers installed without running in a VM?

    • @EverythingbySam
      @EverythingbySam  Рік тому +2

      That should work doing it that way as well but if you don’t have a spare PC to run up the Windows install this is easier.
      The scenario I was working from when writing this is you only have the Windows drive.

    • @BorisZech
      @BorisZech Рік тому

      @@EverythingbySam OK, I did it your way. Afterwards I could still boot Windows natively so it should work from the start.

  • @pkillboredom
    @pkillboredom 8 місяців тому

    Thank you for this! Short and clear tutorial.

  • @Jwalk9000
    @Jwalk9000 Рік тому +1

    I HAVE BEEN LOOKING FOR HOW TO DO THIS FOR MONTHS!!! THANK YOU!!

    • @EverythingbySam
      @EverythingbySam  Рік тому +3

      That was my exact situation about a year ago, it is why I made this tutorial.

  • @zhyere
    @zhyere 5 місяців тому

    Awesome video..this was a great help. I was thinking about copying the entire hard drive and converting it or something crazy..but I knew there was an easier way..thanks.

    • @EverythingbySam
      @EverythingbySam  5 місяців тому

      You can also snapshot backup the drive and restore it to one of your other drives if you want to move it off your original drive

  • @arjan-nuts-gaming
    @arjan-nuts-gaming 23 дні тому

    For me, I am new to Promox. I have an old(er) PC with Windows 7 that I would like to migrate to proxmox. I have created already a VHDX, as backup of the data. But what is the best way to get that one into proxmox. If I clone the hard drive to another SSD, put the SSD in proxmox and follow your instructions. After that I make a clone and switch off the virtual machine. After that I can make a new VM machine and import the clone?

    • @EverythingbySam
      @EverythingbySam  23 дні тому

      @@arjan-nuts-gaming install the HDD into your Proxmox machine, follow all the steps to get it working then take a snapshot backup of the VM and restore the snapshot and remove the original VM that is using the HDD.

  • @tmaris
    @tmaris Рік тому +1

    Great tutorial. Seems so easy. I have a windows 10 pro machine running docker with a dozen containers or so with plex/jellyfin tailscale etc.
    Was looking for an easy way to convert that bare metal machine to proxmox vm as I don't want to re-setup all my configs.
    I've got also some external drives which I share through samba. Can that work in the VM?

    • @EverythingbySam
      @EverythingbySam  Рік тому +1

      Yup, just connect them to your bare metal Proxmox system then pass them through to your Windows install VM with the commands I listed.
      I personally would split the Docker containers away from the Windows install and move it to a Linux OS purely due to the amount of issues that randomly arise with Windows based system such as failed Windows update.

    • @tmaris
      @tmaris Рік тому

      @@EverythingbySam I haven't found an easy way to migrate my docker containers from my windows machine to a Linux environment. I think it will take me weeks to manually rebuild them and I'm trying to avoid that.

    • @EverythingbySam
      @EverythingbySam  Рік тому +2

      @@tmaris copy Docker data to network share, attach network share to Linux environment, copy data to new location on Linux, recreate Docker containers.
      You could install Portainer then export and import via the GUI.

    • @tmaris
      @tmaris Рік тому

      @@EverythingbySam Thanks! Will try it out.

    • @wraithers10
      @wraithers10 7 місяців тому

      Thanks so much for asking this question, as I'm in very similar position, and to @EverythingbySam for responding. Were you able to get the external (Samba) shares working? How about Plex with hardware encoding/decoding for multiple remote streams?
      Any notes on how existing opened ports / port forwards are managed? Do I just set them up again in the Proxmox OS and then pass that on to the Windows 10 VM? Related question: I have 5 internal & external HDDs connected via SATA & USB, respectively, that I would want to connect to my W10 VM. Is the process similar to what was shown in the video, and can they be mapped to their existing drive letters to avoid rescanning media for Plex & other apps?

  • @sp33d40
    @sp33d40 2 місяці тому

    Great video. I got it working but mine was not nvme or ata, it was usb. Now I am creating a backup and will restore the backup to a new VM so I can remove the drive. Do I need to do anything to undo the qm set command before or after erasing the original vm?

    • @EverythingbySam
      @EverythingbySam  2 місяці тому +1

      @@sp33d40 once you delete the VM that command is erased. That command essentially adds a disk to the VM so once the VM is removed so is that disk.

    • @peoplecomeon1
      @peoplecomeon1 Місяць тому

      I found recently that you can also go into Hardware, select your disk and hit disk action up at the top to move just the storage to another drive

  • @JaredTilston
    @JaredTilston 10 місяців тому

    Great, refreshing content. Thanks for your time. Subscribed

  • @alphaomega5017
    @alphaomega5017 2 дні тому

    Incase if we reboot PVE then there are chances it may boot in to Windows instead of pve. Could you please advice on this

    • @EverythingbySam
      @EverythingbySam  2 дні тому

      @@alphaomega5017 that is an easy one. You haven’t set your boot order correctly in your motherboard BIOS boot menu.
      This is a per motherboard setting so not so easy to make a video about as there are many different models with the setting located in different sections.

  • @poradnanet2005
    @poradnanet2005 10 місяців тому +1

    Can be this virtualizeed system moved on virtual disk for fully virtualization? This is good hint but in this case is I`m still depended on physical disk. The main magic of virtualization is in hoping between nodes and independence from "iron".

    • @EverythingbySam
      @EverythingbySam  10 місяців тому

      Take a snapshot backup of the VM and restore it to your main drive then you can delete the exisiting VM and remove the drive.

    • @poradnanet2005
      @poradnanet2005 10 місяців тому +1

      @@EverythingbySam I`ve tried it and it`s works.I had to change some details (bios, network card, graphic...etc) but my old system (win7) wa fully virtualized. I`m going to try virtualized Win 2019 server at customer side now.

    • @EverythingbySam
      @EverythingbySam  10 місяців тому

      @@poradnanet2005 congratulations mate, glad it all worked out. I have personally used the snapshot restore multiple times to move old installs from their original drive to a virtual partition.

    • @poradnanet2005
      @poradnanet2005 10 місяців тому

      @@EverythingbySam Interesting idea use snapshots instead of windows backup.I have FreeNAS as personal NAS at home but I can change it to Proxmox because I`m using Proxmox as primary virtual platform at customers.
      Thanks for this video..it was new for me.

  • @liande_
    @liande_ 2 місяці тому

    for me it just boots into grub, maybe because on my nvme there is linux and windows installed. how can I configure the vm to boot to windows

  • @8bitkid408
    @8bitkid408 Місяць тому

    Its quicker to use disk2VHD to add to Proxmox. Yes you can use the physical HDD but with newer installs of Windows the product key will be compromised. Better to have an machine to boot to if something goes wrong. Also a good idea is to advise to back up your data before embarking on this adventure. Nice video. Subscribed.

    • @EverythingbySam
      @EverythingbySam  Місяць тому

      @@8bitkid408 thank you for your suggestions and the sub.
      The main scenario of this video was a Windows install you want to boot to recover a bit of data from but you don’t have a spare PC but you dohave Proxmox available.
      I don’t really value Windows products keys as they are cheap and you can run Windows unactivated perfectly fine with only downside being the watermark which to me isn’t an issue at all especially on a virtualised version that I hope people aren’t using as a main system.
      Backing up your drive isn’t so necessary as because we are passing through the entire drive with effecting the configuration it’s nearly impossible to corrupt the data or suffer any loss. As soon as you get the VM running you can run a snapshot backup or add it into your backup configuration.
      At most the drive won’t boot but you can still recover data from it but I understand not everyone is that tech savvy.

    • @8bitkid408
      @8bitkid408 Місяць тому

      @@EverythingbySam It's not tech savvy. It's showing someone an unsafe method without informing your viewers of the risk, which in my opinion is foolish.

    • @EverythingbySam
      @EverythingbySam  Місяць тому

      @@8bitkid408 Good thing that is just your opinion then as nothing about it is “unsafe” as I did this method with several drives and never once compromised the information of the drive as you are not directly affecting the drive data by doing this method, you can still remove the drive and boot it in another system if you have one available to you.
      Just because I did not show a backup option does not invalidate this method, Proxmox has inbuilt backup options.
      I encourage you to make your own tutorial with your method instead of slightly alluding to what to do in a comment section of a different video.
      Giving people more options is never a bad thing so I look forward to your video.

    • @8bitkid408
      @8bitkid408 Місяць тому

      @@EverythingbySam You should still put a disclaimer on your videos. Just because we use due diligence doesn't mean everyone does.

    • @EverythingbySam
      @EverythingbySam  Місяць тому

      @@8bitkid408 a disclaimer to say what exactly? I cannot cover all bases and everything you do in life contains some form of risk.
      In terms of risk this method has basically no risk at all as you are not directly effecting the data.
      Just because you may be overly cautious does not mean anyone needs to cater towards the very minute chance of an issue that may arise.

  • @AnTicXz
    @AnTicXz 4 місяці тому

    any way to set the EFi partition from the drive to the EFI devices in the VM? maybe this isn't necessary but It is giving a warning

    • @EverythingbySam
      @EverythingbySam  4 місяці тому

      It will throw up a warning upon each boot but it’s not an issue.

  • @kennethvanallen4492
    @kennethvanallen4492 Рік тому

    Succinct and on point. Thank you.

  • @Thebengtify
    @Thebengtify 6 місяців тому

    Hi, beautiful video! I´m new to proxmox and instead of dual boot all the time. Kan I passthrough my IGPU to this windows install drive in Proxmox? Thanks!

    • @EverythingbySam
      @EverythingbySam  6 місяців тому +1

      No you cannot passthrough your entire IGPU, only additional graphics cards. The virtual machine will utilise a portion of your IGPU by default for graphics though.

    • @Thebengtify
      @Thebengtify 6 місяців тому

      Ok, I understand. Hopefully it will be enough during the time it takes me to understand how to set up an LXC container for plex 🙂 Thanks for the reply!

    • @EverythingbySam
      @EverythingbySam  6 місяців тому +1

      Run an Ubuntu VM with Plex and Jellyfin like I have so you can pass a GPU through later if you want or you could install docker on the Ubuntu VM and run them in containers.
      Bit more flexible in my opinion.

  • @grokit
    @grokit 5 місяців тому

    Once I have added my Win10 the way you describe, is there an easy way to move over the disk on the proxmox disks and remove the original wi dows disk afterwards?

    • @EverythingbySam
      @EverythingbySam  5 місяців тому

      Yep, take a snapshot backup and restore it as a different VM number. Then delete the original VM and remove the physical drive.

    • @grokit
      @grokit 5 місяців тому

      @@EverythingbySam elegant... I will try that! Thanks.

  • @lunarmagicexpress7231
    @lunarmagicexpress7231 3 місяці тому

    thank you for the help!

  • @LeMatt87n
    @LeMatt87n 10 місяців тому

    hi noob here, do I need a separate physical drive for each VM?

    • @EverythingbySam
      @EverythingbySam  10 місяців тому +1

      No, you can partition a small amount of your main Proxmox install drive or a secondary drive to each VM you want to create.

  • @fbarnea
    @fbarnea Рік тому

    I have a pc with a single ssd. I want to go from Windows 11 to Proxmox and vm with windows 11. I only have an external hard drive as additional storage. How can I achieve this? Do i need to buy another ssd and install proxmox on that one?

  • @nickpetrovsky
    @nickpetrovsky Місяць тому

    Thanks for tutorial, but you skip most important part about uuid and setting disk serial for not loosing activation and etc.

    • @EverythingbySam
      @EverythingbySam  Місяць тому

      @@nickpetrovsky I do not deem activation important for Windows to tell you the truth, they let you run it unactivated with really no consequence but a watermark and keys are cheap if that does concern you.

  • @PiscesDangYeu
    @PiscesDangYeu 11 місяців тому

    in your solution snapshot function It's available?

    • @EverythingbySam
      @EverythingbySam  11 місяців тому

      Yes you can take a backup of the virtual machine using the snapshot function and restore it to a different drive if you would like.

  • @maxheadrom3088
    @maxheadrom3088 Місяць тому

    Does it work on windows 11? Thanks!

  • @Spoolingturbo6
    @Spoolingturbo6 7 місяців тому +1

    ERROR (too many arguments) ProTip
    If your drive has a space between letters, replace with an underscore _
    *SO: qm set 105 -sata1 /dev/disk/by-id/nvme-WDC PC SN730 SDBQNTY-XXX-XXX
    *Should be : qm set 105 -sata1 /dev/disk/by-id/nvme-WDC_PC_SN730_SDBQNTY-XXX-XXX
    Just thought I'd throw that out there.

  • @emilianosteinvorth7017
    @emilianosteinvorth7017 Рік тому

    Could this work to transfer a windows key to proxmox?

    • @EverythingbySam
      @EverythingbySam  Рік тому

      This method basically wipes out your Windows key as unfortunately detects a new motherboard. You might have luck using your exisiting key to re-activate it but there is no guarantee.

  • @generalrodcocker1018
    @generalrodcocker1018 Рік тому

    so, there is no application to run on my installed os like vmware has to make a virtual machine?

    • @EverythingbySam
      @EverythingbySam  Рік тому

      You need the Virtio driver for a few things but essentially you are just passing the drive through to a VM which a couple of resources configured.
      If you wanted to do away with the drive entirely you could take a backup of the VM using Proxmox’s backup tools then restore the VM to your main drive or a different drive.

    • @generalrodcocker1018
      @generalrodcocker1018 Рік тому

      would you recommend someting like disk2vhd?@@EverythingbySam

  • @mariabjrkb.skaftadottir8669
    @mariabjrkb.skaftadottir8669 10 місяців тому

    how do i add the other drives with my stuff on them to the new vm?

    • @EverythingbySam
      @EverythingbySam  10 місяців тому +1

      Exact same command but change the SATA1 portion to SATA2 and so on for each drive

    • @mariabjrkb.skaftadottir8669
      @mariabjrkb.skaftadottir8669 10 місяців тому

      thanks for answer, i think i asked the wrong question, but i figured it out, thanks for answer :D@@EverythingbySam

  • @jeffbaker4219
    @jeffbaker4219 Рік тому

    Glad I came across this! Just sub'd thanks!!

  • @ZetaRidge7
    @ZetaRidge7 Рік тому

    Welcome back :)

  • @navcid
    @navcid 2 місяці тому

    root@pve:~# qm set 101 -sata1 /dev/disk/by-id/nvme-WDC WDS240G20C-00AJM0_21244F802861
    400 too many arguments
    qm set [OPTIONS]
    root@pve:~#
    mine throwing this error, any help please.

    • @EverythingbySam
      @EverythingbySam  2 місяці тому +1

      @@navcid you have a space between WDC and WDS240. Copy it exactly how it is listed on the disks menu. Use an underscore _ if there are any spaces.

    • @navcid
      @navcid 2 місяці тому

      @@EverythingbySam thanks sam, it worked. much appreciated.