Community discussions

MikroTik App
 
Narakot
just joined
Topic Author
Posts: 3
Joined: Sat Feb 23, 2019 8:23 pm
Contact:

CHR Proxmox 5.3 ZFS Raid-1

Sat Feb 23, 2019 8:41 pm

Trying to install CHR on Proxmox 5.3

Instructions https://wiki.mikrotik.com/wiki/Manual:C ... stallation is not suitable.

For HDD, only local-zfs (ZFS) is available.
ZFS is configured as Raid1: rpool

Code: Select all

root@pve:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.39G 226G 104K /rpool
rpool/ROOT 1.19G 226G 96K /rpool/ROOT
rpool/ROOT/pve-1 1.19G 226G 1.19G /
rpool/data 1.20G 226G 104K /rpool/data
rpool/data/subvol-100-disk-0 400M 7.61G 400M /rpool/data/subvol-100-disk-0
rpool/data/subvol-101-disk-0 427M 3.58G 427M /rpool/data/subvol-101-disk-0
rpool/data/subvol-102-disk-0 398M 3.61G 398M /rpool/data/subvol-102-disk-0
The qcow2 format can only be used for local (Directory)

I tried to create RAW images in different ways and put rpool folders in different places.

Tell me, how can I install a CHR image on Proxmox 5.3 for ZFS Raid1?
 
Narakot
just joined
Topic Author
Posts: 3
Joined: Sat Feb 23, 2019 8:23 pm
Contact:

Re: CHR Proxmox 5.3 ZFS Raid-1

Fri Mar 01, 2019 2:49 pm

Really? Nobody set CHR on Proxmox with ZFS?
 
cdemers
Member Candidate
Member Candidate
Posts: 224
Joined: Sun Feb 26, 2006 3:32 pm
Location: Canada
Contact:

Re: CHR Proxmox 5.3 ZFS Raid-1

Sun Mar 03, 2019 11:14 am

I run a CHR on proxmox kvm, no problem on a ceph cluster for storage. Haven't tried it on just zfs.


Sent from my SM-A520W using Tapatalk

 
dhoulbrooke
Trainer
Trainer
Posts: 65
Joined: Sun Apr 19, 2015 7:24 am
Location: Whakatāne, New Zealand

Re: CHR Proxmox 5.3 ZFS Raid-1  [SOLVED]

Mon Mar 04, 2019 10:53 am

The below is how I do it which might give you some ideas. Use at your own risk etc etc.

1. Create a VM in the Proxmox VE web interface. Make a note of the VM ID (in my example 351).

2. SSH in to the VM host.

3. Download the image
wget https://download.mikrotik.com/routeros/6.42.12/chr-6.42.12.img.zip

4. Unzip the image
unzip chr-6.42.12.img.zip

5. dd the image to the zfs zvol
dd if=chr-6.42.12.img of=/dev/zvol/local-zfs/vm-351-disk-0
(where 351 is the ID of your VM and local-zfs is the name of the pool)


6. Start VM in the Proxmox VE web interface.
 
Narakot
just joined
Topic Author
Posts: 3
Joined: Sat Feb 23, 2019 8:23 pm
Contact:

[SOLVED] CHR Proxmox 5.3 ZFS Raid-1

Mon Mar 04, 2019 4:06 pm

Thanks to all!

I did it with the help of the command:

Code: Select all

dd if=chr-6.42.12.img of=/dev/zvol/rpool/data/vm-103-disk-0

Who is online

Users browsing this forum: No registered users and 19 guests