Ich habe einen LXC-Container mit libvirt realisiert. Der Container läuft (mit CentOS 7.4 als Gast) Jetzt würde ich gerne 3 Sachen realisieren.
1.) Kann man da Hardware verbauen um remote 3D zu bekommen?
2.) Im Container würde ich gerne loop devices z.B. /dev/loop0 aus einer Datei raus anlegen können. NBD würde es auch zur Not tun
3.) In Containern würde ich zu gerne ich KVM betreiben. Akso es läuft dann nur ein Container mit KVM und jeweils einem speziellen Software-Setup. Ich habe einige tuts gesehen die sich aber auf ein Setup mit LXC ohne libvirt beziehen. Geht das auch wenn libvirt mit im Spiel ist?
Code: Alles auswählen
virsh # dumpxml controller
<domain type='lxc' id='10643'>
<name>controller</name>
<uuid>6f0a1f39-9fc3-450f-8fb7-484eec8c0dca</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64'>exe</type>
<init>/sbin/init</init>
</os>
<features>
<privnet/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
<controller type='virtio-serial' index='0'/>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/media/lxc/controller/'/>
<target dir='/'/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/media/swift'/>
<target dir='/srv'/>
</filesystem>
<interface type='bridge'>
<mac address='00:16:3e:0b:2c:8b'/>
<source bridge='vswitch1'/>
<virtualport type='openvswitch'>
<parameters interfaceid='acb4a677-cd23-43a0-ba6b-ab00cf51850c'/>
</virtualport>
<target dev='vnet5'/>
<guest dev='eth0'/>
</interface>
<console type='pty' tty='/dev/pts/4'>
<source path='/dev/pts/4'/>
<target type='lxc' port='0'/>
<alias name='console0'/>
</console>
</devices>
<seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-6f0a1f39-9fc3-450f-8fb7-484eec8c0dca</label>
<imagelabel>libvirt-6f0a1f39-9fc3-450f-8fb7-484eec8c0dca</imagelabel>
</seclabel>
</domain>