[libvirt] How to change the env PATH of a container?

WANG Cheng D Cheng.d.Wang at alcatel-sbell.com.cn
Fri Jan 3 07:12:09 UTC 2014

Dear Laine,

I will install a new version fedora as you said. Thank you.

By the way, do you know how to change the PATH of the container? I tried to change the .bashrc, but it doesn’t work.

I wonder if a container can have its own .bashrc.

Have a nice day.


From: sendmail [mailto:justsendmailnothingelse at gmail.com] On Behalf Of Laine Stump
Sent: 2014年1月2日 17:21
To: libvir-list at redhat.com
Cc: WANG Cheng D
Subject: Re: [libvirt] How to execute an initial script in a container to start the network interface automatically

On 01/02/2014 05:16 AM, WANG Cheng D wrote:
Dear All,

Happy new year to you.

I have a similar question which had been replied by Daniel in the following post:


I also want to assign a static IP to the container.

As Daniel said, I can successfully assign a static IP to the container manually using “ # ifconfig eth0 netmask up”.

Daniel also said that we can use “the regular distro initscripts” to automatically start the network interface, but this doesn’t work on my system.

My host is fedora16.

I haven't played with lxc enough to answer your question, but you *definitely* need to upgrade your Fedora installation - Fedora 16 has been "out of support" (i.e. no new updates, not even for security holes) for almost a year now. Even if you're building your own libvirt from source (the 1.0.3 libvirt you're using is newer than the last update of libvirt for F16, but still several months out of date), the other packages on the system will be extremely out of date and likely to cause problems that will never be fixed (because no F16 package will ever again be updated).

My libvirtd and virsh version is 1.0.3.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140103/2c656a50/attachment-0001.htm>

More information about the libvir-list mailing list