PXE boot guest
Hi guys,
I was trying to PXE boot a guest for quite some time now and I think I’ve found a solution that is kind of hackish but pretty simple. I’m not quite sure it’s good to go in trunk but felt like I’d share it since I’ve been messing a while on this.
If anybody have a better solution, I would really like to hear/see/try it …
Here is how I did it:
First, patch the libvirt/driver.py file:
--- /usr/lib/
+++ /usr/lib/
@@ -87,6 +87,9 @@
LOG = logging.
libvirt_opts = [
+ cfg.StrOpt(
+ default='hd',
+ help='Sets the default guest boot device'),
cfg.
@@ -1792,7 +1795,7 @@
else:
- guest.os_boot_dev = "hd"
+ guest.os_boot_dev = FLAGS.default_
if FLAGS.libvirt_type != "lxc" and FLAGS.libvirt_type != "uml":
And add to nova.conf:
default_
And finally add to /etc/dnsmasq.conf
dhcp-boot=
dhcp-no-override
And restart dnsmasq.conf
In my actual setup, the guest will PXE boot, show the menu 60 seconds and then boot from hard disk after the 60 seconds timeout.
Thank you very much,
Dave
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: