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