]> git.proxmox.com Git - pve-docs.git/blame - pve-usbstick.adoc
update & rearrange installation chapter
[pve-docs.git] / pve-usbstick.adoc
CommitLineData
5c6cf7ac
DM
1Install from USB Stick
2----------------------
5f09af76
DM
3ifdef::wiki[]
4:pve-toplevel:
5endif::wiki[]
6
5c6cf7ac
DM
7The {pve} installation media is now a hybrid ISO image, working in two
8ways:
9
10* An ISO image file ready to burn on CD
11
12* A raw sector (IMG) image file ready to directly copy to flash media
13 (USB Stick)
14
15Using USB sticks is faster and more environmental friendly and
16therefore the recommended way to install {pve}.
17
18
19Prepare a USB flash drive as install medium
20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21
22In order to boot the installation media, copy the ISO image to a USB
23media.
24
25First download the ISO image from
26https://www.proxmox.com/en/downloads/category/iso-images-pve
27
28You need at least a 1 GB USB media.
29
30NOTE: Using UNetbootin or Rufus does not work.
31
32IMPORTANT: Make sure that the USB media is not mounted and does not
33contain any important data.
34
35
36Instructions for GNU/Linux
37~~~~~~~~~~~~~~~~~~~~~~~~~~
38
470d4313 39You can simply use `dd` on UNIX like systems. First download the ISO
5c6cf7ac
DM
40image, then plug in the USB stick. You need to find out what device
41name gets assigned to the USB stick (see below). Then run:
42
43----
44dd if=proxmox-ve_*.iso of=/dev/XYZ bs=1M
45----
46
47NOTE: Be sure to replace /dev/XYZ with the correct device name.
48
49CAUTION: Be very careful, and do not overwrite the hard disk!
50
51
52Find Correct USB Device Name
53^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
55You can compare the last lines of 'dmesg' command before and after the
56insertion, or use the 'lsblk' command. Open a terminal and run:
57
58----
59 lsblk
60----
61
62Then plug in your USB media and run the command again:
63
64----
65 lsblk
66----
67
68A new device will appear, and this is the USB device you want to use.
69
70
71Instructions for OSX
72~~~~~~~~~~~~~~~~~~~~
73
74Open the terminal (query Terminal in Spotlight).
75
76Convert the .iso file to .img using the convert option of hdiutil for example.
77
78----
79hdiutil convert -format UDRW -o proxmox-ve_*.dmg proxmox-ve_*.iso
80----
81
82TIP: OS X tends to put the .dmg ending on the output file automatically.
83
84To get the current list of devices run the command again:
85
86----
87diskutil list
88----
89
90Now insert your USB flash media and run this command again to
91determine the device node assigned to your flash media
92(e.g. /dev/diskX).
93
94----
95diskutil list
96
97diskutil unmountDisk /dev/diskX
98----
99
100NOTE: replace X with the disk number from the last command.
101
102----
2c6fed66 103sudo dd if=proxmox-ve_*.dmg of=/dev/rdiskX bs=1m
5c6cf7ac
DM
104----
105
2c6fed66
TM
106NOTE: 'rdiskX', instead of 'diskX', in the last command is intended,
107this will increase write speed
5c6cf7ac
DM
108
109Instructions for Windows
110~~~~~~~~~~~~~~~~~~~~~~~~
111
a6c3872e 112Download Etcher from https://etcher.io , select the ISO and your USB Drive.
5c6cf7ac 113
470d4313 114If this doesn't work, alternatively use the OSForensics USB
5c6cf7ac
DM
115installer from http://www.osforensics.com/portability.html
116
117
118Boot your server from USB media
119~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120
121Connect your USB media to your server and make sure that the server
122boots from USB (see server BIOS). Then follow the installation wizard.