Jump to content

Promox Physical to Virtual, sorta ??

Here's the scenario. I have a linux server running Ubuntu on bare metal. I want to change that server to run Proxmox so I can better utilize the resources but I need to keep the original server functions and IP. So I want to virtualize the current server.  Here is what I am thinking.  So tell me where it might not work or if there are some extra steps to make it work.
 
  1. Using a new SSD in the server, I'll install Proxmox and assign a new IP.
  2. I'll create a new VM with the CPU type set to be same type=host
  3. The new VM will not have any virtual disks.
  4. I pass through the original bare metal drives to the VM
  5. Set the VM boot order to be the original physical boot drive.
  6. Boot up the VM.

Is this possible? I'm trying to figure out the lowest downtime to migrate from physical to virtual.

Assuming that works. I'll leave it running for a while to keep the family happy until the next maintenance window.

Next, I think I want to do the following.
 
  1. Create a blank virtual disk and add to VM.
  2. Clone the contents of the physical boot drive to the new virtual boot drive.
  3. Detach physical boot drive from VM.
  4. Change boot drive in VM to new virtual boot drive.

Seem OK??

Thanks,
Greg
Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, GeeSharp said:
 
  1. Using a new SSD in the server, I'll install Proxmox and assign a new IP.
  2. I'll create a new VM with the CPU type set to be same type=host
  3. The new VM will not have any virtual disks.
  4. I pass through the original bare metal drives to the VM
  5. Set the VM boot order to be the original physical boot drive.
  6. Boot up the VM.
 

Yup that should work fine.

 

I'm guessing your passing through the disks by adding a virtual disk and editing the config file with the device like /dev/sda. You can also pcie pass through the whole controller here.

 

6 minutes ago, GeeSharp said:
ext, I think I want to do the following.
 
  1. Create a blank virtual disk and add to VM.
  2. Clone the contents of the physical boot drive to the new virtual boot drive.
  3. Detach physical boot drive from VM.
  4. Change boot drive in VM to new virtual boot drive.

Seem OK??

Yup that should work work and give you the advantages of virtual disks like snapshots and backups.

 

I'd make sure you backup the orginal server before doing this just in case something goes wrong.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, GeeSharp said:

Is this possible? I'm trying to figure out the lowest downtime to migrate from physical to virtual.

Yes, I've done so before without issues. Be aware that you'll need to change some networking settings within your new VM since it'll be a bridge, NAT or some other virtual device, so if you want to keep the same IP it had before and allow it to be accessed by the rest of your network you'll need to change some things around.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

You can do that. Personally, I would P2V the existing disk if you really have a need to run a hypervisor. 

 

Using something like StarWind P2V to convert it to a .qcow2, or Disk2Vhd; then convert it using qemu-img into raw or qcow2. 

Honestly most of your time, is going to be installing and configuring Proxmox, including its storage and networks.

 

If you need to mess about setting stuff up, and reduce downtime; you could always temporarily P2V the disk into a .VHD or .VMDK and run it in Hyper-V / VMWare Player on your Desktop while you mess around with the Proxmox Server. Once Proxmox is setup, then shutdown the VM, copy the disk to your Proxmox, and convert it to a QEMU image and load it into the new Virtual Machine. 

I used to do this sort of thing often when I would do a full VMware upgrade at home before I ran vCenter. I would V2V the machines to my desktop and run them in VMware Workstation; until I was done with the server

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | EVGA GTX1070 FTW | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 14 x 20TB Seagate Exos X22 20TB | 500GB Aorus Gen4 NVMe | 2 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Link to comment
Share on other sites

Link to post
Share on other sites

Ive done it with an SSD, Just had to mess with network setting. 

 

I've also used Veeam and Clonezilla to move a Servers to "Blank" VM's this allowed me to keep the server online till it was time to turn it off. and flick on the VM 

Daily Drives 

Windows 11 + Mac Soma + Mint Linux + Ubuntu MATE 

HomeLab

Proxmox + OPNsense + TrueNAS + Zabbix + Debian + win Svr 2022 + win10 + Home Assistant + iventoy + plus other junk  and like 12 dockers! 

Home Network

Unifi  - Express, flex, 8 port POE, Ap's other switches 

Link to comment
Share on other sites

Link to post
Share on other sites

You can run os like clonezilla

Passthrough hdd and add same size virtual disk then clone inside VM then detach hdd and configure vm to boot virtual disk

 

Then you have VM running.

I'm jank tinkerer if it works then it works.

Regardless of compatibility 🐧🖖

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×