Re: F15 on KVM/libvirt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/14/2011 02:27 PM, Phil Meyer wrote:
> On 04/14/2011 12:57 PM, Yves Dorfsman wrote:
>> On 11-04-14 11:36 AM, Pekka Pietikainen wrote:
>>> I bet you didn't adjust the amount of memory you're giving the VM from the
>>> default :P As I just noticed, with 512MB it quickly dies from running out of
>>> memory while decompressing the initramfs.  Apparently it's a known issue.
>> Bingo. I put 600MiB and it is now installing...
>>
>>
>> Thanks!
> 
> Just for this reason, our automated scripts for installing VMs call 
> virt-install with 1GB RAM and 1 CPU and then use a non-interactive virsh 
> edit to set the desired values before the first boot after install.
> 
> Here is how it can be done, if you are interested:
> 
> This example resets from 1GB used during the install, to whatever was 
> passed to the script as $ram.
> 
> 
> echo -e "g/mory>1048576/s//mory>${ram}/\nw\nq\n" | env EDITOR=ed virsh 

echo -e is not portable.  It's better to get in the habit of using
printf, as in:

printf "g/mory>1048576/s//mory>${ram}/\nw\nq\n"

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux