[How to] Install 3CX ISO on OVH's VPS

Status
Not open for further replies.

Alphabetic

3CX MVP
Silver Partner
Advanced Certified
Joined
Jul 1, 2016
Messages
6,734
Reaction score
2,695
Last updated: 29/08/2024

This is more for the benefit of me. However, I thought people might like to install their 3CX's with the ISO rather then using the old command lines.

You will need:-

- 3CX ISO
- OVH VPS LE YOU MUST CHOOSE DEBIAN 10 DISTRO OR YOU'LL GET GRAPHICS ERROR
- VNC Viewer (Im using UltraVNC)


Buy your VPS from OVH then reboot it in rescue mode

Use the login details from the email or you can grab them from the login screen on the KVM.

1705483785205.png

SSH to the VPS using Terminal/Powershell

Code:
ssh root@<IP> -L 5900:localhost:5900

Unmount and delete all partitions on HDD​

note you may have more/less partitions to delete

Code:
umount /dev/sdb1
fdisk -u /dev/sdb
d
d
w

1703061746634.png


Install KVM & download 3CX ISO​

Code:
sudo apt-get clean all
sudo apt-get update
apt install qemu-kvm
For v18
Code:
wget -P /dev https://downloads-global.3cx.com/downloads/debian10iso/debian-amd64-netinst-3cx.iso
For v20
Code:
wget -P /dev https://downloads-global.3cx.com/downloads/debian12iso/debian-amd64-netinst-3cx.iso

1703061783679.png

Start up the KVM​

For v18
Code:
qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 1024 -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -vnc 127.0.0.1:0 -daemonize -cdrom /dev/debian-amd64-netinst-3cx.iso -boot once=d

For v20
Code:
qemu-system-x86_64 -netdev type=user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -m 1024 -enable-kvm -drive index=0,media=disk,if=virtio,file=/dev/sdb -vga qxl -vnc 127.0.0.1:0 -daemonize -cdrom /dev/debian-amd64-netinst-3cx.iso -boot once=d

1703061884011.png

Note: Any trouble with QEMU then kill it off and start it again.
Code:
pkill qemu

Connect to KVM with VNC Viewer​


Once logged in, connect to the machine with VNC Viewer using localhost:5900 as the address.

1703061921571.png

Run through the set up​


1703061949667.png

You may get disconnected off the VNC, just connect back up again and run through set up.

1703062008434.png

The server will reboot and the VNC will get disconnected. Give it a few minutes and connect back up with VNC.

If you cannot get connected with VNC then reboot the VPS in normal mode and continue the set up via OVH KVM (typically happens with v20 on LE VPS)


Once to get to here, select option 1 and reboot the VPS in to normal mode.

1703062436756.png


1703062560875.png

Finish off set up.

1703062616309.png

Caveats:

Check that GRUB has installed to the correct disk otherwise Debian security updates will cause update failures when 3CX attempts them.


Code:
debconf-show grub-pc | grep install_devices

If this shows its attached to /vda then this needs correcting.

Code:
# Correct GRUB installation target
echo "grub-pc grub-pc/install_devices multiselect /dev/sda" | debconf-set-selections
echo "grub-pc grub-pc/install_devices_disks_changed multiselect /dev/sda" | debconf-set-selections

# Install GRUB to the correct disk
grub-install --target=i386-pc /dev/sda

# Regenerate boot configuration
update-grub

# Complete any pending package configuration
DEBIAN_FRONTEND=noninteractive dpkg --configure -a

# Verify configuration
debconf-show grub-pc | grep install_devices

Return first check and it should report the correct disk.
 
Last edited:
  • Like
Reactions: metroglobal
Thanks for this update.
it would be very interesting to have the procedure to install on a VPS Limited Edition AMD for v18, since this VPS has a very low price for a server with 2vCore, since it is the minimum that 3CX needs to upgrade to 20.
 
Thanks for this update.
it would be very interesting to have the procedure to install on a VPS Limited Edition AMD for v18, since this VPS has a very low price for a server with 2vCore, since it is the minimum that 3CX needs to upgrade to 20.
bruh cmon I cant do all xD

Just run through the same commands but download the v18 ISO instead and run QEMU with the v18 ISO.

take the commands from the v18 link.
 
ups but. following these steps, with a vps limited edition AMD, I get the same result: any idea?
thanks a lot.


1703069011306.png
 
what OS and distro did you deploy?
 
in this case, Debian 12.2
 
Youre gonna have to show me what you're doing from the start cos i'm having no issues.
 
I'll give you screenshots of each step:
1703086461262.png

1703086475501.png

1703086490789.png
1703086506050.png
1703086521214.png
1703086534803.png
 
Yes, don't worry, this VPS no longer exists.
 
Yes, don't worry, this VPS no longer exists.
From everything i've read, users have resolved it by recreating the VM.
 
This works on a new limited VPS for me, but you have to delete the old one (and throw money away).
"Reinstall my VPS" is not enough to get this solved.
 
  • Like
Reactions: Samic
At least you got there in the end
 
Sorry for the stupid question, but if I deploy 3CX on the limited edition VPS using command lines it should work right?
 
Sorry for the stupid question, but if I deploy 3CX on the limited edition VPS using command lines it should work right?
should do.
 
Sorry for the stupid question, but if I deploy 3CX on the limited edition VPS using command lines it should work right?
Please, if you succeed, indicate the procedure here, since I have not succeeded.
 
This works on a new limited VPS for me, but you have to delete the old one (and throw money away).
"Reinstall my VPS" is not enough to get this solved.
Hello @xantip, I am a co-worker of Samic. We have acquired a new limited edition VPS in another region, but following the steps of the tutorial that @kieferschild shares, we get the same result. When we connect to QEMU via ultra VNC, we only see the message: “Guest has not initialized the display (yet).” If you have managed to install the ISO, could you detail the steps or which Linux distribution you use or if the QEMU command is different. Thank you very much!
 
He deleted the VPS and bought another.
 
Happy new year! Nothing works for us... :confused:
Yes im afraid i've encountered the same problem today. cannot get it to display. gonna have to install via cli
 
Status
Not open for further replies.

Forum statistics

Threads
112,431
Messages
592,531
Members
165,627
Latest member
Petros_C