]> git.proxmox.com Git - pve-docs.git/blame - pve-usbstick.adoc
build: refactor build process
[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----
103sudo dd if=proxmox-ve_*.dmg of=/dev/rdiskN bs=1m
104----
105
106
107Instructions for Windows
108~~~~~~~~~~~~~~~~~~~~~~~~
109
a6c3872e 110Download Etcher from https://etcher.io , select the ISO and your USB Drive.
5c6cf7ac 111
470d4313 112If this doesn't work, alternatively use the OSForensics USB
5c6cf7ac
DM
113installer from http://www.osforensics.com/portability.html
114
115
116Boot your server from USB media
117~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118
119Connect your USB media to your server and make sure that the server
120boots from USB (see server BIOS). Then follow the installation wizard.