[lxc-users] Its possible to add a xen virtual device to an lxc container?

Fajar A. Nugraha list at fajar.net
Fri Jan 25 03:18:42 UTC 2019


On Fri, Jan 25, 2019 at 9:27 AM Márcio Castro <marciomouracastro at gmail.com>
wrote:

> Hi,
>
> My Ubuntu is 18.04, with lxc version 3.0.3.
>
> I installed several Oracle products (Database, Weblogic, SOA, ODI) with
> success in Linux Contaners, and i'm want to try Oracle RAC.
>
> To do that, I want to create a virtual disc, but i cant attach this to the
> container.
>
> I created a container named "ol7testedisc" with Oracle Linux and done the
> following:
>
> mmoura at mmoura-W350STQ-W370ST:~$ sudo dd if=/dev/zero of=/dev/xvda bs=1M
> count=4096
>
> 4096+0 registros de entrada
>
> 4096+0 registros de saída
>
> 4294967296 bytes (4,3 GB, 4,0 GiB) copiados, 1,01326 s, 4,2 GB/s
>
>
Quick guess, /dev/xvda did not exist before you ran dd?


> mmoura at mmoura-W350STQ-W370ST:/dev$ ls -l xvda
>
> -rw-r--r-- 1 root root 4294967296 jan 25 00:01 xvda
>
> mmoura at mmoura-W350STQ-W370ST:/dev$ lxc config device add ol7testedisc
> xvda unix-block path=/dev/xvda
> Error: Invalid devices: Not a device
>
>
Do you know the difference between a file and block device? If my guess is
correct, you have just created a regular file /dev/xvda. That is not a xen
virtual device.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190125/ba657fea/attachment.html>


More information about the lxc-users mailing list