Difference between revisions of "Install from USB Stick"

From Proxmox VE
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#pvedocs:section-pve-usbstick-plain.html}}
+
<!--PVE_IMPORT_START_MARKER-->
== Introduction ==
+
<!-- Do not edit - this is autogenerated content -->
The installation media is now a hybrid ISO image, working in two ways:
+
{{#pvedocs:pve-usbstick-plain.html}}
*An ISO image file ready to burn on CD
+
[[Category:Reference Documentation]]
*A raw sector (IMG) image file ready to directly dd to flash media (USB Stick)
+
<pvehide>
 
+
The Proxmox VE installation media is a hybrid ISO image, working in two ways:
Using USB sticks is faster and more environmental friendly and therefore the recommended way to install Proxmox VE.
+
An ISO image file ready to burn on CD
 
+
A raw sector (IMG) image file ready to directly copy to flash media
== Write the ISO image to USB ==
+
  (USB Stick)
In order to boot the installation media you need to copy the ISO image to your USB media. You need at least a 512 mb USB stick.
+
Using USB sticks is faster and more environmental friendly and
 
+
therefore the recommended way to install Proxmox VE.
[[File:Proxmox usb install.jpg|thumb]]
+
Prepare a USB flash drive as install medium
 
+
In order to boot the installation media, copy the ISO image to a USB
=== Instructions for Windows ===
+
media.
*Make sure that your USB media is not mounted and does not contain any data.
+
First download the ISO image from
*Download [http://www.osforensics.com/tools/write-usb-images.html OSForsenics USB installer]
+
https://www.proxmox.com/en/downloads/category/iso-images-pve
*Burning the image to your USB media
+
You need at least a 1 GB USB media.
 
+
Using UNetbootin or Rufus does not work.
'''Note''':
+
Make sure that the USB media is not mounted and does not
*Using UNetbootin or Rufus does not work.
+
contain any important data.
*If you use [https://github.com/downloads/openSUSE/kiwi/ImageWriter.exe SUSE Studio ImageWriter], you must run ImageWriter as admin. and you need to rename it first, just rename the downloaded file from proxmox-ve_4.*.iso to proxmox-ve_4.-*.raw.
+
Instructions for GNU/Linux
 
+
You can simply use dd on UNIX like systems. First download the ISO
=== Instructions for GNU/Linux ===
+
image, then plug in the USB stick. You need to find out what device
You can simply use dd on unix like systems. First download the ISO image, then plug in the USB stick (you need to find out what device name gets assigned to the USB stick. You can compare the last lines of 'dmesg' command before and after the insertion, or use the 'lsblk' command and identify using the size if unique).
+
name gets assigned to the USB stick (see below). Then run:
 
+
dd if=proxmox-ve_*.iso of=/dev/XYZ bs=1M
dd if=pve-cd.iso of=/dev/XYZ bs=1M
+
Be sure to replace /dev/XYZ with the correct device name.
 
+
Be very careful, and do not overwrite the hard disk!
Be sure to replace /dev/XYZ with the correct device name (be careful, and do not overwrite your hard disk!)
+
Find Correct USB Device Name
 
+
You can compare the last lines of dmesg command before and after the
=== Instructions for OS X ===
+
insertion, or use the lsblk command. Open a terminal and run:
OS X can use dd as the unix systems, but first requires the ISO image to be converted before it can be copied over to the USB stick. First you will need to download the ISO image, then plug in the USB Stick. To get the device name by running 'diskutil list'. This command will output all the disk attached to the system, you should be able to match up the USB stick to the specs and name of one listed. To get the raw device, you can add an 'r' in front of the name, ex. /dev/disk4 would become /dev/rdisk4. Next you will an to open Disk Utility and eject each partition only (If you eject from Finder or the Desktop it will eject the entire disk, removing it completely from the system). Now we can convert the ISO and copy the new image over with. Note hdiutil will commonly add the .dmg extension to the output file, so you will end up pve-cd.img.dmg
+
lsblk
 +
Then plug in your USB media and run the command again:
 +
lsblk
 +
A new device will appear, and this is the USB device you want to use.
 +
Instructions for OSX
 +
Open the terminal (query Terminal in Spotlight).
 +
Convert the .iso file to .img using the convert option of hdiutil for example.
 +
hdiutil convert -format UDRW -o proxmox-ve_*.dmg proxmox-ve_*.iso
 +
OS X tends to put the .dmg ending on the output file automatically.
 +
To get the current list of devices run the command again:
 +
diskutil list
 +
Now insert your USB flash media and run this command again to
 +
determine the device node assigned to your flash media
 +
(e.g. /dev/diskX).
 +
diskutil list
 +
diskutil unmountDisk /dev/diskX
 +
replace X with the disk number from the last command.
 +
sudo dd if=proxmox-ve_*.dmg of=/dev/rdiskX bs=1m
 +
rdiskX, instead of diskX, in the last command is intended,
 +
this will increase write speed
 +
Instructions for Windows
 +
Download Etcher from https://etcher.io , select the ISO and your USB Drive.
 +
If this doesn&#8217;t work, alternatively use the OSForensics USB
 +
installer from http://www.osforensics.com/portability.html
 +
Boot your server from USB media
 +
Connect your USB media to your server and make sure that the server
 +
boots from USB (see server BIOS). Then follow the installation wizard.
 +
</pvehide>
 +
<!--PVE_IMPORT_END_MARKER-->
  
  hdiutil convert -format UDRW -o pve-cd.img pve-cd.iso
 
  sudo dd if=pve-cd.img.dmg of=/dev/rXYZ
 
 
Be sure to replace /dev/XYZ with the correct device name (be careful, and do not overwrite your hard disk!)
 
 
== Boot your server from USB media ==
 
Connect your USB media to your server and make sure that the server boots from USB - and follow the installation wizard.
 
 
== External resources ==
 
* [http://en.opensuse.org/SDB:Live_USB_stick SUSE Live USB stick]
 
  
 
[[Category: HOWTO]]
 
[[Category: HOWTO]]
[[Category:Reference Documentation]]
 

Latest revision as of 10:04, 16 April 2019

The Proxmox VE installation media is a hybrid ISO image, working in two ways:

  • An ISO image file ready to burn on CD

  • A raw sector (IMG) image file ready to directly copy to flash media (USB Stick)

Using USB sticks is faster and more environmental friendly and therefore the recommended way to install Proxmox VE.

Prepare a USB flash drive as install medium

In order to boot the installation media, copy the ISO image to a USB media.

You need at least a 1 GB USB media.

Note Using UNetbootin or Rufus does not work.
Important Make sure that the USB media is not mounted and does not contain any important data.

Instructions for GNU/Linux

You can simply use dd on UNIX like systems. First download the ISO image, then plug in the USB stick. You need to find out what device name gets assigned to the USB stick (see below). Then run:

dd if=proxmox-ve_*.iso of=/dev/XYZ bs=1M
Note Be sure to replace /dev/XYZ with the correct device name.
Caution Be very careful, and do not overwrite the hard disk!

Find Correct USB Device Name

You can compare the last lines of dmesg command before and after the insertion, or use the lsblk command. Open a terminal and run:

 lsblk

Then plug in your USB media and run the command again:

 lsblk

A new device will appear, and this is the USB device you want to use.

Instructions for OSX

Open the terminal (query Terminal in Spotlight).

Convert the .iso file to .img using the convert option of hdiutil for example.

hdiutil convert -format UDRW -o proxmox-ve_*.dmg proxmox-ve_*.iso
Tip OS X tends to put the .dmg ending on the output file automatically.

To get the current list of devices run the command again:

diskutil list

Now insert your USB flash media and run this command again to determine the device node assigned to your flash media (e.g. /dev/diskX).

diskutil list

diskutil unmountDisk /dev/diskX
Note replace X with the disk number from the last command.
sudo dd if=proxmox-ve_*.dmg of=/dev/rdiskX bs=1m
Note rdiskX, instead of diskX, in the last command is intended, this will increase write speed

Instructions for Windows

Download Etcher from https://etcher.io , select the ISO and your USB Drive.

If this doesn’t work, alternatively use the OSForensics USB installer from http://www.osforensics.com/portability.html

Boot your server from USB media

Connect your USB media to your server and make sure that the server boots from USB (see server BIOS). Then follow the installation wizard.