[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: [libvirt-users] Installing a VM to a virtio disk
From:       Brian Roberg <robergb () dm ! org>
Date:       2010-08-26 15:11:53
Message-ID: AANLkTikm788_0Cr4CQ8y=+EGVQ3tRve14+Ae-z-jHYg8 () mail ! gmail ! com
[Download RAW message or body]

On Fri, Aug 20, 2010 at 1:00 PM, Brian Roberg <robergb@dm.org> wrote:

> When provisioning new VMs, is it possible to enable virtio for the guest's
> storage at the time of the installation? When I try to do so, the Ubuntu
> installer says, "No root file system is defined" when it gets to the
> partitioning step.


This turned out to be a silly mistake on my part. (Note: The problem and
solution I'll describe here are not libvirt-specific, but since I asked the
question here I thought it best to provide the answer too.)

In the preseed file I was using for the installer, I had placed a line I'd
copied from Ubuntu's example configuration:

  d-i partman-auto/disk string /dev/sda

The virtio_blk driver was ready to be used, but I was still telling the
installer to use the non-virtio device. Installation to the virtio block
device succeeded after I replaced that line with this one:

  d-i partman/early_command string debconf-set partman-auto/disk
"$(list-devices disk | head -n1)"

-- 
Brian

[Attachment #3 (text/html)]

<div class="gmail_quote">On Fri, Aug 20, 2010 at 1:00 PM, Brian Roberg <span \
dir="ltr">&lt;<a href="mailto:robergb@dm.org">robergb@dm.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> When provisioning new VMs, is it possible to enable \
virtio for the guest&#39;s storage at the time of the installation? When I try to do \
so, the Ubuntu installer says, &quot;No root file system is defined&quot; when it \
gets to the partitioning step.</blockquote> <div><br></div><div>This turned out to be \
a silly mistake on my part. (Note: The problem and solution I&#39;ll describe here \
are not libvirt-specific, but since I asked the question here I thought it best to \
provide the answer too.)</div> <div><br></div><div>In the preseed file I was using \
for the installer, I had placed a line I&#39;d copied from Ubuntu&#39;s example \
configuration:</div><div><br></div><div>    d-i partman-auto/disk string /dev/sda  \
</div><div> <br></div><div>The virtio_blk driver was ready to be used, but I was \
still telling the installer to use the non-virtio device. Installation to the virtio \
block device succeeded after I replaced that line with this one:</div> \
<div><br></div><div>    d-i partman/early_command string debconf-set \
partman-auto/disk &quot;$(list-devices  disk | head \
-n1)&quot;</div><div><br></div></div>-- <br>Brian<br><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic