Create a Virtual Machine on Virtuozzo – Command line

Let’s assume the hostname is gitlab.pagemx.com. This will add a Virtual Machike (KMV) with the following specs:

  1. OS/Distribution will be CloudLinux 8.
  2. Disk Space will be 30GB.
  3. VNC will be enabled, password d23fvv34d, port 40005
  4. RAM Memory 4GB.
  5. CPUs: 8, CPU Sockets: 1.
  6. Turn it ON once the server boots.
prlctl create gitlab.pagemx.com --distribution cloudlinux8 --vmtype vm
prlctl set gitlab.pagemx.com --device-set hdd0 --size 30000
prlctl set gitlab.pagemx.com --vnc-mode manual --vnc-passwd d23fvv34d --vnc-port 40005
prlctl set gitlab.pagemx.com --memsize 4096
prlctl set gitlab.pagemx.com --cpus 8
prlctl set gitlab.pagemx.com --cpu-sockets 1
prlctl set gitlab.pagemx.com --onboot yes

You can edit the rest of the CPU settings manually:

#get the id of the server you want to modify
prlctl list --all

#use the ID for editing the config file:
virsh edit e929667a-c3b0-4c05-916d-46ac7d2898be

#find the label called topology and modify it accordingly run the command lscpu to get the amount of sockets, cores and threads that your Server will provide:
 <topology sockets='1' cores='8' threads='1'/>

#save and close

Leave a Reply