meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vm:proxmox:kvm [2020/05/12 11:02] – niziak | vm:proxmox:kvm [2022/12/31 17:25] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== KVM ====== | ====== KVM ====== | ||
| - | ===== Migrate Windows 7/10 Virtual Box ===== | + | ===== CPU model ===== |
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== AES ===== | ||
| + | |||
| + | Enable AES in CPU flags. Default KVM64 CPU doesn' | ||
| + | Simple openssl benchmark: | ||
| + | <code bash> | ||
| + | openssl speed -evp aes-128-cbc aes-256-cbc aes-256-ecb | ||
| + | |||
| + | # Without AES | ||
| + | type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes | ||
| + | aes-256 cbc | ||
| + | aes-128-cbc | ||
| + | |||
| + | |||
| + | # With AES | ||
| + | type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes | ||
| + | aes-256 cbc | ||
| + | aes-128-cbc | ||
| + | </ | ||
| + | |||
| - | ==== (Optional) Preparation ==== | ||
| - | Cleanup disc space and remove all unnecessary drivers: | ||
| - | * uninstall Virtual Box Guest Additions | ||
| - | * Download and run registry file: [[https:// | ||
| - | * Restart VM | ||
| - | * '' | ||
| - | * Enable '' | ||
| - | * Shutdown VM | ||
| - | Now two methods are possible: | ||
| ==== DRAFT ==== | ==== DRAFT ==== | ||
| Fastest method: create Proxmox machine and import vbox hard discs to newly created Proxmox VM. | Fastest method: create Proxmox machine and import vbox hard discs to newly created Proxmox VM. | ||
| Line 73: | Line 87: | ||
| sed -i ' | sed -i ' | ||
| - | |||
| - | |||
| - | ==== Importing only disc ==== | ||
| - | Fastest method: create Proxmox machine and import vbox hard disc to newly created Proxmox VM. | ||
| - | * Create new Proxmox machine with similar parameters to old one | ||
| - | * [[https:// | ||
| - | * Remove created Hard Disc (scsi0) | ||
| - | * Import disc images (repeat for all VDI discs) | ||
| - | * As RAW images with all benefits (compression, | ||
| - | * 21743 MB VDI compacted file occupied 15,2G on ZFS with compression ratio 1.24x | ||
| - | * As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | ||
| - | * Connect new discs into machine: | ||
| - | * <code bash>qm set 701 --scsi< | ||
| - | * NOTE: '' | ||
| - | * Switch SCSI to IDE: <code bash>sed -i ' | ||
| - | * Manually correct numbering conflict with CD-ROM ide drive | ||
| - | * Setup correct boot order | ||
| - | * Add one dummy (small size) hard disc to SCSI controller | ||
| - | * Enable QEMU Guest Agent | ||
| - | * Boot Windows, go to '' | ||
| - | * PCI Simple Communication Controller '' | ||
| - | * Red Hat VirtIO SCSI pass-through controller '' | ||
| - | * '' | ||
| - | * ('' | ||
| - | * vm generation id ('' | ||
| - | * Shutdown machine | ||
| - | * Switch disc controller from IDE to SCSI. Edit ''/ | ||
| - | * Setup correct boot order | ||
| - | |||
| - | sed -i ' | ||
| - | |||
| - | ==== NOT WORKING: Importing OVA file ==== | ||
| - | * **Very slow method**, exporting OVA needs to copy all discs into exported and well compressed file. | ||
| - | * In VirtualBox choose " | ||
| - | * select to export all network cards and MAC addresses | ||
| - | * Proxmox cannot import OVA files directly. Please unpack it with command <code bash>tar -xvf WIN7.ova</ | ||
| - | * After unpacking, manifest file .ovf will be available. | ||
| - | * <code bash>qm importovf 701 ./WIN7.ovf local-zfs --dryrun --format qcow2</ | ||
| - | * WARNING: < | ||
| - | * Create account/ | ||
| - | |||
| - | T.B.C without success, more similar issues described here: | ||
| - | * [[http:// | ||
| - | * [[https:// | ||
| - | |||
| - | |||