2024-02-23 14:08:24 +00:00
|
|
|
# Documentation
|
|
|
|
|
|
|
|
This is more a techincal documentation that how to use this tool.
|
|
|
|
|
|
|
|
# Install
|
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
Please refer to the README file, all install steps are described.
|
2024-02-23 14:08:24 +00:00
|
|
|
|
|
|
|
## Pipx
|
|
|
|
|
|
|
|
Not refered in the install, but you can pipx for you install.
|
|
|
|
|
2024-04-16 13:13:46 +00:00
|
|
|
# Networking
|
|
|
|
|
|
|
|
Hype use OpenvSwicth for interface and network creation. Common ovs command use in case of debgug.
|
|
|
|
DNSMask, provided by LXC, is used to create DHCP for Interface configuration.
|
|
|
|
|
|
|
|
|
2024-03-18 10:03:26 +00:00
|
|
|
# Storage
|
|
|
|
|
|
|
|
The server storage are in *{HYPE}/storage/*
|
|
|
|
You will find a folder *win* for the virtio image, *disks* for the VM images (qcow2) and iso for iso install images.
|
|
|
|
|
|
|
|
You can change these storage in *config.py* file.
|
|
|
|
|
|
|
|
For the *disks*,if you prefer to use the default libvirt pool storage (*/var/lib/libvirt/images*)
|
|
|
|
You can modify :
|
|
|
|
|
|
|
|
*--disk path='+str(disk_path)+str(nom)+'.qcow2,size='+str(disk)+',bus=virtio*
|
|
|
|
|
|
|
|
by
|
|
|
|
|
|
|
|
*--disk pool=default,size='+str(disk)+',bus=virtio,format=qcow2*
|
|
|
|
|
2024-02-23 14:08:24 +00:00
|
|
|
# Virtual Server Creation
|
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
## Linux
|
2024-02-23 14:08:24 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
For the moment, no issue with tested distribution:
|
|
|
|
- Archlinux
|
|
|
|
- Debian/ubuntu
|
|
|
|
- Centos/Fedora/Redhat
|
|
|
|
- FreeBSD
|
|
|
|
- TinyCore
|
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
## Other install
|
2024-02-26 16:11:21 +00:00
|
|
|
|
|
|
|
Tested succeffully :
|
2024-03-18 10:03:26 +00:00
|
|
|
- Pfsense,Dynfi,Opnsense
|
2024-02-26 16:11:21 +00:00
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
## Windows
|
2024-02-23 14:08:24 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
Windows OS will need some extra-drivers to run on virtualized server.
|
|
|
|
|
|
|
|
For this during the install, the VM will need a virtIO-win iso with all drivers.
|
|
|
|
The VirtIO iso is already mounted as a CD-ROM on VM creation. Load the drivers according to you OS install.
|
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
### VirtIO
|
2024-02-26 16:11:21 +00:00
|
|
|
|
|
|
|
VirtIO is a QEMU drivers for Windows OS (please read : https://developer.ibm.com/articles/l-virtio/)
|
2024-02-23 14:08:24 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
VirtIO can be found here :
|
2024-02-23 14:08:24 +00:00
|
|
|
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/?C=M;O=D
|
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
Take care of the version, some virtio are not compatible with some Windows version.
|
|
|
|
|
2024-02-23 14:08:24 +00:00
|
|
|
This iso is on ./storage/win/ and configured in **config.py** for upgrade.
|
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
### Tested Windows Installation (tested with Virtio 0.1.229):
|
2024-02-26 16:11:21 +00:00
|
|
|
|
2024-02-23 14:08:24 +00:00
|
|
|
Validate for :
|
2024-02-26 16:11:21 +00:00
|
|
|
- Windows 8, 8,1 10
|
|
|
|
- Windows Server 2019, 2022
|
|
|
|
|
2024-02-23 14:08:24 +00:00
|
|
|
Failed with :
|
2024-02-26 16:11:21 +00:00
|
|
|
- Windows 98, Windows XP, Windows 11 (UEFI access)
|
|
|
|
|
2024-02-23 14:08:24 +00:00
|
|
|
Never Tested :
|
2024-02-26 16:11:21 +00:00
|
|
|
- Win 7 and Vista
|
|
|
|
|
2024-03-18 10:03:26 +00:00
|
|
|
#OTHER
|
|
|
|
|
|
|
|
Please report your bugs to improve this dev.
|
|
|
|
|
|
|
|
#SOURCES
|
|
|
|
|
|
|
|
https://libvirt.gitlab.io/libvirt-appdev-guide-python/index.html
|
|
|
|
https://libvirt-python.readthedocs.io/
|
|
|
|
https://linuxcontainers.org/lxc/documentation/
|
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
|
2024-02-26 16:13:33 +00:00
|
|
|
# ERROR and SOLUTION
|
2024-02-26 16:11:21 +00:00
|
|
|
|
|
|
|
You may incounter some error in specific case, please report them if they are not in the list,
|
|
|
|
They will be consider on nexts releases.
|
2024-02-23 14:08:24 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
ERROR: Error destroying Requested operation is not valid: cannot undefine domain with nvram :
|
2024-03-18 10:03:26 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
SOLUTION (on CLI): virsh undefine --nvram VM_NAME
|
2024-02-23 14:08:24 +00:00
|
|
|
|
2024-03-18 10:03:26 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
ERROR: Error stoping NOM_VM:Requested operation is not valid: domain is not running
|
2024-03-18 10:03:26 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
SOLUTION 1 (on CLI): virsh reset VM_NAME
|
2024-03-18 10:03:26 +00:00
|
|
|
|
2024-02-26 16:11:21 +00:00
|
|
|
SOLUTION 2 (on CLI): virsh destroy VM_NAME (destroy the VM)
|
2024-03-18 10:03:26 +00:00
|
|
|
|
2024-04-16 13:13:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
ERROR: libvirt: Storage Driver error : Requested operation is not valid: storage pool 'iso' is not active
|
|
|
|
|
|
|
|
SOLUTION (on CLI): pool = conn.storagePoolLookupByName('iso')
|
|
|
|
pool.undefine()
|