is it possible to start a VM that contains just gpxe (which when started, will get an image from a provisioning server and will load that image) Thanks. Luca _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Luca wrote:> is it possible to start a VM that contains just gpxe (which when > started, will get an image from a provisioning server and will load > that image) > > Thanks. > > Luca > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >I haven''t tested this, but this would probably work or be the easiest way assuming you can create Xen HVM domU''s: 1. Go to: http://rom-o-matic.net/gpxe/gpxe-git/gpxe.git/contrib/rom-o-matic/ 2. Choose NIC/ROM type: rtl8139:10ec8139 -- [10ec,8139] 3. Choose ROM output format: ISO bootable image (.iso) 4. Skip to Step #4, and hit "Get ROM" and it should create a file named "gpxe-git-rtl8139.iso" for you. 5. Use that as the bootable CD-ROM for the HVM install. This assumes you have a working PXE setup or something similar in your environment for netbooting. -- Daniel Kao Übermind, Inc. Seattle, WA, U.S.A. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks. One more question. How do I need to change the VM''s configuration file? So far I have always specified the kernel and the root filesystem (which I would not have if I used gpxe) Besides just a curiosity. Why do you suggest to use that particular NIC (rtl8139)? As it''s going to be a VM can I use any NIC?> I haven''t tested this, but this would probably work or be the easiest way > assuming you can create Xen HVM domU''s: > > 1. Go to: http://rom-o-matic.net/gpxe/gpxe-git/gpxe.git/contrib/rom-o-matic/ > 2. Choose NIC/ROM type: rtl8139:10ec8139 -- [10ec,8139] > 3. Choose ROM output format: ISO bootable image (.iso) > 4. Skip to Step #4, and hit "Get ROM" and it should create a file named > "gpxe-git-rtl8139.iso" for you. > 5. Use that as the bootable CD-ROM for the HVM install. > > This assumes you have a working PXE setup or something similar in your > environment for netbooting._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You don''t specify a root filesystem in an HVM domain, you specify a boot device, and the bootloader on that device specifies the root filesystem (in this case, the ISO would boot to PXE, and the PXE image would define root). Also, rtl8139 is the default emulated NIC in an HVM domU, hence that driver suggestion. If you want to use PV (or if you have to due to lack of VT), hopefully someone else can respond with other ideas, as I would assume that rom-o-matic doesn''t include options to make a PV bootable ISO based on the previous poster''s suggestions. It may not even be possible to boot via PXE on a PV domain at all (unless by way of some other emulation layer being executed by the PV guest), but I really don''t know for sure. Dustin -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Luca Sent: Thursday, March 26, 2009 22:25 To: xen-users@lists.xensource.com Subject: Re: [Xen-users] using gpxe to get a VM image Thanks. One more question. How do I need to change the VM''s configuration file? So far I have always specified the kernel and the root filesystem (which I would not have if I used gpxe) Besides just a curiosity. Why do you suggest to use that particular NIC (rtl8139)? As it''s going to be a VM can I use any NIC?> I haven''t tested this, but this would probably work or be the easiest way > assuming you can create Xen HVM domU''s: > > 1. Go to:http://rom-o-matic.net/gpxe/gpxe-git/gpxe.git/contrib/rom-o-matic/> 2. Choose NIC/ROM type: rtl8139:10ec8139 -- [10ec,8139] > 3. Choose ROM output format: ISO bootable image (.iso) > 4. Skip to Step #4, and hit "Get ROM" and it should create a file named > "gpxe-git-rtl8139.iso" for you. > 5. Use that as the bootable CD-ROM for the HVM install. > > This assumes you have a working PXE setup or something similar in your > environment for netbooting._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Mar 27, 2009 at 9:03 PM, Dustin Henning <Dustin.Henning@prd-inc.com> wrote:> It may not even be possible to boot via > PXE on a PV domain at allApparently, booting domU, HVM guest, and PV guest from the network is possible, and easy too. Found this with Google : http://os-drive.com/files/docbook/xen-pxeboot.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Great find! I would assume that similar steps would work for any OS that can be installed with prepackaged Xen, but this could be something that only RH has precompiled. I was just responding because the thread was getting stale, I didn''t have time to do any searching. Thanks. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Fajar A. Nugraha Sent: Friday, March 27, 2009 10:21 To: Xen-user List Subject: Re: [Xen-users] using gpxe to get a VM image On Fri, Mar 27, 2009 at 9:03 PM, Dustin Henning <Dustin.Henning@prd-inc.com> wrote:> It may not even be possible to boot via > PXE on a PV domain at allApparently, booting domU, HVM guest, and PV guest from the network is possible, and easy too. Found this with Google : http://os-drive.com/files/docbook/xen-pxeboot.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> 1. Go to:http://rom-o-matic.net/gpxe/gpxe-git/gpxe.git/contrib/rom-o-matic/> 2. Choose NIC/ROM type: rtl8139:10ec8139 -- [10ec,8139] > 3. Choose ROM output format: ISO bootable image (.iso) > 4. Skip to Step #4, and hit "Get ROM" and it should create a file named > "gpxe-git-rtl8139.iso" for you. > 5. Use that as the bootable CD-ROM for the HVM install. >I tried it. But with no luck. If I use a Linux installation CD everything works but if I use a CD with gpxe-git-rtl8139.iso, gPXE starts as HVM domU but then it gets stuck after printing "Loading rtl8139.....Ready" This is the configuration file I used for the domU (the CD contains gpxe-git-rtl8139.iso). kernel="/usr/lib/xen/boot/hvmloader" builder=''hvm'' device_model=''/usr/lib64/xen/bin/qemu-dm'' memory=1024 name="gpxe" vif=[ ''type=ioemu, bridge=eth1, mac=00:01:02:03:04:05, model=rtl8139'' ] disk= [ ''file:/scratch/xenguest.img,hda,w'', ''phy:/dev/cdrom,hdc:cdrom,r'' ] sdl=0 vnc=1 vnclisten="0.0.0.0" vncconsole=1 vncpasswd='''' boot=''dc'' Thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users