Virtualisation: Difference between revisions
Appearance
	
	
NickPGSmith (talk | contribs)  | 
				NickPGSmith (talk | contribs)  | 
				||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Hyper-V ==  | == Hyper-V ==  | ||
=== Installation ===  | |||
VM Machine type:  | |||
* 1: Use for older ISOs, avoiding "the signed images hash is not allowed (db)"  | |||
* 2: Use for UEFI/Secureboot  | |||
Convert VMware to Hyper-V with [https://cloudbase.it/qemu-img-windows/ qemu-img]:  | Convert VMware to Hyper-V with [https://cloudbase.it/qemu-img-windows/ qemu-img]:  | ||
| Line 20: | Line 26: | ||
To enable updates, add:  | To enable updates, add:  | ||
 # Proxmox VE pve-no-subscription repository provided by proxmox.com,  | |||
 # NOT recommended for production use  | |||
 deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription  | |||
 # security updates  | |||
 deb http://security.debian.org/debian-security bookworm-security main contrib  | |||
to the file:  | to the file:  | ||
* /etc/apt/sources.list  | * /etc/apt/sources.list  | ||
| Line 56: | Line 68: | ||
  lvs -a  |   lvs -a  | ||
== Installation ==  | == VirtualBox ==  | ||
When running on Linux, ensure KVM module is not loaded:  | |||
 rmmod kvm-intel  | |||
 rmmod kvm-amd  | |||
== XCP-NG ==  | |||
=== Installation ===  | |||
Options for storage:  | Options for storage:  | ||
| Line 66: | Line 86: | ||
Deploy XOA (Xen Orchestra VM) to manage this and other XCP servers in one place.  | Deploy XOA (Xen Orchestra VM) to manage this and other XCP servers in one place.  | ||
== VMware ==  | |||
=== ESXi ===  | |||
At install time:  | |||
* SHIFT-O  | |||
* runweasel allowLegacyCPU=true  | |||
Latest revision as of 19:54, 25 May 2025
Hyper-V
Installation
VM Machine type:
- 1: Use for older ISOs, avoiding "the signed images hash is not allowed (db)"
 - 2: Use for UEFI/Secureboot
 
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
 
 
To enable updates, add:
# Proxmox VE pve-no-subscription repository provided by proxmox.com, # NOT recommended for production use deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription # security updates deb http://security.debian.org/debian-security bookworm-security main contrib
to the file:
- /etc/apt/sources.list
 
Then update:
apt dist-upgrade
Windows VirtIO drivers:
Network configuration:
- /etc/network/interfaces
 
Time Server:
- /etc/chrony/chrony.conf
 
Storage
Initial storage:
- local
- LV: pve/root
 - mounted under /
 
 - local-lvm
- Thin LV: pve/data
 
 
ISO Uploads:
- /var/lib/vz/template/iso/
 
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
VirtualBox
When running on Linux, ensure KVM module is not loaded:
rmmod kvm-intel rmmod kvm-amd
XCP-NG
Installation
Options for storage:
- ext -> for thin provisioning
 - LVM -> for thick provisioning
 
Update to latest packages:
yum update
Deploy XOA (Xen Orchestra VM) to manage this and other XCP servers in one place.
VMware
ESXi
At install time:
- SHIFT-O
 - runweasel allowLegacyCPU=true