<\/div>\n<\/aside>\n","upvoteCount":4,"datePublished":"2025-05-31T19:09:11.042Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/2","author":{"@type":"Person","name":"PatrickFarrell","url":"https://community.spiceworks.com/u/PatrickFarrell"}},"suggestedAnswer":[{"@type":"Answer","text":"
Hey everyone,<\/p>\n
Long time lurker (without an account) but first time posting. I’ve got a question about migrating a Linux VM to a physical device. I know there are similar topics but none had the info I was looking for, so I wanted to ask…<\/p>\n
I currently have a Proxmox server running a Plex VM (Debian 12). I just purchased a used Dell Optiplex 3090 micro so that can use the Intel Quick Sync for streaming outside my network. The VM isn’t that large and it only holds Plex files (and other needed packages for connecting to a NAS, etc).<\/p>\n
Rather than migrate the entire VM to the device, I was thinking of installing Debian 12 from scratch, then migrating the system files over to avoid any driver issues. I would also avoid having to install Plex again and set everything up from scratch and have it go thru the entire library to load all the metadata. If this would be the best plan, which system folders should I migrate? I assume<\/p>\n
/etc \n/var \n/usr (I have some custom scripts in /usr/local/bin)<\/p>\n
Any insight would be great to avoid as little issues as possible. TIA <\/p>","upvoteCount":2,"datePublished":"2025-05-31T18:27:25.589Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/1","author":{"@type":"Person","name":"simon_lefisch","url":"https://community.spiceworks.com/u/simon_lefisch"}},{"@type":"Answer","text":"
I agree, take this chance to re-install cleanly and move your configs, however, the new PC may also reindex and catalog quicker too, so would it matter if you run them alongside each other until the new one is up and configured, then just switch your NAT rule if you’re using one.<\/p>\n
You don’t need to stop your existing one until you are ready, so run them alongside each other until you are happy it’s functioning how you want.<\/p>","upvoteCount":3,"datePublished":"2025-05-31T19:16:09.985Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/3","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
Use time shift to an external device to save changes to the VM. Install Linux fresh on the hardware and then use time shift to restore it to the way you need it to be<\/p>","upvoteCount":3,"datePublished":"2025-06-01T00:01:47.997Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/4","author":{"@type":"Person","name":"Greek-Greg","url":"https://community.spiceworks.com/u/Greek-Greg"}},{"@type":"Answer","text":"
Thanks for the replies everyone!<\/p>\n
I’ll go ahead and move just the plex data as suggested. Hopefully I can remember all the other packages I have installed on my current VM. Don’t think it’s too much, just need to go thru everything.<\/p>\n
Much appreciated for the quick responses. Looking forward to posting on here more <\/p>","upvoteCount":1,"datePublished":"2025-06-01T14:56:23.511Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/5","author":{"@type":"Person","name":"simon_lefisch","url":"https://community.spiceworks.com/u/simon_lefisch"}},{"@type":"Answer","text":"\n\n
<\/div>\n
simon_lefisch:<\/div>\n
\nHopefully I can remember all the other packages I have installed on my current VM<\/p>\n<\/blockquote>\n<\/aside>\n
Why don’t you make a note first?<\/p>","upvoteCount":1,"datePublished":"2025-06-01T16:04:01.248Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/6","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},{"@type":"Answer","text":"
Or you as timeshift as I stated above? I have done this a bunch of times. As long as the base OS that you reinstall is the same as the one that time shift was taking images of you can just lay down the base and then restore it all and you don’t have to worry about what packages you missed<\/p>","upvoteCount":1,"datePublished":"2025-06-01T17:44:01.251Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/7","author":{"@type":"Person","name":"Greek-Greg","url":"https://community.spiceworks.com/u/Greek-Greg"}},{"@type":"Answer","text":"
You would use rsync to copy the files, then boot off a linux live distribution on the physical machine \nRecreate the partitions, install grub and copy over the data<\/p>\n
I feel like it is an important thing to be able to do as a linux user<\/p>","upvoteCount":0,"datePublished":"2025-06-05T00:48:26.994Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/8","author":{"@type":"Person","name":"woland","url":"https://community.spiceworks.com/u/woland"}},{"@type":"Answer","text":"
I actually already got everything worked out using @PatrickFarrell<\/a>’s method.<\/p>\nStopped Plex service on the VM and TAR’d the /var/lib/plexmediaserver<\/code> folder. \nInstalled Ubuntu on the physical device, then installed Plex. \nStopped Plex service, renamed /var/lib/plexmediaserver<\/code> folder, then UNTAR’d to same location. \nStarted Plex service and made some quick changes, all is working <\/p>\nMuch quicker than anticipated. Thanks for the info tho, will keep that in mind for anything else that comes up.<\/p>","upvoteCount":2,"datePublished":"2025-06-05T00:55:49.623Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/9","author":{"@type":"Person","name":"simon_lefisch","url":"https://community.spiceworks.com/u/simon_lefisch"}},{"@type":"Answer","text":"
Awesome, glad it’s working.<\/p>","upvoteCount":0,"datePublished":"2025-06-05T01:30:22.053Z","url":"https://community.spiceworks.com/t/migrate-linux-vm-system-files-to-a-physical-device/1211128/10","author":{"@type":"Person","name":"PatrickFarrell","url":"https://community.spiceworks.com/u/PatrickFarrell"}}]}}
Hey everyone,
Long time lurker (without an account) but first time posting. I’ve got a question about migrating a Linux VM to a physical device. I know there are similar topics but none had the info I was looking for, so I wanted to ask…
I currently have a Proxmox server running a Plex VM (Debian 12). I just purchased a used Dell Optiplex 3090 micro so that can use the Intel Quick Sync for streaming outside my network. The VM isn’t that large and it only holds Plex files (and other needed packages for connecting to a NAS, etc).
Rather than migrate the entire VM to the device, I was thinking of installing Debian 12 from scratch, then migrating the system files over to avoid any driver issues. I would also avoid having to install Plex again and set everything up from scratch and have it go thru the entire library to load all the metadata. If this would be the best plan, which system folders should I migrate? I assume
/etc
/var
/usr (I have some custom scripts in /usr/local/bin)
Any insight would be great to avoid as little issues as possible. TIA
2 Spice ups
Welcome long time lurker
Honestly I would not do that, you are asking for problems. For starters the drivers loaded for a VM will be different than the drivers loaded for a physical machine. Even copying /etc/fstab might break things if the mounts are different.
Reinstall the OS, reinstall plex and move the data over
4 Spice ups
Rod-IT
(Rod-IT)
May 31, 2025, 7:16pm
3
I agree, take this chance to re-install cleanly and move your configs, however, the new PC may also reindex and catalog quicker too, so would it matter if you run them alongside each other until the new one is up and configured, then just switch your NAT rule if you’re using one.
You don’t need to stop your existing one until you are ready, so run them alongside each other until you are happy it’s functioning how you want.
3 Spice ups
Use time shift to an external device to save changes to the VM. Install Linux fresh on the hardware and then use time shift to restore it to the way you need it to be
3 Spice ups
Thanks for the replies everyone!
I’ll go ahead and move just the plex data as suggested. Hopefully I can remember all the other packages I have installed on my current VM. Don’t think it’s too much, just need to go thru everything.
Much appreciated for the quick responses. Looking forward to posting on here more
1 Spice up
Rod-IT
(Rod-IT)
June 1, 2025, 4:04pm
6
Why don’t you make a note first?
1 Spice up
Or you as timeshift as I stated above? I have done this a bunch of times. As long as the base OS that you reinstall is the same as the one that time shift was taking images of you can just lay down the base and then restore it all and you don’t have to worry about what packages you missed
1 Spice up
woland
(Woland)
June 5, 2025, 12:48am
8
You would use rsync to copy the files, then boot off a linux live distribution on the physical machine
Recreate the partitions, install grub and copy over the data
I feel like it is an important thing to be able to do as a linux user
I actually already got everything worked out using @PatrickFarrell ’s method.
Stopped Plex service on the VM and TAR’d the /var/lib/plexmediaserver
folder.
Installed Ubuntu on the physical device, then installed Plex.
Stopped Plex service, renamed /var/lib/plexmediaserver
folder, then UNTAR’d to same location.
Started Plex service and made some quick changes, all is working
Much quicker than anticipated. Thanks for the info tho, will keep that in mind for anything else that comes up.
2 Spice ups
Awesome, glad it’s working.