This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
virtualisation:how-to-setup-a-container [2018/07/18 15:05] preisig [Resources] |
virtualisation:how-to-setup-a-container [2018/08/30 08:25] juraschek [Automatic Setup] |
||
---|---|---|---|
Line 13: | Line 13: | ||
===== Automatic Setup ===== | ===== Automatic Setup ===== | ||
- | Using router Software >= 4.1.0.102 allows you to download and setup containers automatically from an URL. | + | Using router Software >= [[http://share.netmodule.com/public/system-software/4.1/4.1.0.102/|4.1.0.102]] allows you to download and setup containers automatically from an URL. |
- Open GUI and go to System → Virtualization | - Open GUI and go to System → Virtualization | ||
Line 34: | Line 34: | ||
- You should see a following screen (if you chose extended storage, the path will have storage1 instead of storage0: ''/mnt/storage1/lxc/guest0'') {{ :app-notes:virt.png |}} | - You should see a following screen (if you chose extended storage, the path will have storage1 instead of storage0: ''/mnt/storage1/lxc/guest0'') {{ :app-notes:virt.png |}} | ||
- Transfer the downloaded container (you can use WinSCP) to the router and put in ''/mnt/storage0/lxc'' | - Transfer the downloaded container (you can use WinSCP) to the router and put in ''/mnt/storage0/lxc'' | ||
- | - Unpack the container: <code> tar –xvJf ubuntu_bionic.tar.xz –C ./guest0 </code> | + | - Unpack the container: <code> tar xvJf ubuntu_bionic.tar.xz –C ./guest0 </code> |
- The extracted container contains a rootfs directory which is now stored under ''/mnt/storage0/lxc/guest0''. | - The extracted container contains a rootfs directory which is now stored under ''/mnt/storage0/lxc/guest0''. | ||
- Type <code> lxc-start –n guest0 </code> | - Type <code> lxc-start –n guest0 </code> | ||
- Information about container can be accesed by typing <code> lxc-info –n guest0 </code> {{ :app-notes:info.png |}} | - Information about container can be accesed by typing <code> lxc-info –n guest0 </code> {{ :app-notes:info.png |}} | ||
- Now you can attach to the container by typing <code> lxc-attach –n guest0 </code> | - Now you can attach to the container by typing <code> lxc-attach –n guest0 </code> | ||
- | + | start container in foreground mode <code> lxc-start –F –n guest0 </code> to get more Information | |
- | start container in foreground mode <code> lxc-start –F –n guest0 </code> to get more Information | + | |