From agx at sigxcpu.org Sun Nov 2 17:43:38 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Sun, 2 Nov 2008 18:43:38 +0100 Subject: [et-mgmt-tools] [PATCH] virt-viewer: remove built files in build dir Message-ID: <20081102174338.GA6633@bogon.ms20.nix> Hi, attached patch removes the files in the build dir instead of trying to do so in the installed system (fix is similar to what I submitted for gtk-vnc). Cheers, -- Guido -------------- next part -------------- A non-text attachment was scrubbed... Name: rm-in-plugindir.diff Type: text/x-diff Size: 475 bytes Desc: not available URL: From FCOMBERNOUS at ares.fr Mon Nov 3 09:56:00 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Mon, 3 Nov 2008 10:56:00 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_using_virtinstall--?= =?ISO-8859-1?Q?devel_and_bus_type_option=2E?= In-Reply-To: <490B09CF.3060409@redhat.com> References: , <490B09CF.3060409@redhat.com> Message-ID: -----Cole Robinson a ?crit : ----- >Pour?:?Fedora/Linux?Management?Tools? >De?:?Cole?Robinson? >Date?:?31/10/2008?14:36 >cc?:?fcombernous at ares.fr >Objet : Re: [et-mgmt-tools] using virtinstall--devel and bus type >option. > >FCOMBERNOUS at ares.fr?wrote: >>?Lo, >> >>?As?indicated?i?get?the?source?with?mercurial?: >>?hg?clone?http://hg.et.redhat.com/virt/applications/virtinst--devel > >When?did?you?clone?the?repo??Just?yesterday?I?committed?a >few?more?patches?from?Guido?that?fixed?up?some?of?the?code My clone and your commit are near. Perhaps i cloned before your commit. >to?do?with?the?'bus'?option,?so?you?may?be?running?in?to >issues?that?have?been?fixed.?Try: > >cd?virtinst--devel >hg?pull >hg?update >python?setup.py?install > >Then?see?if?the?bus?option?isn't?working.?If?not,?report >back?here. Here the report :) - The man pages use the new syntax about the -disk option. - The virt-install --help is broken. Have a look to details below [1]. - The -disk option looks to do the job. In fact, i wanted to use -disk option as described in [2]. With this one, it's possible to set the devide type to scsi and not only to ide. But with the last update, the virt-install don't know the scsi value : ERROR Error with storage parameters: Unknown device type 'scsi' [1] # virt-install --help ERROR:root:'ascii' codec can't decode byte 0xc3 in position 171: ordinal not in range(128) Traceback (most recent call last): File "/usr/bin/virt-install", line 715, in main() File "/usr/bin/virt-install", line 504, in main options = parse_args() File "/usr/bin/virt-install", line 466, in parse_args (options,args) = parser.parse_args() File "/usr/lib/python2.5/optparse.py", line 1385, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib/python2.5/optparse.py", line 1425, in _process_args self._process_long_opt(rargs, values), File "/usr/lib/python2.5/optparse.py", line 1500, in _process_long_opt option.process(opt, value, values, self) File "/usr/lib/python2.5/optparse.py", line 782, in process self.action, self.dest, opt, value, values, parser) File "/usr/lib/python2.5/optparse.py", line 804, in take_action parser.print_help() File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 51, in print_help file.write(self.format_help().encode(encoding, "replace")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 171: ordinal not in range(128) [2] http://hg.et.redhat.com/virt/applications/virtinst--devel?fd=710611367b50;file=man/en/virt-install.pod -- Fabien COMBERNOUS IT Engineer, Open source specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From berrange at redhat.com Mon Nov 3 11:05:14 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Mon, 3 Nov 2008 11:05:14 +0000 Subject: [et-mgmt-tools] [PATCH] virt-viewer: remove built files in build dir In-Reply-To: <20081102174338.GA6633@bogon.ms20.nix> References: <20081102174338.GA6633@bogon.ms20.nix> Message-ID: <20081103110514.GB26142@redhat.com> On Sun, Nov 02, 2008 at 06:43:38PM +0100, Guido G?nther wrote: > Hi, > attached patch removes the files in the build dir instead of trying to > do so in the installed system (fix is similar to what I submitted for > gtk-vnc). Thanks, I've applied this change > Cheers, > -- Guido > diff --git a/plugin/Makefile.am b/plugin/Makefile.am > index ff1536e..2ccffe6 100644 > --- a/plugin/Makefile.am > +++ b/plugin/Makefile.am > @@ -26,7 +26,7 @@ virt-viewer-plugin.so: virt-viewer-plugin.la > > # Only leave the .so file in the plugins directory. > install-data-hook: > - rm -f $(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la > + rm -f $(DESTDIR)$(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la The 2nd filename needed $(DESTDIR) here too. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From fhimpe at telenet.be Mon Nov 3 14:18:14 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Mon, 3 Nov 2008 15:18:14 +0100 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range Message-ID: <20081103141813.GB32435@telenet.be> [Sorry for multiposting, I send this to the wrong mailing list the first time...] When I try to create a new KVM VM x86_64, os variant Ubuntu Hardy, it fails at the end with this message: Error setting up graphics device:list index out of range Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 640, in finish guest._graphics_dev = virtinst.VirtualGraphics (type=virtinst.VirtualGraphics.TYPE_VNC) File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 207, in __init__ self.set_keymap(keymap) File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 219, in set_keymap val = util.default_keymap() File "/usr/lib/python2.5/site-packages/virtinst/util.py", line 293, in default_keymap kt = s.split('"')[1] IndexError: list index out of range What could be wrong here? I'm using virt-manager 0.6.0, libvirt 0.4.6, python-virtinst 0.400.0 on Mandriva Linux 2009.0 x86_64. -- Frederik Himpe From crobinso at redhat.com Mon Nov 3 16:31:45 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 03 Nov 2008 11:31:45 -0500 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_=5Bet-mgmt-tools=5D_?= =?ISO-8859-1?Q?using_virtinstall--devel_and_bus_type_option=2E?= In-Reply-To: References: , <490B09CF.3060409@redhat.com> Message-ID: <490F2771.6060109@redhat.com> FCOMBERNOUS at ares.fr wrote: >> to do with the 'bus' option, so you may be running in to >> issues that have been fixed. Try: >> >> cd virtinst--devel >> hg pull >> hg update >> python setup.py install >> >> Then see if the bus option isn't working. If not, report >> back here. >> > > Here the report :) > - The man pages use the new syntax about the -disk option. > - The virt-install --help is broken. Have a look to details below [1]. > - The -disk option looks to do the job. > > In fact, i wanted to use -disk option as described in [2]. With this one, > it's possible to set the devide type to scsi and not only to ide. But with > the last update, the virt-install don't know the scsi value : > ERROR Error with storage parameters: Unknown device type 'scsi' > > Hmm, this sounds like you made an error on the command line. You should use --disk ...,bus=scsi,... rather than --disk ...,device=scsi... If you didn't make that mistake, please paste the full command line you used. > [1] > # virt-install --help > ERROR:root:'ascii' codec can't decode byte 0xc3 in position 171: ordinal > not in range(128) > Traceback (most recent call last): > File "/usr/bin/virt-install", line 715, in > main() > File "/usr/bin/virt-install", line 504, in main > options = parse_args() > File "/usr/bin/virt-install", line 466, in parse_args > (options,args) = parser.parse_args() > File "/usr/lib/python2.5/optparse.py", line 1385, in parse_args > stop = self._process_args(largs, rargs, values) > File "/usr/lib/python2.5/optparse.py", line 1425, in _process_args > self._process_long_opt(rargs, values), > File "/usr/lib/python2.5/optparse.py", line 1500, in _process_long_opt > option.process(opt, value, values, self) > File "/usr/lib/python2.5/optparse.py", line 782, in process > self.action, self.dest, opt, value, values, parser) > File "/usr/lib/python2.5/optparse.py", line 804, in take_action > parser.print_help() > File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 51, in > print_help > file.write(self.format_help().encode(encoding, "replace")) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 171: > ordinal not in range(128) > > Hmm, we supposedly fixed this bug. It has to do with viewing the help message with a local that uses non-ascii characters. I'll try to find the fix. Thanks, Cole From crobinso at redhat.com Mon Nov 3 16:41:13 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 03 Nov 2008 11:41:13 -0500 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <20081103141813.GB32435@telenet.be> References: <20081103141813.GB32435@telenet.be> Message-ID: <490F29A9.6080303@redhat.com> Frederik Himpe wrote: > [Sorry for multiposting, I send this to the wrong mailing list the first > time...] > > When I try to create a new KVM VM x86_64, os variant Ubuntu Hardy, it > fails at the end with this message: > > Error setting up graphics device:list index out of range > > Traceback (most recent call last): > File "/usr/share/virt-manager/virtManager/create.py", line 640, in > finish > guest._graphics_dev = virtinst.VirtualGraphics > (type=virtinst.VirtualGraphics.TYPE_VNC) > File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 207, > in > __init__ > self.set_keymap(keymap) > File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 219, > in > set_keymap > val = util.default_keymap() > File "/usr/lib/python2.5/site-packages/virtinst/util.py", line 293, in > default_keymap > kt = s.split('"')[1] > IndexError: list index out of range > > What could be wrong here? I'm using virt-manager 0.6.0, libvirt 0.4.6, > python-virtinst 0.400.0 on Mandriva Linux 2009.0 x86_64. > > Hi, thanks for the report. Definitely a bug on our side. We try to determine the host machines keyboard mapping so we can set a default guest keymap, but out parsing code isn't careful enough. Can you post the contents of /etc/sysconfig/keyboard so we can try to fix it properly? Thanks, Cole From agx at sigxcpu.org Mon Nov 3 17:52:39 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Mon, 3 Nov 2008 18:52:39 +0100 Subject: =?iso-8859-1?B?UulmLiA6IFJlOiBbZXQt?= =?iso-8859-1?Q?mgmt-tools?= =?iso-8859-1?Q?=5D?= using virtinstall--devel and bus type option. In-Reply-To: References: <490B09CF.3060409@redhat.com> Message-ID: <20081103175239.GA18616@bogon.ms20.nix> On Mon, Nov 03, 2008 at 10:56:00AM +0100, FCOMBERNOUS at ares.fr wrote: > In fact, i wanted to use -disk option as described in [2]. With this one, > it's possible to set the devide type to scsi and not only to ide. But with > the last update, the virt-install don't know the scsi value : > ERROR Error with storage parameters: Unknown device type 'scsi' What command are you using, I'm using e.g.: --disk path=/tmp/bla2,device=disk,size=1,bus=virtio Cheers, -- Guido From agx at sigxcpu.org Mon Nov 3 18:18:00 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Mon, 3 Nov 2008 19:18:00 +0100 Subject: [et-mgmt-tools] [PATCH] virt-viewer: remove built files in build dir In-Reply-To: <20081103110514.GB26142@redhat.com> References: <20081102174338.GA6633@bogon.ms20.nix> <20081103110514.GB26142@redhat.com> Message-ID: <20081103181800.GB18616@bogon.ms20.nix> On Mon, Nov 03, 2008 at 11:05:14AM +0000, Daniel P. Berrange wrote: > On Sun, Nov 02, 2008 at 06:43:38PM +0100, Guido G?nther wrote: > > Hi, > > attached patch removes the files in the build dir instead of trying to > > do so in the installed system (fix is similar to what I submitted for > > gtk-vnc). > > Thanks, I've applied this change > > > Cheers, > > -- Guido > > > diff --git a/plugin/Makefile.am b/plugin/Makefile.am > > index ff1536e..2ccffe6 100644 > > --- a/plugin/Makefile.am > > +++ b/plugin/Makefile.am > > @@ -26,7 +26,7 @@ virt-viewer-plugin.so: virt-viewer-plugin.la > > > > # Only leave the .so file in the plugins directory. > > install-data-hook: > > - rm -f $(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la > > + rm -f $(DESTDIR)$(plugindir)/virt-viewer-plugin.a $(plugindir)/virt-viewer-plugin.la > > The 2nd filename needed $(DESTDIR) here too. Yes, my bad. The gtk-vnc one was correct, the virt-viewer one lacked it, sorry. -- Guido From fhimpe at telenet.be Mon Nov 3 18:19:33 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Mon, 03 Nov 2008 19:19:33 +0100 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <490F29A9.6080303@redhat.com> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> Message-ID: <1225736373.6973.1.camel@Anastacia> On ma, 2008-11-03 at 11:41 -0500, Cole Robinson wrote: > Frederik Himpe wrote: > > [Sorry for multiposting, I send this to the wrong mailing list the first > > time...] > > > > When I try to create a new KVM VM x86_64, os variant Ubuntu Hardy, it > > fails at the end with this message: > > > > Error setting up graphics device:list index out of range > Hi, thanks for the report. Definitely a bug on our side. > We try to determine the host machines keyboard mapping > so we can set a default guest keymap, but out parsing > code isn't careful enough. > > Can you post the contents of /etc/sysconfig/keyboard so > we can try to fix it properly? Aha, great, thank you for the help. $ cat /etc/sysconfig/keyboard KEYBOARD=be KEYTABLE=be2-latin1 -- Frederik Himpe From crobinso at redhat.com Mon Nov 3 19:57:21 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 03 Nov 2008 14:57:21 -0500 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <1225736373.6973.1.camel@Anastacia> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> <1225736373.6973.1.camel@Anastacia> Message-ID: <490F57A1.7040309@redhat.com> Frederik Himpe wrote: > On ma, 2008-11-03 at 11:41 -0500, Cole Robinson wrote: > >> Frederik Himpe wrote: >> >>> [Sorry for multiposting, I send this to the wrong mailing list the first >>> time...] >>> >>> When I try to create a new KVM VM x86_64, os variant Ubuntu Hardy, it >>> fails at the end with this message: >>> >>> Error setting up graphics device:list index out of range >>> > > >> Hi, thanks for the report. Definitely a bug on our side. >> We try to determine the host machines keyboard mapping >> so we can set a default guest keymap, but out parsing >> code isn't careful enough. >> >> Can you post the contents of /etc/sysconfig/keyboard so >> we can try to fix it properly? >> > > Aha, great, thank you for the help. > > $ cat /etc/sysconfig/keyboard > KEYBOARD=be > KEYTABLE=be2-latin1 > > Okay, this should work fine now upstream: http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=bd2ec3b7b815 If you are using packages from your distro, you should file a bug with them and point to that commit. Thanks, Cole From FCOMBERNOUS at ares.fr Tue Nov 4 09:42:05 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Tue, 4 Nov 2008 10:42:05 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_?= =?ISO-8859-1?Q?using_virtinstall--devel_and_bus_type_option=2E?= In-Reply-To: <490F2771.6060109@redhat.com> References: , <490B09CF.3060409@redhat.com> , <490F2771.6060109@redhat.com> Message-ID: -----Cole Robinson a ?crit : ----- [...] >Hmm,?this?sounds?like?you?made?an?error?on?the?command?line. >You?should?use > >--disk?...,bus=scsi,...??rather?than >--disk?...,device=scsi... > >If?you?didn't?make?that?mistake,?please?paste?the?full?command >line?you?used. You're right. I used the 'device' parameter instead of the 'bus' one. But, the 'bus' parameter is missing in the manual. It talks only about the 'device' one. Bye, -- Fabien COMBERNOUS IT Engineer, Open source specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From fhimpe at telenet.be Tue Nov 4 10:57:00 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Tue, 4 Nov 2008 11:57:00 +0100 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <490F57A1.7040309@redhat.com> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> <1225736373.6973.1.camel@Anastacia> <490F57A1.7040309@redhat.com> Message-ID: <20081104105659.GA22234@telenet.be> On Mon, Nov 03, 2008 at 02:57:21PM -0500, Cole Robinson wrote: > > $ cat /etc/sysconfig/keyboard > > KEYBOARD=be > > KEYTABLE=be2-latin1 > > Okay, this should work fine now upstream: > > http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=bd2ec3b7b815 Thanks. I applied this patch, and the error is now gone. However, it seems the keyboard is not working correctly in a new virtual machine. I start up the Mandriva boot.iso file to do a network installation. In the first steps of the net install cd, the installer expects US keyboard layout (it only asks what type of keyboard you have later once the installation GUI has been downloaded and started). If I try to enter numerical characters 1234567890 using the keys above the alphanumeric part of the keyboard (and typing as if I had a US keyboard instead of a Belgian one), I get k23b5s7890. For some reason, the 1, 4 and 6 are not working correctly. -- Frederik Himpe From crobinso at redhat.com Tue Nov 4 14:31:43 2008 From: crobinso at redhat.com (Cole Robinson) Date: Tue, 04 Nov 2008 09:31:43 -0500 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_R=E9f=2E_=3A_Re=3A?= =?ISO-8859-1?Q?_=5Bet-mgmt-tools=5D_using_virtinstall--devel_and?= =?ISO-8859-1?Q?_bus_type_option=2E?= In-Reply-To: References: , <490B09CF.3060409@redhat.com> , <490F2771.6060109@redhat.com> Message-ID: <49105CCF.20605@redhat.com> FCOMBERNOUS at ares.fr wrote: > > -----Cole Robinson a ?crit : ----- > > [...] > >> Hmm, this sounds like you made an error on the command line. >> You should use >> >> --disk ...,bus=scsi,... rather than >> --disk ...,device=scsi... >> >> If you didn't make that mistake, please paste the full command >> line you used. > > You're right. I used the 'device' parameter instead of the 'bus' one. > But, the 'bus' parameter is missing in the manual. It talks only about the > 'device' one. > Whoops, looks like there was a typo. There is a section describing the bus field, but it was labeled as 'device'. I'll commit the fix in a bit. Thanks, Cole From bkearney at redhat.com Tue Nov 4 15:09:27 2008 From: bkearney at redhat.com (Bryan Kearney) Date: Tue, 04 Nov 2008 10:09:27 -0500 Subject: [et-mgmt-tools] [Fwd: Cobbler -> virt-image.xml mapping] Message-ID: <491065A7.1020407@redhat.com> I sent the following email to the cobbler list. If folks have any comments on Cobbler -> Virt-image mappings I would love to hear them. The goal is to be able to create an image with the appliance tools, and push that image into cobbler for provisioning. Ideally, cobbler would hold all the information required to drive the virt-image logic from within koan. If you follow a link in the email you can see see a WIP code. It is deploying the images on a local machine, but not yet assigning networks. -- bk -------- Original Message -------- Subject: Cobbler -> virt-image.xml mapping Date: Tue, 04 Nov 2008 10:06:30 -0500 From: Bryan Kearney To: cobbler mailing list References: <49021DA9.3010106 at redhat.com> <490A37EA.6040708 at redhat.com> <490A3798.2060102 at redhat.com> <490B2494.3060002 at redhat.com> <490B24C2.80400 at redhat.com> <490B2F4D.6030308 at redhat.com> <490F7684.9050308 at redhat.com> <490F7E30.7040801 at redhat.com> <490FA1FD.3050303 at redhat.com> <490FA56D.302 at redhat.com> As part of adding the ability to deploy images in Cobbler via koan and virt-image I did a quick mapping between the Cobbler Image metadata and the metadata in the virt-image xml file. The mapping is below. I have 4 issues which I believe need to be addressed in the image metadata. Current code (deploys with no networks) can be seen here at [1] -- bk Mapping ======= Cobbler :: Virt-Image-XML :: Notes CobblerImage.name :: image.name :: Overridden at command line CobblerImage.arch :: None :: Need to translate this since virt-image seems to use i686 not i386 CobblerImage.file :: image.domain.boot.drive | image.storage.disk at file :: What is lost is the ability to denote boot drives CobblerImage.parent :: None :: Not needed as this is internal cobbler logic CobblerImage.depth :: None :: Not needed as this is internal cobbler logic CobblerImage.owners :: None :: Not needed as this is internal cobbler logic CobblerImage.virt_ram :: image.domain.devices.memory :: CobblerImage.virt_file_size :: None :: CobblerImage.virt_path :: :: See issue 3 CobblerImage.virt_cpus :: image.domain.devices.vcpu :: CobblerImage.virt_type :: image.domain.boot at type | image.domain.boot.os.loader at dev :: See Issue 4 CobblerImage.virt_bridge :: :: See issue 1 CobblerImage.xml_file :: None :: No need to store the file, virt-image is called directlry CobblerImage.image_type :: virt-clone :: May need to break this down once we resolve the issues below CobblerImage.breed, :: None :: CobblerImage.os_version, :: None :: Issues ====== 1) Cobbler supports one bridge while the virt-image.xml can support denoting more then one interface. 2) How to specify more then one file, and which one is a boot drive. 2.1) In addition, how to model a disk as hda, hdb, etc 2.2) How to model a disk as system, user, scratch 3) Should the image be copied? I believe so, and then perhaps virt_path is used 4) Virt-image supports defining pygub with a kernel and initrd. There is no way to model this in the image data Defined at install time, not in metadata ======================================== image.domain.devices.graphics Optional: Not Mapped ==================== image.name at version image.name at release image.label image.description image.boot.features.pae image.boot.features.acpi image.boot.features.apic image.storage.disk at size image.storage.disk at format image.storage.disk.checksum [1] http://github.com/bkearney/koan/tree/devel From luis.cerezo at pgs.com Tue Nov 4 16:45:09 2008 From: luis.cerezo at pgs.com (Luis Cerezo) Date: Tue, 04 Nov 2008 10:45:09 -0600 Subject: [et-mgmt-tools] p2v Message-ID: Has anyone successfully done a p2v of a older release? (RH 7.1) Got any tips? I opened a case with RH, but evidently it's not supported yet* -luis -- Luis E. Cerezo Global IT This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system From fhimpe at telenet.be Tue Nov 4 21:10:25 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Tue, 04 Nov 2008 22:10:25 +0100 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <20081104105659.GA22234@telenet.be> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> <1225736373.6973.1.camel@Anastacia> <490F57A1.7040309@redhat.com> <20081104105659.GA22234@telenet.be> Message-ID: <1225833025.5347.2.camel@Anastacia.local> On di, 2008-11-04 at 11:57 +0100, Frederik Himpe wrote: > On Mon, Nov 03, 2008 at 02:57:21PM -0500, Cole Robinson wrote: > > > > $ cat /etc/sysconfig/keyboard > > > KEYBOARD=be > > > KEYTABLE=be2-latin1 > > > > Okay, this should work fine now upstream: > > > > http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=bd2ec3b7b815 > > Thanks. I applied this patch, and the error is now gone. However, it > seems the keyboard is not working correctly in a new virtual machine. I > start up the Mandriva boot.iso file to do a network installation. In the first > steps of the net install cd, the installer expects US keyboard layout > (it only asks what type of keyboard you have later once the installation > GUI has been downloaded and started). > > If I try to enter numerical characters 1234567890 using the keys above > the alphanumeric part of the keyboard (and typing as if I had a US > keyboard instead of a Belgian one), I get k23b5s7890. For some reason, > the 1, 4 and 6 are not working correctly. Could this be a bug in gtk-vnc? However, with previous versions of virt-manager and the same version of gtk-vnc, this was working fine I think. -- Frederik Himpe From bkearney at redhat.com Tue Nov 4 21:17:06 2008 From: bkearney at redhat.com (Bryan Kearney) Date: Tue, 04 Nov 2008 16:17:06 -0500 Subject: [et-mgmt-tools] [PATCH] Allow Image Parser to be called without a file name. This is used to support using the object model directly Message-ID: <92ad5a3f9c3ac47c96f7.1225833426@localhost.localdomain> # HG changeset patch # User Bryan Kearney # Date 1225833405 18000 # Node ID 92ad5a3f9c3ac47c96f7cb54f3e2632ebe3a037d # Parent 352ef78f5a1fae402be672e80b1ab96c7408167e Allow Image Parser to be called without a file name. This is used to support using the object model directly diff -r 352ef78f5a1f -r 92ad5a3f9c3a virtinst/ImageParser.py --- a/virtinst/ImageParser.py Tue Nov 04 13:57:56 2008 -0500 +++ b/virtinst/ImageParser.py Tue Nov 04 16:16:45 2008 -0500 @@ -35,7 +35,10 @@ def __init__(self, node = None, base = None, filename = None): self.storage = {} self.domain = None - self.filename = os.path.abspath(filename) + if filename == None: + self.filename = None + else: + self.filename = os.path.abspath(filename) if base is None: if filename is not None: self.base = os.path.dirname(filename) From berrange at redhat.com Tue Nov 4 21:22:08 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Tue, 4 Nov 2008 21:22:08 +0000 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <20081104105659.GA22234@telenet.be> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> <1225736373.6973.1.camel@Anastacia> <490F57A1.7040309@redhat.com> <20081104105659.GA22234@telenet.be> Message-ID: <20081104212208.GA18209@redhat.com> On Tue, Nov 04, 2008 at 11:57:00AM +0100, Frederik Himpe wrote: > On Mon, Nov 03, 2008 at 02:57:21PM -0500, Cole Robinson wrote: > > > > $ cat /etc/sysconfig/keyboard > > > KEYBOARD=be > > > KEYTABLE=be2-latin1 > > > > Okay, this should work fine now upstream: > > > > http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=bd2ec3b7b815 > > Thanks. I applied this patch, and the error is now gone. However, it > seems the keyboard is not working correctly in a new virtual machine. I > start up the Mandriva boot.iso file to do a network installation. In the first > steps of the net install cd, the installer expects US keyboard layout > (it only asks what type of keyboard you have later once the installation > GUI has been downloaded and started). > > If I try to enter numerical characters 1234567890 using the keys above > the alphanumeric part of the keyboard (and typing as if I had a US > keyboard instead of a Belgian one), I get k23b5s7890. For some reason, > the 1, 4 and 6 are not working correctly. virt-manager tries to configure the guest keymap by mapping from the keytable in /etc/sysconfig/keyboard, to the keymaps available in QEMU. Check the running 'qemu' process to verify that there is a '-k' command line arg with the appropriate keymap set. With a newer enough KVM, and new enough GTK-VNC there is a protocol extension which passes raw scancodes across, avoiding this whole keymap mess - just need to configure keymap in guest OS to match the keyboard you use. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From fhimpe at telenet.be Tue Nov 4 21:58:55 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Tue, 04 Nov 2008 22:58:55 +0100 Subject: [et-mgmt-tools] Error setting up graphics device:list index out of range In-Reply-To: <20081104212208.GA18209@redhat.com> References: <20081103141813.GB32435@telenet.be> <490F29A9.6080303@redhat.com> <1225736373.6973.1.camel@Anastacia> <490F57A1.7040309@redhat.com> <20081104105659.GA22234@telenet.be> <20081104212208.GA18209@redhat.com> Message-ID: <1225835935.5347.13.camel@Anastacia.local> On di, 2008-11-04 at 21:22 +0000, Daniel P. Berrange wrote: > On Tue, Nov 04, 2008 at 11:57:00AM +0100, Frederik Himpe wrote: > > If I try to enter numerical characters 1234567890 using the keys above > > the alphanumeric part of the keyboard (and typing as if I had a US > > keyboard instead of a Belgian one), I get k23b5s7890. For some reason, > > the 1, 4 and 6 are not working correctly. > > virt-manager tries to configure the guest keymap by mapping from the > keytable in /etc/sysconfig/keyboard, to the keymaps available in > QEMU. Check the running 'qemu' process to verify that there is a > '-k' command line arg with the appropriate keymap set. /usr/bin/qemu-kvm -S -M pc -m 512 -smp 1 -name Cooker -monitor pty -no-reboot -boot d -drive file=/home/frederik/VM/cooker.img,if=ide,index=0 -drive file=/home/frederik/Mandriva/cooker/x86_64/install/images/boot.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=54:52:00:38:64:98,vlan=0 -net tap,fd=12,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc 127.0.0.1:0 -k fr-be -soundhw es1370 That seems right at first sight. Also in a windows virtual machine, where the Windows keyboard is set to Belgian, this problem does not happen. Only in this installer which expects us-qwerty. > With a newer enough KVM, and new enough GTK-VNC there is a protocol > extension which passes raw scancodes across, avoiding this whole > keymap mess - just need to configure keymap in guest OS to match the > keyboard you use. I'm using KVM 77 on Linux 2.6.27. Is there anything which should be configured so that virt-manager works like this? Thanks! -- Frederik Himpe From ab at stollmann.de Wed Nov 5 12:09:20 2008 From: ab at stollmann.de (Arne Bernin) Date: Wed, 05 Nov 2008 13:09:20 +0100 Subject: [et-mgmt-tools] virt-manager Problem with german keyboard (AltGr) and builtin vnc client In-Reply-To: <490B3211.4040404@redhat.com> References: <20081031152830.19582.qmail@bux.stollmann.net> <490B3211.4040404@redhat.com> Message-ID: <20081105120901.10913.qmail@bux.stollmann.net> On Fri, 2008-10-31 at 12:28 -0400, Cole Robinson wrote: > Can you paste the output of: > > virsh dumpxml your-vm-name | grep keymap vms-lnx:~# virsh dumpxml flexlm01 | grep keymap > cat /etc/sysconfig/keyboard unfortunatly this will not work, as i am using a debian System as host ;-) The installed keymap is: de-latin1-nodeadkeys and in the xorg config: Option "XkbModel" "pc105" Option "XkbLayout" "de" Option "XkbVariant" "nodeadkeys" So it seems to me, that it is correctly configured... Thanks, Arne -- ------------------------------------------------------------------- Arne Bernin Tel: +49 40 890 88 433 Fax: +49 40 890 88 444 mailto:ab at stollmann.de http://www.stollmann.de Stollmann E+V GmbH, Mendelssohnstr. 15D, D-22761 Hamburg, Germany HRB Hamburg 55634, VAT-ID DE 811 675 541 GF: Peter Herrmann, Christian L?hrs ------------------------------------------------------------- If it's ISDN, Bluetooth, GPRS or NFC make sure it's driven by Stollmann From fhimpe at telenet.be Wed Nov 5 22:25:31 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Wed, 05 Nov 2008 23:25:31 +0100 Subject: [et-mgmt-tools] virt-manager Problem with german keyboard (AltGr) and builtin vnc client In-Reply-To: <20081105120901.10913.qmail@bux.stollmann.net> References: <20081031152830.19582.qmail@bux.stollmann.net> <490B3211.4040404@redhat.com> <20081105120901.10913.qmail@bux.stollmann.net> Message-ID: <1225923931.10462.10.camel@Anastacia.local> On wo, 2008-11-05 at 13:09 +0100, Arne Bernin wrote: > On Fri, 2008-10-31 at 12:28 -0400, Cole Robinson wrote: > > > Can you paste the output of: > > > > virsh dumpxml your-vm-name | grep keymap > > > vms-lnx:~# virsh dumpxml flexlm01 | grep keymap > keymap='de'/> Can you try removing the keymap completely from that line (run virsh edit flexlm01)? For me it works best without any keymap defined. Another thing which could be relevant is this patch: http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg00116.html -- Frederik Himpe From jboggs at redhat.com Thu Nov 6 17:08:20 2008 From: jboggs at redhat.com (Joey Boggs) Date: Thu, 06 Nov 2008 12:08:20 -0500 Subject: [et-mgmt-tools] [patch] virtinst - deprecate virt-pack and Unware.py Message-ID: <49132484.5080306@redhat.com> This removes virt-pack and Unware.py functionality has now been replaced by virt-convert. -------------- next part -------------- A non-text attachment was scrubbed... Name: virt-pack-deprecated-11051700.patch Type: text/x-patch Size: 15689 bytes Desc: not available URL: From crobinso at redhat.com Thu Nov 6 18:40:07 2008 From: crobinso at redhat.com (Cole Robinson) Date: Thu, 06 Nov 2008 13:40:07 -0500 Subject: [et-mgmt-tools] [PATCH] Allow Image Parser to be called without a file name. This is used to support using the object model directly In-Reply-To: <92ad5a3f9c3ac47c96f7.1225833426@localhost.localdomain> References: <92ad5a3f9c3ac47c96f7.1225833426@localhost.localdomain> Message-ID: <49133A07.6060302@redhat.com> Bryan Kearney wrote: > # HG changeset patch > # User Bryan Kearney > # Date 1225833405 18000 > # Node ID 92ad5a3f9c3ac47c96f7cb54f3e2632ebe3a037d > # Parent 352ef78f5a1fae402be672e80b1ab96c7408167e > Allow Image Parser to be called without a file name. This is used to support using the object model directly > Thanks, applied: http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=8b19fc149cae - Cole From crobinso at redhat.com Thu Nov 6 18:40:32 2008 From: crobinso at redhat.com (Cole Robinson) Date: Thu, 06 Nov 2008 13:40:32 -0500 Subject: [et-mgmt-tools] [patch] virtinst - deprecate virt-pack and Unware.py In-Reply-To: <49132484.5080306@redhat.com> References: <49132484.5080306@redhat.com> Message-ID: <49133A20.1090802@redhat.com> Joey Boggs wrote: > This removes virt-pack and Unware.py functionality has now been > replaced by virt-convert. > > Thanks, applied: http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=8d816eb9cf1d - Cole From ab at stollmann.de Fri Nov 7 15:01:25 2008 From: ab at stollmann.de (Arne Bernin) Date: Fri, 07 Nov 2008 16:01:25 +0100 Subject: [et-mgmt-tools] virt-manager Problem with german keyboard (AltGr) and builtin vnc client In-Reply-To: <1225923931.10462.10.camel@Anastacia.local> References: <20081031152830.19582.qmail@bux.stollmann.net> <490B3211.4040404@redhat.com> <20081105120901.10913.qmail@bux.stollmann.net> <1225923931.10462.10.camel@Anastacia.local> Message-ID: <20081107150125.32023.qmail@bux.stollmann.net> On Wed, 2008-11-05 at 23:25 +0100, Frederik Himpe wrote: > Can you try removing the keymap completely from that line (run virsh > edit flexlm01)? For me it works best without any keymap defined. When i do this, the keyboard is totally wrong. I need to set it to "de". see below... > Another thing which could be relevant is this patch: > http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg00116.html > I already applied this one to kvm/qemu, without it, it does not work even with the tight-vncclient. But with the patch applied, it works now, even with the builtin client in virt-manager. In think i used the wrong kvm/qemu version in my previous testing, thinking that i already patched it... But it seems, i was wrong. Sorry about that. So i will file a debian bug report to get this patch included in kvm... Thanks again! --arne -- ------------------------------------------------------------------- Arne Bernin Tel: +49 40 890 88 433 Fax: +49 40 890 88 444 mailto:ab at stollmann.de http://www.stollmann.de Stollmann E+V GmbH, Mendelssohnstr. 15D, D-22761 Hamburg, Germany HRB Hamburg 55634, VAT-ID DE 811 675 541 GF: Peter Herrmann, Christian L?hrs ------------------------------------------------------------- If it's ISDN, Bluetooth, GPRS or NFC make sure it's driven by Stollmann From pradhanparas at gmail.com Fri Nov 7 16:24:25 2008 From: pradhanparas at gmail.com (Paras pradhan) Date: Fri, 7 Nov 2008 10:24:25 -0600 Subject: [et-mgmt-tools] converting full to para Message-ID: <8b711df40811070824o7777648cu9aa6f10723cd3db6@mail.gmail.com> virt-p2v was able to convert my centOS 5.2 physical machine to xen virtual machine and it runs great. Now, I am working on to convert this full virt machine to para virt . Under my domU i have installed kernel-xen (since it is needed ) , and edited my grub menu to use the installed kernel. My grub menu file in domU looks like: ---- kernel /vmlinuz-2.6.18-92.1.17.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-92.1.17.el5xen.img ---- Here is my config file that I have used (for para): ----- name = "localhost_localdomain" uuid = "a57400f11c2138ec41087b80e813496e" maxmem = 512 memory = 512 vcpus = 1 bootloader = "/usr/bin/pygrub" disk = [ "file:/freespace/p2v-localhost_localdomain-200811061823-hda.img,hda,w" ] vif = [ "mac=00:16:3e:e6:3b:e2" ] on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" #keymap = "en-us" #serial = "pty" extra = "xencons=tty" bootloader = "/usr/bin/pygrub" vfb = [ ] vif = [ "mac=00:16:3e:17:03:9f,bridge=xenbr0" ] ---- The error I am getting is: -- [root at ha2 xen]# xm create /etc/xen/localhost_localdomain -c Using config file "/etc/xen/localhost_localdomain". Started domain localhost_localdomain PCI: Fatal: No PCI config space access function found rtc: IRQ 8 is not free. PCI: Fatal: No PCI config space access function found rtc: IRQ 8 is not free. i8042.c: No controller found. Red Hat nash version 5.1.19.6 starting Reading all physical volumes. This may take a while... No volume groups found Volume group "VolGroup00" not found mount: could not find filesystem '/dev/root' setuproot: moving /dev failed: No such file or directory setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! --- Any help will be appreciated. Thanks ! Paras. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradhanparas at gmail.com Fri Nov 7 16:28:11 2008 From: pradhanparas at gmail.com (Paras pradhan) Date: Fri, 7 Nov 2008 10:28:11 -0600 Subject: [et-mgmt-tools] mounting image Message-ID: <8b711df40811070828m9cc0d2dia5b39244d7f78b62@mail.gmail.com> hello all, How do I mount the image created by virt-p2v? I have a file p2v-localhost_localdomain-200811061823-hda.img which i wanted to mount and edit some settings. i am not able to mount it as: mount -o loop p2v-localhost_localdomain-200811061823-hda.img /somedir losetup -a tells it is linked to /dev/loop0. -- /dev/loop0: [0805]:12 (/p2v-localhost_localdomain-200811061823-hda.img) -- Thanks Paras. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmsdew at googlemail.com Sat Nov 8 17:49:58 2008 From: cmsdew at googlemail.com (Chris Dew) Date: Sat, 8 Nov 2008 17:49:58 +0000 Subject: [et-mgmt-tools] Adding a bridged network interface when creating a VM as a non-root user. Message-ID: I've just started using virt-manager and kvm. Apologies if the answer to this question can be found on the mailling list archive - I didn't find it easy to search. Package: virt-manager Version: 0.5.4-2ubuntu Architecture: amd64 Kernel: 2.6.27-7-server I've successfully created a VM (as root) to which I've managed to add a bridged ethernet interface. When I create a machine as a non-root user, the add hardware screen contains options to add a Storage Device, Input Device or Graphics Device. The option to add a Network Device (present as root) is missing. Is there any way to make the Network Device option appear (for non-root users)? Thanks, Chris. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jboggs at redhat.com Mon Nov 10 14:14:30 2008 From: jboggs at redhat.com (Joey Boggs) Date: Mon, 10 Nov 2008 09:14:30 -0500 Subject: [et-mgmt-tools] converting full to para In-Reply-To: <8b711df40811070824o7777648cu9aa6f10723cd3db6@mail.gmail.com> References: <8b711df40811070824o7777648cu9aa6f10723cd3db6@mail.gmail.com> Message-ID: <491841C6.2010009@redhat.com> I was using this process a few months back. Most likely what's happening is that it's missing the disk controller modules in the in initrd so it's not able to find your logical volumes. You'll will need to update your /etc/modprobe.conf to use the paravirt modules (xennet/xenblk) then rebuild the initrd. Should boot at that point. Paras pradhan wrote: > virt-p2v was able to convert my centOS 5.2 physical machine to xen > virtual machine and it runs great. Now, I am working on to convert > this full virt machine to para virt . > > Under my domU i have installed kernel-xen (since it is needed ) , and > edited my grub menu to use the installed kernel. > > My grub menu file in domU looks like: > > ---- > kernel /vmlinuz-2.6.18-92.1.17.el5xen ro root=/dev/VolGroup00/LogVol00 > rhgb quiet > initrd /initrd-2.6.18-92.1.17.el5xen.img > ---- > > Here is my config file that I have used (for para): > > ----- > name = "localhost_localdomain" > uuid = "a57400f11c2138ec41087b80e813496e" > maxmem = 512 > memory = 512 > vcpus = 1 > bootloader = "/usr/bin/pygrub" > disk = [ > "file:/freespace/p2v-localhost_localdomain-200811061823-hda.img,hda,w" ] > vif = [ "mac=00:16:3e:e6:3b:e2" ] > on_poweroff = "destroy" > on_reboot = "restart" > on_crash = "restart" > #keymap = "en-us" > #serial = "pty" > extra = "xencons=tty" > bootloader = "/usr/bin/pygrub" > vfb = [ ] > vif = [ "mac=00:16:3e:17:03:9f,bridge=xenbr0" ] > ---- > > > The error I am getting is: > > -- > > [root at ha2 xen]# xm create /etc/xen/localhost_localdomain -c > Using config file "/etc/xen/localhost_localdomain". > Started domain localhost_localdomain > PCI: Fatal: No PCI config space access function found > rtc: IRQ 8 is not free. > PCI: Fatal: No PCI config space access function found > rtc: IRQ 8 is not free. > i8042.c: No controller found. > Red Hat nash version 5.1.19.6 starting > Reading all physical volumes. This may take a while... > No volume groups found > Volume group "VolGroup00" not found > mount: could not find filesystem '/dev/root' > setuproot: moving /dev failed: No such file or directory > setuproot: error mounting /proc: No such file or directory > setuproot: error mounting /sys: No such file or directory > switchroot: mount failed: No such file or directory > Kernel panic - not syncing: Attempted to kill init! > --- > > > > Any help will be appreciated. > > Thanks ! > Paras. > > > ------------------------------------------------------------------------ > > _______________________________________________ > et-mgmt-tools mailing list > et-mgmt-tools at redhat.com > https://www.redhat.com/mailman/listinfo/et-mgmt-tools From jboggs at redhat.com Mon Nov 10 14:17:45 2008 From: jboggs at redhat.com (Joey Boggs) Date: Mon, 10 Nov 2008 09:17:45 -0500 Subject: [et-mgmt-tools] mounting image In-Reply-To: <8b711df40811070828m9cc0d2dia5b39244d7f78b62@mail.gmail.com> References: <8b711df40811070828m9cc0d2dia5b39244d7f78b62@mail.gmail.com> Message-ID: <49184289.8040409@redhat.com> To mount a disk image it's a little different than a regular loopback image. - Setup a loop device to the imagefile losetup /dev/loopX p2v-localhost_localdomain-200811061823-hda.img - Read the partitions kpartx -av /dev/loopX - Mount each partition as required mount /dev/mapper/loopXpX /MOUNTPOINT Paras pradhan wrote: > hello all, > > > How do I mount the image created by virt-p2v? > > I have a file p2v-localhost_localdomain-200811061823-hda.img which i > wanted to mount and edit some settings. > > i am not able to mount it as: mount -o > loop p2v-localhost_localdomain-200811061823-hda.img /somedir > > losetup -a tells it is linked to /dev/loop0. > > -- > /dev/loop0: [0805]:12 (/p2v-localhost_localdomain-200811061823-hda.img) > > -- > > > Thanks > Paras. > ------------------------------------------------------------------------ > > _______________________________________________ > et-mgmt-tools mailing list > et-mgmt-tools at redhat.com > https://www.redhat.com/mailman/listinfo/et-mgmt-tools From pradhanparas at gmail.com Mon Nov 10 16:35:58 2008 From: pradhanparas at gmail.com (Paras pradhan) Date: Mon, 10 Nov 2008 10:35:58 -0600 Subject: [et-mgmt-tools] Re: [Xen-users] converting full to para In-Reply-To: <49180BDC.9010707@oracle.com> References: <8b711df40811070824o7777648cu9aa6f10723cd3db6@mail.gmail.com> <49180BDC.9010707@oracle.com> Message-ID: <8b711df40811100835j1f9d250oa33a29f3a61b240c@mail.gmail.com> On Mon, Nov 10, 2008 at 4:24 AM, John Haxby wrote: > Paras pradhan wrote: > >> virt-p2v was able to convert my centOS 5.2 physical machine to xen virtual >> machine and it runs great. Now, I am working on to convert this full virt >> machine to para virt . >> >> Under my domU i have installed kernel-xen (since it is needed ) , and >> edited my grub menu to use the installed kernel. [snip] >> Red Hat nash version 5.1.19.6 starting >> Reading all physical volumes. This may take a while... >> No volume groups found >> Volume group "VolGroup00" not found >> mount: could not find filesystem '/dev/root' >> setuproot: moving /dev failed: No such file or directory >> setuproot: error mounting /proc: No such file or directory >> setuproot: error mounting /sys: No such file or directory >> switchroot: mount failed: No such file or directory >> Kernel panic - not syncing: Attempted to kill init! >> --- >> >> I think you're missing the xenblk driver. Try editing > /etc/modprobe.conf to look like this: > > alias eth0 xennet > alias scsi_hostadapter xenblk > > and then > > mkinitrd -f /boot/initrd-2.6.18-92.1.17.el5xen.img 2.6.18-92.1.17.el5xen > > jch Thanks !. It worked.... Paras. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.lindgren at gmail.com Tue Nov 11 12:54:18 2008 From: robert.lindgren at gmail.com (Robert Lindgren) Date: Tue, 11 Nov 2008 13:54:18 +0100 Subject: [et-mgmt-tools] virt-p2v phys->virt xfs issue Message-ID: Hi, When trying to convert a physical machine to a virtual machine with virt-p2v I get the following error: sh: mount '/dev/mapper/snapsda3' /mnt/root mount: Function not implemented Command failed: mount '/dev/mapper/snapsda3' /mnt/root Dmesg shows: XFS:device supports only 4096 byte sectors (not 512) I tried booting with ramdisk_bootsize=512, but that resulted in the same error. Please advice :) BR Robert Lindgren From bkearney at redhat.com Wed Nov 12 13:14:26 2008 From: bkearney at redhat.com (Bryan Kearney) Date: Wed, 12 Nov 2008 08:14:26 -0500 Subject: [et-mgmt-tools] Cobbler Image Cloning Patches Message-ID: <491AD6B2.6000200@redhat.com> Michael asked that I post a summary about the some cobbler patches from yesterday which provide a virt-image driver to koan. Here is the quick summary which I sent to the cobbler list: -- bk The patches allow the user to import a pre-configured image (virtual appliance) into cobbler, and to provision it via koan. Outside of koan, the process would be something akin to: I) Create the appliance from a kickstart file using he appliance-creator [1] tool. This creates a raw image file and a virt-image xml [2] file which is the metadata about the appliance. II) Locate a VMWare appliance and convert it the virt-image file using the virt-convert [3]tooling. Again, this gives you a raw disk and appliance metadata in the form of an XML File. III) Install the appliance into your hypervisor of choice using virt-image tool. These patches allow the metadata in the appliance xml file (output of I or II) to be stored within cobbler. The mapping for this information is below. Koan then uses this data on the client machine to copy the image file and to install it using virt-image libraries. In effect, this is step III above. The process for this is then: A) Assume you have an image which is located on network accessable storage B) Add the image to cobbler using "cobbler add image -name FOO ..... " or one of the APIs. The image-type should be virt-clone. C) Using koan, deploy the image using a command such as "koan --server localhost --image base --virt --virt-path /tmp" D) During deployment, koan will create one NIC based on the new network_count attribute. These are filled either with bridges defined in the image or with the default network connection. The image type of "virt-clone" will tell koan to use the virt-image driver. The --virt-path argument says where to copy the image to locally.. since this is a clone. The --virt-type argument can be used, or virt-image will detect your hypervisor. I would like to see a tool which does all of step B based off of the existing xml file, but that is not written yet. I also noticed I need to add network_count to the cli add function. Any comments or concerns are appreciated. -- bk [1] http://www.thincrust.net/tooling.html [2] http://people.redhat.com/dlutter/kronolith-appliance/virt-image-xml.html [3] http://www.thincrust.net/tooling-conversion.html Mapping between Cobbler and virt-image xml =========================================== Cobbler :: Virt-Image-XML :: Notes CobblerImage.name :: image.name :: Overridden at command line CobblerImage.arch :: None :: Need to translate this since virt-image seems to use i686 not i386 CobblerImage.file :: image.domain.boot.drive | image.storage.disk at file :: What is lost is the ability to denote boot drives CobblerImage.parent :: None :: Not needed as this is internal cobbler logic CobblerImage.depth :: None :: Not needed as this is internal cobbler logic CobblerImage.owners :: None :: Not needed as this is internal cobbler logic CobblerImage.virt_ram :: image.domain.devices.memory :: CobblerImage.virt_file_size :: None :: CobblerImage.virt_path :: None :: Used to denote where to copy the image on the local filesystem CobblerImage.virt_cpus :: image.domain.devices.vcpu :: CobblerImae.network_count :: image.domain.networks :: CobblerImage.virt_type :: image.domain.boot at type | image.domain.boot.os.loader at dev :: See Issue 2 CobblerImage.virt_bridge :: :: Creates one nic on the guest for each entry CobblerImage.xml_file :: None :: No need to store the file, virt-image is called directlry CobblerImage.image_type :: virt-clone :: May need to break this down once we resolve the issues below CobblerImage.breed, :: None :: CobblerImage.os_version, :: None :: From ruben_arutyunyan at shl.ru Wed Nov 12 14:25:12 2008 From: ruben_arutyunyan at shl.ru (Arutyunyan Ruben) Date: Wed, 12 Nov 2008 17:25:12 +0300 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio Message-ID: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> Hello everyone, i just recently installed KVM(on Ubuntu 8.04) and virt-manager was of great help when i had to deploy few Win 2003 guests. The only problem i have now is networking. I use bridged network and its fine xept one thing - its 100 mbit. What i need is 1 Gbs link(my network card allows that). Seems to fully utilise nw card i need to install virtio network device, then drivers for it from Windows and be a happy. I found this how-to http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers , but i dont understand how to make virtio device available for guest if i dont start machine manually via command line, but want to incorporate it into xml. Any help will be greatly appreciated. Thanks in advance. Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From crobinso at redhat.com Wed Nov 12 14:34:28 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 12 Nov 2008 09:34:28 -0500 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> Message-ID: <491AE974.5040704@redhat.com> Arutyunyan Ruben wrote: > Hello everyone, > > i just recently installed KVM(on Ubuntu 8.04) and virt-manager was of great help when i had to deploy few Win 2003 guests. The only problem i have now is networking. I use bridged network and its fine xept one thing - its 100 mbit. What i need is 1 Gbs link(my network card allows that). Seems to fully utilise nw card i need to install virtio network device, then drivers for it from Windows and be a happy. I found this how-to http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers , but i dont understand how to make virtio device available for guest if i dont start machine manually via command line, but want to incorporate it into xml. > > Any help will be greatly appreciated. Thanks in advance. > > Ruben > virt-manager doesn't yet support adding a virtio nic to an existing guest, but we will soon. You'll have to make the changes via the command line. What you will want to do is: - stop your vm - virsh dumpxml YOURVM > xml - edit xml, and add: to the block. - virsh define xml - start the vm Thanks, Cole From fhimpe at telenet.be Wed Nov 12 14:45:35 2008 From: fhimpe at telenet.be (Frederik Himpe) Date: Wed, 12 Nov 2008 15:45:35 +0100 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> Message-ID: <20081112144535.GA32677@telenet.be> On Wed, Nov 12, 2008 at 05:25:12PM +0300, Arutyunyan Ruben wrote: > I found this how-to > [1]http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers , > but i dont understand how to make virtio device available for guest if i > dont start machine manually via command line, but want to incorporate it > into xml. http://wiki.libvirt.org/page/Virtio -- Frederik Himpe From ruben_arutyunyan at shl.ru Wed Nov 12 16:55:58 2008 From: ruben_arutyunyan at shl.ru (Ruben Arutyunyan) Date: Wed, 12 Nov 2008 19:55:58 +0300 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <491AE974.5040704@redhat.com> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> <491AE974.5040704@redhat.com> Message-ID: <41C29020B5E34F968A1B8110392E46E6@hetyhome> Thanks, that helped alot. But now i have another issue... My section now looks like that: I log into win box using virt-manager console and start installing driver for network card. And guest hangs. No errors, nothing. Just hangs completely during copying driver files. Any ideas? Ruben > Arutyunyan Ruben wrote: >> Hello everyone, >> >> i just recently installed KVM(on Ubuntu 8.04) and virt-manager was of >> great help when i had to deploy few Win 2003 guests. The only problem i >> have now is networking. I use bridged network and its fine xept one >> thing - its 100 mbit. What i need is 1 Gbs link(my network card allows >> that). Seems to fully utilise nw card i need to install virtio network >> device, then drivers for it from Windows and be a happy. I found this >> how-to >> http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers , >> but i dont understand how to make virtio device available for guest if i >> dont start machine manually via command line, but want to incorporate it >> into xml. >> >> Any help will be greatly appreciated. Thanks in advance. >> >> Ruben >> > > virt-manager doesn't yet support adding a virtio nic to > an existing guest, but we will soon. You'll have to make > the changes via the command line. > > What you will want to do is: > > - stop your vm > - virsh dumpxml YOURVM > xml > > - edit xml, and add: > > > > to the block. > > - virsh define xml > - start the vm > > Thanks, > Cole > From crobinso at redhat.com Wed Nov 12 17:05:16 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 12 Nov 2008 12:05:16 -0500 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <41C29020B5E34F968A1B8110392E46E6@hetyhome> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> <491AE974.5040704@redhat.com> <41C29020B5E34F968A1B8110392E46E6@hetyhome> Message-ID: <491B0CCC.5000006@redhat.com> Ruben Arutyunyan wrote: > Thanks, that helped alot. But now i have another issue... > > My section now looks like that: > > > > > > > I log into win box using virt-manager console and start installing driver > for network card. And guest hangs. No errors, nothing. Just hangs completely > during copying driver files. Any ideas? > No idea, could be a bug anywhere in the stack. Maybe remove the net device from the VM entirely, install the drivers, then reattach the nic. Assumably windows will just detect it correctly at that point. - Cole From ruben_arutyunyan at shl.ru Sat Nov 15 23:56:54 2008 From: ruben_arutyunyan at shl.ru (Ruben Arutyunyan) Date: Sun, 16 Nov 2008 02:56:54 +0300 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <491B0CCC.5000006@redhat.com> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> <491AE974.5040704@redhat.com> <41C29020B5E34F968A1B8110392E46E6@hetyhome> <491B0CCC.5000006@redhat.com> Message-ID: Ok, i managed to install the driver. Tried all version for both XP and 2K i could find. If driver install correctly then after more than zero acticity it gives me BSOD with BUGCODE_NDIS_DRIVER. According to MS support pages this means that "An Ethernet driver indicated that it received a packet by using a packet descriptor that the protocol stack is currently using." Anyone seen anything like that? Ruben ----- Original Message ----- From: "Cole Robinson" To: "Ruben Arutyunyan" Cc: "Fedora/Linux Management Tools" Sent: Wednesday, November 12, 2008 8:05 PM Subject: Re: [et-mgmt-tools] KVM, Virt-manager and virtio > Ruben Arutyunyan wrote: >> Thanks, that helped alot. But now i have another issue... >> >> My section now looks like that: >> >> >> >> >> >> >> I log into win box using virt-manager console and start installing driver >> for network card. And guest hangs. No errors, nothing. Just hangs >> completely >> during copying driver files. Any ideas? >> > > No idea, could be a bug anywhere in the stack. Maybe > remove the net device from the VM entirely, install > the drivers, then reattach the nic. Assumably windows > will just detect it correctly at that point. > > - Cole > > From erenoglu at gmail.com Sun Nov 16 00:33:47 2008 From: erenoglu at gmail.com (Emre Erenoglu) Date: Sun, 16 Nov 2008 01:33:47 +0100 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> <491AE974.5040704@redhat.com> <41C29020B5E34F968A1B8110392E46E6@hetyhome> <491B0CCC.5000006@redhat.com> Message-ID: Hi, On Sun, Nov 16, 2008 at 12:56 AM, Ruben Arutyunyan wrote: > Ok, i managed to install the driver. Tried all version for both XP and 2K i > could find. If driver install correctly then after more than zero acticity > it gives me BSOD with BUGCODE_NDIS_DRIVER. According to MS support pages > this means that "An Ethernet driver indicated that it received a packet by > using a packet descriptor that the protocol stack is currently using." > > Anyone seen anything like that? > I was using the virtio drivers with KVM (with command line or qtemu gui svn), on a Windows guest with virtio drivers. Did you try to launch the guest without virt-manager, ie command line, and test like that? -- Emre -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlaor at redhat.com Sun Nov 16 11:01:31 2008 From: dlaor at redhat.com (Dor Laor) Date: Sun, 16 Nov 2008 13:01:31 +0200 Subject: [et-mgmt-tools] KVM, Virt-manager and virtio In-Reply-To: <491FE6C9.2020003@redhat.com> References: <23C193AA7CEE4ECA8407683F4B5E4818@shl.local> <491AE974.5040704@redhat.com> <41C29020B5E34F968A1B8110392E46E6@hetyhome> <491B0CCC.5000006@redhat.com> <491FE6C9.2020003@redhat.com> Message-ID: <491FFD8B.5070302@redhat.com> Emre Erenoglu wrote: >> Hi, >> >> On Sun, Nov 16, 2008 at 12:56 AM, Ruben Arutyunyan >> > wrote: >> >> Ok, i managed to install the driver. Tried all version for both >> XP and 2K i could find. If driver install correctly then after >> more than zero acticity it gives me BSOD with >> BUGCODE_NDIS_DRIVER. According to MS support pages this means >> that "An Ethernet driver indicated that it received a packet by >> using a packet descriptor that the protocol stack is currently >> using." >> >> Anyone seen anything like that? >> >> >> I was using the virtio drivers with KVM (with command line or qtemu >> gui svn), on a Windows guest with virtio drivers. Did you try to >> launch the guest without virt-manager, ie command line, and test like >> that? >> Are you using the latest virtio driver? It can be found at http://kvm.qumranet.com/kvmwiki/VirtioWindowsDrivers Please use the http://people.qumranet.com/dor/Drivers-0-3107.iso one. If you had used it, please send the exact scenario, kvm userspace/kernel release. Regards, Dor. >> -- >> Emre >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> et-mgmt-tools mailing list >> et-mgmt-tools at redhat.com >> https://www.redhat.com/mailman/listinfo/et-mgmt-tools > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan at fishycam.com Tue Nov 18 10:50:35 2008 From: stephan at fishycam.com (Stephan) Date: Tue, 18 Nov 2008 10:50:35 +0000 Subject: [et-mgmt-tools] How to specify the IP VNC listens on when using virt-install remotely over SSH Message-ID: <0c84ac3210e6d83f9be2e39db73ea77e@localhost> Hi, I'm trying to install a virtual machine from a .iso DVD image but am having problems, as VNC is listening on 127.0.0.1 only and this is a headless server. Just as a bit of background information, I'm doing this via SSH on a Dell Poweredge server which has Ubuntu Server 8.10 on and libvirt 0.4.4-3ubuntu3. So far I've successfully virtualised Ubuntu using the Ubuntu vm-builder and can connect to the screens via VNC. The command I'm using to install from .iso images is: sudo virt-install --hvm --accelerate --os-type=linux --bridge=br0 --ram=256 --vcpus=4 --check-cpu --name=centos1 --file-size=4 --vnc --file=/home/stephan/centos1 --location=/home/picseltech/centos.iso This is fine, it starts off the install and tells me I can connect via VNC to finish it off. However, unfortunately the VNC connection is only accessible through 127.0.0.1 and I'm doing this remotely. Is there a way to specify the VNC listening IP address for the new virtual machine? In /etc/libvirt/qemu.conf I put vnc_listen = "172.16.1.10" , but it doesn't pick that up. I've read the virt-install man page, but it only says how to specify the port. I can make it listen on the right IP by changing /etc/libvirt/qemu/centos1.xml to this once the machine has been created: then redefining it through virsh and stopping/restarting the virtual machine, but by that point the install has messed up. Is there a way to specify what IP VNC listens on before the install starts? Thanks for your help. Best regards, Stephan From berrange at redhat.com Tue Nov 18 10:56:31 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Tue, 18 Nov 2008 10:56:31 +0000 Subject: [et-mgmt-tools] How to specify the IP VNC listens on when using virt-install remotely over SSH In-Reply-To: <0c84ac3210e6d83f9be2e39db73ea77e@localhost> References: <0c84ac3210e6d83f9be2e39db73ea77e@localhost> Message-ID: <20081118105631.GA6670@redhat.com> On Tue, Nov 18, 2008 at 10:50:35AM +0000, Stephan wrote: > > Hi, > > I'm trying to install a virtual machine from a .iso DVD image but am having > problems, as VNC is listening on 127.0.0.1 only and this is a headless > server. > > Just as a bit of background information, I'm doing this via SSH on a Dell > Poweredge server which has Ubuntu Server 8.10 on and libvirt > 0.4.4-3ubuntu3. So far I've successfully virtualised Ubuntu using the > Ubuntu vm-builder and can connect to the screens via VNC. > > The command I'm using to install from .iso images is: > > sudo virt-install --hvm --accelerate --os-type=linux --bridge=br0 --ram=256 > --vcpus=4 --check-cpu --name=centos1 --file-size=4 --vnc > --file=/home/stephan/centos1 --location=/home/picseltech/centos.iso > > This is fine, it starts off the install and tells me I can connect via VNC > to finish it off. However, unfortunately the VNC connection is only > accessible through 127.0.0.1 and I'm doing this remotel NB, if you're connecting via SSH, then there is not any need to actually make it listen on a public interface. virt-viewer will automatically tunnel VNC connection over SSH too, eg eg, if you're using QEMU/KVM, then virt-viewer --connect qemu+ssh://root at somehostname/system centos1 Will connect to VNC remotely over SSH. > Is there a way to specify the VNC listening IP address for the new virtual > machine? > > In /etc/libvirt/qemu.conf I put vnc_listen = "172.16.1.10" , but it doesn't > pick that up. Did you remember to restart the libvirtd daemon after making this change ? This is the recommended way to make it listen on a public interface. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From stephan at fishycam.com Tue Nov 18 11:00:46 2008 From: stephan at fishycam.com (Stephan) Date: Tue, 18 Nov 2008 11:00:46 +0000 Subject: [et-mgmt-tools] How to specify the IP VNC listens on when usingvirt-install remotely over SSH In-Reply-To: <20081118105631.GA6670@redhat.com> References: <0c84ac3210e6d83f9be2e39db73ea77e@localhost> <20081118105631.GA6670@redhat.com> Message-ID: <2f9ef1ec8c3e58fc62eff1ab3cc8136c@localhost> > Did you remember to restart the libvirtd daemon after making this change ? > This is the recommended way to make it listen on a public interface. > > Daniel Doh, of course! I feel stupid now. I was sure I had, but I guess I hadn't, I've been trying a lot of stuff out recently. Thanks very much for the tips and very fast reply! Best regards, Stephan From enzomedici at yahoo.com Wed Nov 19 05:40:51 2008 From: enzomedici at yahoo.com (Enzo Medici) Date: Tue, 18 Nov 2008 21:40:51 -0800 (PST) Subject: [et-mgmt-tools] Virt-Manager Valid Install Media URLs... Message-ID: <96301.14022.qm@web110113.mail.gq1.yahoo.com> Ok, so I've gotten a Xen kernel installed just fine and booted. Now I'm trying to get a domU installed and am having trouble with the install media urls which are not clearly explained anywhere on the internet. All I see is use a valid install url without any explanation of what that actually is. For example, you would think you could use a .iso file, but you cannot. It doesn't appear that you can use a local install extract as all I see are FTP, HTTP or NFS servers. 1. What constitutes a valid install media URL? What does virt-manager look for at this URL? 2. How do you get a valid install media URL for a particular Linux distribution? I looked at Ubuntu mirrors and don't see anything that looks like I can use. 3. How can you create / extract the install directory from an .iso file? I can mount the iso and copy the contents to a directory, but what particular path do I use for the base directory for the install URL? 4. What are valid install media URLS for: Ubuntu, Fedora, OpenSolaris, & Centos5? Any help on this would be greatly appreciated. I will also add this to a blog and do a write up so that others don't go through the pain that I have. After 24 hours of Googling, I can't find these answers and this should certainly be part of the Xen FAQ and Virt-Manager docs too. I see a lot of similar questions, but no answers. Thanks, -Enzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From berrange at redhat.com Wed Nov 19 11:17:28 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Wed, 19 Nov 2008 11:17:28 +0000 Subject: [et-mgmt-tools] Virt-Manager Valid Install Media URLs... In-Reply-To: <96301.14022.qm@web110113.mail.gq1.yahoo.com> References: <96301.14022.qm@web110113.mail.gq1.yahoo.com> Message-ID: <20081119111728.GE24631@redhat.com> On Tue, Nov 18, 2008 at 09:40:51PM -0800, Enzo Medici wrote: > > > Ok, so I've gotten a Xen kernel installed just fine and booted. Now I'm trying to get a domU installed and am having trouble with the install media urls which are not clearly explained anywhere on the internet. All I see is use a valid install url without any explanation of what that actually is. For example, you would think you could use a .iso file, but you cannot. It doesn't appear that you can use a local install extract as all I see are FTP, HTTP or NFS servers. > > 1. What constitutes a valid install media URL? What does virt-manager look for at this URL? The install media URL is a URL that points to your OS distribution tree. eg, in Fedora world it'd be http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os/ If you have mounted the DVD ISO image somewhere and exportedvia NFS, HTTP or FTP, you can point to that > > 2. How do you get a valid install media URL for a particular Linux distribution? I looked at Ubuntu > mirrors and don't see anything that looks like I can use. Again, the top level directory of the particular OS distro install media. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From crobinso at redhat.com Wed Nov 19 14:49:54 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 19 Nov 2008 09:49:54 -0500 Subject: [et-mgmt-tools] Virt-Manager Valid Install Media URLs... In-Reply-To: <96301.14022.qm@web110113.mail.gq1.yahoo.com> References: <96301.14022.qm@web110113.mail.gq1.yahoo.com> Message-ID: <49242792.40504@redhat.com> Enzo Medici wrote: > > Ok, so I've gotten a Xen kernel installed just fine and booted. Now I'm trying to get a domU installed and am having trouble with the install media urls which are not clearly explained anywhere on the internet. All I see is use a valid install url without any explanation of what that actually is. For example, you would think you could use a .iso file, but you cannot. It doesn't appear that you can use a local install extract as all I see are FTP, HTTP or NFS servers. > > 1. What constitutes a valid install media URL? What does virt-manager look for at this URL? > > 2. How do you get a valid install media URL for a particular Linux distribution? I looked at Ubuntu > mirrors and don't see anything that looks like I can use. > We actually don't have support in the backend for fetching kernels from ubuntu trees. I was playing with this over the weekend though and I have a patch that will fix it. This may work at the moment though since it could be detected as a debian tree. > 3. How can you create / extract the install directory from an .iso file? I can mount the iso and copy > the contents to a directory, but what particular path do I use for the base directory for the install URL? > > 4. What are valid install media URLS for: Ubuntu, Fedora, OpenSolaris, & Centos5? > For fedora, it has varied a bit for different releases, but basically whatever ends in {ARCH}/os: http://download.fedora.redhat.com/pub/fedora/linux/releases/9/Fedora/x86_64/os/ CentOS is similar, but seems to have ARCH and os reversed: http://mirrors.cmich.edu/centos/5/os/x86_64/ Debian/Ubuntu trees are everything up to the install-{arch} dir: http://us.archive.ubuntu.com/ubuntu/dists/etch/main/installer-i386 Does OpenSolaris even have links to trees? I could only find links to install media. - Cole From FCOMBERNOUS at ares.fr Wed Nov 19 15:34:00 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Wed, 19 Nov 2008 16:34:00 +0100 Subject: [et-mgmt-tools] Howto configure "shared physical device" without GUI Message-ID: Lo, My host manager have a bridge configured with interface br0. On this one, i'm using kvm with libvirt. I'm trying to add, in the network configuration, a "shared physical device" more than the provided by default. I read the documentation [1] explaining how the xml network is structured. But, i didn't found how to build the xml to put it in the path /etc/libvirt/qemu/networks. Is it vith virsh ? If yes, how to do it ? Later, [1] http://libvirt.org/formatnetwork.html -- Fabien?COMBERNOUS IT?Engineer,?Open?source?specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From crobinso at redhat.com Wed Nov 19 15:41:08 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 19 Nov 2008 10:41:08 -0500 Subject: [et-mgmt-tools] Howto configure "shared physical device" without GUI In-Reply-To: References: Message-ID: <49243394.9030005@redhat.com> FCOMBERNOUS at ares.fr wrote: > Lo, > > My host manager have a bridge configured with interface br0. On this one, > i'm using kvm with libvirt. > I'm trying to add, in the network configuration, a "shared physical device" > more than the provided by default. > The network you are trying to build won't show up as a 'shared physical device' fyi, it will show up as a virtual network. Shared physical device basically means a bridge. > I read the documentation [1] explaining how the xml network is structured. > But, i didn't found how to build the xml to put it in the > path /etc/libvirt/qemu/networks. > > Is it vith virsh ? If yes, how to do it ? > You will want to use the virsh net-* commands. So net-define, net-start, etc. - Cole From berrange at redhat.com Wed Nov 19 15:44:48 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Wed, 19 Nov 2008 15:44:48 +0000 Subject: [et-mgmt-tools] Howto configure "shared physical device" without GUI In-Reply-To: References: Message-ID: <20081119154448.GP24631@redhat.com> On Wed, Nov 19, 2008 at 04:34:00PM +0100, FCOMBERNOUS at ares.fr wrote: > > My host manager have a bridge configured with interface br0. On this one, > i'm using kvm with libvirt. > I'm trying to add, in the network configuration, a "shared physical device" > more than the provided by default. See the docs on shared physical devices here: http://wiki.libvirt.org/page/Networking Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From FCOMBERNOUS at ares.fr Wed Nov 19 16:09:54 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Wed, 19 Nov 2008 17:09:54 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_Howto_configure_shared?= =?ISO-8859-1?Q?_physical_device_without_GUI?= In-Reply-To: <20081119154448.GP24631@redhat.com> References: , <20081119154448.GP24631@redhat.com> Message-ID: -----et-mgmt-tools-bounces at redhat.com a ?crit : ----- [...] > >See?the?docs?on?shared?physical?devices?here: > >http://wiki.libvirt.org/page/Networking It's what i did to setup my bridge interface br0. So now i have a bridge. My goal is to permit my guests hosts to be reachable transparently (like if they are a "real" computers with a "real" network interface plugged). If i understand what i read, i need : -1- create a new virtual network called in virt-manager "shared physical device". -2- create a guest using this network. I need to build an xml corresponding to the "shared physical device". Is it correct ? -- Fabien COMBERNOUS IT Engineer, Open source specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From FCOMBERNOUS at ares.fr Wed Nov 19 16:13:52 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Wed, 19 Nov 2008 17:13:52 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_Howto_configure_?= In-Reply-To: <49243394.9030005@redhat.com> References: , <49243394.9030005@redhat.com> Message-ID: -- Fabien?COMBERNOUS IT?Engineer,?Open?source?specialist http://www.ares.fr -----Cole Robinson a ?crit : ----- >Pour?:?Fedora/Linux?Management?Tools? >De?:?Cole?Robinson? >Date?:?19/11/2008?16:41 >cc?:?fcombernous at ares.fr >Objet : Re: [et-mgmt-tools] Howto configure "shared physical device" >without?GUI > >FCOMBERNOUS at ares.fr?wrote: >>?Lo, >> >> My host manager have a bridge configured with interface br0. On >>this?one, >>?i'm?using?kvm?with?libvirt. >> I'm trying to add, in the network configuration, a "shared physical >> device"?more?than?the?provided?by?default. >> > >The network you are trying to build won't show up as a 'shared >physical >device'?fyi,?it?will?show?up?as?a?virtual?network.?Shared?physical >device?basically?means?a?bridge. What i want is that my physical device is shared between the guest and the host in effect. **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From stephan at fishycam.com Wed Nov 19 16:14:26 2008 From: stephan at fishycam.com (Stephan) Date: Wed, 19 Nov 2008 16:14:26 +0000 Subject: =?UTF-8?Q?R=C3=A9f=2E=20=3A=20Re=3A=20=5Bet-mgmt-tools=5D=20Howto=20c?= =?UTF-8?Q?onfigure=20shared=20physical=20device=20without=20GUI?= In-Reply-To: References: , <20081119154448.GP24631@redhat.com> Message-ID: <1ab4bd15d2a16c88e0b07ff92d59abad@localhost> Hi, I think you can just edit /etc/vmbuilder/libvirt/libvirtxml.tmpl Replace the ... section with this: That's the template for new virtual machines as I understand it anyway. Then when you create the virtual machines, you give them real IP addresses and it all just works (it's different for NAT I guess, but I'm not using NAT). I hope that helps a bit. The others can correct me if I'm wrong. Best regards, Stephan Hughson From FCOMBERNOUS at ares.fr Thu Nov 20 14:57:23 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Thu, 20 Nov 2008 15:57:23 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_?= =?ISO-8859-1?Q?Howto_configure_shared_physical_device_without_GUI?= In-Reply-To: <1ab4bd15d2a16c88e0b07ff92d59abad@localhost> References: , <20081119154448.GP24631@redhat.com> , <1ab4bd15d2a16c88e0b07ff92d59abad@localhost> Message-ID: Lo, -----et-mgmt-tools-bounces at redhat.com a ?crit : ----- >Pour?:?Fedora/Linux?Management?Tools? >De?:?Stephan? >I?think?you?can?just?edit?/etc/vmbuilder/libvirt/libvirtxml.tmpl [...] It works like a charm. If i understand, now i have only bridged host installed by virt-install. Best regards. -- Fabien COMBERNOUS IT Engineer, Open source specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From levon at movementarian.org Thu Nov 20 22:48:39 2008 From: levon at movementarian.org (John Levon) Date: Thu, 20 Nov 2008 22:48:39 +0000 Subject: [et-mgmt-tools] [PATCH] Make image.rng validate again Message-ID: <20081120224839.GA15394@totally.trollied.org.uk> # HG changeset patch # User john.levon at sun.com # Date 1227221316 0 # Node ID 0b702b125df9d13ebeedd995ec87e4154d5a9680 # Parent 7c441371a3fd35860e61d3cd7c53ede696e50075 Make image.rng validate again The new checksum element wasn't valid. Signed-off-by: John Levon diff --git a/doc/image.rng b/doc/image.rng --- a/doc/image.rng +++ b/doc/image.rng @@ -200,8 +200,10 @@ - sha1 - sha256 + + sha1 + sha256 + From dlbewley at lib.ucdavis.edu Sat Nov 22 21:21:35 2008 From: dlbewley at lib.ucdavis.edu (Dale Bewley) Date: Sat, 22 Nov 2008 13:21:35 -0800 Subject: [et-mgmt-tools] Fedora 10 Release and Virtualization News Message-ID: <1227388895.6032.35.camel@seitan.home.bewley.net> Sorry for the annoying cross post. The next Fedora Weekly News[1] will be published Monday, one day before the release of Fedora 10. I would like dedicate a special section of the Virtualization Beat[2] to touting the advances and new features in F10. As with the release notes[3], I am seeking your input. (A little late, I know.) I'm interested not only in the new virtualization features and breakthroughs found in the F10 release, but also any updates that might be right around the corner in f10-updates. Perhaps you have some special insight into the upstream progress of pv_ops, or maybe you know about a almost complete implementation of a libvirt API feature into virt-manager or... I'm sorry if this is a little scattershot. For sometime, I've considered trying to present questions in interview style to each of these lists, but I just haven't gotten that together. The publication deadline is Sunday night, but I'll be able to use anything in the next edition of FWN. Please contribute, even if you read this on Monday. [1] http://fedoraproject.org/wiki/FWN [2] http://fedoraproject.org/wiki/FWN/Beats/Virtualization [3] http://fedoraproject.org/wiki/Docs/Beats/Virtualization -- Dale Bewley - Unix Administrator - Shields Library - UC Davis GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD 1753 064D 2583 B098 A0F3 From sameer.subscriptions at damagehead.com Mon Nov 24 09:09:03 2008 From: sameer.subscriptions at damagehead.com (Sameer Naik) Date: Mon, 24 Nov 2008 14:39:03 +0530 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support Message-ID: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> Hi, I have been using virt-manager for a long long time now. Recently i have been facing an issue... when i try to install windows xp (sp3) with multiprocessor support (i.e. vcpu allocation > 1) the system installs fine, but then virt-manager displays very high cpu (24-30%) utilization, even when the xp guest is idle. also when i try to poweroff the system, i get the "It is now Safe to poweroff your computer" message and also when this message is displayed the cpu utilzation is around 24-30%. After posting a similar mail to the xend-users mailing list, i was advised to use ACPI=1 and APIC=1 in the domU configuration. But since i am using virt-manager i have no idea where i should put these values and whether i need to specify these before installing xp or whether it can be done after installing. Or should i create ahand written domU configuration and use "xm create" to create the virtual machine? Please Help -------------- next part -------------- An HTML attachment was scrubbed... URL: From henkvl at cs.uu.nl Mon Nov 24 15:27:42 2008 From: henkvl at cs.uu.nl (Henk van Lingen) Date: Mon, 24 Nov 2008 16:27:42 +0100 Subject: [et-mgmt-tools] Virt-install to nfs disk Message-ID: <20081124152742.GC2912@cs.uu.nl> Hi, Is it possible to install a hvm guest on a nfs exported partition with virt-install? And if so, what shoud be the commandline options? I can't find anything about it. (Rhel 5.2) I.e. the relevant part of /etc/xen/huest should become something like: root = "/dev/nfs" nfs_server = '*.*.*.*' nfs_root = '/vol/vhost_someguest_root' regards, -- Henk van Lingen, Systems Administrator & DBA (o- -+ Dept. of Computer Science, Utrecht University. /\ | phone: +31-30-2534107 v_/_ http://henk.vanlingen.net/ http://www.tuxtown.net/netiquette/ From crobinso at redhat.com Mon Nov 24 15:35:02 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 24 Nov 2008 10:35:02 -0500 Subject: [et-mgmt-tools] Virt-install to nfs disk In-Reply-To: <20081124152742.GC2912@cs.uu.nl> References: <20081124152742.GC2912@cs.uu.nl> Message-ID: <492AC9A6.8060607@redhat.com> Henk van Lingen wrote: > Hi, > > Is it possible to install a hvm guest on a nfs exported partition > with virt-install? And if so, what shoud be the commandline options? > I can't find anything about it. (Rhel 5.2) > > I.e. the relevant part of /etc/xen/huest should become something like: > > root = "/dev/nfs" > nfs_server = '*.*.*.*' > nfs_root = '/vol/vhost_someguest_root' > Unfortunately, no. These options aren't supported at the libvirt level so virt-install doesn't know anything about them. Thanks, Cole From crobinso at redhat.com Mon Nov 24 15:43:22 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 24 Nov 2008 10:43:22 -0500 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> Message-ID: <492ACB9A.8020606@redhat.com> Sameer Naik wrote: > Hi, > I have been using virt-manager for a long long time now. > Recently i have been facing an issue... when i try to install windows xp > (sp3) with multiprocessor > support (i.e. vcpu allocation > 1) the system installs fine, but then > virt-manager displays very high > cpu (24-30%) utilization, even when the xp guest is idle. also when i try to > poweroff the system, i get the "It is now > Safe to poweroff your computer" message and also when this message is > displayed the cpu utilzation is around > 24-30%. > > After posting a similar mail to the xend-users mailing list, i was advised > to use ACPI=1 and APIC=1 in > the domU configuration. But since i am using virt-manager i have no idea > where i should put these values and > whether i need to specify these before installing xp or whether it can be > done after installing. > > Or should i create ahand written domU configuration and use "xm create" to > create the virtual machine? > > Please Help > There isn't support in virt-manager for changing acpi and apic values of an existing guest (yet). You can change these values via the command line: virsh dumpxml vmname > xml edit xml: between the block and the block, add virsh define xml If you are using f9 or f10, the above can be simplified with the 'virsh edit' command, which will alter the xml in place. Thanks, Cole From crobinso at redhat.com Mon Nov 24 22:22:16 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 24 Nov 2008 17:22:16 -0500 Subject: [et-mgmt-tools] Fedora 10 Release and Virtualization News In-Reply-To: <1227388895.6032.35.camel@seitan.home.bewley.net> References: <1227388895.6032.35.camel@seitan.home.bewley.net> Message-ID: <492B2918.2080809@redhat.com> Dale Bewley wrote: > Sorry for the annoying cross post. > > The next Fedora Weekly News[1] will be published Monday, one day before > the release of Fedora 10. I would like dedicate a special section of the > Virtualization Beat[2] to touting the advances and new features in F10. > > As with the release notes[3], I am seeking your input. (A little late, I > know.) I'm interested not only in the new virtualization features and > breakthroughs found in the F10 release, but also any updates that might > be right around the corner in f10-updates. > > Perhaps you have some special insight into the upstream progress of > pv_ops, or maybe you know about a almost complete implementation of a > libvirt API feature into virt-manager or... > > I'm sorry if this is a little scattershot. For sometime, I've considered > trying to present questions in interview style to each of these lists, > but I just haven't gotten that together. > > The publication deadline is Sunday night, but I'll be able to use > anything in the next edition of FWN. Please contribute, even if you read > this on Monday. > I'm planning on making a more specific roadmap for virtinst/virt-manager for the time leading up to F11, but some of the user facing pieces on the (potential) horizon: - UI Overhaul: Includes largely refactored 'New VM' wizard and a new 'manager' interface. A Red Hat guy worked up some UI mockups internally that I'll be posting for community feedback soon. None of it is set in stone so there is plenty of wiggle room. Oh, and new icons :) - VM Cloning: We've had code for this at the virtinst level for awhile, just needs to be brought up and exposed in virt-manager. This could also work over remote connections, we just need a 'volume duplicate' API in libvirt. - Lot's of libvirt catchup: The next libvirt release will have host device enumeration, so we could have a wizard which shows all your usb or pci devices in a drop down, which you can then hotplug to the VM. Not to mention storage enumeration, proper wizards for sound and character devices, and the new events api which will clean up virt-manager internals and hopefully make the app scale a lot nicer. Those are the straightforward ideas, other more interesting priorities could pop up over the next few months (maybe virt-manager/virtinst linux container support?) BTW, thanks a lot for all your hard work. Docs can be a thankless task, but the help is greatly appreciated. Thanks, Cole From crobinso at redhat.com Mon Nov 24 22:23:48 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 24 Nov 2008 17:23:48 -0500 Subject: [et-mgmt-tools] [PATCH] Make image.rng validate again In-Reply-To: <20081120224839.GA15394@totally.trollied.org.uk> References: <20081120224839.GA15394@totally.trollied.org.uk> Message-ID: <492B2974.3010304@redhat.com> John Levon wrote: > # HG changeset patch > # User john.levon at sun.com > # Date 1227221316 0 > # Node ID 0b702b125df9d13ebeedd995ec87e4154d5a9680 > # Parent 7c441371a3fd35860e61d3cd7c53ede696e50075 > Make image.rng validate again > > The new checksum element wasn't valid. > > Signed-off-by: John Levon > Thanks, applied: http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=12bbbbbb1529 - Cole From crobinso at redhat.com Mon Nov 24 22:24:45 2008 From: crobinso at redhat.com (Cole Robinson) Date: Mon, 24 Nov 2008 17:24:45 -0500 Subject: [et-mgmt-tools] FYI: Changes to virtinst test suite Message-ID: <492B29AD.1030101@redhat.com> Hi all, I've added some changes to the virtinst test suite that will affect anyone writing patches. Two commands have been added to the setup.py script: python setup.py check : runs a pylint wrapper against the codebase python setup.py test_urls: runs a url fetching test suite A patch shouldn't change the output of 'check'. If you hit something which you think is a false positive or an unnecessary check, bring it up on the list (though I've tried to remove all the blatantly useless checks already). 'check' uses the pylint utility. 'test_urls' only needs to be run if changes are against the url fetching code (virtinst/OSDistro and some virtinst/Distromanager). It takes a while to run and requires a network connection, so I didn't include it as part of the regular test suite ('setup.py test', which should also be run with any changes). All the above info was added to a HACKING file as well. I'll also be adding a similar pylint script to virt-manager in the near future. Thanks, Cole From henkvl at cs.uu.nl Tue Nov 25 10:28:15 2008 From: henkvl at cs.uu.nl (Henk van Lingen) Date: Tue, 25 Nov 2008 11:28:15 +0100 Subject: [et-mgmt-tools] Virt-install to nfs disk In-Reply-To: <492AC9A6.8060607@redhat.com> References: <20081124152742.GC2912@cs.uu.nl> <492AC9A6.8060607@redhat.com> Message-ID: <20081125102815.GB16610@cs.uu.nl> On Mon, Nov 24, 2008 at 10:35:02AM -0500, Cole Robinson wrote: > > > > Is it possible to install a hvm guest on a nfs exported partition > > with virt-install? And if so, what shoud be the commandline options? > > > > root = "/dev/nfs" > > nfs_server = '*.*.*.*' > > nfs_root = '/vol/vhost_someguest_root' > > > > Unfortunately, no. These options aren't supported at the libvirt level > so virt-install doesn't know anything about them. Oke, so what would be the best way to install for example an ubuntu hvm guest with a nfs_root filesystem on a RHEL 5 Xen system? Most docs are about guest images on a local filesystem, but isn't it reasonable to put your guests disk on a SAN-system? And doesn't give NFS you additional integrity in cases of system (guest or dom0) crashes (compared to for example iSCSI) ? BTW: does anyone have pointers to docs about performance considerations about hvm (VTx) versus paravirtualisation guests? regards, -- Henk van Lingen, Systems Administrator & DBA (o- -+ Dept. of Computer Science, Utrecht University. /\ | phone: +31-30-2534107 v_/_ http://henk.vanlingen.net/ http://www.tuxtown.net/netiquette/ From berrange at redhat.com Tue Nov 25 10:31:44 2008 From: berrange at redhat.com (Daniel P. Berrange) Date: Tue, 25 Nov 2008 10:31:44 +0000 Subject: [et-mgmt-tools] Virt-install to nfs disk In-Reply-To: <492AC9A6.8060607@redhat.com> References: <20081124152742.GC2912@cs.uu.nl> <492AC9A6.8060607@redhat.com> Message-ID: <20081125103142.GC6901@redhat.com> On Mon, Nov 24, 2008 at 10:35:02AM -0500, Cole Robinson wrote: > Henk van Lingen wrote: > > Hi, > > > > Is it possible to install a hvm guest on a nfs exported partition > > with virt-install? And if so, what shoud be the commandline options? > > I can't find anything about it. (Rhel 5.2) > > > > I.e. the relevant part of /etc/xen/huest should become something like: > > > > root = "/dev/nfs" > > nfs_server = '*.*.*.*' > > nfs_root = '/vol/vhost_someguest_root' > > > > Unfortunately, no. These options aren't supported at the libvirt level > so virt-install doesn't know anything about them. Those options don't apply to HVM guests in RHEL-5 xen, and most other released Xen - they'd only work for paravirt. This is because until Xen 3.3.0 there was no support for HVm guests to boot a kernel+initrd directly, and thus no way to pass kernel paramateres to the guest in HVM For paravirt, there is no need for these special parameters, you would just pass them as regular kernel command line args, eg use the --extra-args parameter to virt-install with something like --extra-args="root=/dev/nfs nfs_server=1.2.3.4 nfs_root=/vol/someroot" Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| From sameer.subscriptions at damagehead.com Tue Nov 25 10:39:35 2008 From: sameer.subscriptions at damagehead.com (Sameer Naik) Date: Tue, 25 Nov 2008 16:09:35 +0530 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <492ACB9A.8020606@redhat.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> <492ACB9A.8020606@redhat.com> Message-ID: <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> Thanks for the reply cole... i would like to know whether i should do these changes (apic=1/acip=1) before installing windows xp (multiprocessor) or whether it can be done after windows xp is installed. Thanks again Regards ~Sameer On Mon, Nov 24, 2008 at 9:13 PM, Cole Robinson wrote: > Sameer Naik wrote: > > Hi, > > I have been using virt-manager for a long long time now. > > Recently i have been facing an issue... when i try to install windows xp > > (sp3) with multiprocessor > > support (i.e. vcpu allocation > 1) the system installs fine, but then > > virt-manager displays very high > > cpu (24-30%) utilization, even when the xp guest is idle. also when i try > to > > poweroff the system, i get the "It is now > > Safe to poweroff your computer" message and also when this message is > > displayed the cpu utilzation is around > > 24-30%. > > > > After posting a similar mail to the xend-users mailing list, i was > advised > > to use ACPI=1 and APIC=1 in > > the domU configuration. But since i am using virt-manager i have no idea > > where i should put these values and > > whether i need to specify these before installing xp or whether it can be > > done after installing. > > > > Or should i create ahand written domU configuration and use "xm create" > to > > create the virtual machine? > > > > Please Help > > > > There isn't support in virt-manager for changing acpi and apic values > of an existing guest (yet). > > You can change these values via the command line: > > virsh dumpxml vmname > xml > edit xml: between the block and the block, add > > > > > virsh define xml > > If you are using f9 or f10, the above can be simplified with the 'virsh > edit' command, which will alter the xml in place. > > Thanks, > Cole > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crobinso at redhat.com Tue Nov 25 14:01:36 2008 From: crobinso at redhat.com (Cole Robinson) Date: Tue, 25 Nov 2008 09:01:36 -0500 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> <492ACB9A.8020606@redhat.com> <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> Message-ID: <492C0540.60207@redhat.com> Sameer Naik wrote: > Thanks for the reply cole... > i would like to know whether i should do these changes (apic=1/acip=1) > before installing windows xp (multiprocessor) or whether it can be done > after windows xp is installed. > > Thanks again > > Regards > ~Sameer > These changes can be done post install. In fact, if done at install time, 32bit windows has some difficulty installing (it can be done, but there are quirks) so post install is probably the way to go. Thanks, - Cole From anschneider at suse.de Tue Nov 25 15:08:25 2008 From: anschneider at suse.de (Andreas Schneider) Date: Tue, 25 Nov 2008 16:08:25 +0100 Subject: [et-mgmt-tools] [PATCH] Fix lookup pool by path Message-ID: <200811251608.25707.anschneider@suse.de> Hi, attached is a patch for virtinst to fix the lookup_pool_by_path() function. It removes the trailing slash to have a normalized path. Cheers, -- andreas -- Andreas Schneider, SUSE Labs, http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -------------- next part -------------- A non-text attachment was scrubbed... Name: virtinst-0.400.0-fix-pool-lookup-by-path.patch Type: text/x-patch Size: 634 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: From anschneider at suse.de Tue Nov 25 15:11:49 2008 From: anschneider at suse.de (Andreas Schneider) Date: Tue, 25 Nov 2008 16:11:49 +0100 Subject: [et-mgmt-tools] [PATCH] Use netcat if found Message-ID: <200811251611.49998.anschneider@suse.de> Hi, attached is a patch for virt-manager to use the netcat binary instead of nc if it is found. Cheers, -- andreas -- Andreas Schneider, SUSE Labs, http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -------------- next part -------------- A non-text attachment was scrubbed... Name: virt-manager-0.6.0-use-netcat.patch Type: text/x-patch Size: 709 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: From bkearney at redhat.com Tue Nov 25 21:25:48 2008 From: bkearney at redhat.com (Bryan Kearney) Date: Tue, 25 Nov 2008 16:25:48 -0500 Subject: [et-mgmt-tools] RFC: Pushing virt-image data into Cobbler Message-ID: <492C6D5C.1020106@redhat.com> As part of the adk work, we have some code which reads the virt-image.xml file and pushes the metadata into cobbler. You can see the code at [1]. I would like to push this down into the virt-tools. It does not really fit as part of any of the existing tools. Would folks be ok with a virt-cobbler tool? Or perhaps virt-publish? -- bk [1] http://tinyurl.com/5s5kje From mdehaan at redhat.com Tue Nov 25 21:36:46 2008 From: mdehaan at redhat.com (Michael DeHaan) Date: Tue, 25 Nov 2008 16:36:46 -0500 Subject: [et-mgmt-tools] RFC: Pushing virt-image data into Cobbler In-Reply-To: <492C6D5C.1020106@redhat.com> References: <492C6D5C.1020106@redhat.com> Message-ID: <492C6FEE.90809@redhat.com> Bryan Kearney wrote: > As part of the adk work, we have some code which reads the > virt-image.xml file and pushes the metadata into cobbler. You can see > the code at [1]. > > I would like to push this down into the virt-tools. It does not really > fit as part of any of the existing tools. Would folks be ok with a > virt-cobbler tool? Or perhaps virt-publish? > > -- bk > > [1] http://tinyurl.com/5s5kje > > _______________________________________________ > et-mgmt-tools mailing list > et-mgmt-tools at redhat.com > https://www.redhat.com/mailman/listinfo/et-mgmt-tools Random thought -- If this can be run locally as root, and I guess it can, you could just use the local Cobbler API and avoid the authentication issues. My preference would be to keep this part of the ADK package as it wouldn't be useful unless someone installed the ADK and is probably lightweight enough to keep in that package, but having it documented on the Cobbler Wiki for folks to be able to find out about it would definitely be interesting -- even if that's a pointer to the ADK Wiki. FYI -- I imagine most folks here don't know what the ADK is. Bryan is referring to http://thincrust.et.redhat.com -- he can give better background info on this than I can, so I'll let him do that and explain why it is interesting and what the Cobbler pieces do. --Michael From mdehaan at redhat.com Tue Nov 25 21:38:50 2008 From: mdehaan at redhat.com (Michael DeHaan) Date: Tue, 25 Nov 2008 16:38:50 -0500 Subject: [et-mgmt-tools] RFC: Pushing virt-image data into Cobbler In-Reply-To: <492C6FEE.90809@redhat.com> References: <492C6D5C.1020106@redhat.com> <492C6FEE.90809@redhat.com> Message-ID: <492C706A.6050206@redhat.com> Michael DeHaan wrote: > Bryan Kearney wrote: >> As part of the adk work, we have some code which reads the >> virt-image.xml file and pushes the metadata into cobbler. You can see >> the code at [1]. >> >> I would like to push this down into the virt-tools. It does not >> really fit as part of any of the existing tools. Would folks be ok >> with a virt-cobbler tool? Or perhaps virt-publish? >> >> -- bk >> >> [1] http://tinyurl.com/5s5kje >> >> _______________________________________________ >> et-mgmt-tools mailing list >> et-mgmt-tools at redhat.com >> https://www.redhat.com/mailman/listinfo/et-mgmt-tools > > Random thought -- If this can be run locally as root, and I guess it > can, you could just use the local Cobbler API and avoid the > authentication issues. > > My preference would be to keep this part of the ADK package as it > wouldn't be useful unless someone installed the ADK and is probably > lightweight enough to keep in that package, but having it documented > on the Cobbler Wiki for folks to be able to find out about it would > definitely be interesting -- even if that's a pointer to the ADK Wiki. > > FYI -- I imagine most folks here don't know what the ADK is. Bryan > is referring to http://thincrust.et.redhat.com -- he can give better > background info on this than I can, so I'll let him do that and > explain why it is interesting and what the Cobbler pieces do. Actually folks here might, I thought this was posted to Cobbler list. Heck, even /I/ could use the explanation though :) > > --Michael > > > _______________________________________________ > et-mgmt-tools mailing list > et-mgmt-tools at redhat.com > https://www.redhat.com/mailman/listinfo/et-mgmt-tools From sameer.subscriptions at damagehead.com Wed Nov 26 07:52:38 2008 From: sameer.subscriptions at damagehead.com (Sameer Naik) Date: Wed, 26 Nov 2008 13:22:38 +0530 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <492C0540.60207@redhat.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> <492ACB9A.8020606@redhat.com> <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> <492C0540.60207@redhat.com> Message-ID: <1c12dfe70811252352q145352f9x8083604b5b6e1d7a@mail.gmail.com> Hello Cole. I did try to adding acpi and apic to the domain cofiguration file (post-install), as you suggested. But after applying these changes, Virt-Manager would display a message (saying something like function requires an argument). As i have faced this error earlier (many times), i just deleted the cdrom device from the machine and then the domain was booting. However these changes did not make any difference to my problems (still high CPU load, no poweroff on shutdown). So i created a new xen guest by manually creating the configuration file with apic and apic enabled and created the domain using the "xm create" command. Then during the start of the installation i pressed F5 , and selected "ACPI Multiprocessor" and continued installation. After this everything is working great! All the problems have gone. Following is my feedback on virt-manager: I have been using virt-manager for around 2 years now, and alway shyed away from the manual configuration. But during my experience of using virt-manager i have seen quite a lot of issues, which would require me to restart the xend service. For Example: If i shutdowm a windows/linux guest, and then try to power it on again, virt-manager will say "error posting message" or something of that sort. As a result of this i would need to restart the xend service to power on the domain again (and for some reason i always thought this was an issue with xend, until now). I have been following this routine for a long time now. Now i think the "xm" command is what i need to consider while creating a virtual machine and basically use virt-manager to handle the hot-plugging of devices, cloning domains, etc. As it is ovirt needs fedora 9, so haven't go to test that yet. I'm hoping to see a better,stable version of virt-manager Thanks for all your help. Regards ~Sameer On Tue, Nov 25, 2008 at 7:31 PM, Cole Robinson wrote: > Sameer Naik wrote: > > Thanks for the reply cole... > > i would like to know whether i should do these changes (apic=1/acip=1) > > before installing windows xp (multiprocessor) or whether it can be done > > after windows xp is installed. > > > > Thanks again > > > > Regards > > ~Sameer > > > > These changes can be done post install. In fact, if done at install > time, 32bit windows has some difficulty installing (it can be done, > but there are quirks) so post install is probably the way to go. > > Thanks, > - Cole > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjones at redhat.com Wed Nov 26 13:16:14 2008 From: rjones at redhat.com (Richard W.M. Jones) Date: Wed, 26 Nov 2008 13:16:14 +0000 Subject: [et-mgmt-tools] Packages in the path to getting a Windows binary of libvirt, built from Fedora Message-ID: <20081126131614.GB21661@amd.home.annexia.org> It seems like we should have the base MinGW (Windows cross-compiler) packages in Fedora 11 by the end of this week. This email is to document the additional packages we need to get approved, in order to get the cross-compiled libvirt and virt tools into (or buildable by) Fedora 11. If you want to help out, please start reviewing by following the Bugzilla links, and looking at the approved packaging guidelines at http://fedoraproject.org/wiki/Packaging/MinGW. ** For libvirt itself: mingw32-libgpg-error https://bugzilla.redhat.com/show_bug.cgi?id=467403 mingw32-libgcrypt https://bugzilla.redhat.com/show_bug.cgi?id=467410 mingw32-gnutls https://bugzilla.redhat.com/show_bug.cgi?id=467414 mingw32-gettext https://bugzilla.redhat.com/show_bug.cgi?id=467398 mingw32-libxml2 https://bugzilla.redhat.com/show_bug.cgi?id=467405 mingw32-portablexdr https://bugzilla.redhat.com/show_bug.cgi?id=467324 mingw32-readline https://bugzilla.redhat.com/show_bug.cgi?id=467399 mingw32-termcap https://bugzilla.redhat.com/show_bug.cgi?id=467329 OR a very brave person can try porting ncurses to Windows. mingw32-iconv https://bugzilla.redhat.com/show_bug.cgi?id=467325 mingw32-zlib https://bugzilla.redhat.com/show_bug.cgi?id=454416 mingw32-libvirt https://bugzilla.redhat.com/show_bug.cgi?id=467418 ** For the C based tools (gtk-vnc, virt-viewer, ovirt-viewer, vinagre): All of the above plus: mingw32-gtk2 https://bugzilla.redhat.com/show_bug.cgi?id=467420 mingw32-glib2 https://bugzilla.redhat.com/show_bug.cgi?id=467402 mingw32-cairo https://bugzilla.redhat.com/show_bug.cgi?id=467416 mingw32-jasper https://bugzilla.redhat.com/show_bug.cgi?id=467408 mingw32-libpng https://bugzilla.redhat.com/show_bug.cgi?id=467397 mingw32-libjpeg https://bugzilla.redhat.com/show_bug.cgi?id=467401 mingw32-libtiff (?) Optional dependency for GTK2, but not yet packaged. mingw32-pango https://bugzilla.redhat.com/show_bug.cgi?id=467419 mingw32-atk https://bugzilla.redhat.com/show_bug.cgi?id=467409 mingw32-pixman https://bugzilla.redhat.com/show_bug.cgi?id=467376 mingw32-freetype https://bugzilla.redhat.com/show_bug.cgi?id=467396 mingw32-fontconfig https://bugzilla.redhat.com/show_bug.cgi?id=467413 mingw32-libidn No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel mingw32-openssl https://bugzilla.redhat.com/show_bug.cgi?id=467395 mingw32-libssh2 No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel mingw32-gtk-vnc https://bugzilla.redhat.com/show_bug.cgi?id=467421 mingw32-curl No Bugzilla Review Request yet, see the mercurial repository. http://hg.et.redhat.com/misc/fedora-mingw--devel ** For the Python based tools (virt-install, virt-manager etc), we're hoping to go straight to Python 3 on the basis that it will be easier to contribute patches upstream, and it seems the build system for Python 3 will be a bit saner than for Python 2.x. You can help by making sure that all Python software is "Python 3 clean". If you have python 2.6, then just add the '-3' flag to the command line in order to warn about features which are deprecated and will be removed in Python 3. ** For the OCaml based tools (virt-df, virt-top): mingw32-ocaml mingw32-ocaml-calendar mingw32-ocaml-csv mingw32-ocaml-curses mingw32-ocaml-extlib mingw32-ocaml-findlib mingw32-ocaml-lablgl mingw32-ocaml-lablgtk mingw32-ocaml-libvirt mingw32-ocaml-xml-light (None of these are in Bugzilla yet, and for good reason because I may just do them as subpackages of the OCaml packages already in Fedora). ** I haven't had any particular requests for Ruby tools yet. OVirt itself is a standalone appliance and it doesn't need porting to Windows. ovirt-viewer is a C application and is being written concurrently on Linux and Windows anyway. I'm not sure if there are other standalone bits of ovirt which would make sense being ported to Windows. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v From FCOMBERNOUS at ares.fr Wed Nov 26 13:42:37 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Wed, 26 Nov 2008 14:42:37 +0100 Subject: [et-mgmt-tools] virt-manager on windows workstation ? Message-ID: Lo, Is it possible to run virt-manager on windows workstation ? I hope my google search is wrong. In a short way, it says "No". In this case, virt-manager would be a "simple" acces point to the demon libvirt running on a linux host. Tks. -- Fabien?COMBERNOUS IT?Engineer,?Open?source?specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From stephan at fishycam.com Wed Nov 26 14:05:22 2008 From: stephan at fishycam.com (Stephan) Date: Wed, 26 Nov 2008 14:05:22 +0000 Subject: [et-mgmt-tools] Making a disk image created with virt-install qcow2 format from the start Message-ID: <4efe67b6c9226f5529d58556b41ebf60@localhost> Hi, I've been creating images with virt-install (thanks by the way!) I was just wondering, is there a way to specify the disk image file type when you create the machine? I can convert it using tools from qemu, but it's an extra step and I'd prefer to have the images as qcow2 from the start if possible. I'm doing this: sudo mkdir /vservers/edi1-whatever1/ && sudo virt-install --hvm --accelerate --os-type=linux --os-variant=debianEtch --arch=x86_64 --bridge=br0 --ram=256 --vcpus=4 --check-cpu --vnc --name=edi1-whatever1 --file=/vservers/edi1-whatever1/disk0.qcow2 --file-size=8 --cdrom=/dev/cdrom --debug but the file isn't the right format: file disk0.qcow2 disk0.qcow2: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 15952482 sectors; partition 2: ID=0x5, starthead 0, startsector 15952545, 819315 sectors instead of something like this: file disk0.qcow2 disk0.qcow2: Qemu Image, Format: Qcow , Version: 2 Is there a way to specify the image type using virt-install? I've read the man file and looked on the Internet, but can't find the answer. Sorry if this is an easy question. Thanks for your help, Stephan From crobinso at redhat.com Wed Nov 26 14:40:20 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 26 Nov 2008 09:40:20 -0500 Subject: [et-mgmt-tools] virt-install fails if http server has directory indexes turned off In-Reply-To: <4900F05A.4060005@cora.nwra.com> References: <4900F05A.4060005@cora.nwra.com> Message-ID: <492D5FD4.1070704@redhat.com> Orion Poplawski wrote: > def acquireKernel(baseuri, progresscb, scratchdir="/var/tmp", type=None, > distro=None, arch=None): > fetcher = _fetcherForURI(baseuri, scratchdir) > > try: > fetcher.prepareLocation(progresscb) > except ValueError, e: > raise ValueError, _("Invalid install location: ") + str(e) > > > Here we're attempting to download the base directory to test whether the > location is valid. This seems unnecessary and fails if the server has > disabled directory listings. > This has been fixed upstream, I changed prepareLocation to not try to grab the directory list, just check for it's existence using fetcher.hasFile: http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=24a96e544e8e I don't know of a tree with disabled directory listings, so if you could verify, that would be appreciated. Thanks, Cole From sameer.subscriptions at damagehead.com Wed Nov 26 15:01:42 2008 From: sameer.subscriptions at damagehead.com (Sameer Naik) Date: Wed, 26 Nov 2008 20:31:42 +0530 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <492D5D9D.1030500@redhat.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> <492ACB9A.8020606@redhat.com> <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> <492C0540.60207@redhat.com> <1c12dfe70811252350k214ba1aq39bad58e7c6a3a54@mail.gmail.com> <492D5D9D.1030500@redhat.com> Message-ID: <1c12dfe70811260701k3e9d5ff7s8c2f44b4df905cd4@mail.gmail.com> HI Cole, I have attached a copy of my virt-manager.log file. hope you find it useful. You comments on KVM seem very inspiring, and im already set to give KVM a shot. Before that i would like to know a few things? -> What is faster Xen or KVM? I am aware that KVM particularly depends on the processor to support VT, which my processor does (Xeon 5000 Series). -> Will KVM allow me to use multiprocessor support for Windows XP -> Does KVM support paravirtualization? or does it matter at all? -> Is the Migration of Xen fully virtualized guest to KVM possible? -> Can i use virt-manager to manager KVM guests? I am having a good feeling about KVM. Please help me decide. -- BTW, just can't wait to upgrade my system to fedora 10. really excited about plymouth and the other speed ups in the fedora system. hoping that KDE 4 does not dissapoint me, in which case ill be sticking with fedora 8. Thanks to all you Redhat guys (an the Community of course) for Fedora 10. Regards ~Sameer On Wed, Nov 26, 2008 at 8:00 PM, Cole Robinson wrote: > Sameer Naik wrote: > > Hello Cole. > > > > I did try to adding acpi and apic to the domain cofiguration file > > (post-install), as you suggested. > > But after applying these changes, Virt-Manager would display a message > > (saying something like function requires an argument). As i have faced > this > > error earlier (many times), i just deleted the cdrom device from the > machine > > and then the domain was booting. > > However these changes did not make any difference to my problems (still > high > > CPU load, no poweroff on shutdown). > > > > Do you have a copy of this error? Check ~/.virt-manager/virt-manager.log > > > So i created a new xen guest by manually creating the configuration file > > with apic and apic enabled and created the domain using the "xm create" > > command. Then during the start of the installation i pressed F5 , and > > selected "ACPI Multiprocessor" and continued installation. After this > > everything is working great! All the problems have gone. > > > > Following is my feedback on virt-manager: > > > > I have been using virt-manager for around 2 years now, and alway shyed > away > > from the manual configuration. But during my experience of using > > virt-manager i have seen quite a lot of issues, which would require me to > > restart the xend service. > > For Example: If i shutdowm a windows/linux guest, and then try to power > it > > on again, virt-manager will say "error posting message" or something of > that > > sort. As a result of this i would need to restart the xend service to > power > > on the domain again (and for some reason i always thought this was an > issue > > with xend, until now). I have been following this routine for a long time > > now. Now i think the "xm" command is what i need to consider while > creating > > a virtual machine and basically use virt-manager to handle the > hot-plugging > > of devices, cloning domains, etc. > > As it is ovirt needs fedora 9, so haven't go to test that yet. > > I'm hoping to see a better,stable version of virt-manager > > > > The truth is, this has _nothing_ to do with virt-manager. virt-manager > does nearly all it's work through libvirt, which talks to xen. > > All those errors you listed are coming straight from xen, and are > legitimate xen bugs. xen has been a maintenance nightmare. I know that > doesn't help any, but it's the truth. If you ever get the opportunity to > move to a kvm based setup, you'll find things work _much_ better in > fedora land (and you'll also be able to use newer distros F9 or F10). > > Thanks, > Cole > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: virt-manager.log.tar.bz2 Type: application/x-bzip2 Size: 23277 bytes Desc: not available URL: From crobinso at redhat.com Wed Nov 26 16:18:26 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 26 Nov 2008 11:18:26 -0500 Subject: [et-mgmt-tools] virt-manager on windows workstation ? In-Reply-To: References: Message-ID: <492D76D2.4000609@redhat.com> FCOMBERNOUS at ares.fr wrote: > Lo, > > Is it possible to run virt-manager on windows workstation ? > > I hope my google search is wrong. In a short way, it says "No". > > In this case, virt-manager would be a "simple" acces point to the demon > libvirt running on a linux host. > No one has done it yet, but it should be possible. virt-manager would need patches though. Thanks, Cole From crobinso at redhat.com Wed Nov 26 16:21:40 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 26 Nov 2008 11:21:40 -0500 Subject: [et-mgmt-tools] Making a disk image created with virt-install qcow2 format from the start In-Reply-To: <4efe67b6c9226f5529d58556b41ebf60@localhost> References: <4efe67b6c9226f5529d58556b41ebf60@localhost> Message-ID: <492D7794.8030701@redhat.com> Stephan wrote: > Hi, > > I've been creating images with virt-install (thanks by the way!) > > I was just wondering, is there a way to specify the disk image file type > when you create the machine? I can convert it using tools from qemu, but > it's an extra step and I'd prefer to have the images as qcow2 from the > start if possible. > > I'm doing this: > > sudo mkdir /vservers/edi1-whatever1/ && sudo virt-install --hvm > --accelerate --os-type=linux --os-variant=debianEtch --arch=x86_64 > --bridge=br0 --ram=256 --vcpus=4 --check-cpu --vnc --name=edi1-whatever1 > --file=/vservers/edi1-whatever1/disk0.qcow2 --file-size=8 > --cdrom=/dev/cdrom --debug > > but the file isn't the right format: > > file disk0.qcow2 > disk0.qcow2: x86 boot sector; partition 1: ID=0x83, active, starthead 1, > startsector 63, 15952482 sectors; partition 2: ID=0x5, starthead 0, > startsector 15952545, 819315 sectors > > instead of something like this: > > file disk0.qcow2 > disk0.qcow2: Qemu Image, Format: Qcow , Version: 2 > > Is there a way to specify the image type using virt-install? I've read the > man file and looked on the Internet, but can't find the answer. Sorry if > this is an easy question. > There isn't a way to do so as of yet. But as a workaround, rather than converting the image after the fact, you could use qemu-img to create the qcow file ahead of time, and just point virt-manager at it with the --file option, and it should all work. Thanks, Cole From crobinso at redhat.com Wed Nov 26 16:29:59 2008 From: crobinso at redhat.com (Cole Robinson) Date: Wed, 26 Nov 2008 11:29:59 -0500 Subject: [et-mgmt-tools] Windows XP Mutiprocessor Support In-Reply-To: <1c12dfe70811260701k3e9d5ff7s8c2f44b4df905cd4@mail.gmail.com> References: <1c12dfe70811240109k33b364a3v430f747b7c7f3e78@mail.gmail.com> <492ACB9A.8020606@redhat.com> <1c12dfe70811250239v44077a8bp57d81b8f82dfbd19@mail.gmail.com> <492C0540.60207@redhat.com> <1c12dfe70811252350k214ba1aq39bad58e7c6a3a54@mail.gmail.com> <492D5D9D.1030500@redhat.com> <1c12dfe70811260701k3e9d5ff7s8c2f44b4df905cd4@mail.gmail.com> Message-ID: <492D7987.60607@redhat.com> Sameer Naik wrote: > HI Cole, > > I have attached a copy of my virt-manager.log file. hope you find it useful. > > You comments on KVM seem very inspiring, and im already set to give KVM a > shot. > Before that i would like to know a few things? > A lot of these questions are outside the scope of this list, so let's not do too much back and forth. This info can mostly be found via google. > -> What is faster Xen or KVM? I am aware that KVM particularly depends on > the processor to support VT, which my processor does > (Xeon 5000 Series). Current KVM and Xen fullvirt are analogous, I believe, though true xen pv still has an edge performance wise. Granted I'm not an expert on any of this stuff. > -> Will KVM allow me to use multiprocessor support for Windows XP Yes > -> Does KVM support paravirtualization? or does it matter at all? KVM has paravirtualized drivers for things like disk and network devices. > -> Is the Migration of Xen fully virtualized guest to KVM possible? If you mean doing an 'xm migrate' then no. But it should be possible to move a FV vm from xen to kvm manually, though I'm not sure what errors could pop up. > -> Can i use virt-manager to manager KVM guests? > Yes, virt-manager has great support for kvm, and using kvm will allow you to move to newer fedora versions which have newer (and much better) versions of virt-manager. Thanks, Cole From stephan at fishycam.com Wed Nov 26 17:48:08 2008 From: stephan at fishycam.com (Stephan) Date: Wed, 26 Nov 2008 17:48:08 +0000 Subject: [et-mgmt-tools] Making a disk image created with =?UTF-8?Q?virt-installqcow=32=09format=20from=20the=20start?= In-Reply-To: <492D7794.8030701@redhat.com> References: <4efe67b6c9226f5529d58556b41ebf60@localhost> <492D7794.8030701@redhat.com> Message-ID: <4ee736e2ec1af50e6fbbdc5713f88a67@localhost> On Wed, 26 Nov 2008 11:21:40 -0500, Cole Robinson wrote: > Stephan wrote: >> Is there a way to specify the image type using virt-install? I've read > the >> man file and looked on the Internet, but can't find the answer. Sorry if >> this is an easy question. >> > > There isn't a way to do so as of yet. But as a workaround, rather than > converting the image after the fact, you could use qemu-img to create > the qcow file ahead of time, and just point virt-manager at it with the > --file option, and it should all work. > > Thanks, > Cole Hi, Thanks for that. I'll go with that option. Very helpful! Thanks, Stephan From FCOMBERNOUS at ares.fr Thu Nov 27 09:58:51 2008 From: FCOMBERNOUS at ares.fr (FCOMBERNOUS at ares.fr) Date: Thu, 27 Nov 2008 10:58:51 +0100 Subject: =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_[et-mgmt-tools]_virt-manager_on_windows?= =?ISO-8859-1?Q?_workstation_=3F?= In-Reply-To: <492D76D2.4000609@redhat.com> References: , <492D76D2.4000609@redhat.com> Message-ID: -----Cole Robinson a ?crit : ----- > >FCOMBERNOUS at ares.fr?wrote: >>?Lo, >> >>?Is?it?possible?to?run?virt-manager?on?windows?workstation?? >> >>?I?hope?my?google?search?is?wrong.?In?a?short?way,?it?says?"No". >> >> In this case, virt-manager would be a "simple" acces point to the >> demon?libvirt?running?on?a?linux?host. > >No?one?has?done?it?yet,?but?it?should?be?possible.?virt-manager?would >need?patches?though. So, python and something like cygwin, installed on the workstation is not enough ? -- Fabien COMBERNOUS IT Engineer, Open source specialist http://www.ares.fr **************************************************************************************************** Ce message ou ses pi?ces jointes peuvent contenir des informations confidentielles ? l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez re?u ce message par erreur, merci de le notifier ? son exp?diteur et d'en d?truire toute copie. Le pr?sent message pouvant ?tre alt?r? ? notre insu, le groupe ARES ne peut pas ?tre engag? par son contenu. www.ares.fr **************************************************************************************************** From agx at sigxcpu.org Thu Nov 27 14:30:31 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Thu, 27 Nov 2008 15:30:31 +0100 Subject: [et-mgmt-tools] FYI: Changes to virtinst test suite In-Reply-To: <492B29AD.1030101@redhat.com> References: <492B29AD.1030101@redhat.com> Message-ID: <20081127143031.GA12890@bogon.ms20.nix> HI Cole, On Mon, Nov 24, 2008 at 05:24:45PM -0500, Cole Robinson wrote: > Hi all, > > I've added some changes to the virtinst test suite that will affect > anyone writing patches. Two commands have been added to the setup.py script: > > python setup.py check : runs a pylint wrapper against the > > codebase > python setup.py test_urls: runs a url fetching test suite Cool thing! Would it make sense to release a new version? Hg acquired quiet some new features and bugfixes, so I'd probably make sense. Having virtinst release more often would help distros to get the new stuff out quicker. -- Guido From anschneider at suse.de Fri Nov 28 13:47:02 2008 From: anschneider at suse.de (Andreas Schneider) Date: Fri, 28 Nov 2008 14:47:02 +0100 Subject: [et-mgmt-tools] [PATCH] Fix lookup pool by path In-Reply-To: <200811251608.25707.anschneider@suse.de> References: <200811251608.25707.anschneider@suse.de> Message-ID: <200811281447.06174.anschneider@suse.de> On Tuesday 25 November 2008 16:08:25 Andreas Schneider wrote: > Hi, > > attached is a patch for virtinst to fix the lookup_pool_by_path() function. > It removes the trailing slash to have a normalized path. > I've updated the patch. It works now :) Best regards, -- andreas -- Andreas Schneider, SUSE Labs, http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -------------- next part -------------- A non-text attachment was scrubbed... Name: virtinst-0.400.0-fix-pool-lookup-by-path.patch Type: text/x-patch Size: 629 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: From agx at sigxcpu.org Sat Nov 29 17:42:16 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Sat, 29 Nov 2008 18:42:16 +0100 Subject: [et-mgmt-tools] [PATCH] virtinst: pool separator is '/' not ':' Message-ID: <20081129174216.GA24390@bogon.ms20.nix> Hi, Doc typo. Possible patch attached. Cheers, -- Guido -------------- next part -------------- A non-text attachment was scrubbed... Name: pool-separator.diff Type: text/x-diff Size: 554 bytes Desc: not available URL: From agx at sigxcpu.org Sat Nov 29 17:43:46 2008 From: agx at sigxcpu.org (Guido =?iso-8859-1?Q?G=FCnther?=) Date: Sat, 29 Nov 2008 18:43:46 +0100 Subject: [et-mgmt-tools] [PATCH] virtinst: also look at xorg.conf for keymap Message-ID: <20081129174346.GA24473@bogon.ms20.nix> Hi, attached patch looks at xorg.conf if no /etc/sysconfig/keyboard for the default keyboard. This helps with distros that don't have /etc/sysconfig/ like Debian. Cheers, -- Guido -------------- next part -------------- A non-text attachment was scrubbed... Name: xorg_keymap.diff Type: text/x-diff Size: 2360 bytes Desc: not available URL: From cmdrlinux at gmail.com Sun Nov 30 18:02:39 2008 From: cmdrlinux at gmail.com (Jon Smith) Date: Sun, 30 Nov 2008 12:02:39 -0600 Subject: [et-mgmt-tools] Connecting to a remote libvirtd host using virt-manger Message-ID: <41c0f86d0811301002p7d561f6er9bf365a07c89e718@mail.gmail.com> virt-manager and libvirtd both functioning locally. I tried to use virt-manager to access the same libvirtd host remotely but I'm having some trouble. I'm using qemu+ssh to connect to the remote host, but when I do, virt-manager turns gray and becomes unresponsive, eventually the part of the window showing the hosts goes blank. If I stop libvirtd on the remote host, virt-manager refreshes itself and shows the libvirtd host as connected, and even lists all the domains available. I'm also able to connect using virsh and that works fine. I can repeat this process over and over again, even after rebooting the hosts involved. I've also run libvirtd with the --verbose flag and can send the output (~80K) if that would help.