Re: limit conectivity of a VM

2010-11-19 Thread Markus Breitländer
Hello,

you may also have a look at VDE (Virtual Distributed Ethernet). You can
connect your VMs to virtual switches and then use the tool
'wirefilter'[1] to modify different attributes (bandwidth, loss, delay,
etc) of the virtual network.

[1] http://wiki.virtualsquare.org/wiki/index.php/VDE

Regards,
Markus


Am 19.11.2010 20:47, schrieb hadi golestani:
> Hello,
> I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's 
> possible).
> What's the way of doing so?
> 
> Regards
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: "Copy and paste" feature across guest and host

2010-05-27 Thread Markus Breitländer
Am 27.05.2010 15:19, schrieb Dor Laor:
> On 05/27/2010 12:17 PM, Tomasz Chmielewski wrote:
>>> Just installed Fedora13 as guest on KVM.  However there is no
>>> cross-platform "copy and paste" feature. I trust I have setup this
>>> feature on other guest sometime before. Unfortunately I can't the
>>> relevant document. Could you please shed me some light. Pointer
>>> would be appreciated. TIA
>>
>> Did you try;
>>
>> # modprobe virtio-copypaste
>>
>> ?
>>
>>
>> Seriously, qemu does not make it easy (well, its GUI does not make most
>> things easy) and you'll need a tool which synchronizes the clipboard
>> between two machines (google for "qemu copy paste"?).
> 
> There is no cut&paste at the moment. The plan is to enable it through
> virtio-serial and have spice & vnc use it. Cannot guarantee a date but
> it shouldn't be too long.
> 
> 
> -- 
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Maybe NX / FreeNX will suit your needs.

Regards,
Markus

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Problem with qemu-kvm-0.11.0 under Ubuntu Karmic

2010-03-23 Thread Markus Breitländer
Hello,

I am using VDE networking for my kvm-VMs. The kvm versions from the
Ubuntu repositories still don't support VDE nativly. So i am forced to
use the vdeq/vdekvm wrapper to start my VMs.

Since I now upgraded my Ubuntu system from Jaunty to Karmic I have a
weird problem. When launching a VM, two vdekvm processes get started.
One with the vde configuration and one with a 'dummy' tap interface,
that i don't want. I have no clue why this second process gets started.

Have a look at the bash output:
-
mar...@kvm-host:/kvm/images$ vdekvm -hda win7.img -net
nic,macaddr=00:31:5e:ef:e8:be,model=virtio -net
vde,sock=/home/markus/vde_network/switches/sw-data.ctl -snapshot &
[1] 3662
mar...@kvm-host:/kvm/images$ arg
,sock=/home/markus/vde_network/switches/sw-data.ctl
TUNGETIFF ioctl() failed: Invalid argument
TUNSETOFFLOAD ioctl() failed: Bad address

mar...@kvm-host:/kvm/images$ ps aux | grep vdekvm

markus3662  0.0  0.0  19052   836 pts/1S02:09   0:00 vdekvm
-hda win7.img -net nic,macaddr=00:31:5e:ef:e8:be,model=virtio -net
vde,sock=/home/markus/vde_network/switches/sw-data.ctl -snapshot

markus3668 71.3  1.6 304260 137592 pts/1   Sl   02:09   0:07 vdekvm
-hda win7.img -net nic,macaddr=00:31:5e:ef:e8:be,model=virtio -net
tap,vlan=0,fd=3 -snapshot

markus3680  0.0  0.0   7336   892 pts/1S+   02:10   0:00 grep vdekvm

mar...@kvm-host:/kvm/images$
-

I am used to the TUNGETIFF error. This should be a bug in vdeq - the
vde-network is working properly.

I am more concerned about that second process with the default tap device.

I am considering to update kvm manually to the newest version (0.12.3 if
i am right). I hope both the TUNGETIFF as the error with the second
process may disappear. Do you think i should try that / what might be
the problem? May someone help me briefly on how to update kvm to the
newest version with native vde support under Ubuntu, to get rid of the
wrapper scripts?

Any help appreciated!

Greets,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: qemu-kvm

2010-02-13 Thread Markus Breitländer
You can alter the sound driver settings by setting some variables before
starting the VM.

I use the following in my start scripts:

export QEMU_AUDIO_DRV=alsa
export QEMU_AUDIO_DAC_FIXED_FREQ=48000
export QEMU_AUDIO_ADC_FIXED_FREQ=48000
export QEMU_ALSA_DAC_BUFFER_SIZE=4096

Maybe this helps?

Greets,
  Markus

