I just want to say that the use of xvm for both the xen and virtualbox based solutions is very unfortunate... it makes googling for information about the xen based xvm almost impossible. I''m attempting to get a debian etchr4/ubuntu 8.04 paravirt domU installed and am running into my lack of understanding about the mechanics of xen based domU installs. I have tried: $ pfexec virt-install -n etch-01 -p -r 512 --vcpus=2 --nographics -f /dev/zvol/dsk/rpool/xvm/debian-etch/disk0 -l /xvm/debian-etch/debian-40r4-amd64-netinst.iso Starting install... Could not find an installable distribution at ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' Domain installation may not have been successful. If it was, you can restart your domain by running ''virsh start etch-01''; otherwise, please restart your installation. Wed, 30 Jul 2008 09:20:46 ERROR Could not find an installable distribution at ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' Traceback (most recent call last): File "/usr/bin/virt-install", line 511, in ? main() File "/usr/bin/virt-install", line 471, in main dom = guest.start_install(conscb,progresscb) File "/usr/lib/python2.4/vendor-packages/virtinst/Guest.py", line 887, in start_install self._prepare_install(meter) File "/usr/lib/python2.4/vendor-packages/virtinst/ParaVirtGuest.py", line 68, in _prepare_install self._installer.prepare(guest = self, meter = meter) File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", line 231, in prepare self._prepare_kernel_and_initrd(guest, distro, meter) File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", line 194, in _prepare_kernel_and_initrd distro = distro) File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", line 106, in acquireKernel progresscb=progresscb, distro=distro, scratchdir=scratchdir) File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", line 92, in _storeForDistro raise ValueError, _("Could not find an installable distribution at ''%s''" % baseuri) ValueError: Could not find an installable distribution at ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' Obviously, this does not just work out of the box and I tried Ubuntu jeOS too, just to be sure. Can anyone give instructions for getting a current debian etch/ubuntu para-virtualized domU setup on opensolaris 2005.11 (build 94) xvm? -- paul
Paul Fisher wrote:> I just want to say that the use of xvm for both the xen and virtualbox > based solutions is very unfortunate... it makes googling for information > about the xen based xvm almost impossible.Marketing is always dangerous :-)> I''m attempting to get a debian etchr4/ubuntu 8.04 paravirt domU > installed and am running into my lack of understanding about the > mechanics of xen based domU installs. I have tried: > > $ pfexec virt-install -n etch-01 -p -r 512 --vcpus=2 --nographics -f > /dev/zvol/dsk/rpool/xvm/debian-etch/disk0 -l > /xvm/debian-etch/debian-40r4-amd64-netinst.iso >I don''t think debian/ubuntu have paravirt support built in? You will probably have to install a HVM domain then build a PV kernel and do a P2V (physical to virtual) like move... I have done linux installs in the past with a custom PV kernel I built and then pointing to do the distro. It''s not simple though... MRJ> Starting install... > Could not find an installable distribution at > ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' > Domain installation may not have been > successful. If it was, you can restart your domain > by running ''virsh start etch-01''; otherwise, please > restart your installation. > Wed, 30 Jul 2008 09:20:46 ERROR Could not find an installable > distribution at ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' > Traceback (most recent call last): > File "/usr/bin/virt-install", line 511, in ? > main() > File "/usr/bin/virt-install", line 471, in main > dom = guest.start_install(conscb,progresscb) > File "/usr/lib/python2.4/vendor-packages/virtinst/Guest.py", line 887, > in start_install > self._prepare_install(meter) > File "/usr/lib/python2.4/vendor-packages/virtinst/ParaVirtGuest.py", > line 68, in _prepare_install > self._installer.prepare(guest = self, meter = meter) > File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", > line 231, in prepare > self._prepare_kernel_and_initrd(guest, distro, meter) > File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", > line 194, in _prepare_kernel_and_initrd > distro = distro) > File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", > line 106, in acquireKernel > progresscb=progresscb, distro=distro, scratchdir=scratchdir) > File "/usr/lib/python2.4/vendor-packages/virtinst/DistroManager.py", > line 92, in _storeForDistro > raise ValueError, _("Could not find an installable distribution at > ''%s''" % baseuri) > ValueError: Could not find an installable distribution at > ''/xvm/debian-etch/debian-40r4-amd64-netinst.iso'' > > > > Obviously, this does not just work out of the box and I tried Ubuntu > jeOS too, just to be sure. Can anyone give instructions for getting a > current debian etch/ubuntu para-virtualized domU setup on opensolaris > 2005.11 (build 94) xvm? > > > > -- > paul > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
http://opensolaris.org/jive/thread.jspa?threadID=62436&tstart=60 This message posted from opensolaris.org
Mark Johnson wrote:>> I''m attempting to get a debian etchr4/ubuntu 8.04 paravirt domU >> installed and am running into my lack of understanding about the >> mechanics of xen based domU installs. I have tried: >> >> $ pfexec virt-install -n etch-01 -p -r 512 --vcpus=2 --nographics -f >> /dev/zvol/dsk/rpool/xvm/debian-etch/disk0 -l >> /xvm/debian-etch/debian-40r4-amd64-netinst.iso >> > You will probably have to install a HVM domain then > build a PV kernel and do a P2V (physical to virtual) > like move... > > I have done linux installs in the past with a custom > PV kernel I built and then pointing to do the distro. > It''s not simple though... >Almost to the finish line on this... I''ve got a disk image built with debootstrap in the hvm domU, and just need to create a definition for it to run paravirtualized. Only problem is that I cannot find the documentation for the xml configuration file format so that I can "virsh dumpxml/define" to make this change. Does the documentation for dumpxml exist? I did find the doc on libvirt.org, but xvm seems to differ slightly from the examples that are there. Or do I need to get another paravirtualized guest installed to see what is used... -- paul
Paul Fisher wrote:> Almost to the finish line on this... I''ve got a disk image built with > debootstrap in the hvm domU, and just need to create a definition for it > to run paravirtualized. Only problem is that I cannot find the > documentation for the xml configuration file format so that I can "virsh > dumpxml/define" to make this change. > > Does the documentation for dumpxml exist? I did find the doc on > libvirt.org, but xvm seems to differ slightly from the examples that are > there. Or do I need to get another paravirtualized guest installed to > see what is used... >Success! The examples on libvirt.org point in the right direction, but I had run into a few brick walls along the way. I''ve captured the steps that ended up working, so that other can find this and get a Debian Etch PV domU setup on OpenSolaris 2005.11: http://adventuresinopensolaris.blogspot.com/2008/07/xvm-pv-of-debian-distros.html -- paul
If you would build image per link suggested bellow (or by yourself) , it would not be an issue.It''s pretty much standard procedure for Ubuntu PV guests. I just follow Greg (http://www.noogies.org/node/7) :- # cat /vm/ubuntupvm.cfg memory = 512 name = "ubuntupvm" vif = [ ''mac=00:16:3e:00:00:00'' ] disk = [ ''file:/vm/ubuntupvm.img,xvda1,w'',''file:/vm/ubuntupvm-swap.img,xvdb1,w'' ] * Now to see if it all worked... Lets boot her up and connect to the console. If you see output like this, then its all worked! The formatting is a little messed up from my terminal. # xm create -f /vm/ubuntupvm.cfg -c Using config file "/vm/ubuntupvm.cfg". This message posted from opensolaris.org
Boris Derzhavets wrote:> If you would build image per link suggested bellow (or by yourself) , it would not be an issue.It''s pretty much standard procedure for Ubuntu PV guests. > I just follow Greg (http://www.noogies.org/node/7) :- > # cat /vm/ubuntupvm.cfg > memory = 512 > name = "ubuntupvm" > vif = [ ''mac=00:16:3e:00:00:00'' ] > disk = [ ''file:/vm/ubuntupvm.img,xvda1,w'',''file:/vm/ubuntupvm-swap.img,xvdb1,w'' ] > > * Now to see if it all worked... Lets boot her up and connect to the console. If you see output like this, then its all worked! The formatting is a little messed up from my terminal. > > # xm create -f /vm/ubuntupvm.cfg -c > Using config file "/vm/ubuntupvm.cfg". >Why so many configuration file formats? There appear to be three of them: 1) xm create (python); 2) xm list/new (sexpression); 3) virsh dumpxml/define (xml). Which is the "official" one for xVM going forward? I used the xml format from dumpxml/define because that is what appeared to be the majority of the examples on the xVM community site. -- paul
Frank Van Der Linden wrote:> Paul Fisher wrote: > >> Why so many configuration file formats? There appear to be three of >> them: 1) xm create (python); 2) xm list/new (sexpression); 3) virsh >> dumpxml/define (xml). >> >> Which is the "official" one for xVM going forward? >> >> I used the xml format from dumpxml/define because that is what appeared >> to be the majority of the examples on the xVM community site. >> >> > The "official" (although there is no such thing, really) way to create > and maintain domains is to use virt-install to create them, and then > virsh for starting/stopping/maintenance. >... which does not support creating a PV domU using an existing (or cloned for that matter) disk image. -- paul
Paul Fisher wrote:> Why so many configuration file formats? There appear to be three of > them: 1) xm create (python); 2) xm list/new (sexpression); 3) virsh > dumpxml/define (xml). > > Which is the "official" one for xVM going forward? > > I used the xml format from dumpxml/define because that is what appeared > to be the majority of the examples on the xVM community site. >The "official" (although there is no such thing, really) way to create and maintain domains is to use virt-install to create them, and then virsh for starting/stopping/maintenance. - Frank
> I''ve captured > the steps that > ended up working, so that other can find this and get > a Debian Etch PV > domU setup on OpenSolaris 2005.11: > > http://adventuresinopensolaris.blogspot.com/2008/07/xvm-pv-of-debian-distros.htmlTake a look at snapshots of Ubuntu 8.04 Desktop DomU at Xen 3.2.1 F8 Dom0 at end of thread:- http://opensolaris.org/jive/thread.jspa?threadID=62436&tstart=60> > > -- > paul > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.orgThis message posted from opensolaris.org