Teo En Ming (Zhang Enming)
2012-Sep-29 13:35 UTC
Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Hi, I have applied Xen VGA passthrough patches from David Techer''s personal website to Xen 4.2.1-pre source tree. Everything compiled and installed smoothly. But when I tried to start Windows 8 HVM domU with VGA passthrough, it gave me the following error: xc: error: unable to allocate memory to the HVM guest. (16: device or resource busy): Internal error. There are no issues with Xen 4.2-unstable changeset 25099 however. -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore
Teo En Ming (Zhang Enming)
2012-Sep-29 13:35 UTC
Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Hi, I have applied Xen VGA passthrough patches from David Techer''s personal website to Xen 4.2.1-pre source tree. Everything compiled and installed smoothly. But when I tried to start Windows 8 HVM domU with VGA passthrough, it gave me the following error: xc: error: unable to allocate memory to the HVM guest. (16: device or resource busy): Internal error. There are no issues with Xen 4.2-unstable changeset 25099 however. -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore
Teo En Ming (Zhang Enming)
2012-Sep-29 16:09 UTC
Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote:> Hi, > > I have applied Xen VGA passthrough patches from David Techer''s > personal website to Xen 4.2.1-pre source tree. Everything compiled and > installed smoothly. But when I tried to start Windows 8 HVM domU with > VGA passthrough, it gave me the following error: > > xc: error: unable to allocate memory to the HVM guest. (16: device or > resource busy): Internal error. > > There are no issues with Xen 4.2-unstable changeset 25099 however. >Attached are screenshots of the errors for Xen 4.2.1-pre and Xen configuration files. The following are links to screenshots of the errors for Xen 4.2.1-pre. http://i45.tinypic.com/2j3s7pj.jpg http://i45.tinypic.com/95myc3.jpg -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Teo En Ming (Zhang Enming)
2012-Sep-29 16:09 UTC
Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote:> Hi, > > I have applied Xen VGA passthrough patches from David Techer''s > personal website to Xen 4.2.1-pre source tree. Everything compiled and > installed smoothly. But when I tried to start Windows 8 HVM domU with > VGA passthrough, it gave me the following error: > > xc: error: unable to allocate memory to the HVM guest. (16: device or > resource busy): Internal error. > > There are no issues with Xen 4.2-unstable changeset 25099 however. >Attached are screenshots of the errors for Xen 4.2.1-pre and Xen configuration files. The following are links to screenshots of the errors for Xen 4.2.1-pre. http://i45.tinypic.com/2j3s7pj.jpg http://i45.tinypic.com/95myc3.jpg -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Casey DeLorme
2012-Sep-29 16:22 UTC
Re: [Xen-users] Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Hello Teo, That output is identical to the errors I had a few days ago, which was related to available RAM. Ian helped me debug it, said xl was having a ballooning problem and couldn''t free up enough RAM in time to start my HVM. His suggested solution was to assign a fixed amount of RAM to Dom0 and turn off ballooning. Prior to this I had been letting Dom0 take all the RAM, but this problem was fixed by adding dom0_mem to grub.cfg and setting a fixed value. Have you tried re-running the xl create command after the first error? There are commands to move RAM around at run-time as well that you could try. ~Casey On Sat, Sep 29, 2012 at 12:09 PM, Teo En Ming (Zhang Enming) < singapore.mr.teo.en.ming@gmail.com> wrote:> On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote: > >> Hi, >> >> I have applied Xen VGA passthrough patches from David Techer''s >> personal website to Xen 4.2.1-pre source tree. Everything compiled and >> installed smoothly. But when I tried to start Windows 8 HVM domU with >> VGA passthrough, it gave me the following error: >> >> xc: error: unable to allocate memory to the HVM guest. (16: device or >> resource busy): Internal error. >> >> There are no issues with Xen 4.2-unstable changeset 25099 however. >> >> > Attached are screenshots of the errors for Xen 4.2.1-pre and Xen > configuration files. > > The following are links to screenshots of the errors for Xen 4.2.1-pre. > > http://i45.tinypic.com/**2j3s7pj.jpg <http://i45.tinypic.com/2j3s7pj.jpg> > > http://i45.tinypic.com/95myc3.**jpg <http://i45.tinypic.com/95myc3.jpg> > > > -- > Yours sincerely, > > Mr. Teo En Ming (Zhang Enming) > Singapore > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Casey DeLorme
2012-Sep-29 16:22 UTC
Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Hello Teo, That output is identical to the errors I had a few days ago, which was related to available RAM. Ian helped me debug it, said xl was having a ballooning problem and couldn''t free up enough RAM in time to start my HVM. His suggested solution was to assign a fixed amount of RAM to Dom0 and turn off ballooning. Prior to this I had been letting Dom0 take all the RAM, but this problem was fixed by adding dom0_mem to grub.cfg and setting a fixed value. Have you tried re-running the xl create command after the first error? There are commands to move RAM around at run-time as well that you could try. ~Casey On Sat, Sep 29, 2012 at 12:09 PM, Teo En Ming (Zhang Enming) < singapore.mr.teo.en.ming@gmail.com> wrote:> On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote: > >> Hi, >> >> I have applied Xen VGA passthrough patches from David Techer''s >> personal website to Xen 4.2.1-pre source tree. Everything compiled and >> installed smoothly. But when I tried to start Windows 8 HVM domU with >> VGA passthrough, it gave me the following error: >> >> xc: error: unable to allocate memory to the HVM guest. (16: device or >> resource busy): Internal error. >> >> There are no issues with Xen 4.2-unstable changeset 25099 however. >> >> > Attached are screenshots of the errors for Xen 4.2.1-pre and Xen > configuration files. > > The following are links to screenshots of the errors for Xen 4.2.1-pre. > > http://i45.tinypic.com/**2j3s7pj.jpg <http://i45.tinypic.com/2j3s7pj.jpg> > > http://i45.tinypic.com/95myc3.**jpg <http://i45.tinypic.com/95myc3.jpg> > > > -- > Yours sincerely, > > Mr. Teo En Ming (Zhang Enming) > Singapore > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Teo En Ming (Zhang Enming)
2012-Sep-29 16:49 UTC
Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Dear Casey, I had dom0_mem set to 1024 and 4096 as well, but it did not help. I am still getting the errors. I have 6 GB of memory installed. How much memory should I assign to dom0_mem? Thank you for your prompt reply. -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore On 30/09/2012 00:22, Casey DeLorme wrote:> Hello Teo, > > That output is identical to the errors I had a few days ago, which was > related to available RAM. > > Ian helped me debug it, said xl was having a ballooning problem and > couldn''t free up enough RAM in time to start my HVM. > > His suggested solution was to assign a fixed amount of RAM to Dom0 and > turn off ballooning. > > Prior to this I had been letting Dom0 take all the RAM, but this > problem was fixed by adding dom0_mem to grub.cfg and setting a fixed > value. > > Have you tried re-running the xl create command after the first error? > There are commands to move RAM around at run-time as well that you > could try. > > ~Casey > > On Sat, Sep 29, 2012 at 12:09 PM, Teo En Ming (Zhang Enming) > <singapore.mr.teo.en.ming@gmail.com > <mailto:singapore.mr.teo.en.ming@gmail.com>> wrote: > > On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote: > > Hi, > > I have applied Xen VGA passthrough patches from David Techer''s > personal website to Xen 4.2.1-pre source tree. Everything > compiled and > installed smoothly. But when I tried to start Windows 8 HVM > domU with > VGA passthrough, it gave me the following error: > > xc: error: unable to allocate memory to the HVM guest. (16: > device or > resource busy): Internal error. > > There are no issues with Xen 4.2-unstable changeset 25099 however. > > > Attached are screenshots of the errors for Xen 4.2.1-pre and Xen > configuration files. > > The following are links to screenshots of the errors for Xen > 4.2.1-pre. > > http://i45.tinypic.com/2j3s7pj.jpg > > http://i45.tinypic.com/95myc3.jpg > > > -- > Yours sincerely, > > Mr. Teo En Ming (Zhang Enming) > Singapore > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org <mailto:Xen-users@lists.xen.org> > http://lists.xen.org/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Teo En Ming (Zhang Enming)
2012-Sep-29 16:49 UTC
Re: [Xen-users] Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
Dear Casey, I had dom0_mem set to 1024 and 4096 as well, but it did not help. I am still getting the errors. I have 6 GB of memory installed. How much memory should I assign to dom0_mem? Thank you for your prompt reply. -- Yours sincerely, Mr. Teo En Ming (Zhang Enming) Singapore On 30/09/2012 00:22, Casey DeLorme wrote:> Hello Teo, > > That output is identical to the errors I had a few days ago, which was > related to available RAM. > > Ian helped me debug it, said xl was having a ballooning problem and > couldn''t free up enough RAM in time to start my HVM. > > His suggested solution was to assign a fixed amount of RAM to Dom0 and > turn off ballooning. > > Prior to this I had been letting Dom0 take all the RAM, but this > problem was fixed by adding dom0_mem to grub.cfg and setting a fixed > value. > > Have you tried re-running the xl create command after the first error? > There are commands to move RAM around at run-time as well that you > could try. > > ~Casey > > On Sat, Sep 29, 2012 at 12:09 PM, Teo En Ming (Zhang Enming) > <singapore.mr.teo.en.ming@gmail.com > <mailto:singapore.mr.teo.en.ming@gmail.com>> wrote: > > On 29/09/2012 21:35, Teo En Ming (Zhang Enming) wrote: > > Hi, > > I have applied Xen VGA passthrough patches from David Techer''s > personal website to Xen 4.2.1-pre source tree. Everything > compiled and > installed smoothly. But when I tried to start Windows 8 HVM > domU with > VGA passthrough, it gave me the following error: > > xc: error: unable to allocate memory to the HVM guest. (16: > device or > resource busy): Internal error. > > There are no issues with Xen 4.2-unstable changeset 25099 however. > > > Attached are screenshots of the errors for Xen 4.2.1-pre and Xen > configuration files. > > The following are links to screenshots of the errors for Xen > 4.2.1-pre. > > http://i45.tinypic.com/2j3s7pj.jpg > > http://i45.tinypic.com/95myc3.jpg > > > -- > Yours sincerely, > > Mr. Teo En Ming (Zhang Enming) > Singapore > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org <mailto:Xen-users@lists.xen.org> > http://lists.xen.org/xen-users > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Casey DeLorme
2012-Sep-29 17:25 UTC
Re: Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
I am working with 32GB, so you probably don''t want to model your configuration after mine. My problem was memory was not being freed from Dom0 fast enough. If you have already lowered Dom0 memory, checked it with xl info, and are still having problems launching, then it might be something else. My assumption is the memory assigned in the configuration is not a 1:1 map to what is required. --- I decided to run some tests to see how Xen used my memory. Starting with Dom0 and ipfire running, I ran xl info, got the diff, and then xl list and compared the two to find that xl info shows 500MB more memory used up. I started Windows, and again roughly 500MB unaccounted for. --- So, based on that information I can assume Xen requires half a gigabyte to work with in the backend for its normal responsibilities. The wiki has a best practices which shows 512MB set for Dom0: http://wiki.xen.org/wiki/Xen_Best_Practices I would try setting 512MB in your grub configuration like the above, check available RAM after your reload using `xl info`, making sure you have more than the 2GB set in the HVM configuration. If it still doesn''t work, then it must be something different. You could also try lowering the memory in your DomU configuration as an alternative, just to see if it works. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Casey DeLorme
2012-Sep-29 17:25 UTC
Re: [Xen-users] Unable to start Windows 8 HVM guest with Xen VGA Passthrough with Xen 4.2.1-pre
I am working with 32GB, so you probably don''t want to model your configuration after mine. My problem was memory was not being freed from Dom0 fast enough. If you have already lowered Dom0 memory, checked it with xl info, and are still having problems launching, then it might be something else. My assumption is the memory assigned in the configuration is not a 1:1 map to what is required. --- I decided to run some tests to see how Xen used my memory. Starting with Dom0 and ipfire running, I ran xl info, got the diff, and then xl list and compared the two to find that xl info shows 500MB more memory used up. I started Windows, and again roughly 500MB unaccounted for. --- So, based on that information I can assume Xen requires half a gigabyte to work with in the backend for its normal responsibilities. The wiki has a best practices which shows 512MB set for Dom0: http://wiki.xen.org/wiki/Xen_Best_Practices I would try setting 512MB in your grub configuration like the above, check available RAM after your reload using `xl info`, making sure you have more than the 2GB set in the HVM configuration. If it still doesn''t work, then it must be something different. You could also try lowering the memory in your DomU configuration as an alternative, just to see if it works. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel