TechDocs/TechnicalProcesses/CreateNewVM

How to create a new VM

The goal of this document is to explain how to create a new VM on our proxmox clusters.

To create a new VM, you can use the command line (you can use the qemu tools) or the web interface. The access to the web interface is limited to the IP of the clusters, so to use the web interface you should use SSH forwarding or SSH tunnelling.

Use one of the following commands:

ssh -L 8000:<webinterface ip>:80 <host withing the proxmox cluster>
ssh -ND 8000 <host withing the proxmox cluster>

If you chose the first command, you can browse http://localhost:8000 and that will take you to the web interface. If you chose the 2nd option, then configure the socks proxy settings in you web browser. For Firefox, go to about:preferences#general -> Network Proxy -> Settings. Go to the manual proxy configuration and add this configuration for the SOCKS Host: "localhost, port 8000'. Then go to http://<web interface>.

Regardless of the tool used to access the proxmox cluster, you will have to go through these steps:

Choose where to put the VM?

We have three clusters:

If the VM needs to be part of a High Availability group, or need to query the LDAP database it will need to be in Düsseldorf.

What network settings to use?

On the network configuration panel use 'network bridge' so the VM can access internet through the proxmox bridge interface.

There is no DHCP available or IPv6. Only IPv4.

vCPU configuration

Choose the number of virtual cpus for the new VM. As our physical servers have 4 CPUs, a number <= 4 vCPUs should be used. You probably want to choose the 'host' cpu type.

Storage

For storage, you can choose between the local storage or the remote one. The remote storage uses ceph.

Image selection

Choose the image that will be used to boot the virtual machine. It is possible to upload boot images with HTTP.

Boot mechanism

Proxmox supports either BIOS or UEFI. Please choose a boot mechanism compatible with the operating system you want to install.

High Availability

The virtual machine can be HA managed by the cluster. That means the cluster will ensure that the VM is always up. We only have one HA group, so if you need HA please include the VM to this group. Please select thr 'start on boot option if you do'nt use HA, so the VM will start on promox boot. ithing the proxmox cluster> }}}

If you chose the first command, you can browse http://localhost:8000 and that will take you to the web interface. If you chose the 2nd option, then configure the socks proxy settings in you web browser. For Firefox, go to about:preferences#general -> Network Proxy -> Settings. Go to the manual proxy configuration and add this configuration for the SOCKS Host: "localhost, port 8000'. Then go to http://<web interface>.

Regardless of the tool used to access the proxmox cluster, you will have to go through these steps:

Choose where to put the VM?

We have three clusters:

If the VM needs to be part of a High Availability group, or need to query the LDAP database it will need to be in Düsseldorf.

What network settings to use?

On the network configuration panel use 'network bridge' so the VM can access internet through the proxmox bridge interface.

There is no DHCP available or IPv6. Only IPv4.

vCPU configuration

Choose the number of virtual cpus for the new VM. As our physical servers have 4 CPUs, a number <= 4 vCPUs should be used. You probably want to choose the 'host' cpu type.

Storage

For storage, you can choose between the local storage or the remote one. The remote storage uses ceph.

Image selection

Choose the image that will be used to boot the virtual machine. It is possible to upload boot images with HTTP.

Boot mechanism

Proxmox supports either BIOS or UEFI. Please choose a boot mechanism compatible with the operating system you want to install.

High Availability

The virtual machine can be HA managed by the cluster. That means the cluster will ensure that the VM is always up. We only have one HA group, so if you need HA please include the VM to this group. Please select thr 'start on boot option if you do'nt use HA, so the VM will start on promox boot.

TechDocs/TechnicalProcesses/CreateNewVM (last edited 2018-04-13 09:37:17 by max.mehl)