Using Cobbler with KVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I ran across a problem where virtualized installs with koan using KVM on F-7 result in a guest that can't be restarted post-install.

Here's a patch to the virtinst library from Dan Berrange to fix that.

--- /usr/lib/python2.5/site-packages/virtinst/DistroManager.py 2007-08-08 11:47:52.000000000 -0400
+++ /tmp/fix.py 2007-08-08 11:48:18.000000000 -0400
@@ -685,21 +685,21 @@
            if hvm:
                type = "hvm"
            else:
                type = "linux"

            if arch:
                osblob += "    <type arch='%s'>%s</type>\n" % (arch, type)
            else:
                osblob += "    <type>%s</type>\n" % type

-            if self.install["kernel"]:
+            if install and self.install["kernel"]:
osblob += " <kernel>%s</kernel>\n" % self.install["kernel"] osblob += " <initrd>%s</initrd>\n" % self.install["initrd"] osblob += " <cmdline>%s</cmdline>\n" % self.install["extraargs"]
            else:
                if loader:
                    osblob += "    <loader>%s</loader>\n" % loader

                if install:
                    osblob += "    <boot dev='cdrom'/>\n"
                else:
~ ~
To review, the syntax to install via KVM with a newer cobbler/koan is:

koan --virt [--virt-type=qemu] --profile=profile_name --server=bootserver.example.com

You can use the same profiles that you use to boot baremetal to install via qemu/KVM, don't use the ones with "xen" kernels. Note that you can also set --virt-type in cobbler, or even change the default virt type in /var/lib/cobbler/settings to default all
new installs with koan to use KVM.

--Michael

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux