similar to: How to assign multiple IP addresses to a container

Displaying 20 results from an estimated 80000 matches similar to: "How to assign multiple IP addresses to a container"

2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
I'd also like to point out that, when setting up a linux container with _just_ the lxc tools available in ubuntu, all that was needed to be done was whitelist the appropriate cgroups for the Android devices. The lxc tools seem to create the appropriate character devices when you detach/attach the Android device via USB, and the Android `adb` tool recognized the devices. So, a tangential
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
Can you see the USB device in the lxc? My answering assumes you cannot see the USB device in the container. If you can see it, please ignore my answer. According to my understanding, “hostdev mode='subsystem' “ is used with KVM only. We use this if we want to passthrough a device to a KVM virtual machine. After doing that, the host machine will lose control of the device. If container is
2014 May 07
1
Can I assign a dedicated NIC to a container?
Dear all, There are two containers hosted by my host machine. And the host machine has two same 1G NICs. I want to assign a dedicated NIC to one container. The host and the other container share the second NIC. How can I achieve this? Any comments will be highly appreciated. Cheng
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
So, if I remove the hostdev element related to the USB device, running `lsusb` and `usb-devices` inside the container lists the proper device, but I do not see the appropriate character device bus for the Android device under /dev/bus/usb. We are not entirely sure that `lsusb` and `usb-devices` queries the appropriate location - it somehow gets information from the host, not the guest container,
2014 Mar 17
2
a question on vCPU setting for lxc
Dear all, I am not clear about the 'vcpu' element for CPU allocation. I allocated 1 vCPU to my container, after I started the container, I ran 4 computation-intensive tasks on the container. And I found all the 4 physical core are 100% used (my host has 4 physical cores and no other application ran on the host except the container). That is, all available cores were used by the container.
2014 Sep 28
0
Re: How to configure the container's NIC automatically with an assigned IP address
Dear Gene, Thank you for your response. I want to assign a static IP address to my container, I wonder if I can achieve this by editing the container's /etc/sysconfig/network-scripts/ifcfg-eth0. I tried this, but failed, and eth0 is always not assigned an IP address automatically (my host and guest are fedora19). Am I missing something? I don't know much about the booting procedure of a
2014 Apr 14
3
Re: LXC + USB passthrough = Operation not permitted
Dear Fil, I am not sure if my answer can help you. I had ever asked a similar question to Daniel and I was using a thirty-party card. As a container uses a shared kernel with the host, so hostdev mode='subsystem' doesn't make sense. Maybe you can try to use hostdev mode='capabilities'. Please see http://libvirt.org/formatdomain.html#elementsHostDevCaps Hope this helps Cheng
2015 Mar 26
2
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
2015 Mar 27
0
Re: 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
2014 Mar 17
0
Re: a question on vCPU setting for lxc
Hi, I'm not libvirt expect. My guess is that some vcpu settings only apply to KVM/qemu backend. LXC is quite different from them. If setting vcpu# is not effective for LXC container, you may need to use cgroups. -- Thanks, Yuanle On Mon, Mar 17, 2014 at 2:32 PM, WANG Cheng D < Cheng.d.Wang@alcatel-sbell.com.cn> wrote: > Dear all, > > I am not clear about the
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
Hi Chang Weng, Thanks for answering! Could you explain why subsystem=USB does not make sense? I was simply following the documentation for USB devices (right above the section you linked to). For what it's worth, I've also tried mounting the specific character device related to the appropriate android device into the container in the way you suggest, with no luck; `adb` still does not
2014 Jan 23
1
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
Dear Daniel, I found that lxc driver doesn't support hostdev with type of 'pci'. As you mentioned before, I tried to expose the device node (the PCIe card) to the container, my XML is as follow: <devices> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address bus='0x01' slot='0x00'
2014 Oct 24
1
Re: How can a user process be automatically started after the container is started?
Dear Daniel, You said "use a real init system like systemd to spawn off the things", do you mean a full OS distro container? I installed the container using "yum --installroot=/root/fedora19lxc --releasever=19 install -y openssh, bridge-utils" which is described at https://www.redhat.com/archives/libvirt-users/2013-August/msg00007.html. I don't know how to make systemd
2013 Dec 11
0
Re: assign static external IP to container
On 12/09/2013 05:14 AM, scar wrote: > hello i have a server colocated in a datacenter with several external IP > addresses available to use. the physical server is using one of these > IPs, and i want to assign another, unused IP to the virtual machine. i > thought i could just do this by editing the container's > /etc/network/interfaces, setting a static IP address for eth0
2013 Dec 13
0
Re: assign static external IP to container
On 12/13/2013 12:33 PM, scar wrote: > Gao feng @ 12/11/2013 01:49 AM: >> I have a machine running libvirt lxc, >> on this machine(host), the network configure looks like this >> eth0 is the physical nic, virbr0 is the bridge libvirt created, and vnet0 >> is the veth device created for libvirt lxc container. you can see, the eth0 >> is a port of virbr0, and the ip
2014 Jan 16
3
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
Dear Daniel, The thirty-party PCIe card is based on the Xilinx’ FPGA which is off the shelf, the main features are as follows: 1) x8 Gen3, 8Gb/s per lane/direction 2) MSI and legacy interrupt support 3) Scatter-gather packet DMA engine provide by Northwest Logic We hope multiple Linux Containers to access the PCIe card in time division mode, for example, during slot 1, lxc1 read/write the PCIe
2014 Oct 23
2
How can a user process be automatically started after the container is started?
Dear All, I want to start my application automatically after I start the container with a virsh command " virsh -c lxc:/// start mycontainer" How can I achieve this? Thank you in advance. Cheng
2013 Dec 16
0
Re: assign static external IP to container
On 12/14/2013 10:51 AM, scar wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Gao feng @ 12/12/2013 10:18 PM: >> I saw there are two bridge br0 and virbr0 in your host. which >> bridge the libvirt uses? what's result of #virsh net-list ? > > well i don't quite understand bridges and their function, i'm kinda > just following directions.
2014 Sep 26
1
How to configure the container's NIC automatically with an assigned IP address
Dear all, I want to run a TCP/IP application automatically after I start the container using "virsh -c lxc:/// start mycontainer". Does anybody know how to configure the NIC automatically with an assigned IP address? I couldn't find useful information from domain XML format spec and it only talks how to set the mac address (http://libvirt.org/formatdomain.html) . Your response will
2013 Dec 13
3
Re: assign static external IP to container
Gao feng @ 12/11/2013 01:49 AM: > I have a machine running libvirt lxc, > on this machine(host), the network configure looks like this > eth0 is the physical nic, virbr0 is the bridge libvirt created, and vnet0 > is the veth device created for libvirt lxc container. you can see, the eth0 > is a port of virbr0, and the ip is assigned on virbr0. > > [snip] > > And in