meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
vm:proxmox:kvm [2020/05/12 06:51] – niziak | vm:proxmox:kvm [2022/12/29 16:39] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== KVM ====== | ====== KVM ====== | ||
- | ===== Migrate Windows 7/10 Virtual Box ===== | + | ===== 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 25: | Line 35: | ||
* As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | * As QCOW2 files on every file storage: <code bash>qm importdisk 701 WIN7_C.vdi local -format qcow2</ | ||
* Connect new discs into machine: | * Connect new discs into machine: | ||
- | * <code bash>qm set 701 --scsi< | + | * <code bash>qm set 701 --scsi< |
* NOTE: '' | * NOTE: '' | ||
* Edit config file to change just connected discs from SCSI to IDE. Remember to update CDROM IDE number to do not be in conflict with new discs. | * Edit config file to change just connected discs from SCSI to IDE. Remember to update CDROM IDE number to do not be in conflict with new discs. | ||
* <code bash>sed -i ' | * <code bash>sed -i ' | ||
* <file | / | * <file | / | ||
- | ide0: local-zfs: | + | ide0: local-zfs: |
- | ide1: local-zfs: | + | ide1: local-zfs: |
- | ide2: local-zfs: | + | ide2: local-zfs: |
ide3: nas326-ISOs: | ide3: nas326-ISOs: | ||
- | scsi0: local-zfs: | + | scsi0: local-zfs: |
scsihw: virtio-scsi-pci | scsihw: virtio-scsi-pci | ||
</ | </ | ||
Line 47: | Line 57: | ||
* ERROR: Windows stuck during booting when VirtIO SCSI driver. | * ERROR: Windows stuck during booting when VirtIO SCSI driver. | ||
* It is known KVM issue with VirtIO SCSI driver when more than 1 CPU core is used! | * It is known KVM issue with VirtIO SCSI driver when more than 1 CPU core is used! | ||
- | | + | * [[https:// |
+ | * Driver version 61.77.104.17200 2019-06-07 from virtio iso v 1.1.172 | ||
+ | * Update to latest 61.80.104.17300 2019-08-12 (not stable) virtio iso v1.1.173 doesn' | ||
* Changing CPU to 1 core solves problem. | * Changing CPU to 1 core solves problem. | ||
- | * Driver version 61.77.104.17200 2019-06-07 from virtio iso v 1.1.172 | + | * It works with odd number of cores (1,3,5) |
- | * Update to latest 61.80.104.17300 2019-08-12 (not stable) virtio iso v 1.1.173 | + | |
Line 71: | Line 83: | ||
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:// | ||
- | |||
- | |||