similar to: SSH into LXC and install files via JAVA API

Displaying 20 results from an estimated 10000 matches similar to: "SSH into LXC and install files via JAVA API"

2015 Jun 04
2
LXCs using Libvirt
Hi all, I am trying to bring up lxc's using Libvirt JAVA API. I do the following: conn = Connect("lxc:\\\") xml_config = "<domain> .... <\domain>" dom = conn.domainCreateXML(xml_config, 0) dom.create() Using the above code, I am able to start a domain but the domain is not visible within the "lxc" list, i.e when I use the command "lxc-ls
2015 Jun 12
1
Libvirt LXC hostname
Hello, I am trying to bring up an lxc with Centos 6.6 using libvirt command: "virsh -c lxc:/// create vm.xml" When I do the above, the new VM created gets the hostname of the host where libvirt is installed. When I looked up help on the past mail-lists. It seems like this was a problem back in 2013 and it was mentioned that host name cannot be provided. I was wondering if this has
2015 Jun 05
0
Re: LXCs using Libvirt
On Thu, Jun 04, 2015 at 16:22:43 -0700, Anu Mercian wrote: > Hi all, > > I am trying to bring up lxc's using Libvirt JAVA API. I do the following: > > conn = Connect("lxc:\\\") > > xml_config = "<domain> .... <\domain>" > > dom = conn.domainCreateXML(xml_config, 0) > > dom.create() > > Using the above code, I am able
2013 Jul 12
0
Re: libvrtd-1.1.0 crashes when attempting to start some (but not all) LXC containers
The debug log ends with this: 2013-07-12 16:43:31.740+0000: 21365: debug : virCgroupMakeGroup:708 : Make group /machine/dwj-hfax-dev.libvirt-lxc 2013-07-12 16:43:31.740+0000: 21365: debug : virCgroupMakeGroup:729 : Make controller /sys/fs/cgroup/cpu/machine/dwj-hfax-dev.libvirt-lxc/ 2013-07-12 16:43:31.740+0000: 21365: debug : virCgroupMakeGroup:729 : Make controller
2014 Mar 06
1
Fail to convert LXC container configuration into a domain XML fragment
Hi, all, I used lxc-tools to create a linux container. I am trying to transfrom LXC container configuration into a domain XML fragment using the following command: *$ virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/my_conatiner/config* However, I get the error message, error: this function is not supported by the connection driver: virConnectDomainXMLFromNative It seems that
2013 Jul 12
2
Re: libvrtd-1.1.0 crashes when attempting to start some (but not all) LXC containers
Update: I am able to edit the XML in "dwj-hfax-dev" such that libvirtd no longer crashes, and edit the XML for "dwj-lnx-dev" such that it will crash. The presents of "<seclabel type='none'/>" near the bottom causes libvirtd to crash. I do not recall ever manually adding that to my domain. In any event, libvirtd should probably not crash due to the
2011 Aug 23
1
Strange libvirt exit status 1 (LXC containers)
Hello, I've encountered the following error, trying to start a domain: error: internal error Child process (PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin LIBVIRT_DEBUG=2 LIBVIRT_LOG_OUTPUTS=2:syslog:libvirtd /usr/libexec/libvirt_lxc --name vm_14 --console 18 --handshake 21 --background --veth veth1) status unexpected: exit status 1 I see nothing relevant
2014 Jan 30
0
Re: Dynamically setting permanent memory libvirt-lxc
On 01/30/2014 10:11 AM, mallu mallu wrote: > I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried changing memory in memory.limit_in_bytes under /cgroup/memory/libvirt/lxc/<container>/. This didn't help. It appears that libvirt is not reading changes in cgroup. > > My requirements are > > 1) Be able to dynamically change
2014 Jan 30
2
Re: Dynamically setting permanent memory libvirt-lxc
Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. I'm hoping to find  a solution that can survive reboot.   On Thursday, January 30, 2014 11:36 AM, Eric Blake <eblake@redhat.com> wrote: On 01/30/2014 10:11 AM, mallu mallu wrote: > I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried
2013 Feb 27
0
questions of libvirt's lxc
Hi all, I am trying to init lxc by libvirt instead of using lxc tools. I have several questions as following: software platform: integrating libvirt-0.10.1 to yocto based on sdk1.3 hardwatre platform: p4080ds steps: root at p4080ds:~# cat > container.xml <<EOF <domain type='lxc'> <name>container</name>
2015 Nov 02
0
Re: Creating network interfaces with specific name in LXC
On Fri, Oct 30, 2015 at 10:09:51PM +0530, Harish Vishwanath wrote: >Thanks Martin. What I would like to achieve is govern the interface name >created within the container, so that my application can take different >actions on different interfaces (such as eth0, eth1 etc.,). > <interface> <guest dev='devicename'/> </interface> That is what you're
2013 Jul 12
2
libvrtd-1.1.0 crashes when attempting to start some (but not all) LXC containers
Hello all, I have two issues: 1) I am unable to start a seemingly correct LXC domain (I cloned it from a working domain). 2) I am able to crash "libvirtd" by attempting to start the cloned domain, but starting the original works just fine. I humbly submit that item #2 is a bug - the "libvirtd" daemon should never crash due to anything the "libvirt" client
2014 Jan 30
2
Dynamically setting permanent memory libvirt-lxc
I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried changing memory in memory.limit_in_bytes under /cgroup/memory/libvirt/lxc/<container>/.  This didn't help. It appears that libvirt is not reading changes in cgroup. My requirements are 1) Be able to dynamically change memory of a LXC domain without reboot 2) The memory change must survive
2015 Oct 30
2
Re: Creating network interfaces with specific name in LXC
Thanks Martin. What I would like to achieve is govern the interface name created within the container, so that my application can take different actions on different interfaces (such as eth0, eth1 etc.,). Libvirt's lxc driver seems to create interfaces as eth0, eth1 and so on, when there are multiple <interface /> entries in the domain xml. How can I request for a particular interface
2010 Feb 03
1
[libvirt] [LXC] Tyring to locate livbvirt operations for LXC relocation
Hello, I am searching for the libvirt operations for relocating LXC (system or application) containers. LXC relocation mechanism is done by checkpoint / restart. I went over libvirt API documentation and found the following methods: virDomainSave that receives a domain and path to state file. The method saves domain's memory contents into a disk file. virDomainRestore that receives a domain
2018 Nov 26
2
Install SAMBA4 on LXC
Hi, I wonder if makes sense to install SAMBA4 AD DC on a LXC container. What do you think? The AD DC has around 50 users. Thanks in advance -- -- Sergio Belkin LPIC-2 Certified - http://www.lpi.org
2012 May 04
1
Libvirt LXC and VCPU?
Hi, We are using Openstack and Libvirt/LXC as our virtualization endpoint. Here is an example of one of our libvirt domain: http://paste.debian.net/167276/ So we have <vcpu>4</vcpu>. But the command : root at PAR-SRV-02-MASTER:/etc/libvirt/lxc# virsh --connect lxc:/// dominfo instance-0000004a Id: 17495 Name: instance-0000004a UUID:
2014 Jul 13
0
Re: configuring a lxc guest to run 32bits from a 64bits host under libvirt-lxc
Hi again Sorry for the late reaction on this.. So everything seems to work fine for me when using the setting below, except maybe for one little point I was kind of expecting that # virsh -c lxc:/// lxc-enter-namespace my_32bits_vm ... would run in a 32bits environment too, but from what I can see it is not the case I take it it can be argued, reading the documentation for lxc-enter-namespace
2010 Mar 11
1
LXC: unable to configure networking for LXC
Hello, I would like to set up sshd under an LXC application container and to be able to connect into it from the host. I was able to achieve that with LXC tools CLI after setting up a bridge via brctl and creating a proper lxc.conf file for lxc-execute to use. However, I am unable to do so via libvirt. I am using libvirt version 0.7.1 installed on fedora 12. I first verified that the default
2012 Nov 09
1
[LXC][Openstack] Clarifications needed on usage of libvirt-lxc for openstack
Hi everyone, I've some doubts regarding the usage/working of libvirt-lxc with openstack. I'm doing a project titled "Low density virtualization for Storage cloud" 1. Can i use libvirt for lxc with Openstack swift alone (excluding nova, glance and keystone)? If no what other openstack components should i use for virtualization? (Is it necessary to install openstack nova to do