Am 13.02.2010 13:39, schrieb Alberich de megres:
> Hi!!
> 
> I got a curious situation that leads me to start sailing on qemu-kvm
> source code.
> 
> I got an audio latency very very high, even with some little cuts at
> playback. In qemu lists they told me qemu is synchronous, so if it
> take so long to draw high screen resolution audio could be affected.
> As I saw, qemu uses sdl to draw guest screen on host computer, my
> question is: when sdl draw it uses some kind of 2d acceleration?
> 
> Woulld it be hard to make for example screen draw asynchronously to
> audio playback? where would be a good point to start look for how to
> do it?
> 
> Thanks!
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: TPM Support in KVM

2010-01-26 Thread Markus Breitländer
Am 26.01.2010 16:56, schrieb Chris Wright:
> * Martin Schneider (martincschnei...@googlemail.com) wrote:
>> Dear list,
>>
>> is there a document that describes the level of support of trusted
>> computing technology in KVM and how things work?
> 
> There's host level trusted boot, which simply needs tboot and a new
> enough kernel to support CONFIG_TXT.
> 
>> I read in various sources that KVM should support virtual Trusted
>> Platform Modules in virtual machines but I coudln't find any evidence
>> and/or document about this on the official site.
> 
> No vTPM is currently supported.

Any resources to this topic (vTPM)?

I would be intrested in virtual TNC solutions (802.1x on wired networks)!

Can you virtualize a TNC "Authenticator" like a 802.1x Switch?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: How to properly turn off guest VM on server shutdown?

2010-01-26 Thread Markus Breitländer
Hello Glennie,

Am 26.01.2010 14:46, schrieb Glennie Vignarajah:
> Le 24/01/2010 vers 18:16, dans le message intitulé "Re: How to properly turn 
> off guest VM on server shutdown?", Markus Breitländer(Markus Breitländer 
> ) a écrit:
> 
>> Hi!
> 
> Hello;
> 
>> Does anyone have sample scripts for this job?
> 
> #!/bin/bash
> CONNECT_STRING="qemu:///system"
> for MACHINE in $(virsh -c "$CONNECT_STRING" list | awk '/running$/ {print 
> $2}') ; do
>   virsh -c "$CONNECT_STRING" shutdown $MACHINE
> done
> sleep 600
> 
> This code will shutdown all runnning hosts with acpi en enabled.
> I haven't tested it under windows Seven, but under win 2003, you have modify:
> 
>  * Using regedit the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
> NT\CurrentVersion\Windows and set the value "ShutdownWarningDialogTimeout" to 
> dword:0001 (this will force shutdown even if users are connected)
> 
> 
> AND
> 
>  * Goto Control Pannel, admin tools and double-click "Local security settings"
>  * Expand "Local policies" and click on "Security Options" (left window pan)
>  * On the right side, locate "Shutdown: Allow system to be shutdown..." and 
> enable the option(this allows to powerdown on ctr-alt-del screen".
> 
> HTH

I was thinking about a script that doesn't use virsh.

I would be intrested in what commands virsh uses in it's 'shutdown'
command...

I haven't been working on my own script yet. Up to know i have in mind
to use qemu monitor command 'system_powerdown' and maybe ssh into linux
boxes to get em down (but the latter is not really nice).
By the way when testing manually, i experianced you might want to use
the 'system_powerdown' command twice / execute it two times shortly
after another to get windows machines down.

Greets,
  Markus

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Markus Breitländer
Hi!

Does anyone have sample scripts for this job?

I know you can send the 'system_powerdown' command to the qemu-monitor,
this CAN work for windows guests as far as i know.

What other commands could be used in shutdown scripts?

Regards,
  Markus


Am 24.01.2010 18:00, schrieb Daniel Bareiro:
> Hi, Anthony.
> 
> On Sunday, 24 January 2010 09:29:08 -0600,
> Anthony Liguori wrote:
> 
>> But the origin of the question here is probably, can something
>> automatically shut down guests when a machine shutdowns down via the
>> normal mechanism.  AFAIK, libvirt does not support this today although
>> there are some scripts floating around the intertubes that can drive
>> this operation through libvirt.
> 
> Well.. perhaps I'm confused because I did these tests a long time ago.
> But now that you mention it, I believe that I had tried was that,
> through virsh commands, the VM shutdown could be done from the VMHost
> being it always running.
> 
> I suppose that scripts that you mention will call to virsh when shutdown
> becomes of the VMHost.
> 
> Regards,
> Daniel

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


kvmctl

2009-11-11 Thread Markus Breitländer
Hello!

I am searching for the kvmctl-2.1.0.tar.gz script mentioned on the homepage.
Anyone here still got it? I am working on a script like this and I'd
love to take a look at the code.

Regards,
  Markus
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html