In theory this should work with any custom ISO, however I tested only with CentOS 8
**1) Reboot VPS in rescue mode**
**2) Connect to Rescue Mode via SSH, unmount /dev/sdb1 and remove all partitions:**
# lsblk
# umount /dev/sdb1
# fdisk -u /dev/sdb
> d
> d
> w
**3) Install required packages:**
`# apt install qemu-kvm`
**4) Download your ISO - usually Rescue Mode has very little space so you may want to download NetInst/Minimal ISO:**
`# wget http://mirror.ox.ac.uk/sites/mirror.centos.org/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-boot.iso`
**5) Run qemu (replace ISO location and vdisk name if required):**
`# qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 2048 -localtime -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -daemonize -cdrom /tmp/CentOS-8-x86_64-1905-boot.iso -boot d`
**6) Assuming your workstation is running Linux, forward a port through an SSH tunnel to your VPS:**
# ssh -4 -v root@ -L 5900:localhost:5900
**7) On your localhost, connect to SPICE running on local port 5900:**
# remote-viewer
> spice://127.0.0.1?port=5900
**8) Perform installation as usual.**
Note: Since you downloaded Minimal/NetInst image, you need to configure source installation.
For CentOS 8 I used:
> a) http
> b) repository URL
> c) mirror.centos.org/centos/8/BaseOS/x86_64/os/
**9) Reboot server and exit Rescue Mode.**
**10) Connect to your new instance running CentOS 8:**
# cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core)
Installing Operating System from custom image on OVH VPS ( CentOS 8 Tutorial)
Related questions
- Remote access to MySQL database
4914
16.01.2018 15:29
- Nameserver for my vps
4621
07.08.2018 11:35
- Upgrading your VPS - need to extend your disk? The Easy way!
4546
14.02.2019 16:06
- Redirect domain to vps
4433
03.01.2018 22:32
- IPv6 Configuration
4243
30.07.2018 12:50
- Change server location
3868
06.11.2020 10:16
- Not able to connect to my server at all
3538
17.09.2020 19:56
- How to OVH Firewall and VPN
3483
29.10.2019 12:16
- Test latency of EU data centers
2737
30.01.2019 20:50