Setting up Proxmox on Hetzner
Hi
Today I've just configured a new virtual host machine for my development boxes. I bought a small Hetzner SB25 machine for around 25$ per month, which I think is pretty cheap.
After purchasing the server, you will receive the SSH login and password (oh yes - first time you also need to send Hetzner a copy of your passport and credit card).
When you login via ssh you can start the new install by writing "installimage" and hitting enter. Here is a prompt here you can select "Virtualization" and a version of Proxmox on Debian Squeeze.
The installation is quite easy and will present you with a suggestion for formatting. You can just hit F10 and resize later.
After the reboot, you probably want to remove the public key from your XXX
In my case it gave me a non-optimal disk size of 15GB, even though the server had 500GB available. Fortunatly we're using LVM, so we can just resize the volume later with this command.
# lvm
lvm> lvextend -l +100%FREE /dev/vg0/root
NOTE TO SELF: I probably should have used lvresize, as I believe extend is used for extending onto separate disks.
(This will extend volume group to all available space)
Now extend the filesystem (I'm running ext3):
# resize2fs -p /dev/vg0/root
Confirm with (check the available size):
# df
You can log in using the same password as you used the first time.
It's also possible to administrate your server through a nice web interface at
https://11.22.33.44:8006/
The login is root and the password is the same as for ssh.
Creating virtual machines
OK, so now you want to create virtual machines.
SSH into the host again
Then you need to place the iso somewhere we can find it from the web-UI.
$ cd /var/lib/vz/template/iso
$ wget ftp://ftp.cesca.cat/ubuntu/release//precise/ubuntu-12.04.1-server-amd64.iso
After this you just click "Create VM" in the interface, and the rest if quite self-explanatory.
You can right-click on the node and choose Console in order to administrate the machine.
Today I've just configured a new virtual host machine for my development boxes. I bought a small Hetzner SB25 machine for around 25$ per month, which I think is pretty cheap.
After purchasing the server, you will receive the SSH login and password (oh yes - first time you also need to send Hetzner a copy of your passport and credit card).
When you login via ssh you can start the new install by writing "installimage" and hitting enter. Here is a prompt here you can select "Virtualization" and a version of Proxmox on Debian Squeeze.
The installation is quite easy and will present you with a suggestion for formatting. You can just hit F10 and resize later.
After the reboot, you probably want to remove the public key from your XXX
In my case it gave me a non-optimal disk size of 15GB, even though the server had 500GB available. Fortunatly we're using LVM, so we can just resize the volume later with this command.
# lvm
lvm> lvextend -l +100%FREE /dev/vg0/root
NOTE TO SELF: I probably should have used lvresize, as I believe extend is used for extending onto separate disks.
(This will extend volume group to all available space)
Now extend the filesystem (I'm running ext3):
# resize2fs -p /dev/vg0/root
Confirm with (check the available size):
# df
You can log in using the same password as you used the first time.
It's also possible to administrate your server through a nice web interface at
https://11.22.33.44:8006/
The login is root and the password is the same as for ssh.
Creating virtual machines
OK, so now you want to create virtual machines.
SSH into the host again
Then you need to place the iso somewhere we can find it from the web-UI.
$ cd /var/lib/vz/template/iso
$ wget ftp://ftp.cesca.cat/ubuntu/release//precise/ubuntu-12.04.1-server-amd64.iso
After this you just click "Create VM" in the interface, and the rest if quite self-explanatory.
You can right-click on the node and choose Console in order to administrate the machine.
Comments
Post a Comment