Difference between revisions of "Proxmox"

From Pumping Station One
Jump to navigation Jump to search
m (Robot: Cosmetic changes)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{mbox |type=warning |text=This information is out of date. [[IT Infrastructure|Up-to-date IT information can be found here]] }}
 +
 
Proxmox is the name of the software running the vm hosting software.
 
Proxmox is the name of the software running the vm hosting software.
  
There are 4 server in the rack running proxmox, 2 of them are turned on.
+
There are 4 servers in the rack running proxmox, 2 of them are turned on.
  
 
== Management Interface ==
 
== Management Interface ==
Line 7: Line 9:
 
The management interface is are:
 
The management interface is are:
  
* https://10.100.200.51:8006/#v1:0:=node%2Fvm01:4::::::
+
* https://10.100.200.55:8006/#v1:0:=node%2Fvm01:4::::::
* https://10.100.200.52:8006/#v1:0:=node%2Fvm01:4::::::
+
* https://10.100.2.61:8006/#v1:0:=node%2Fvm01:4::::::
 +
* https://10.100.2.62:8006/#v1:0:=node%2Fvm01:4::::::
  
 
User creation is not automatic, but password are checked against ldap, so member credentials work.
 
User creation is not automatic, but password are checked against ldap, so member credentials work.
Line 59: Line 62:
 
* Press Start
 
* Press Start
 
* Press Console
 
* Press Console
 +
 +
The console window is some java applet with a self signed certificate. Java complains very loudly about this and won't actually let you run the console unless you add an exception. Here's how you do that:
 +
 +
* Open your Java Configuration.
 +
** On Windows, just search for '''Configure Java''' in the start menu.
 +
** On Linux, with the Oracle JRE, run '''ControlPanel''' from the commandline
 +
** On Mac ?
 +
* Go to the security tab
 +
* Click '''Edit Site List...'''
 +
* Click the '''Add''' in the Exception Site List window.
 +
* Add '''https://10.100.200.51:8006''' and click Ok.
  
 
== Configure ip addresses ==
 
== Configure ip addresses ==
 
+
Follow these instructions to set static IP for your VM: [[Systems/Services/Dhcp|DHCP]]
* Log into the router
 
* go to IP > DHCP Server > Leases
 
* Find the leases corresponding to the new box and hit "Make Static"
 
* Set the ip address to be 10.100.0.id where id is the proxmox id of the vm
 
  
 
== Resetting the Root Password ==
 
== Resetting the Root Password ==
Line 79: Line 89:
 
# run <code>passwd</code> to reset the root password
 
# run <code>passwd</code> to reset the root password
 
# reboot
 
# reboot
 +
 +
== Uploading new iso images ==
 +
 +
iso images are uploaded to a storage location. Iso's only work from local disks, not lvm or san drives. This also means that iso are only available to virtual machines on that host that has the iso locally.
 +
 +
# Select an appropriate storage location in the server view: e.g.: local (vm02)
 +
# Press the "Content" tab
 +
# Press "upload"
 +
# Find your iso locally and press upload
 +
 +
== Annoying Popup Windows ==
 +
 +
Edit the file /usr/share/pve-manager/ext4/pvemanagerlib.js
 +
<syntaxHighlight lang=javascript>
 +
                /*if (data.status !== 'Active') {
 +
                    Ext.Msg.show({
 +
                        title: gettext('No valid subscription'),
 +
                        icon: Ext.Msg.WARNING,
 +
                        msg: PVE.Utils.noSubKeyHtml,
 +
                        buttons: Ext.Msg.OK,
 +
                        callback: function(btn) {
 +
                            if (btn !== 'ok') {
 +
                                return;
 +
                            }
 +
                            orig_cmd();
 +
                        }
 +
                    });
 +
                } else */{
 +
                    orig_cmd();
 +
                }
 +
</syntaxHighlight>
 +
 +
== Gotchas ==
 +
 +
* If you delete an iso file while a vm is still pointing at it, that machine will not reboot successfully until you change the configured iso

Latest revision as of 14:02, 1 November 2018

Proxmox is the name of the software running the vm hosting software.

There are 4 servers in the rack running proxmox, 2 of them are turned on.

Management Interface

The management interface is are:

User creation is not automatic, but password are checked against ldap, so member credentials work.

Quick setup guides

VM Creation

Press the "Create VM" Button and use the following settings. Don't use the defaults, bad things happen.

Section Name Value
General Name ${name}
OS Linux/Other Linux 3.X/2.6 Kernel (l26)
CD/DVD ISO image Select your iso from the dropdown
Hard Disk Bus/Device VIRTIO
Hard Disk Bus/Device vm-storage-lvm
Hard Disk Cache Write Back
Network Network Model VirtIO (paravirtualized)

Double click the VM >> Hardware >> Display >> Standard VGA (std) The default works, but on my many monitors, the VNC client window is large enough that the terminal goes past the bottom of the monitor.

  • Press Start
  • Press Console

The console window is some java applet with a self signed certificate. Java complains very loudly about this and won't actually let you run the console unless you add an exception. Here's how you do that:

  • Open your Java Configuration.
    • On Windows, just search for Configure Java in the start menu.
    • On Linux, with the Oracle JRE, run ControlPanel from the commandline
    • On Mac ?
  • Go to the security tab
  • Click Edit Site List...
  • Click the Add in the Exception Site List window.
  • Add https://10.100.200.51:8006 and click Ok.

Configure ip addresses

Follow these instructions to set static IP for your VM: DHCP

Resetting the Root Password

Sometimes something goes wrong with ldap auth and logging in as a pam user becomes necessary.

  1. Reboot the hypervisor, cleanly if possible. ctrl+alt+del works.
  2. while the machine is booting, watch from grub.
    1. when grub comes up press 'e'
  3. find the line that starts linux .... and at the end of it append init=/bin/bash
  4. press F10 to boot
  5. When you get dumped to a prompt run mount -o remount,rw /
  6. run passwd to reset the root password
  7. reboot

Uploading new iso images

iso images are uploaded to a storage location. Iso's only work from local disks, not lvm or san drives. This also means that iso are only available to virtual machines on that host that has the iso locally.

  1. Select an appropriate storage location in the server view: e.g.: local (vm02)
  2. Press the "Content" tab
  3. Press "upload"
  4. Find your iso locally and press upload

Annoying Popup Windows

Edit the file /usr/share/pve-manager/ext4/pvemanagerlib.js

                /*if (data.status !== 'Active') {
                    Ext.Msg.show({
                        title: gettext('No valid subscription'),
                        icon: Ext.Msg.WARNING,
                        msg: PVE.Utils.noSubKeyHtml,
                        buttons: Ext.Msg.OK,
                        callback: function(btn) {
                            if (btn !== 'ok') {
                                return;
                            }
                            orig_cmd();
                        }
                    });
                } else */{
                    orig_cmd();
                }

Gotchas

  • If you delete an iso file while a vm is still pointing at it, that machine will not reboot successfully until you change the configured iso