[libvirt-users] bridge and route without IP
by Robert Šmol
Hi,
I want to forward all traffic received on eth1 into virtual domain
'firewall' (where I want to configure public IP+shorewall)
I've created following network:
node002 qemu # cat networks/int-001.xml
<network>
<name>int-001</name>
<bridge name="intbr0" />
<forward mode="route" device="eth1"/>
</network>
virsh # net-create networks/int-001.xml
error: Failed to create network from networks/int-001.xml
error: internal error Forwarding requested, but no IP address provided
But wan to set the public IP on the Firewall side. How do I do that?
Would the macvtap help me?
Regards,
Robert
--
stereoIT - Open Source Technology Partners
http://www.stereoit.com
mobile: +420 776 762378
13 years, 7 months
[libvirt-users] ANNOUNCE: oz 0.3.0 release
by Chris Lalancette
All,
I'm pleased to announce release 0.3.0 of Oz. Oz is a program for doing
automated installation of guest operating systems with limited input from the
user.
Release 0.3.0 is mostly a bugfix release for Oz. However, there are also
a few minor features included as well. Some of the highlights between Oz 0.2.0
and 0.3.0 are:
- Add the ability to specify the output directory for screenshots (the default
is still CWD).
- Add the ability to specify the bridge to use for installs (the default is
still the first libvirt NAT bridge on the system).
- Nicer error messages from the command-line tools when debugging is off.
- Add the ability to install Debian 5 and 6.
- Detect servers that can't possibly work for installing RedHat/Fedora OSs,
and fail the install.
- Allow installs with spaces in the name.
- Add the ability to install OpenSUSE 11.4.
More documentation on Oz is available here: http://aeolusproject.org/oz.html
If you have any questions or comments about oz, please feel free to contact
aeolus-devel(a)fedorahosted.org or me (clalance(a)redhat.com) directly.
Thanks,
--
Chris Lalancette
13 years, 7 months
[libvirt-users] ESX networking functions
by James Barkley
Greeetings,
Using the latest git snapshot I noticed that none of the networking
functions are implemented in the ESX driver. No listing networks, no adding
networks, etc. This functionality seems to be fully implemented for most of
the other drivers and I don't see it on the "todo" wiki. Does anyone have an
idea if/when this might get implemented? Would others be interested if I
were to add it and submit it as a patch?
-jb
13 years, 7 months
[libvirt-users] How to disconnect the ISO image using virsh
by Masanari Iida
Hello,
I can attach disc ISO image to cd-rom from virsh.
And I can replace the ISO image from disc1 to disc2 using the 2nd example.
(example)
attach-disk guest01 /root/disc1.iso hdc --driver file --type cdrom
--mode readonly
attach-disk guest01 /root/disc2.iso hdc --driver file --type cdrom
--mode readonly
My question is, how can I disconnect the image from the cdrom drive using virsh.
Because, if I try to detach-disk hdc, I got following errors.
virsh # detach-disk guest01 hdc
error: Failed to detach disk
error: this function is not supported by the connection driver:
This type of device cannot be hot unplugged
What I can do is possible from virt-manager's "Disconnect" button,
(next to source path: line) from Hardware's TAB, Disk hdc screen.
I want to do this from virsh.
OS: RHEL5.6
libvirt-0.8.2-15.el5_6.1 is used.
Regards,
Masanari Iida
13 years, 7 months
[libvirt-users] block migration
by mkey
Hello,
I'm trying to use block migration with below procedure, but got some errors. I would highly appreciate if anyone give me a hand..
There are 2 hosts(hostA and hostB), both OS is Ubuntu 10.10(merverick). And a VM(named centos54-1mg) is running at hostA(centos54 64bit).
[package version]
+++-=====================-=====================-===================
ii kvm 1:84+dfsg-0ubuntu16+0 dummy transitional
ii libvirt-bin 0.8.8-1ubuntu3~ppamav the programs for
ii qemu-common 0.14.0~rc1+noroms-0ub qemu common
ii qemu-kvm 0.14.0~rc1+noroms-0ub Full virtualization
[proceduere]
root@hostA:~# /etc/init.d/apparmor teardown
root@hostA:~# stop libvirt-bin && start libvirt-bin
root@hostB:~# /etc/init.d/apparmor teardown
root@hostB:~# stop libvirt-bin && start libvirt-bin
root@hostB:~# touch /tmp/centos54-1mg.img
root@hostB:~# chown -R libvirt-qemu:kvm /tmp/centos54-1mg.img
root@hostA:~# virsh migrate --live --copy-storage-all --p2p --direct centos54-1mg qemu+tcp://hostB/system
[NOTE]
1. What I was being careful is permission. Therefore, apparmor is off, libvirt is running as root.
2. normal live migration is successfully finished. So, libvirtd can communicate between hostA and hostB.
3. Regarding to options "--live --copy-storage-all --p2p --direct", I think --copy-storage-all is minimum, so I was trying to change pairs of options, but no good result.
The error logs and configuration at hostB are attached.
Thanks in advance
mkey
13 years, 8 months
[libvirt-users] Event Types Libvirt can handle
by kadir yüceer
Hello all,
I'm trying to observe access events of guest VMs. However, as far as I
understand event types in libvirt are really generic, like domain
defined/undefined, started/stopped, etc.
Isn't there any specific event types that libvirt can handle (like access to
a disk), or I'm missing them?
Thanks in advance
Kind regards
Kadir
13 years, 8 months
Re: [libvirt-users] libvirt-users Digest, Vol 15, Issue 26
by Zvi Dubitzky
I resolved topic 1 please diregard ( libvirtd.conf : Authentication /
auth_tcp="none") .
Please answer topic 2 as ver 0.8.8 claims cpu controller (cgroups) is not
mounted while it is
thanks
Zvi Dubitzky
Email:dubi@il.ibm.com
libvirt-users-bounces(a)redhat.com wrote on 27/03/2011 18:00:05:
> From: libvirt-users-request(a)redhat.com
> To: libvirt-users(a)redhat.com
> Date: 27/03/2011 18:00
> Subject: libvirt-users Digest, Vol 15, Issue 26
> Sent by: libvirt-users-bounces(a)redhat.com
>
> Send libvirt-users mailing list submissions to
> libvirt-users(a)redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/libvirt-users
> or, via email, send a message with subject or body 'help' to
> libvirt-users-request(a)redhat.com
>
> You can reach the person managing the list at
> libvirt-users-owner(a)redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libvirt-users digest..."
>
>
> Today's Topics:
>
> 1. Re: libvirt-users Digest, Vol 15, Issue 25 (Zvi Dubitzky)
> 2. virsh sechedinfo with libvirt-0.8.8 (Zvi Dubitzky)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 Mar 2011 20:31:55 +0300
> From: Zvi Dubitzky <DUBI(a)il.ibm.com>
> To: libvirt-users(a)redhat.com
> Subject: Re: [libvirt-users] libvirt-users Digest, Vol 15, Issue 25
> Message-ID:
> <OF433F2588.21ED2F16-ONC225785F.005EC3E4-C225785F.00605332(a)il.ibm.com>
> Content-Type: text/plain; charset="US-ASCII"
>
> Sorry, let me rephrase the question again:
>
> I need define a user /password for sasl but want the authentication at
> runtime
> be automatic - no explicit promting the user while accessing a tcp
socket
>
> with some applications that need authentication (e.g libvirt)
>
> I try : saslpasswd2 -c -p -a libvirt <user>
>
> and it hangs (if i now press Enter it says : "invalid parameter
> supplied") . if I avoid the -p flag the above commad works fine and
> prompts for password and later when using the tcp (virsh -c
> qemu+tcp:...) it prompts for the above defined user/password and
> autheticates ok.
>
> But I want without the explicit authentication
>
>
>
> The man pages says :
> "-p Pipe mode - saslpasswd2 will neither prompt for the password nor
> verify that it was entered correctly. This is the default when standard
> input is not a terminal. "
>
>
>
> In the past (before upgrading of libvirt via rpm) I had the SASL
> authentication done automatically without prompting the user at
runtime
> (virsh qemu+tcp:///system <command> ) and without need to configure
that.
>
> Don't know how to restore it .
>
> Any help ?
>
> thanks
>
> Zvi Dubitzky
> Email:dubi@il.ibm.com
>
>
>
> libvirt-users-bounces(a)redhat.com wrote on 26/03/2011 18:00:08:
>
> > From: libvirt-users-request(a)redhat.com
> > To: libvirt-users(a)redhat.com
> > Date: 26/03/2011 18:08
> > Subject: libvirt-users Digest, Vol 15, Issue 25
> > Sent by: libvirt-users-bounces(a)redhat.com
> >
> > Send libvirt-users mailing list submissions to
> > libvirt-users(a)redhat.com
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> > or, via email, send a message with subject or body 'help' to
> > libvirt-users-request(a)redhat.com
> >
> > You can reach the person managing the list at
> > libvirt-users-owner(a)redhat.com
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of libvirt-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. saslpasswd2 and virsh -c qemu+tcp:///system <command>
> > (Zvi Dubitzky)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sat, 26 Mar 2011 16:27:06 +0300
> > From: Zvi Dubitzky <DUBI(a)il.ibm.com>
> > To: libvirt-users(a)redhat.com
> > Subject: [libvirt-users] saslpasswd2 and virsh -c qemu+tcp:///system
> > <command>
> > Message-ID:
> > <OF80114F71.6895179C-ONC225785F.00498EC8-C225785F.0049E967(a)il.ibm.com>
> > Content-Type: text/plain; charset="US-ASCII"
> >
> > I need define a user /password for sasl but want that to do the
> > verification
> > automatically no -promting ( or even maybe avoid the verification)
> while
> > using a tcp socket with some applications that need authentication
(e.g
>
> > libvirt)
> >
> > so I try : saslpasswd2 -c -p -a libvirt <user>
> >
> > and it hangs (if i now press Enter it says : "invalid parameter
> > supplied") . if I avoid the -p flag the above commad works fine and
> > prompts for password and later when using the tc p (virsh -c
> > qemu+tcp:...) it prompts for the above defined user/password and
> > autheticates ok .
> > But I want without the prompting
> >
> > The man pages says
> > -p Pipe mode - saslpasswd2 will neither prompt for the password nor
> > verify that it was entered correctly. This is the default when
standard
> > input is not a terminal.
> >
> > In the past (before some upgrading of libvirt via rpm) the SASL
> > authentication was done automatically no need for prompting
> > Don't know how to restore it .
> >
> > Any help ?
> >
> > thanks
> >
> > Zvi Dubitzky
> > Email:dubi@il.ibm.com
> >
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users(a)redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> >
> > End of libvirt-users Digest, Vol 15, Issue 25
> > *********************************************
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 27 Mar 2011 18:32:29 +0300
> From: Zvi Dubitzky <DUBI(a)il.ibm.com>
> To: libvirt-users(a)redhat.com
> Subject: [libvirt-users] virsh sechedinfo with libvirt-0.8.8
> Message-ID:
> <OF06ABB03A.CFC8CAEA-ONC2257860.00546582-C2257860.00556403(a)il.ibm.com>
> Content-Type: text/plain; charset="US-ASCII"
>
> I have fedora14 installed with standard libvirt-0.8.3. I can start VM
> using .xml files and also run: virsh schedinfo. the cgroup CPU
> controller is mounted and active . In fact I have the path to the
Virtual
> machine : /dev/cgroup/cpu/libvirt/qemu/<vm name >
>
> Now I upgraded to libvirt-0.8.8 from a tar ball ( configure , make ,
make
> install) . I rebooted , new libvirtd started . virsh is working ok
> (I can create a vm) except for the commands : schedinfo and memtune
that
> say upon ' virsh schedinfo <vm name>'
>
> Scheduler : Unknown
> error: Requested operation is not valid: cgroup CPU controller is not
> mounted
>
> Indeed I have the path : /dev/cgroup/cpu/libvirt/qemu/ but now
without
> the <vm_name> group which is not generated despite
> that the VM was generated ok by virsh and I can access it
>
> Any idea what is missing or some config file needs a change ?
>
> thanks
>
> Zvi Dubitzky
> Email:dubi@il.ibm.com
>
>
>
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 15, Issue 26
> *********************************************
13 years, 8 months
[libvirt-users] virsh sechedinfo with libvirt-0.8.8
by Zvi Dubitzky
I have fedora14 installed with standard libvirt-0.8.3. I can start VM
using .xml files and also run: virsh schedinfo. the cgroup CPU
controller is mounted and active . In fact I have the path to the Virtual
machine : /dev/cgroup/cpu/libvirt/qemu/<vm name >
Now I upgraded to libvirt-0.8.8 from a tar ball ( configure , make , make
install) . I rebooted , new libvirtd started . virsh is working ok
(I can create a vm) except for the commands : schedinfo and memtune that
say upon ' virsh schedinfo <vm name>'
Scheduler : Unknown
error: Requested operation is not valid: cgroup CPU controller is not
mounted
Indeed I have the path : /dev/cgroup/cpu/libvirt/qemu/ but now without
the <vm_name> group which is not generated despite
that the VM was generated ok by virsh and I can access it
Any idea what is missing or some config file needs a change ?
thanks
Zvi Dubitzky
Email:dubi@il.ibm.com
13 years, 8 months