[libvirt-users] Libvirt and LXC
by Mohd Izhar Firdaus Ismail
(oops accidentally sent to -owners)
Hi, i'm trying to start a LXC guest on a F14 computer .. followed the
examples in http://libvirt.org/drvlxc.html, but got stuck when
starting it ..
03:07:23.706: debug : virCgroupNew:542 : New group /
03:07:23.707: debug : lxcControllerRun:563 : Setting up private /dev/pts
03:07:23.711: debug : lxcControllerRun:589 : Mouting 'devpts' on
/var/lxc/f14/dev/pts
03:07:23.711: debug : lxcControllerRun:604 : Opening tty on private
/var/lxc/f14/dev/pts/ptmx
03:07:23.714: debug : lxcContainerAvailable:897 : clone call returned
Invalid argument, container support is not enabled
03:07:23.714: debug : lxcContainerStart:848 : Enable network namespaces
03:07:23.718: debug : lxcContainerStart:854 : clone() completed, new
container PID is -1
03:07:23.718: error : lxcContainerStart:858 : Failed to run clone
container: Invalid argument
03:07:23.718: debug : vethDelete:141 : veth: veth1
03:07:23.718: debug : virRunWithHook:820 : ip link del veth1
LXC config:
<domain type='lxc'>
<name>f14</name>
<uuid>2dcd3cac-47e6-2915-554a-9713edf6ffd1</uuid>
<memory>256000</memory>
<currentMemory>256000</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>exe</type>
<init>/sbin/init</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount'>
<source dir='/var/lxc/f14'/>
<target dir='/'/>
</filesystem>
<interface type='network'>
<mac address='52:54:00:b0:de:18'/>
<source network='default'/>
</interface>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
I dont know what the invalid arguments are...
03:07:23.718: error : lxcContainerStart:858 : Failed to run clone
container: Invalid argument
thanks
--
Mohd Izhar Firdaus Bin Ismail / KageSenshi
Inigo Consulting (FOSS/Plone Development, Training & Services)
http://www.inigo-tech.com
Fedora Malaysia Contributor & Ambassador
http://blog.kagesenshi.org
92C2 B295 B40B B3DC 6866 5011 5BD2 584A 8A5D 7331
14 years
[libvirt-users] SCSI tape drive device
by Tom Stave
I have a SCSI tape backup unit attached to a kvm host managed by
libvirt. Is there a way to expose the SCSI device in libvirt so I could
pass the device to a virtual machine and have the virtual machine
control the tape backup?
Defining the device as a SCSI disk does not appear to work.
In this situation, live migration is not an issue. The VM would always
be tied to this host.
14 years
[libvirt-users] libvirt problems. Create bridged network via cmdline?
by Денис Барышев
Hello!
I've faced a weird problem. And I totally can't understand how libvirt
handles networks. The thing that i need to do is simple. I create a bridge
in my ubuntu host, the following config:
*iface eth0 inet manual*
*
*
*auto br0*
*iface br0 inet dhcp*
* bridge_ports eth0*
* bridge_stp on*
* bridge_maxwait 0*
That's OK, and my bridge turns up automatically. But I don't understand why
libvirt can't use it, it always want to create bridge on its own. So that
when I try to create bridged network with the command:
virsh virsh net-create net.xml
net.xml contents:
* <network>*
* <name>virbreth0</name>*
* <bridge name='br0' stp='on' delay='0' />*
* </network>*
I always get error ===>
error: Failed to create network from net.xml
error: cannot create bridge 'br0': File exists
That's pretty obvious that libvirt wants to create bridge on its own. But
what should I do in my specific situation. May be there is a workaround.
I appreciate any help and ideas...
Thanks for your answers.
Best regards,
Denis Barishev.
14 years
[libvirt-users] qemu sdl parameters via libvirt
by Bruce Hohl
Hello List, I run a few VMs via libvirt using '--sdl'. I would like
to use qemu parameters -no-quit, -no-frame and -ctrl-grab with
libvirt. Does libvirt support a way to use these qemu parameters?
Does libvirt provide a way to add these options under <graphics/> in
the domain.xml using 'virsh edit domain.xml'?
My current <graphics/> is as follows:
<graphics type='sdl' display=':0' xauth='/home/admin1/.Xauthority'/>
I know I could just create a regular kvm start-up script and include
these parameters but I would like to manages all VMs via libvirt &
virt-manager.
14 years