Simple way of moving / copying a HYPER-V virtual machine to another computer or disk(s)


jimbo45

Well-known member
Pro User
VIP
Local time
7:31 AM
Posts
6,015
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Hi all
Why on earth do Ms and other people posting about this make essentially a SIMPLE process so complicated -- using the Replicate or export / import virtual machine facility often fails and for home users who don't need to move a running VM then the process is an absolute pile of "Little round objects".

100% SIMPLE WAY.

1) Copy the virtual disk file(s) to target -- other machine / other disk(s) etc.
2) create a NEW Hyper-V VM and specify use existing virtual disk(s). Ensure of course same generation as the original VM.
3) Create new NIC ("Virtual switch") -- external if you need "bridged" type functionality
4) boot using the virtual disk copied. Note if you've more than one then ensure it's the boot drive.

Literally 5 mins work !! or less.

Note also if you've attached physical disks then ensure these are on the new host (if moving to different computer or target ) and offline them via diskpart so you can attach them as physical drives.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
I agree that the simplified method described should work for Linux and or similar VM installations that don't require hardware linked activation, but wouldn't activation be lost by Windows installations because of the change in identity (Machine UUIID) of the VM?
 

My Computers My Computers

  • At a glance

    macOS 14.x (plus Windows 11, Debian, FreeBSD ...Apple M1 Max (T6001) - 8 performance 2 effici...32GB LPDDR5Apple M1 Max (32-core)
    OS
    macOS 14.x (plus Windows 11, Debian, FreeBSD for ARM64)
    Computer type
    Laptop
    Manufacturer/Model
    MacBook Pro M1 MAX
    CPU
    Apple M1 Max (T6001) - 8 performance 2 efficiency cores
    Memory
    32GB LPDDR5
    Graphics Card(s)
    Apple M1 Max (32-core)
    Hard Drives
    a) 1TB SSD + + 1TB SD Card + external SSD Drives
    Browser
    1. Safari 2. DuckDuckGo
    Antivirus
    -
  • At a glance

    Windows 11 Pro, plus VirtualBox VMs: various ...i732GB
    Operating System
    Windows 11 Pro, plus VirtualBox VMs: various Windows & Linux
    Computer type
    Laptop
    Manufacturer/Model
    Microsoft Surface Laptop Studio
    CPU
    i7
    Memory
    32GB
    Hard Drives
    1TB SSD, plus external SSDs for Virtual Machines etc.
    Browser
    1. MS Edge 2. DuckDuckGo
    Antivirus
    Defender
I agree that the simplified method described should work for Linux and or similar VM installations that don't require hardware linked activation, but wouldn't activation be lost by Windows installations because of the change in identity (Machine UUIID) of the VM?
Even this approach somewhat overcomplicates things on same device.

If you have an existing activated VM, all you need to do is change the hard drive to new VHDX.

If it is on another pc, you can copy the activated vm configuration files to new pc and create a vm keeping existing UUID, then attach vhdx files.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
OS
Windows 11 Pro + Win11 Canary VM.
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14
CPU
I9 13th gen i9-13900H 2.60 GHZ
Motherboard
Yep, Laptop has one.
Memory
16 GB soldered
Graphics Card(s)
Integrated Intel Iris XE
Sound Card
Realtek built in
Monitor(s) Displays
laptop OLED screen
Screen Resolution
2880x1800 touchscreen
Hard Drives
1 TB NVME SSD (only weakness is only one slot)
PSU
Internal + 65W thunderbolt USB4 charger
Case
Yep, got one
Cooling
Stella Artois (UK pint cans - 568 ml) - extra cost.
Keyboard
Built in UK keybd
Mouse
Bluetooth , wireless dongled, wired
Internet Speed
900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
Browser
Edge
Antivirus
Defender
Other Info
TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)
100% SIMPLE WAY.

1) Copy the virtual disk file(s) to target -- other machine / other disk(s) etc.
2) create a NEW Hyper-V VM and specify use existing virtual disk(s). Ensure of course same generation as the original VM.
3) Create new NIC ("Virtual switch") -- external if you need "bridged" type functionality
4) boot using the virtual disk copied. Note if you've more than one then ensure it's the boot drive.

Literally 5 mins work !! or less.
Yep, it's mostly what I do here as well, all testing stuff and non-activated ones.

In case of Windows activation, just 'export' the VM without the VHDX drive. That way the machine UUID is kept in the exported package.
 

My Computers My Computers

  • At a glance

    Windows 11 Proi3 8109U16GB DDR4 @2400Intel Iris Plus Graphics 655
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC
    CPU
    i3 8109U
    Motherboard
    Intel
    Memory
    16GB DDR4 @2400
    Graphics Card(s)
    Intel Iris Plus Graphics 655
    Sound Card
    Intel / Realtek HD Audio
    Monitor(s) Displays
    LG-32ML600M
    Screen Resolution
    1920x1080
    Hard Drives
    Intel SSD 250GB + Samsung QVO SSD 1TB
    PSU
    Adapter
    Cooling
    The usual NUC airflow
    Keyboard
    Logitech Orion G610
    Mouse
    SteelSeries Rival 100 Red
    Internet Speed
    Good enough
    Browser
    Chromium, Edge, Firefox
    Antivirus
    Windows Defender
  • At a glance

    CentOS 9 Stream / Alma / Rocky / FedoraIntel i7 4800MQ32GB DDR3 @1600NVIDIA Quadro K2100M
    Operating System
    CentOS 9 Stream / Alma / Rocky / Fedora
    Computer type
    Laptop
    Manufacturer/Model
    TOSHIBA
    CPU
    Intel i7 4800MQ
    Motherboard
    TOSHIBA
    Memory
    32GB DDR3 @1600
    Graphics card(s)
    NVIDIA Quadro K2100M
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Built-in
    Screen Resolution
    1920x1080

Latest Support Threads

Latest Tutorials

Back
Top Bottom