Re: [Openstack] Help with VMs
Many thanks. Pointers helped. Decided to keep with default loader for freeBsd (1) echo 'console=comconsole' /boot/loader.conf (2) Edited /etc/ttys Edit /etc/ttysand change offto onand dialupto vt100for the ttyu0entry (3) echo '-S115200 -Dh' /boot.config From: Ritesh Nanda riteshnand...@gmail.com To: harvey.w...@btinternet.com Cc: openstack@lists.launchpad.net openstack@lists.launchpad.net Sent: Tuesday, 19 February 2013, 18:44 Subject: Re: [Openstack] Help with VMs Harvey , To get console.log in ubuntu we need to make some changes in grub config Below steps works in ubuntu, hope only the file location would be different rest would be the same. Write /etc/default/grub GRUB_CMDLINE_LINUX=console=tty0 console=ttyS0,115200 then save and run update-grub2 update-grub On Wed, Feb 20, 2013 at 12:07 AM, Jonathan Proulx j...@jonproulx.com wrote: On Tue, Feb 19, 2013 at 1:25 PM, Harvey West harvey.w...@btinternet.com wrote: This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) I ran into the same isssue with FreeBSD images. These are paravirtualized drivers which are absolutely required to get the VM to work. Linux images usually have them already but for FreeBSD (and Windows) you need to install them by hand. note that when using kvm by hand you can specify the driver emulation required so this is why it boots by hand but not via openstack (you could also configure openstack to use different kvm settings, but the virtio driver is faster and installing the drivers on FreeBSD isn't too hard. I'm not much of a *BSD guy but I managed) -Jon ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- With Regards Ritesh Nanda___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
Using virtio mods helped. Many thanks all. From: Jonathan Proulx j...@jonproulx.com To: Harvey West harvey.w...@btinternet.com Cc: Lloyd Dewolf lloydost...@gmail.com; openstack@lists.launchpad.net openstack@lists.launchpad.net Sent: Tuesday, 19 February 2013, 18:37 Subject: Re: [Openstack] Help with VMs On Tue, Feb 19, 2013 at 1:25 PM, Harvey West harvey.w...@btinternet.com wrote: This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) I ran into the same isssue with FreeBSD images. These are paravirtualized drivers which are absolutely required to get the VM to work. Linux images usually have them already but for FreeBSD (and Windows) you need to install them by hand. note that when using kvm by hand you can specify the driver emulation required so this is why it boots by hand but not via openstack (you could also configure openstack to use different kvm settings, but the virtio driver is faster and installing the drivers on FreeBSD isn't too hard. I'm not much of a *BSD guy but I managed) -Jon___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
The FreeBSD install using default boot loader. Assuming this is the right docs to refer to. http://www.freebsd.org/doc/handbook/serialconsole-setup.html Switching to grub boot loader within FreeBSD not done before. From: Ritesh Nanda riteshnand...@gmail.com To: harvey.w...@btinternet.com Cc: openstack@lists.launchpad.net openstack@lists.launchpad.net Sent: Tuesday, 19 February 2013, 18:44 Subject: Re: [Openstack] Help with VMs Harvey , To get console.log in ubuntu we need to make some changes in grub config Below steps works in ubuntu, hope only the file location would be different rest would be the same. Write /etc/default/grub GRUB_CMDLINE_LINUX=console=tty0 console=ttyS0,115200 then save and run update-grub2 update-grub On Wed, Feb 20, 2013 at 12:07 AM, Jonathan Proulx j...@jonproulx.com wrote: On Tue, Feb 19, 2013 at 1:25 PM, Harvey West harvey.w...@btinternet.com wrote: This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) I ran into the same isssue with FreeBSD images. These are paravirtualized drivers which are absolutely required to get the VM to work. Linux images usually have them already but for FreeBSD (and Windows) you need to install them by hand. note that when using kvm by hand you can specify the driver emulation required so this is why it boots by hand but not via openstack (you could also configure openstack to use different kvm settings, but the virtio driver is faster and installing the drivers on FreeBSD isn't too hard. I'm not much of a *BSD guy but I managed) -Jon ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- With Regards Ritesh Nanda___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
Hi Lloyd Many thanks for the tips. Been a great help. Been trying a few things out. I'm running Ubuntu 12.4 with OpenStack. Created a FreeBSD 9.0 image that works for KVM. i.e. kvm-img create -f raw freebsd3.img 10G kvm -m 512 -hda freebsd3.img -cdrom FreeBSD-9.0-RELEASE-amd64-disc1.iso -boot d This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) Tried to import this freeBSD image into open stack i.e. glance add name=freeBSD1 is_public=true disk_format=raw container_format=bare freeBSD.img Can't see any console output from openstack when this instance is started. No entries in console.log. Just wondering if I going about this the right way? Harvey From: Lloyd Dewolf lloydost...@gmail.com To: Harvey West harvey.w...@btinternet.com Cc: openstack@lists.launchpad.net openstack@lists.launchpad.net Sent: Tuesday, 5 February 2013, 19:12 Subject: Re: [Openstack] Help with VMs On Tue, Feb 5, 2013 at 10:19 AM, Harvey West harvey.w...@btinternet.com wrote: Not used openstack or this email forum before. Have installed openstack on unbuntu 12.4.1 LTS. Seems to work with the default unbuntu VM image. How do I create a new image. I would to create a FreeBSS VM instance. Is this possible? Hi Harvey, I have not created any BSD images, but as is no surprise it is fully supported by KVM, http://www.linux-kvm.org/page/Guest_Support_Status My searching for bsd guest kvm returns a lot of encouraging results, and the content should generally be applicable. http://cssoss.wordpress.com/2011/11/28/bundling-freebsd-image-for-openstack/ still looks good, though you'll want to use the native image API (glance client) for uploading the image. Hope that helps, -- @lloyddewolf http://www.pistoncloud.com/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
On Tue, Feb 19, 2013 at 1:25 PM, Harvey West harvey.w...@btinternet.com wrote: This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) I ran into the same isssue with FreeBSD images. These are paravirtualized drivers which are absolutely required to get the VM to work. Linux images usually have them already but for FreeBSD (and Windows) you need to install them by hand. note that when using kvm by hand you can specify the driver emulation required so this is why it boots by hand but not via openstack (you could also configure openstack to use different kvm settings, but the virtio driver is faster and installing the drivers on FreeBSD isn't too hard. I'm not much of a *BSD guy but I managed) -Jon ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
Harvey , To get console.log in ubuntu we need to make some changes in grub config Below steps works in ubuntu, hope only the file location would be different rest would be the same. Write /etc/default/grub GRUB_CMDLINE_LINUX=console=tty0 console=ttyS0,115200 then save and run update-grub2 update-grub On Wed, Feb 20, 2013 at 12:07 AM, Jonathan Proulx j...@jonproulx.com wrote: On Tue, Feb 19, 2013 at 1:25 PM, Harvey West harvey.w...@btinternet.com wrote: This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) I ran into the same isssue with FreeBSD images. These are paravirtualized drivers which are absolutely required to get the VM to work. Linux images usually have them already but for FreeBSD (and Windows) you need to install them by hand. note that when using kvm by hand you can specify the driver emulation required so this is why it boots by hand but not via openstack (you could also configure openstack to use different kvm settings, but the virtio driver is faster and installing the drivers on FreeBSD isn't too hard. I'm not much of a *BSD guy but I managed) -Jon ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- * With Regards * * Ritesh Nanda * *** * http://www.ericsson.com/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
You definitely need the libvirt modules. Nova has no way to detect whether the modules are installed so it will try to attach via virtio. Note that with grizzly you can use custom glance properties to override the default vif type and disk bus. See https://review.openstack.org/#/c/21527/ and https://review.openstack.org/#/c/20161/ Vish On Feb 19, 2013, at 10:25 AM, Harvey West harvey.w...@btinternet.com wrote: Hi Lloyd Many thanks for the tips. Been a great help. Been trying a few things out. I'm running Ubuntu 12.4 with OpenStack. Created a FreeBSD 9.0 image that works for KVM. i.e. kvm-img create -f raw freebsd3.img 10G kvm -m 512 -hda freebsd3.img -cdrom FreeBSD-9.0-RELEASE-amd64-disc1.iso -boot d This boots ok. kvm -m 2048 -hda freeBSD.img -boot c (note: did not use virtio mods. Assumed these were just optimized NIC/SCSI drivers. Which I can live without for the time being) Tried to import this freeBSD image into open stack i.e. glance add name=freeBSD1 is_public=true disk_format=raw container_format=bare freeBSD.img Can't see any console output from openstack when this instance is started. No entries in console.log. Just wondering if I going about this the right way? Harvey From: Lloyd Dewolf lloydost...@gmail.com To: Harvey West harvey.w...@btinternet.com Cc: openstack@lists.launchpad.net openstack@lists.launchpad.net Sent: Tuesday, 5 February 2013, 19:12 Subject: Re: [Openstack] Help with VMs On Tue, Feb 5, 2013 at 10:19 AM, Harvey West harvey.w...@btinternet.com wrote: Not used openstack or this email forum before. Have installed openstack on unbuntu 12.4.1 LTS. Seems to work with the default unbuntu VM image. How do I create a new image. I would to create a FreeBSS VM instance. Is this possible? Hi Harvey, I have not created any BSD images, but as is no surprise it is fully supported by KVM, http://www.linux-kvm.org/page/Guest_Support_Status My searching for bsd guest kvm returns a lot of encouraging results, and the content should generally be applicable. http://cssoss.wordpress.com/2011/11/28/bundling-freebsd-image-for-openstack/ still looks good, though you'll want to use the native image API (glance client) for uploading the image. Hope that helps, -- @lloyddewolf http://www.pistoncloud.com/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Help with VMs
On Tue, Feb 5, 2013 at 10:19 AM, Harvey West harvey.w...@btinternet.comwrote: Not used openstack or this email forum before. Have installed openstack on unbuntu 12.4.1 LTS. Seems to work with the default unbuntu VM image. How do I create a new image. I would to create a FreeBSS VM instance. Is this possible? Hi Harvey, I have not created any BSD images, but as is no surprise it is fully supported by KVM, http://www.linux-kvm.org/page/Guest_Support_Status My searching for bsd guest kvm returns a lot of encouraging results, and the content should generally be applicable. http://cssoss.wordpress.com/2011/11/28/bundling-freebsd-image-for-openstack/still looks good, though you'll want to use the native image API (glance client) for uploading the image. Hope that helps, -- @lloyddewolf http://www.pistoncloud.com/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp