Getting started

Syed Maaz Rehan

New Member
Mar 15, 2019
13
0
1
37
Hello Everyone,

I have managed to install proxmox ve on my system (Intel Atom E3845 4 core) with 4 lan ports. Ran an update as well (without subscription). I have two disks installed one is SSD (32 GB) which I have reserved for the proxmox OS and a standard issue HDD for laptops (500 GB) for VMs. Now the question is since there is only one partition in the 500 GB drive.In order to create Virtual machines do I need to create partitions in the drive? Are they required ?I can see the drive is detected by the system (See attached) .If so will 5 partitions of 100 GB will do? Please do provide a method of partitioning. Moreover, do i need to follow the below mentioned method ?

https://www.hostfav.com/blog/index.php/2017/02/01/add-a-new-physical-hard-drive-to-proxmox-ve-4x-5x/

I am going to test pfsense and sophos XG firewall. Is there a way to by pass the built-in proxmox firewall?

Thanks in advance.

 

Attachments

  • proxmox_LI.jpg
    proxmox_LI.jpg
    858.1 KB · Views: 6
HI and welcome to the forum!

First of all you have several possibilities to create disks for your VMs. They can be block based but you can simply create new disk images which are file based and you do not need to repartition your disk.
See the corresponding section in the docs for more details https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_storage
The PVE firewall is disabled by default on datacenter level, so it is not active out of the box.
 
Last edited:
  • Like
Reactions: Syed Maaz Rehan
Thanks for replying. I have successfully created a VM and its working fine. I have a question. In my scenario since my primary disk (32 GB SSD) is reserved for Proxmox OS only. I want to reserve my second disk (500 GB) for allocating disk space for VMs and to store ISO files as well. How can I do that? I was able to specify the storage location for the VM to (500 GB) disk but I want to store the ISO files on the 500 Gb disk else I'll run out of space on the 32 GB SSD disk. How can I do it? Can you guide me step by step?

Thanks.
 
Iso storage is folder base. Just create a folder on your data disk and add it to proxmox storage as appropriate storage type.
There is a help wiki to show you how to do that. You may also find here how to remove default location for this type of data store , which is currently on you os drive.
 
Well it depends on What FS you use , but mostly the setup is the same.
In the some info here https://pve.proxmox.com/wiki/Storage

The default location on proxmox is
/var/lib/vz/template/iso

This is a local store.
So, first create a folder on you desired target drive. I.e. mydisk/myISO

Than in datacenter storage add new local store MyISOs as folder pointing to the new folder you created. Content type iso.

Now when you upload any iso files choose that as your target.
You can also go to the default local store and remove content type is from there. So you new store will become default target.
 
  • Like
Reactions: Syed Maaz Rehan
This is what I have. The second hard disk is the one I want to work on.
upload_2019-3-18_17-42-44.png
How to create a folder? Via cli ? How do I access the 2nd hard drive? Kindly let me know. I am not a linux user.
 
I am using ext 4 filing system which is the default for PVE installation. Since I don't have identical drive types (SSD-containing PVE OS and SATA). Now as per your advise I tried to create a directory in the target drive but its giving me error. I used fdisk -l to identify the disk I want to work on

Last login: Tue Mar 19 13:20:20 PKT 2019 on pts/0
Linux test 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@test:~# fdisk -l
Disk /dev/sda: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5F456EBD-9CE0-4065-9424-09A4A1660B20

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 528383 524288 256M EFI System
/dev/sda3 528384 62533262 62004879 29.6G Linux LVM


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 91EDD21B-2126-4E86-BDA0-E427D91CB54B

Device Start End Sectors Size Type
/dev/sdb1 2048 4095 2048 1M BIOS boot
/dev/sdb2 4096 528383 524288 256M EFI System
/dev/sdb3 528384 976773134 976244751 465.5G Linux LVM


Disk /dev/mapper/pve-swap: 3.6 GiB, 3892314112 bytes, 7602176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/pve-root: 7.3 GiB, 7784628224 bytes, 15204352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@test:~#

root@test:~# fdisk -l /dev/sdb3
Disk /dev/sdb3: 465.5 GiB, 499837312512 bytes, 976244751 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xddd884c6

Device Boot Start End Sectors Size Id Type
/dev/sdb3p1 2048 976244750 976242703 465.5G 8e Linux LVM
 
I some how managed to mount the secondary disk 500GB after doing a lot of research I found this guy's guidelines to do so
https://forum.proxmox.com/threads/how-to-mount-second-partition-or-disk.13215/
https://www.debiantutorials.com/add-a-second-hard-disk/

Now when I try to install a VM (windows 7) I was able to successfully upload win7 image file in the secondary drive (500gb) but when I ran the setup it actually ate way my primary storage (SSD) and it was not letting me destroy the VM but I was able to do it cli. Now I require assistance in making sure when I create VM it goes to my secondary drive not the primary. How do I do it?

upload_2019-3-19_17-7-16.png

- local2 (test) is my 500 Gb drive.
- local-lvm (test) is partition for primary drive
- local (test) is also partition for primary drive

As you can see in the screenshot the local-lvm (test) storage indicator shows 3/4 full where as secondary storage 500 GB drive has only 3.9 GB used space.
upload_2019-3-19_17-13-42.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!