Dear Ramaekers,

 

Perhaps I didn’t describe the problem clearly.

 

Libvirt has built-in driver for linux container, so, on Fedora, libvirt can be used to start and stop the linux container. (libvirt’s official website is libvirt.org). On Ubuntu, a user tool from https://linuxcontainers.org" is usually used to manage Ubuntu container. I noted that the use of the two user space tools are different. The problem is  I can realize sharing memory between containers on Fedora which is very important for me. But I wonder if I use the tool from https://linuxcontainers.org to manage Ubuntu container, whether I also can share memory between Ubuntu containers?

 

 

 

From: Dominique Ramaekers [mailto:dominique.ramaekers@cometal.be]
Sent: 2015
327 14:47
To: WANG Cheng D; libvirt-users@redhat.com
Subject: RE: [libvirt-users] Installation of libvirt on Ubuntu

 

Libvirt is in the standard repositories… Why don’t you just install it with ex tasksel?

 

 

 

Van: WANG Cheng D [mailto:Cheng.d.Wang@alcatel-sbell.com.cn]
Verzonden: donderdag 26 maart 2015 16:06
Aan: libvirt-users@redhat.com
Onderwerp: [libvirt-users] Installation of libvirt on Ubuntu

 

Dear all,

 

I wonder if libvirt can work on Ubuntu.

 

As you know, it is very convenient to install libvirt on Fedora. I can download the libvirt packet from libvirt.org and install it using command ./configure, make and make install.

 

As I am going to install an open source simulation system named openairinterface, Ubuntu is the recommended OS, and I want to install the simulation system in libvirt lxc. (as you may know, there is another lxc user space tool on Ubuntu whose official website is "https://linuxcontainers.org", which I don't want to use).

 

My questions are:

1)  Can I install libvirt on Ubuntu with the same installation steps as on Fedora (i.e., manually download the tar.gz packet and install it locally)? I found a link talking about installation libvirt on Ubuntu which installs something like "libvirt-bin" (https://help.ubuntu.com/lts/serverguide/libvirt.html). I am not sure if libvirt can be installed following this instruction?

 

2)  How can I create the rootfs for a Ubuntu container if libvirt can be installed on Ubuntu? I create the rootfs for Fedora container using:

# yum --installroot=/root/fedora16linux container --releasever=19 install -y openssh, bridge-utils".

How can I achieve this on Ubuntu?

 

3)  If libvirt can work on Ubuntu, Can a disk file on the host OS be exposed to a Ubuntu container just like on Fedora?

 

With my warmest regards,

 

Cheng Wang