Install PROXMOX VE From a USB...

This procedure has been tested with the latest version of Proxmox VE 1.9 and it’s still working !

If you want to deploy Proxmox VE 2.0, You should use the procedure described athttp://c-nergy.be/blog/?p=1628. The process is much simpler and faster. Proxmox VE 2.0 natively support installation from usb devices

In one of my previouspost about ProxMox VE , I mentioned that “at the moment” it is not possible to perform a ProxMox VE installation from a bootable usb sitck. Up to Version 1.7, there is no support for installing from a USB thumbdrive. This is quite disappointing ! Especially when you know that Vmware or Hyper-V can be installed quite easily from a USB Stick….

I came across this limitation during the re-installation of a test environment. I didn’t want to burn a new cdrom from the the ProxMox VE iso image. So, I thought that by using utility such as unetbootin, I would transfer the ISO image into a bootable USB Stick and perform the installation from the USB… Well not quite !

Installing ProxMox VE from a USB Stick – Yes, you can !

After some tests (try and errors), I succeeded ( on 2 differents hardware configuration) to start the ProxMox VE installation from a USB Stick ! To perform the installation from the usb stick, you need to manually enter some commands from the terminal session. It might be possible to modify the init file and include the missing code to have the installer detecting USB devices and perform the installation from a USB Stick. But I think that the Team behind the ProxMox VE will probably integrate such capabilities in the next release.

So let’s go ! To perform your installation, you will need the following :

Step 1 – Creating/configuring your Bootable Usb Stick

For this post, I was using a Windows machine and decided to give a try to the usb universal installer. You simply download the utility, double-click on the exe file and accept the license agreement. Within the application, you specify which drive letter is your USB Stick and where is located the ISO file you want to use. Note that I have choosen for the distribution the option “Unlisted Linux ISO”

You simply press create and you wait for the process to complete. At the end, if you explore the content of your usb stick, you will see something like this

This is the default file structure coming from the PROXMOX VE binaries.

Optional

To save on disk space, you can delete all the folders except the boot folder. Because we will be installing from an ISO image, we do not really need all these files. the boot folder contains what’s needed for the stick to boot in a minimal environment. So, my bootable USB stick looks like something like the screenshot below

Do not forget to copy your proxmox iso image at the root of the Usb stick (see above screenshot). At this stage, you should have a bootable USB stick and you should be ready to plug this stick into your computer that will be hosting the ProxMox VE software

Step 2 – Boot from USB in Debug mode

In this step, you simply boot your machine from the usb stick you have just prepared. If everything is correctly set, you will see the PROXMOX VE splash boot menu. Do not boot in normal mode.If you boot in normal mode, the system will reboot automatically because no cdrom device will be founded. Instead, boot in debug mode

click on the picture to enlarge

If you monitor the booting process, you should see that USB Mass storage devices are detected. You do not need to do anything at this stage. This is only informational. Wait for the boot process to complete

click on the picture to enlarge

When the boot process is completed, you will see a message similar to “no cdrom found – unable to continue (type exit or Ctrl-D to reboot)“

At that stage, you have access to a console where you can issue a set of commands.

If you have reached this point, you can move to step 3

Step 3 – Identify your usb device and mount it

Based on the hardware configuration, the Usb Device can be identified by the system differently. So, we will first need to identify how the usb device is recognized by the system. Because i have a limited set of command (I cannot use lsub), i’ll be using the old fdisk command.

From the console, I’ll simply type fdisk -l.

This command will return the disks and partition available on the system. From the screenshot below, I know that my usb drive is mapped as /dev/sdb1 (because my usb is 1GB in size). In your computer, this might be a different mapping. On my other system, the usb drive is mapped to /dev/sdd1. So, please check !

click on the picture to enlarge

Ok! So you have identified your usb device. We now simply need to mount this device. You can issue the famous mount command

To ensure that the mount operation succeeded and that a loop device is detected by the system, you can type again the command mount

Finally, we need to manually issue the command that will start the ProxMox Ve installer. From the console, you simply type

chroot /mnt sbin/unconfigured.sh

If everything works as expected, you should see the ProxMox VE installer (the GUI basically) and you can go through the wizard to perform your installation

Conclusions

This post explains in detail how to have a successful installation of ProxMox VE from a USB bootable drive. The procedure is not too complex and you just need to issue a bunch of command from the console. I really hope that the next release of ProxMox VE will take into account that more and more people are performing installation from Usb sticks. I hope that this post will be useful to other people out there using ProxMox VE

This procedure is working for me. I cannot guarantee that this will be working on all situation but you can give it a try