[libvirt-users] limit memory and CPU when using libvirt-sandbox
by pablo platt
I'm considering using virt-sandbox with lxc to sandbox and execute
untrusted code like python scripts and compiled C code.
Is it possible to limit CPU and Memory like is possible with lxc-execute
and a config file?
What are the defaults security settings? Is it completely isolated by
default?
What's the difference between lxc-execute and libvirt-sandbox?
How can I use it in ubuntu?
Thanks
11 years, 11 months
[libvirt-users] Not able to do ssh with libvirt
by varun bhatnagar
Hi,
I am having issue while doing *ssh* to a virtual node through libvirt. The
nodes's ip address is 192.168.82.1. When I am giving the command it is
giving the following error message:
*virsh# connect vbox+ssh://192.168.82.1/session*
*Password:*
*error: Failed to connect to the hypervisor*
*error: End of ifle while reading data: sh: nc: command not found:
Input/output error.*
Can anyone tell me why am I facing this problem and how to resolve it.
Thanks in advance.
11 years, 11 months
[libvirt-users] libvirt -- add virtio-scsi disk with scsi-generic
by 韩诚
Hi, Paolo, All,
I read "virtio-scsi support proposal
v2"(http://permalink.gmane.org/gmane.comp.emulators.libvirt/50428).
Try to add a virtio-scsi with scsi-generic like this:
<hostdev type='scsi'>
<source>
<adapter name='scsi_host0'/>
<address type='scsi' bus='0' target='0' unit='0'/>
</source>
<target>
<address type='scsi' controller='0' bus='0' target='0' unit='2'/>
</target>
</hostdev>
But It turn out to be wrong, showing:
error: Failed to define domain from rhel63ga
error: XML error: unknown host device source address type 'scsi_host'
I'd like to know how shall to add a virtio-scsi disk with scsi-generic option.
Thanks~
--
Best regards,
Cheng
11 years, 11 months
[libvirt-users] virtual machine id
by 春祥 王
Below is my start.xml:
<domain type='kvm' id='12'>
<name>start-ubuntu</name>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
......
I start the machine virsh create start.xml
virsh list
Id Name State
----------------------------------------------------
20 start-ubuntu running
I set id=12,but it is actually 20,I don't know why.
Thanks.
11 years, 11 months
Re: [libvirt-users] snapshot troubles
by Christian Schmidt
Hi Juergen,
if you are using kvm/qemu with libvirt you can try to delete the
snapshot with the qemu monitor commands.
The general syntax is
virsh qemu-monitor-command --hmp <domain> '<command> [...]'
So you can try
virsh qemu-monitor-command --hmp DOMINO1-prealloc 'info snapshots'
and thne delete it with the provided snapshot ID
virsh qemu-monitor-command --hmp DOMINO1-prealloc 'delvm <ID>'
This will delete the snapshot from your diskimage.
Christian.
On Di, 2013-01-22 at 18:00, libvirt-users-request(a)redhat.com wrote:
> Message: 3
> Date: Mon, 21 Jan 2013 23:43:57 +0100
> From: jurgen.depicker(a)let.be
> To: libvirt-users <libvirt-users(a)redhat.com>
> Subject: [libvirt-users] snapshot troubles
> Message-ID:
> <OF4AE792B7.46B8D599-ONC1257AFA.0073C652-C1257AFA.007D0C38(a)let.be>
> Content-Type: text/plain; charset="us-ascii"
>
> Dear all,
> I created some snapshots, a long time ago, using the xml description
> option, so the snapshots have a name with a space in it...
> Really a bad choice apparently, since it seems impossible to delete
> them
> now: I cannot find how to enter the snapshot name properly due to the
> space. Quotes don't seem to help; escaping the space doesn't help
> either.
> Anybody knows how to solve this?
> eg:
> snapshot-delete DOMINO1-prealloc --snapshotname 'W2K3-virgin install'
> error: Domain snapshot not found: no snapshot with matching name
> ''W2K3-virgin'
> (-> notive also the extra ' added )
>
> root@VLET3:~# time virsh snapshot-delete DOMINO1-prealloc
> "W2K3-virgin\
> install"
> error: unexpected data 'install'
>
> Thanks, Juergen
>
11 years, 11 months
[libvirt-users] snapshot troubles
by jurgen.depicker@let.be
Dear all,
I created some snapshots, a long time ago, using the xml description
option, so the snapshots have a name with a space in it...
Really a bad choice apparently, since it seems impossible to delete them
now: I cannot find how to enter the snapshot name properly due to the
space. Quotes don't seem to help; escaping the space doesn't help either.
Anybody knows how to solve this?
eg:
snapshot-delete DOMINO1-prealloc --snapshotname 'W2K3-virgin install'
error: Domain snapshot not found: no snapshot with matching name
''W2K3-virgin'
(-> notive also the extra ' added )
root@VLET3:~# time virsh snapshot-delete DOMINO1-prealloc "W2K3-virgin\
install"
error: unexpected data 'install'
Thanks, Juergen
11 years, 11 months
[libvirt-users] Fwd: problem with libvirt
by rakshith h p
HI,
i'm rakshith from bangalore. I'm using libvirt in one of my work. I have a
problem in using it.So i would request your guidance. I have a controller
which uses libvirt to establish the connection to the managed nodes. After
the connection is successful, if the network goes down, the control will
indefinitely wait inside the libvirt mod functions. It will come out only
after the network is back and required data is obtained. In this case i
need to add time out and get the control back once the data is not
available and throw an exception. Can u please tell if there is any way i
can do it.Thanks in advance
--
Thanks and regards
Rakshith H P
Mobile - +919844303929
11 years, 11 months
[libvirt-users] Fwd problem with libvirt
by rakshith h p
---------- Forwarded message ----------
From: "rakshith h p" <hpr3929(a)gmail.com>
Date: 22 Jan 2013 22:10
Subject: problem with libvirt
To: <berrange(a)redhat.com>
Cc:
HI,
i'm rakshith from bangalore. I'm using libvirt in one of my work. I have a
problem in using it.So i would request your guidance. I have a controller
which uses libvirt to establish the connection to the managed nodes. After
the connection is successful, if the network goes down, the control will
indefinitely wait inside the libvirt mod functions. It will come out only
after the network is back and required data is obtained. In this case i
need to add time out and get the control back once the data is not
available and throw an exception. Can u please tell if there is any way i
can do it.Thanks in advance
--
Thanks and regards
Rakshith H P
Mobile - +919844303929
11 years, 11 months
[libvirt-users] Question about blkiotune.device_weight
by hzguanqiang
Hi, Hu Tao
I noticed that in your patch about blkiotune.device_weight, You set the device blkio weight value between 100 and 1000.
But from the kernel document, I see that the blkio weight can be set from 10 to 1000. Why do you limit the weight minimum to 100 rather than 10 ?
Looking forward your explanation, thanks!
--------------
Best regards!
GuanQiang
2013-01-18
11 years, 11 months
[libvirt-users] error on startup
by Bryan D. Payne
I'm running libvirt 1.0.1 and qemu 1.3. I see the following error of
libvirtd startup:
2013-01-19 04:51:06.183+0000: 1459: error : virCommandWait:2287 :
internal error Child process (LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/ /usr/bin/kvm -help) unexpected exit status 1
This is indeed what the return code seems to be for that command.
This this just a version issue with libvirt and qemu or ??
root@host:~# kvm -help
usage: qemu-x86_64 [options] program [arguments...]
Linux CPU emulator (compiled for x86_64 emulation)
Options and associated environment variables:
Argument Env-variable Description
-h print this help
-g port QEMU_GDB wait gdb connection to 'port'
-L path QEMU_LD_PREFIX set the elf interpreter prefix to 'path'
-s size QEMU_STACK_SIZE set the stack size to 'size' bytes
-cpu model QEMU_CPU select CPU (-cpu help for list)
-E var=value QEMU_SET_ENV sets targets environment variable (see below)
-U var QEMU_UNSET_ENV unsets targets environment variable (see below)
-0 argv0 QEMU_ARGV0 forces target process argv[0] to be 'argv0'
-r uname QEMU_UNAME set qemu uname release string to 'uname'
-B address QEMU_GUEST_BASE set guest_base address to 'address'
-R size QEMU_RESERVED_VA reserve 'size' bytes for guest virtual
address space
-d options QEMU_LOG activate log
-D logfile QEMU_LOG_FILENAME override default logfile location
-p pagesize QEMU_PAGESIZE set the host page size to 'pagesize'
-singlestep QEMU_SINGLESTEP run in singlestep mode
-strace QEMU_STRACE log system calls
-version QEMU_VERSION display version information and exit
Defaults:
QEMU_LD_PREFIX = /usr/gnemul/qemu-x86_64
QEMU_STACK_SIZE = 8388608 byte
QEMU_LOG = /tmp/qemu.log
You can use -E and -U options or the QEMU_SET_ENV and
QEMU_UNSET_ENV environment variables to set and unset
environment variables for the target process.
It is possible to provide several variables by separating them
by commas in getsubopt(3) style. Additionally it is possible to
provide the -E and -U options multiple times.
The following lines are equivalent:
-E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG
-E var1=val2,var2=val2 -U LD_PRELOAD,LD_DEBUG
QEMU_SET_ENV=var1=val2,var2=val2 QEMU_UNSET_ENV=LD_PRELOAD,LD_DEBUG
Note that if you provide several changes to a single variable
the last change will stay in effect.
root@host:~# echo $?
1
Thanks,
-bryan
11 years, 11 months