# Installation guide for OxOffice Online v4 Community on CentOS 7 in PVE LXC

Please download "centos-7-default" LXC template on your PVE first

[![Select CentOS 7 LXC template on PVE.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/select-centos-7-lxc-template-on-pve.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/select-centos-7-lxc-template-on-pve.png)

You can see CentOS 7 LXC template in "CT templates" section

[![CentOS 7 PVE LXC Template.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/centos-7-pve-lxc-template.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/centos-7-pve-lxc-template.png)

Create a new CT using "Create CT" button

[![CentOS 7 PVE LXC Setup.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/centos-7-pve-lxc-setup.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/centos-7-pve-lxc-setup.png)

[![CentOS 7 PVE LXC Setup Finish.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/centos-7-pve-lxc-setup-finish.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/centos-7-pve-lxc-setup-finish.png)

Start created CT, login as root and excute following commands to install needed programs and OxOOL Community edition:
```Shell
yum install vim openssh* net-tools unzip wget -y
cd /etc/yum.repos.d
wget http://www.oxoffice.com.tw/rpm/el/oxool-community-v4-centos7.repo
yum upgrade -y
yum groupinstall "OxOOL Community Group" -y
```
Start OxOOL Community edition service when booting and reboot
```Shell
systemctl enable oxoolwsd
reboot
```
Check if OxOOL Community edition starts normally
```Shell
netstat -tlnp
```
You should get some results like this:
```Shell
tcp6     0    0    :::9980		      :::*   	LISTEN   644/oxool
```
P. S. When steps above are finished, you can use "More"→"Convert to template" to generate new LXC template that contains OxOOL Community edition.