Virtualisation: Difference between revisions

From Smithnet Wiki
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:


Installation:
Installation:
*  
* hdsize defines sieze of disk, to reserve space for additional VGs
* minfree defines unallocates space in the VG, required for LVM snapshots (hdsize/8 to a max of 16 GB)
* VG "pre" is created with LVs:
** root (define with maxroot, limit is hdsize/4)
** data (maximum defined with maxvz: hdsize - rootsize - swapsize - minfree. Must be at least 4 GB)
** swap (define with swapsize)
* For HP DL380G5 (and other on VGA?) blank screen during install:
** Edit "e" -> add "nomodeset" and/or "i915.modeset=0" as Linux kernel option


ISO Uploads:
ISO Uploads:
* /var/lib/vz/template/iso/
* /var/lib/vz/template/iso/
Subscriptions
* "You do not have a valid subscription for this server"
Updates
* /etc/apt/sources.list
deb http://download.proxmox.com/debian bookwork pve-no-subscripion
* /etc/apt/sources.list.d/pve-enterprise.list
apt dist-upgrade
Windows VirtIO drivers:
* [https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers Windows VirtIO drivers]
Storage:
wipefs -a /dev/sdb /dev/sdc
pvcreate /dev/sd[bc]
pvs
vgcreate main /dev/sd[bc]
vgs
lvcreate -T -l 100%FREE --poolmetadatasize 1G main/vm
lvs -a

Latest revision as of 18:35, 28 October 2024

Hyper-V

Convert VMware to Hyper-V with qemu-img:

qemu-img convert -p -f vmdk -O vpc centos_disk.vmdk centos_disk.vhd

Proxmox

Main documentation:

Installation:

  • hdsize defines sieze of disk, to reserve space for additional VGs
  • minfree defines unallocates space in the VG, required for LVM snapshots (hdsize/8 to a max of 16 GB)
  • VG "pre" is created with LVs:
    • root (define with maxroot, limit is hdsize/4)
    • data (maximum defined with maxvz: hdsize - rootsize - swapsize - minfree. Must be at least 4 GB)
    • swap (define with swapsize)
  • For HP DL380G5 (and other on VGA?) blank screen during install:
    • Edit "e" -> add "nomodeset" and/or "i915.modeset=0" as Linux kernel option

ISO Uploads:

  • /var/lib/vz/template/iso/

Subscriptions

  • "You do not have a valid subscription for this server"

Updates

  • /etc/apt/sources.list

deb http://download.proxmox.com/debian bookwork pve-no-subscripion

  • /etc/apt/sources.list.d/pve-enterprise.list
apt dist-upgrade

Windows VirtIO drivers:

Storage:

wipefs -a /dev/sdb /dev/sdc
pvcreate /dev/sd[bc]
pvs
vgcreate main /dev/sd[bc]
vgs
lvcreate -T -l 100%FREE --poolmetadatasize 1G main/vm
lvs -a